@charset "UTF-8";
/**
 * Vitrena — theme styles.
 *
 * Design direction: the authorised dealer's catalogue. Cordovan crimson on
 * paper, letterspaced caps section headings over a hairline rule, dense product
 * grids, and savings stated in currency rather than percentages.
 *
 * Only rules theme.json cannot express live here. All values reference tokens.
 */
/* -----------------------------------------------------------------------------
 * 1. Base
 * -------------------------------------------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(.wp-block-image img) {
  height: auto;
}

/* -----------------------------------------------------------------------------
 * 2. Section headings — letterspaced caps centred over a rule
 * -------------------------------------------------------------------------- */
.vitrena-section-head {
  text-align: center;
}

.vitrena-section-head .wp-block-heading {
  margin: 0;
}

.vitrena-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--30);
  margin: 0;
}

.vitrena-rule::before,
.vitrena-rule::after {
  content: "";
  height: 1px;
  width: clamp(28px, 8vw, 96px);
  background-color: var(--wp--preset--color--primary);
}

.vitrena-eyebrow {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

/* Tab row under a section heading. Static links, styled as a filter set. */
.vitrena-tabs .wp-block-button__link {
  background-color: transparent;
  color: var(--wp--preset--color--muted);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5em 0.2em;
  letter-spacing: 0.1em;
}

.vitrena-tabs .wp-block-button__link:hover,
.vitrena-tabs .wp-block-button.is-active .wp-block-button__link {
  background-color: transparent;
  color: var(--wp--preset--color--contrast);
  border-bottom-color: var(--wp--preset--color--primary);
}

/* -----------------------------------------------------------------------------
 * 3. Promo card wall — three across, then an asymmetric pair
 * -------------------------------------------------------------------------- */
.vitrena-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--30);
}

.vitrena-promo-pair {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: var(--wp--preset--spacing--30);
}

.vitrena-promo-grid > *,
.vitrena-promo-pair > * {
  margin-block: 0;
}

.vitrena-promo-grid .wp-block-cover,
.vitrena-promo-pair .wp-block-cover {
  height: 100%;
  border-radius: var(--wp--custom--radius--medium);
  overflow: hidden;
}

@media (max-width: 900px) {
  .vitrena-promo-grid,
  .vitrena-promo-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* -----------------------------------------------------------------------------
 * 4. Product cards — dense, catalogue-style
 * -------------------------------------------------------------------------- */
.wp-block-woocommerce-product-collection .wp-block-post {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--medium);
  padding: var(--wp--preset--spacing--30);
  transition: var(--wp--custom--transition--base);
}

.wp-block-woocommerce-product-collection .wp-block-post:hover {
  border-color: var(--wp--preset--color--primary);
  box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
  border-radius: var(--wp--custom--radius--small);
  background-color: var(--wp--preset--color--surface);
  mix-blend-mode: multiply;
}

/* Titles are compact caps-ish, as a parts catalogue would set them. */
.wp-block-woocommerce-product-collection .wp-block-post-title {
  margin: 0.6rem 0 0.35rem;
}

.wp-block-woocommerce-product-collection .wp-block-post-title a {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-button {
  margin-top: auto;
}

.wp-block-woocommerce-product-collection .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link {
  width: 100%;
  text-align: center;
}

/* Savings badge: cordovan, squared, stated in money. */
.wc-block-components-product-sale-badge {
  background-color: var(--wp--preset--color--sale);
  color: var(--wp--preset--color--base);
  border: 0;
  border-radius: var(--wp--custom--radius--small);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-block-components-product-price__regular {
  color: var(--wp--preset--color--muted);
  font-weight: 400;
  text-decoration: line-through;
}

.wc-block-components-product-price ins,
.wc-block-components-product-price__value.is-discounted {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.wc-block-components-product-rating .wc-block-components-product-rating__stars,
.wc-block-grid__product-rating .star-rating {
  color: var(--wp--preset--color--star);
}

/* -----------------------------------------------------------------------------
 * 5. Category tiles — image with a label plate and an arrow
 * -------------------------------------------------------------------------- */
.vitrena-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--30);
}

.vitrena-tiles > * {
  margin-block: 0;
}

.vitrena-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--wp--custom--radius--medium);
  background-color: var(--wp--preset--color--surface);
}

.vitrena-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vitrena-tile:hover img {
  transform: scale(1.04);
}

.vitrena-tile__label {
  position: absolute;
  inset-inline-start: 10px;
  inset-block-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.8em;
  background-color: var(--wp--preset--color--base);
  border-radius: var(--wp--custom--radius--small);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
}

.vitrena-tile__label::after {
  content: "→";
  color: var(--wp--preset--color--primary);
}

@media (max-width: 900px) {
  .vitrena-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* -----------------------------------------------------------------------------
 * 5b. Example row — bundled photographs, only while the catalogue is empty
 * -------------------------------------------------------------------------- */
.vitrena-examples {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--30);
}

.vitrena-example img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--wp--custom--radius--small);
  background-color: var(--wp--preset--color--surface);
}

.vitrena-example .vitrena-eyebrow {
  margin: 0.75rem 0 0;
}

.vitrena-example__title {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
}

@media (max-width: 1100px) {
  .vitrena-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .vitrena-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* -----------------------------------------------------------------------------
 * 6. Brand wall — bordered cells, six across
 * -------------------------------------------------------------------------- */
.vitrena-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--wp--preset--color--border);
  border-inline-start: 1px solid var(--wp--preset--color--border);
}

.vitrena-brands > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0;
  padding: var(--wp--preset--spacing--20);
  border-inline-end: 1px solid var(--wp--preset--color--border);
  border-block-end: 1px solid var(--wp--preset--color--border);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--contrast);
  transition: var(--wp--custom--transition--base);
}

.vitrena-brands > *:hover {
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--primary);
}

@media (max-width: 900px) {
  .vitrena-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* -----------------------------------------------------------------------------
 * 7. Curated showcase — three across, then a pair
 * -------------------------------------------------------------------------- */
.vitrena-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--30);
}

.vitrena-showcase--pair {
  grid-template-columns: 1fr 2fr;
}

.vitrena-showcase > * {
  margin-block: 0;
}

.vitrena-showcase .wp-block-cover {
  border-radius: var(--wp--custom--radius--medium);
  overflow: hidden;
  height: 100%;
}

@media (max-width: 900px) {
  .vitrena-showcase,
  .vitrena-showcase--pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* -----------------------------------------------------------------------------
 * 8. Header
 * -------------------------------------------------------------------------- */
.vitrena-utility {
  font-size: var(--wp--preset--font-size--x-small);
}

.vitrena-utility p {
  margin: 0;
  white-space: nowrap;
}

.vitrena-utility__grid,
.vitrena-header-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  min-width: 0;
}

/* These rows are flow-layout groups turned into grids, so core's flow spacing
 * rule still gives every child after the first a 24px block-start margin. In a
 * centred grid that pushes the navigation and icons below the site title. */
.vitrena-utility__grid > *,
.vitrena-header-main__grid > * {
  margin-block-start: 0;
  margin-block-end: 0;
  min-width: 0;
}

.vitrena-utility a {
  color: inherit;
}

.vitrena-brand .wp-block-site-title a {
  color: var(--wp--preset--color--contrast);
}

.vitrena-search .wp-block-search__inside-wrapper {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--medium);
  padding: 2px 2px 2px 14px;
  background-color: var(--wp--preset--color--surface);
}

.vitrena-search .wp-block-search__input {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: var(--wp--preset--font-size--small);
}

/* Focus ring lives on the wrapper so the bare input can drop its outline. */
.vitrena-search .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--wp--preset--color--primary);
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

.vitrena-search .wp-block-search__input:focus {
  outline: 0;
}

.vitrena-search .wp-block-search__button {
  margin: 0;
  padding: 0.55em 1.2em;
}

/* Utility bar: three nowrap columns need ~950px+. Stack earlier so focused
 * links stay on-screen (theme review: top bar not visible/accessible). */
@media (max-width: 1100px) {
  .vitrena-utility p {
    white-space: normal;
  }
  .vitrena-utility__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--wp--preset--spacing--20);
    text-align: center;
  }
  .vitrena-utility__grid > :last-child {
    justify-self: center;
  }
  .vitrena-utility__grid > :first-child .wp-block-group {
    justify-content: center;
  }
}
/* Header tools: brand + icons on one row, search full width underneath. */
@media (max-width: 781px) {
  .vitrena-header-main__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--wp--preset--spacing--20);
  }
  .vitrena-header-main__grid .vitrena-search {
    grid-column: 1/-1;
    order: 3;
    max-width: none;
  }
  .vitrena-icons {
    justify-self: end;
  }
  .vitrena-hide-mobile {
    display: none !important;
  }
}
/* Category navigation bar, the dealer's department row. */
.vitrena-navbar {
  border-block: 1px solid var(--wp--preset--color--border);
}

.vitrena-navbar .wp-block-navigation {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.8125rem;
  font-weight: 500;
}

.vitrena-navbar .wp-block-navigation a:where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--contrast);
}

.vitrena-navbar .wp-block-navigation a:hover {
  color: var(--wp--preset--color--primary);
}

.vitrena-onsale {
  color: var(--wp--preset--color--sale);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.vitrena-icons {
  gap: var(--wp--preset--spacing--20);
  justify-self: end;
}

.vitrena-icons > * {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.vitrena-icons .wc-block-customer-account__account-icon,
.vitrena-icons .wc-block-mini-cart__icon {
  width: 22px;
  height: 22px;
}

.vitrena-icons .wc-block-mini-cart__badge {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-size: 0.625rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
}

/* -----------------------------------------------------------------------------
 * 9. Footer — cordovan, with the registration detail a dealer must publish
 * -------------------------------------------------------------------------- */
.vitrena-footer {
  color: var(--wp--preset--color--base);
}

.vitrena-footer a:where(:not(.wp-element-button)) {
  color: rgba(255, 255, 255, 0.82);
}

.vitrena-footer a:where(:not(.wp-element-button)):hover {
  color: var(--wp--preset--color--base);
}

.vitrena-footer .wp-block-heading {
  color: var(--wp--preset--color--base);
  font-size: var(--wp--preset--font-size--x-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vitrena-footer .wp-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 2;
}

.vitrena-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--wp--preset--font-size--x-small);
  color: rgba(255, 255, 255, 0.72);
}

.vitrena-legal strong {
  color: var(--wp--preset--color--base);
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------------------
 * 10. Shop pages
 * -------------------------------------------------------------------------- */
.vitrena-shop-sidebar {
  position: sticky;
  top: var(--wp--preset--spacing--40);
}

.vitrena-shop-sidebar .wp-block-heading,
.vitrena-shop-sidebar .wc-block-product-categories-list li a {
  color: var(--wp--preset--color--contrast);
}

.vitrena-shop-sidebar .wc-block-product-categories-list,
.vitrena-shop-sidebar .wc-block-product-categories-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--wp--preset--font-size--small);
}

.woocommerce-ordering select,
.wp-block-woocommerce-catalog-sorting select {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--medium);
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font-size: var(--wp--preset--font-size--small);
  padding: 0.5em 1em;
}

.wp-block-woocommerce-product-results-count {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
  margin: 0;
}

/* -----------------------------------------------------------------------------
 * 11. Buttons — deterministic colour, and a dealer outline variant
 * -------------------------------------------------------------------------- */
.wp-block-button.is-style-vitrena-outline > .wp-block-button__link {
  background-color: transparent;
  background-image: none;
  color: var(--wp--preset--color--contrast);
  border: 1px solid currentColor;
}

.wp-block-button.is-style-vitrena-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-vitrena-outline > .wp-block-button__link:focus {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--primary);
}

/* -----------------------------------------------------------------------------
 * 12. Quality floor — visible :focus for keyboard navigation (theme review)
 * -------------------------------------------------------------------------- */
:where(a,
button,
input,
select,
textarea,
summary,
.wp-block-button__link,
.wp-block-navigation-item__content,
.wp-block-social-link-anchor):focus {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* Primary surfaces use a primary outline by default — swap to base so focus
 * stays visible on the utility bar, social icons, and footer links. */
.vitrena-utility :where(a, button, .wp-block-social-link-anchor):focus,
.vitrena-footer :where(a, button, .wp-block-social-link-anchor):focus {
  outline-color: var(--wp--preset--color--base);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Utility bar social icons: the block ships with its own list margins and an
 * icon size that sits below the text baseline, so both are normalised here. */
.vitrena-utility .wp-block-social-links {
  margin: 0;
  align-items: center;
  line-height: 1;
}

.vitrena-utility .wp-block-social-links .wp-social-link {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.vitrena-utility .wp-block-social-links .wp-block-social-link-anchor {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.vitrena-utility .wp-block-social-links svg {
  width: 17px;
  height: 17px;
  display: block;
}

.vitrena-utility__grid > :last-child {
  justify-self: end;
}