/*
 * Child theme main stylesheet
 * Page-specific or component-specific CSS should live here first.
 */

.header-search__leading {
  display: none;
}

.brand__text {
  display: block;
}

/* Narrow phones: the tagline has letter-spacing:2px + text-transform:uppercase,
   which makes it ~302px wide and causes the brand anchor to overflow the 375px
   viewport. Hide it below 640px so the brand name stays fully visible and the
   header row fits without horizontal scroll. Desktop and tablet (>640px) are
   unaffected. The existing 360px letter-spacing tweak in style.css becomes
   inert once this rule applies, which is harmless. */
@media (max-width: 640px) {
  .brand__tagline {
    display: none;
  }
}

/* Hero badge: prevent label from overflowing the gold circle.
   "QUY CÁCH THAM KHẢO" in 9px uppercase + 0.5px letter-spacing spans ~124px,
   visibly wider than the ~99px chord available at the label's position inside
   a 104px circle. Cap max-width so the browser wraps at word boundaries into
   two balanced lines, and zero out letter-spacing that was adding extra width. */
.hero__badge-num {
  font-size: 20px;
}

.hero__badge-label {
  font-size: 8px;
  max-width: 72px;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

/* Hero headline: rebalance short heading lines so a single word like "Tây"
   does not sit alone on a desktop line. text-wrap: balance is ideal for
   headings; degrades silently in older browsers. */
.hero__title {
  text-wrap: balance;
}

.hero__visual .hero__photo-img {
  box-sizing: border-box;
  display: block;
  width: min(420px, 90%);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 6px solid rgba(201, 154, 72, .4);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.category-card__img img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* ==========================================================================
   Homepage featured section — warm cream band + equal-width columns
   ========================================================================== */

/* Full-bleed warm cream surface behind the featured strip */
.featured-section {
  background: var(--bg-soft);
}

/* Override auto-fit: use --cols (set inline from PHP item count) so five
   items give exactly five equal columns; fewer items fill proportionally. */
.featured-grid {
  grid-template-columns: repeat(var(--cols, 4), 1fr);
}

.featured-card__img {
  overflow: hidden;
}

/* No-image fallback: diagonal warm-beige stripe with centred muted label.
   Keeps role="img" + aria-label on the span — accessible, visible text preserved. */
.featured-card__img--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #f7ece0,
    #f7ece0 12px,
    #eddcca 12px,
    #eddcca 24px
  );
  color: #a8896c;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

/* Tablet (641–1023px): cap at 4 columns to avoid five cramped items;
   mobile (≤640px) switches to horizontal-swipe flex via style.css. */
@media (min-width: 641px) and (max-width: 1023px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__img {
  width: 100%;
  /* height:auto overrides the presentational height="300" attribute that the
     browser maps to a UA-level height:300px, which was keeping cards at
     156×300px even though the loaded image is square. With height:auto,
     aspect-ratio:1 governs and the box stays width×width for any source ratio.
     object-fit:cover (already present above) crops without distortion. */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 0;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__logo .custom-logo-link,
.brand__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 56px;
  object-fit: contain;
}

.drawer__nav .desktop-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__nav .menu-item {
  display: block;
}

.drawer__nav .desktop-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.topbar__social .social-block,
.footer-social .social-block {
  display: contents;
}

.topbar__social .social-list,
.footer-social .social-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__social .social-list img,
.footer-social .social-list img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.woocommerce-content {
  padding-top: 32px;
  padding-bottom: 56px;
}

.page-content .entry-content > * + * {
  margin-top: 1.25em;
}

.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4 {
  color: var(--maroon);
  line-height: 1.25;
}

.page-content .entry-content h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.page-content .entry-content h3 {
  font-size: clamp(20px, 2.5vw, 27px);
}

.page-content .entry-content p,
.page-content .entry-content li {
  color: var(--text-main);
  line-height: 1.8;
}

.page-content .entry-content img,
.page-entry__featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.page-entry__featured-image {
  margin-bottom: 28px;
}

.story-hero__visual img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-related-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-content .entry-content .alignwide {
  max-width: min(100% + 120px, 1360px);
  margin-left: auto;
  margin-right: auto;
}

.page-content .entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Product detail gallery & variable product styling */
.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.gallery-thumb {
  cursor: pointer;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
}

.gallery-thumb.is-active {
  border-color: var(--maroon);
}

/* ==========================================================================
   Product detail page — responsive grid & variable price hierarchy
   ========================================================================== */

/* Mobile ≤768px: single column, image first, full-width stack */
@media (max-width: 768px) {
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .detail-gallery {
    order: -1;
    width: 100%;
  }

  .gallery-main {
    width: 100%;
  }
}

/* Tablet/narrow desktop (641–1024px): prevent narrow columns at intermediate widths.
   At 650px the auto-fit minmax can create awkward narrow columns. Force balanced
   two-column until 768px where we switch to mobile single-column. */
@media (min-width: 769px) and (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}


/* Variable product price range: reduce emphasis to avoid dominating the layout.
   The large variable price range (500.000 đ – 1.000.000 đ) should be smaller
   than the selected variation price, which appears in .woocommerce-variation-price
   after a variation is chosen. Scoped through .woocommerce div.product to outrank
   WooCommerce core price styles. */
.woocommerce div.product .detail-price-box .detail-price .woocommerce-price-suffix {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Variable product: the initial price range before variation selection.
   Reduce size and emphasis compared to the selected variation price. */
.woocommerce div.product .detail-price-box .price,
.woocommerce div.product .detail-price-box .detail-price > .price {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  display: block;
}

.woocommerce div.product .detail-price-box .price .amount,
.woocommerce div.product .detail-price-box .detail-price > .price .amount {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
}

/* Variable product .detail-price wrapper: override the initial range display.
   The markup is div.detail-price-box > div.detail-price containing the Woo price HTML.
   Scope to product-type-variable to avoid affecting simple products. */
.woocommerce div.product.product-type-variable .detail-price-box .detail-price {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
}

.woocommerce div.product.product-type-variable .detail-price-box .detail-price .price,
.woocommerce div.product.product-type-variable .detail-price-box .detail-price .price .amount,
.woocommerce div.product.product-type-variable .detail-price-box .detail-price .woocommerce-Price-amount {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
}

.woocommerce div.product.product-type-variable .detail-price-box .detail-price .woocommerce-Price-currencySymbol {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
}


/* Hide the duplicate variation price below the selector on variable product detail.
   The main price box now shows the selected variation price via JS. */
.woocommerce div.product form.cart.detail-actions-variable + .woocommerce-variation-price,
form.cart.detail-actions-variable .woocommerce-variation-price {
  display: none !important;
}

/* Variable product main price box: selected variation state.
   When a variation is selected, the main price displays at 28px burgundy
   instead of the 18px muted range. */
.woocommerce div.product.product-type-variable .detail-price-box.is-variation-selected .detail-price {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--maroon) !important;
}

.woocommerce div.product.product-type-variable .detail-price-box.is-variation-selected .detail-price .price,
.woocommerce div.product.product-type-variable .detail-price-box.is-variation-selected .detail-price .price .amount,
.woocommerce div.product.product-type-variable .detail-price-box.is-variation-selected .detail-price .woocommerce-Price-amount,
.woocommerce div.product.product-type-variable .detail-price-box.is-variation-selected .detail-price .woocommerce-Price-currencySymbol {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--maroon) !important;
}

.detail-actions-wrap {
  margin-top: 20px;
}

/* Variable product form wrapper */
.detail-actions-variable {
  margin-top: 6px;
}

.detail-actions-variable.cart {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Tighter vertical spacing between form sections */
}

/* Variations table: weight/size selector — compact horizontal layout */
.detail-actions-variable .variations {
  width: 100%;
  border-collapse: collapse;
  margin: 0; /* No bottom margin, gap handled by parent container */
}

/* Desktop/tablet: horizontal row with fixed-width label column */
.detail-actions-variable .variations tr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.detail-actions-variable .variations th.label,
.detail-actions-variable .variations td.label {
  flex: 0 0 100px; /* Fixed-width label column for alignment */
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  text-align: left;
}

.detail-actions-variable .variations td.value {
  flex: 1 1 auto; /* Take remaining width */
  min-width: 0; /* Allow flex shrinking beside label/reset on narrow tablets */
  display: flex;
  flex-wrap: nowrap; /* Keep select and reset on same row */
  gap: 12px;
  align-items: center;
}

/* Weight/size select dropdown — match brand burgundy/gold */
.detail-actions-variable .variations select {
  flex: 1 1 auto; /* Take available width */
  width: 100%; /* Fill container */
  min-width: 0; /* Allow flex shrinking to prevent overflow */
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.detail-actions-variable .variations select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 154, 72, 0.2);
}

.detail-actions-variable .reset_variations {
  flex: 0 0 auto; /* Fixed width, aligned right */
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  transition: color .2s;
  white-space: nowrap; /* Prevent wrapping */
}

.detail-actions-variable .reset_variations:hover {
  color: var(--maroon);
}

/* Mobile: stack label above full-width select, keep reset usable */
@media (max-width: 767px) {
  .detail-actions-variable .variations tr {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .detail-actions-variable .variations th.label,
  .detail-actions-variable .variations td.label {
    flex: 0 0 auto;
    text-align: left;
  }

  .detail-actions-variable .variations td.value {
    flex-wrap: wrap; /* Allow wrapping on very narrow screens */
  }

  .detail-actions-variable .variations select {
    width: 100%; /* Full width on mobile */
    min-width: 0;
  }
}

/* Variation controls: quantity + buttons */
.detail-actions-variable .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 0; /* No top margin, spacing handled by parent gap */
}

.detail-actions-variable .qty-stepper {
  flex: 0 0 auto;
}
/* Variable product add-to-cart button — burgundy solid primary action.
   Scoped through form.cart.detail-actions-variable to outrank WooCommerce core
   button styles without broad !important. */
.woocommerce div.product form.cart.detail-actions-variable .single_add_to_cart_button.btn-add-cart {
  flex: 1;
  min-width: 170px;
  background: var(--maroon) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 24px;
  border-radius: 12px;
  min-height: 48px;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(139, 30, 45, .28);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transition: background .2s, box-shadow .2s;
}

.woocommerce div.product form.cart.detail-actions-variable .single_add_to_cart_button.btn-add-cart:hover {
  background: var(--maroon-dark) !important;
}

.woocommerce div.product form.cart.detail-actions-variable .single_add_to_cart_button.btn-add-cart:disabled,
.woocommerce div.product form.cart.detail-actions-variable .single_add_to_cart_button.btn-add-cart.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
/* Mobile: responsive button layout at narrow widths.
   Row 1: [qty-stepper] [Thêm vào giỏ (flex:1)]
   Row 2: [Mua ngay full-width]
   This mirrors the simple-product .detail-actions layout from style.css. */
@media (max-width: 620px) {
  .detail-actions-variable .woocommerce-variation-add-to-cart {
    gap: 10px;
  }

  .detail-actions-variable .qty-stepper {
    flex: 0 0 auto;
  }

  .detail-actions-variable .single_add_to_cart_button {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

  /* "Mua ngay" wraps to its own full-width row so it reads as the
     primary purchase action on narrow phones (320–620px). */
  .detail-actions-variable .btn-buy-now {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
}

/* 320px: compact the qty-stepper buttons slightly to leave more room for
   the add-to-cart label without hiding the cart icon. */
@media (max-width: 360px) {
  .detail-actions-variable .qty-stepper button {
    width: 38px;
  }

  .detail-actions-variable .qty-stepper__value {
    width: 38px;
  }

  .detail-actions-variable .single_add_to_cart_button svg {
    display: none;
  }
}

.qty-stepper input.qty {
  width: 52px;
  height: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  padding: 0;
  -moz-appearance: textfield;
}

.qty-stepper input.qty::-webkit-outer-spin-button,
.qty-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================================================
   Homepage bestsellers — products-rail
   All rules are scoped to .products-rail so the shared .product-grid used on
   shop, archive, and related-products pages is completely untouched.
   The .products-rail wrapper only appears in home-bestsellers.php.
   ========================================================================== */

/* ---- scroll track ---- */
.products-rail__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* JS sets scrollLeft; CSS scroll-behavior:smooth drives the animation.
     The global prefers-reduced-motion rule in style.css already overrides
     scroll-behavior to auto !important, so no extra JS check is needed. */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  /* overflow-x:auto forces overflow-y:auto (CSS spec), which clips paint
     overflow. padding-top gives the product-card hover translateY(-5px)
     clearance; padding-bottom accommodates the 0 16px 32px box-shadow. */
  padding-top: 8px;
  padding-bottom: 20px;
}

.products-rail__track::-webkit-scrollbar {
  display: none;
}

/* ---- grid override: flex one-row, no wrapping ----
   Replaces the shared display:grid with a flex row of fixed-width cards.
   Each card's flex-basis percentage resolves against .product-grid's width,
   which equals the visible (non-scrolling) track width, so exactly N cards
   fill the viewport at each breakpoint. */
.products-rail .product-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
}

/* Desktop ≥1024px — 4 cards visible */
.products-rail .product-card {
  position: relative;
  flex: 0 0 calc((100% - 3 * 18px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

/* Tablet 641–1023px — 3 cards visible */
@media (max-width: 1023px) {
  .products-rail .product-card {
    flex: 0 0 calc((100% - 2 * 18px) / 3);
  }
}

/* Phones ≤640px — 2 cards visible; gap matches the shared grid's 12px */
@media (max-width: 640px) {
  .products-rail .product-grid {
    gap: 12px;
  }

  .products-rail .product-card {
    flex: 0 0 calc((100% - 12px) / 2);
  }
}

/* ---- navigation controls (JS toggles [hidden]) ---- */
.products-rail__controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.products-rail__controls[hidden] {
  display: none;
}

.products-rail__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
}

.products-rail__btn:disabled {
  opacity: .38;
  cursor: default;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .products-rail__btn:not(:disabled):hover {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
  }
}

/* ==========================================================================
   Table of Contents (Mục lục bài viết)
   ========================================================================== */
.toc-box {
  margin: 20px 0 32px;
  background: var(--bg-soft, #fdfbf7);
  border: 1px solid var(--border, #e8dfd8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.toc-details {
  margin: 0;
  padding: 0;
}

.toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--bg-alt, #f7f1eb);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}

.toc-summary::-webkit-details-marker {
  display: none;
}

.toc-summary:hover {
  background: #f0e7dd;
}

.toc-details[open] .toc-summary {
  border-bottom-color: var(--border, #e8dfd8);
}

.toc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--maroon, #68131f);
}

.toc-icon {
  color: var(--gold, #c99a48);
  flex-shrink: 0;
}

.toc-chevron {
  display: block;
  color: var(--text-muted, #7c7267);
  transition: transform .25s ease;
}

.toc-details[open] .toc-chevron {
  transform: rotate(180deg);
}

.toc-nav {
  padding: 14px 18px 18px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc-item {
  line-height: 1.45;
}

.toc-item--h2 {
  font-weight: 600;
  font-size: 15px;
}

.toc-item--h3 {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}

.toc-item--h3::before {
  content: "—";
  position: absolute;
  left: 4px;
  color: var(--text-muted, #7c7267);
}

.toc-link {
  color: var(--text-main, #2b2520);
  text-decoration: none;
  transition: color .2s;
}

.toc-link:hover,
.toc-link:focus {
  color: var(--maroon, #68131f);
  text-decoration: underline;
}

/* Smooth offset when clicking TOC anchor links with fixed/sticky header */
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 110px;
}

/* ==========================================================================
   Desktop homepage redesign (≥1024px only)
   Everything below is inside one min-width query so rendering through
   1023px is untouched. Compact hero, clean category strip, and featured
   products as three horizontal cards in the existing products-rail.
   ========================================================================== */
.section--categories__title {
  display: none;
}

@media (min-width: 1024px) {
  /* ---- Hero: shorter band ---- */
  .hero__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 24px;
  }

  .hero__copy {
    padding: 30px 0;
  }

  .hero__title {
    font-size: clamp(30px, 3.2vw, 44px);
  }

  .hero__title-script {
    font-size: clamp(38px, 4vw, 56px);
    margin-top: 2px;
  }

  .hero__desc {
    font-size: 15px;
    margin: 12px 0 18px;
  }

  .hero__usps {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 10px 20px;
    margin-top: 20px;
    max-width: none;
  }

  .hero__usp {
    font-size: 12px;
    gap: 8px;
  }

  .hero__usp-icon {
    width: 28px;
    height: 28px;
  }

  .hero__usp-icon svg {
    width: 15px;
    height: 15px;
  }

  .hero__visual {
    padding: 14px 0;
  }

  /* Wide rounded rectangle instead of the mobile circle */
  .hero__visual .hero__photo-img,
  .hero__photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-width: 4px;
    border-radius: 24px;
  }

  .hero__badge {
    width: 92px;
    height: 92px;
    top: 6%;
    right: 3%;
  }

  /* ---- Categories: one tidy row, label-free circles ---- */
  .section--categories {
    padding-top: 22px;
    padding-bottom: 6px;
  }

  .section--categories {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .section--categories__title {
    display: block;
    flex: 0 0 auto;
    max-width: 160px;
    padding-right: 28px;
    border-right: 1px solid var(--border);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--maroon);
  }

  .category-grid {
    flex: 1;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px 24px;
  }

  .category-card {
    display: block;
    transition: transform .2s;
  }

  .category-card__img {
    width: 84px;
    height: 84px;
    margin-bottom: 8px;
  }

  .category-card__name {
    font-size: 14px;
  }

  .category-card__cta {
    display: none;
  }

  .category-card:hover {
    transform: translateY(-3px);
  }

  /* ---- Featured: three horizontal cards, carousel when more ---- */
  .home-band .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .products-rail .product-card {
    flex: 0 0 calc((100% - 2 * 18px) / 3);
    flex-direction: row;
    align-items: stretch;
  }

  .products-rail .product-card__media {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .products-rail .product-card__img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    aspect-ratio: 1;
  }

  .products-rail .product-card__body {
    justify-content: center;
    padding: 14px 16px;
    min-width: 0;
  }

  .products-rail .product-card__name {
    min-height: 0;
  }

  .products-rail .product-card__price-row {
    margin-top: 0;
  }

  .products-rail .btn-add {
    margin-top: 4px;
    padding: 9px 10px;
  }

  /* One call to action per card; the secondary "Xem sản phẩm" link is
     reachable through the product name and image. */
  .products-rail .btn-add ~ .btn-add {
    display: none;
  }
}

/* ==========================================================================
   Desktop homepage — second tightening pass (≥1024px only)
   Pulls the featured cards into the first 1000px of a 1440px viewport.
   Overrides the desktop block above; mobile/tablet CSS is untouched.
   ========================================================================== */
@media (min-width: 1024px) {
  /* Hero */
  .hero__copy {
    padding: 18px 0;
  }

  .hero__title {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.08;
    margin-bottom: 0;
  }

  .hero__title-script {
    font-size: clamp(32px, 3.2vw, 46px);
    margin-top: 0;
    line-height: 1.1;
  }

  .hero__desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 12px;
  }

  .btn-cta {
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 10px;
  }

  .hero__actions {
    gap: 10px 18px;
  }

  .hero__usps {
    margin-top: 12px;
    gap: 6px 16px;
  }

  .hero__usp {
    font-size: 11.5px;
    gap: 6px;
  }

  .hero__usp-icon {
    width: 24px;
    height: 24px;
  }

  .hero__usp-icon svg {
    width: 13px;
    height: 13px;
  }

  .hero__visual {
    padding: 10px 0;
  }

  .hero__visual .hero__photo-img,
  .hero__photo {
    aspect-ratio: 2 / 1;
    border-radius: 20px;
  }

  .hero__badge {
    width: 80px;
    height: 80px;
  }

  .hero__controls {
    gap: 10px;
    padding-bottom: 8px;
  }

  .hero__arrow {
    width: 30px;
    height: 30px;
  }

  .hero__arrow svg {
    width: 14px;
    height: 14px;
  }

  .hero__dot {
    padding: 6px;
  }

  /* Categories */
  .section--categories {
    padding-top: 14px;
    padding-bottom: 0;
  }

  .section--categories__title {
    font-size: 22px;
    padding-right: 22px;
  }

  .category-grid {
    gap: 10px 20px;
  }

  .category-card__img {
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
  }

  .category-card__name {
    font-size: 13px;
  }

  /* Featured */
  .home-band {
    border-top: 0;
  }

  .home-band .section {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .home-band .section-head {
    margin-bottom: 10px;
  }

  .home-band .section-title {
    font-size: 22px;
  }

  .products-rail__track {
    padding-top: 4px;
    padding-bottom: 12px;
  }
}

/* ==========================================================================
   Homepage polish pass — section by section, all breakpoints.
   Scoped to .home / home-only section classes so shared product cards on
   shop, product and checkout templates are untouched.
   ========================================================================== */

/* ---- Loading state: lazy images sit on a calm tone, not placeholder stripes ---- */
.home .product-card__img,
.home .category-card__img,
.home .featured-card__img,
.home .review-card__photo,
.home .news-card__media,
.home .insta-tile:not(.insta-tile--more) {
  background: var(--bg-alt);
}

/* ---- Hero ---- */
.hero__title-main,
.hero__title-script {
  display: block;
}

/* Desktop: script line becomes a handwritten eyebrow above a large cream
   headline; slide controls tuck under the copy so the band stays ~360px. */
@media (min-width: 1024px) {
  .hero .container {
    position: relative;
  }

  .hero__grid {
    min-height: 360px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 40px;
  }

  .hero__copy {
    padding: 26px 0 58px;
  }

  .hero__title {
    display: flex;
    flex-direction: column;
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.5px;
  }

  .hero__title-script {
    order: -1;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.15;
    margin: 0 0 6px;
  }

  .hero__desc {
    max-width: 560px;
    font-size: 15px;
    margin: 12px 0 18px;
  }

  .btn-cta {
    padding: 13px 26px;
  }

  .hero__visual {
    padding: 22px 0;
  }

  .hero__visual .hero__photo-img,
  .hero__photo {
    aspect-ratio: 16 / 9.5;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .38);
  }

  .hero__badge {
    width: 104px;
    height: 104px;
    top: 10px;
    right: -14px;
    padding: 10px;
  }

  .hero__badge-num {
    font-size: 17px;
    line-height: 1.1;
  }

  .hero__badge-label {
    max-width: 78px;
    margin-top: 3px;
  }

  .hero__controls {
    position: absolute;
    left: 24px;
    bottom: 18px;
    padding: 0;
  }
}

/* Tablet: copy and artwork side by side so the whole hero clears the fixed
   bottom nav on a 768x1024 screen. */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 24px;
    min-height: 0;
  }

  .hero__copy {
    padding: 36px 0 24px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__title-script {
    font-size: 40px;
    margin-top: 4px;
  }

  .hero__desc {
    font-size: 15px;
    margin: 14px 0 22px;
  }

  .hero__usps {
    gap: 12px 16px;
    margin-top: 24px;
  }

  .hero__usp-icon {
    width: 32px;
    height: 32px;
  }

  .hero__visual {
    padding: 0;
  }

  .hero__visual .hero__photo-img,
  .hero__photo {
    width: 100%;
  }

  .hero__badge {
    width: 86px;
    height: 86px;
    right: -6px;
    top: 0;
  }

  .hero__badge-num {
    font-size: 16px;
    line-height: 1.1;
  }

  .hero__controls {
    padding-bottom: 18px;
  }
}

/* Phones: compact the hero into a copy + image split, with the trust points
   in a full-width row below. Desktop and tablet keep their existing layout. */
@media (max-width: 640px) {
  .hero .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: auto auto auto;
    gap: 8px 6px;
    min-height: 0;
    padding: 29px 0 27px;
    color: var(--text-lighter);
  }

  .hero__copy {
    display: contents;
  }

  .hero__copy [data-hero-slide] {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .hero__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 4px;
    font-size: clamp(22px, 6.6vw, 25px);
    line-height: 1.03;
    letter-spacing: -.4px;
  }

  .hero__title-main {
    order: 0;
  }

  .hero__title-script {
    order: -1;
    margin: 0 0 5px;
    font-size: clamp(18px, 5.6vw, 21px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero__desc {
    max-width: none;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .hero__actions {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero__story-link {
    display: none;
  }

  .btn-cta {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: clamp(11px, 3.3vw, 12px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding: 0;
    justify-content: center;
  }

  .hero__visual .hero__photo-img,
  .hero__photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 4px solid rgba(201, 154, 72, .55);
    border-radius: 50%;
    object-fit: cover;
    object-position: 98% 52%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  }

  .hero__badge {
    top: 2px;
    right: -4px;
    width: 62px;
    height: 62px;
    padding: 4px;
  }

  .hero__badge-num {
    font-size: 13px;
    line-height: 1.02;
  }

  .hero__badge-label {
    max-width: 50px;
    margin-top: 2px;
    font-size: 6px;
    line-height: 1.05;
  }

  .hero__usps {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    gap: 7px 12px;
    list-style: none;
  }

  .hero__usp {
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .hero__usp-icon {
    display: grid;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--brown-dark);
  }

  .hero__usp-icon svg {
    width: 9px;
    height: 9px;
  }

  .hero__controls {
    padding: 6px 0 4px;
  }
}

@media (max-width: 350px) {
  .hero .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 8px 4px;
    padding-top: 27px;
    padding-bottom: 25px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__title-script {
    font-size: 19px;
  }

  .hero__desc {
    font-size: 11px;
  }

  .btn-cta {
    gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
  }

  .hero__badge {
    width: 56px;
    height: 56px;
  }

  .hero__badge-num {
    font-size: 11px;
  }

  .hero__badge-label {
    max-width: 44px;
    font-size: 5.4px;
  }

  .hero__usps {
    margin-top: 10px;
    padding-top: 10px;
    gap: 6px 8px;
  }

  .hero__usp {
    font-size: 9.5px;
  }
}

/* ---- Categories ---- */
.category-card__img.category-card__img--empty {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-darker));
  color: var(--gold-light);
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1;
}

.category-card__name {
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .section--categories {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    align-items: start;
  }

  .category-card__img {
    width: 76px;
    height: 76px;
  }

  .category-card__img.category-card__img--empty {
    font-size: 30px;
  }
}

/* Below desktop: centred rows so a short last row never hangs left. */
@media (max-width: 1023px) {
  .category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 12px;
  }

  .category-grid > li {
    flex: 0 0 calc((100% - 4 * 12px) / 5);
    min-width: 0;
  }

  .section--categories {
    padding-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .category-grid > li {
    flex-basis: calc((100% - 2 * 12px) / 3);
  }

  .category-card__img.category-card__img--empty {
    font-size: 30px;
  }

  .section--categories {
    padding-bottom: 20px;
  }
}

/* ---- Featured products (bestsellers rail) ---- */
#products .section-head {
  flex-wrap: nowrap;
}

#products .section-title {
  flex: 1 1 auto;
  min-width: 0;
}

/* Fine gold rule trailing the heading */
#products .section-title::after {
  content: "";
  flex: 1 1 24px;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 154, 72, 0));
}

/* Phones: the title needs the full row width, so the rule is dropped */
@media (max-width: 640px) {
  #products .section-title::after {
    display: none;
  }
}

/* One call to action per card at every width; name + image already link
   to the product page. */
.products-rail .btn-add ~ .btn-add {
  display: none;
}

.products-rail .btn-add {
  margin-top: auto;
}

.products-rail .product-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.products-rail .product-card__price-row {
  margin-top: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.products-rail .products-rail__controls {
  margin-top: 4px;
}

@media (min-width: 1024px) {
  #products.section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  #products .section-head {
    margin-bottom: 16px;
  }

  .home-band #products .section-title {
    font-size: 28px;
  }

  .products-rail {
    position: relative;
  }

  .products-rail .product-card__body {
    justify-content: flex-start;
    gap: 8px;
    padding: 18px 18px 16px;
  }

  .products-rail .product-card__name {
    font-size: 16px;
  }

  .products-rail .price {
    font-size: 19px;
  }

  /* Arrows sit on the rail edges instead of a separate empty row */
  .products-rail .products-rail__controls {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    margin: 0;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .products-rail__btn {
    pointer-events: auto;
    box-shadow: 0 6px 16px rgba(59, 36, 27, .16);
  }

  .products-rail__btn:disabled {
    opacity: 0;
  }
}

/* ---- Promo banners: tighter stacked cards on phones ---- */
@media (max-width: 640px) {
  .promo-grid {
    gap: 12px;
  }

  .promo-card {
    min-height: 0;
    padding: 20px;
  }

  .promo-card__big {
    font-size: 38px;
  }
}

/* ---- Featured specialties (ACF strip) ---- */
.featured-card__img.featured-card__img--fallback {
  background: var(--bg-alt);
}

@media (min-width: 641px) and (max-width: 1023px) {
  .featured-grid {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 14px;
  }

  .featured-card__name {
    font-size: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  .featured-section .section-head {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .featured-section .section-title {
    flex: 1 1 100%;
  }

  .featured-card {
    flex-basis: calc((100% - 24px) / 2.35);
  }

  .featured-card__name {
    line-height: 1.3;
  }
}

/* ---- Stats: centred wrap so 5 items never leave an orphan on the left ---- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  flex: 0 0 calc((100% - 4 * 18px) / 5);
  min-width: 0;
}

@media (max-width: 1023px) {
  .stat-item {
    flex-basis: calc((100% - 2 * 18px) / 3);
  }
}

@media (max-width: 640px) {
  .stat-item {
    flex-basis: calc((100% - 12px) / 2);
  }
}

/* ---- Reviews ---- */
.review-card {
  display: flex;
  flex-direction: column;
}

/* Initial of the customer's name instead of an empty striped circle */
.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  color: var(--maroon);
  font-size: 18px;
  font-weight: 800;
}

.review-card__text {
  min-height: 0;
  margin-bottom: 10px;
}

.review-card__product {
  margin-top: 0;
  margin-bottom: 14px;
}

/* The photo box clips its image (it used to overflow the 96px box and
   cover the review text) and sits on the card floor so cards align. */
.review-card__photo {
  display: block;
  height: 150px;
  margin-top: auto;
  overflow: hidden;
}

.review-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    max-width: none;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .review-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .review-card {
    flex: 0 0 86%;
  }

  .review-card__photo {
    height: 132px;
  }
}

/* ---- Brand story ---- */
@media (max-width: 900px) {
  .home-story__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .home-story__frame {
    aspect-ratio: 1 / 1;
  }

  .home-story__content {
    padding: 34px;
  }

  .home-story__title {
    font-size: clamp(34px, 4.4vw, 43px);
  }

  .home-story__text {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .home-story__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-story__frame {
    aspect-ratio: 1.36 / 1;
  }

  .home-story__caption {
    min-height: 32px;
    padding: 7px 20px;
  }

  .home-story__content {
    max-width: none;
    padding: 27px 20px 32px;
  }

  .home-story__eyebrow {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .home-story__title {
    font-size: clamp(34px, 8.8vw, 40px);
    line-height: 1.14;
  }

  .home-story__text {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.76;
  }

  .home-story__cta {
    width: 100%;
    min-height: 49px;
    margin-top: 20px;
  }
}

@media (max-width: 360px) {
  .home-story__content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-story__title {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-story__play,
  .home-story__cta {
    transition: none;
  }
}

/* ---- Product stories: scrim above the photo so the label/title read ---- */
.story-related--home .story-related-card img {
  z-index: 0;
}

.story-related--home .story-related-card::before {
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 8, 6, .72), rgba(20, 8, 6, .08) 72%);
}

.story-related--home .story-related-card__content {
  z-index: 2;
}

@media (min-width: 641px) and (max-width: 1023px) {
  .story-related--home .story-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .story-related--home .story-related-card {
    min-height: 150px;
    padding: 18px;
  }

  .story-related--home .story-related-card__title {
    font-size: 17px;
  }
}

/* ---- Blog: the grid follows the real post count ---- */
.news-grid--home.news-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.news-grid--home.news-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Desktop: one or two posts become horizontal cards so the row is filled
   without oversized cover images. */
@media (min-width: 1024px) {
  .news-grid--count-1 .news-card,
  .news-grid--count-2 .news-card {
    flex-direction: row;
  }

  .news-grid--count-1 .news-card > a,
  .news-grid--count-2 .news-card > a {
    flex: 0 0 42%;
    display: block;
  }

  .news-grid--count-1 .news-card__media,
  .news-grid--count-2 .news-card__media {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
  }

  .news-grid--count-1 .news-card__body,
  .news-grid--count-2 .news-card__body {
    justify-content: center;
    padding: 22px 24px;
  }
}

/* Phones: compact stacked rows instead of a swipe that crops the next card */
@media (max-width: 640px) {
  .news-grid--home,
  .news-grid--home.news-grid--count-1,
  .news-grid--home.news-grid--count-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .news-grid--home .news-card,
  .news-grid--home .news-card:nth-child(3) {
    display: flex;
    flex: none;
    flex-direction: row;
    border-radius: var(--radius-md);
  }

  .news-grid--home .news-card > a {
    flex: 0 0 36%;
    display: block;
  }

  .news-grid--home .news-card__media {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
  }

  .news-grid--home .news-card__body {
    padding: 12px 14px;
    gap: 5px;
  }

  .news-grid--home .news-card__cat {
    font-size: 11px;
  }

  .news-grid--home .news-card__title {
    font-size: 15px;
  }

  .news-grid--home .news-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
  }

  .news-grid--home .news-card__meta {
    font-size: 12px;
  }
}

/* ---- Instagram: 4-column tablet grid, the "more" tile spans two cells ---- */
@media (min-width: 641px) and (max-width: 1023px) {
  .insta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .insta-tile--more {
    grid-column: span 2;
    aspect-ratio: auto;
  }
}

/* Wider layouts can use the header/footer contact links; keep the floating
   buttons clear of homepage cards and section headings. */
@media (min-width: 641px) {
  body.home .quick-contact {
    display: none;
  }
}

@media (max-width: 640px) and (min-height: 760px) {
  body.home .quick-contact {
    bottom: clamp(230px, 32vh, 280px);
  }
}

@media (max-width: 640px) {
  body.home .hero {
    padding-bottom: 50px;
  }
}

@media (max-width: 359px) {
  body.home .quick-contact,
  body.home .bottom-nav {
    display: none;
  }
}

/* Homepage desktop banner: match the full-bleed reference composition. */
@media (min-width: 1024px) {
  body.home .site-header .container {
    max-width: 1386px;
  }

  body.home .topbar__inner {
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 15px;
  }

  body.home .header-main {
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.home .brand__mark {
    width: 64px;
    height: 64px;
    font-size: 27px;
  }

  body.home .brand__name {
    font-size: 30px;
    line-height: 1.05;
  }

  body.home .brand__tagline {
    font-size: 12px;
    letter-spacing: 1.7px;
  }

  body.home .header-search {
    max-width: 548px;
    margin-left: 30px;
    min-height: 50px;
  }

  body.home .desktop-nav {
    min-height: 62px;
  }

  body.home .desktop-nav__inner {
    min-height: 61px;
  }

  body.home .desktop-nav__link {
    padding: 18px 16px;
    font-size: 17px;
  }

  body.home .hero {
    position: relative;
    min-height: 363px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0 0 12px 12px;
    background: #741522;
  }

  body.home .hero > .container {
    position: relative;
    z-index: 1;
    max-width: 1366px;
    padding-right: 24px;
    padding-left: 24px;
  }

  body.home .hero__grid {
    position: relative;
    display: block;
    min-height: 363px;
    grid-template-columns: none;
  }

  body.home .hero__visual {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    padding: 0;
    overflow: hidden;
    transform: translateX(-50%);
    border-radius: 0;
    background: #741522;
  }

  body.home .hero__visual .hero__photo-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 64%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.home .hero__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(104, 19, 31, .14) 0%, rgba(104, 19, 31, .08) 36%, transparent 60%);
    content: "";
    pointer-events: none;
  }

  body.home .hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(740px, 62%);
    min-height: 363px;
    padding: 28px 0 34px;
    color: #fff7ed;
    transform: translateY(-4px);
  }

  body.home .hero__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
    margin: 0;
    font-size: clamp(42px, 3.35vw, 49px);
    line-height: 1.08;
    letter-spacing: -.45px;
    text-wrap: balance;
  }

  body.home .hero__title-script {
    order: -1;
    margin: 0 0 4px;
    color: #f0c14b;
    font-size: clamp(58px, 5vw, 75px);
    font-weight: 600;
    line-height: 1.12;
    transform: translateY(-7px);
  }

  body.home .hero__title-main {
    color: #fff8ef;
  }

  body.home .hero__desc {
    max-width: 700px;
    margin: 13px 0 16px;
    color: #fff4e9;
    font-size: 22px;
    line-height: 1.4;
  }

  body.home .hero__actions {
    gap: 0;
  }

  body.home .hero .btn-cta {
    width: 298px;
    min-height: 54px;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 20px;
    letter-spacing: 0;
  }

  body.home .hero__story-link,
  body.home .hero__usps,
  body.home .hero__badge,
  body.home .hero__controls {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.home .hero__visual .hero__photo-img {
    object-fit: cover;
    object-position: 74% center;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  body.home .site-header .container {
    max-width: 1240px;
  }

  body.home .topbar__inner {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
  }

  body.home .header-main {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
  }

  body.home .brand__mark {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  body.home .brand__name {
    font-size: 21px;
  }

  body.home .brand__tagline {
    font-size: 11px;
    letter-spacing: 2px;
  }

  body.home .header-search {
    max-width: 640px;
    margin-left: 0;
    min-height: 0;
  }

  body.home .desktop-nav {
    min-height: 0;
  }

  body.home .desktop-nav__inner {
    min-height: 0;
  }

  body.home .desktop-nav__link {
    padding: 14px 15px;
    font-size: 14px;
  }
}

/* Homepage desktop reference match: header, wide category strip and three
   featured product cards. Tablet and mobile layouts remain on their existing
   responsive rules. */
@media (min-width: 1280px) {
  body.home .topbar__inner {
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 15px;
    font-weight: 700;
  }

  body.home .topbar__right {
    display: none;
  }

  body.home .header-main {
    height: 80px;
    min-height: 80px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.home .header-search {
    width: 548px;
    max-width: 548px;
    min-height: 50px;
    margin-left: 30px;
    border-width: 1.5px;
    border-radius: 12px;
  }

  body.home .header-search__cat {
    display: none;
  }

  body.home .header-search__leading {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    color: #4b3025;
  }

  body.home .header-search__input {
    min-width: 0;
    padding: 12px 12px;
    font-size: 16px;
  }

  body.home .header-search__submit {
    width: 68px;
    flex: 0 0 68px;
    justify-content: center;
    padding: 0;
  }

  body.home .desktop-nav {
    height: 54px;
    min-height: 54px;
    border-top-width: 1px;
  }

  body.home .desktop-nav__inner {
    height: 53px;
    min-height: 53px;
    justify-content: center;
  }

  body.home .desktop-nav__promise {
    display: none;
  }

  body.home .desktop-nav__list {
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
  }

  body.home .desktop-nav__link {
    position: relative;
    padding: 12px 21px 14px;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: none;
  }

  body.home .desktop-nav__link.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--maroon);
    content: "";
  }

  body.home .hero {
    min-height: 440px;
  }

  body.home .hero__grid,
  body.home .hero__copy {
    min-height: 440px;
  }

  body.home .hero__visual .hero__photo-img {
    object-position: center;
  }

  body.home .section--categories {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: none;
    min-height: 150px;
    margin: 0;
    padding: 10px max(32px, calc((100% - 1343px) / 2));
    box-sizing: border-box;
    background: #faf7f1;
  }

  body.home .section--categories__title {
    display: block;
    flex: 0 0 192px;
    max-width: 192px;
    margin: 0;
    padding: 0 28px 0 0;
    border-right: 1px solid #dfd1c3;
    color: var(--maroon);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.12;
  }

  body.home .category-grid {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 20px;
    min-width: 0;
    margin: 0;
  }

  body.home .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    color: var(--text-main);
    text-align: center;
    transition: transform .2s ease;
  }

  body.home .category-card__img {
    width: 84px;
    height: 84px;
    aspect-ratio: 1;
    margin: 0 auto 7px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
  }

  body.home .category-card__img img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
  }

  body.home .category-card__name {
    display: block;
    max-width: 100%;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.home .category-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.25;
  }

  body.home .category-card:hover {
    transform: translateY(-2px);
  }

  body.home .home-band {
    border-top: 0;
    background: #fff;
  }

  body.home .home-band .section {
    width: calc(100% - 80px);
    max-width: 1407px;
    margin: 0 auto;
    padding: 28px 0 28px;
  }

  body.home #products.section {
    padding-top: 28px;
  }

  body.home .home-band .section-head {
    justify-content: flex-start;
    padding-left: 16px;
    margin-bottom: 0;
    gap: 0;
  }

  body.home .home-band .section-title {
    flex: 1 1 auto;
    gap: 30px;
    min-width: 0;
    color: var(--maroon);
    font-size: 34px;
    line-height: 1.2;
  }

  body.home .home-band .section-title::after {
    height: 1px;
    flex: 1 1 auto;
    background: #d8b778;
    content: "";
  }

  body.home .home-band .section-link {
    display: none;
  }

  body.home .products-rail__track {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  body.home .products-rail .product-grid {
    gap: 20px;
  }

  body.home .products-rail .product-card {
    display: flex;
    flex: 0 0 calc((100% - 40px) / 3);
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    min-height: 221px;
    padding: 14px;
    border: 1px solid #eadfd4;
    border-radius: 18px;
    background: #fffdfa;
    box-shadow: 0 2px 5px rgba(60, 39, 28, .04);
  }

  body.home .products-rail .product-card__media {
    flex: 0 0 56%;
    max-width: 56%;
    height: 190px;
    align-self: center;
    overflow: hidden;
    border-radius: 13px;
  }

  body.home .products-rail .product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 0;
    border-radius: inherit;
    object-fit: cover;
  }

  body.home .products-rail .product-card__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
    transform: translateY(4px);
  }

  body.home .products-rail .product-card__name {
    min-height: 0;
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.35;
  }

  body.home .products-rail .product-card__price-row {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
  }

  body.home .products-rail .btn-add {
    display: flex;
    min-height: 44px;
    justify-content: center;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    white-space: nowrap;
  }

  body.home .products-rail .btn-add ~ .btn-add {
    display: none;
  }

  body.home .products-rail .product-card__badge {
    display: none;
  }
}

/* Product reviews: polish the native WooCommerce form without changing its
   submission markup, rating control, nonce, or comment workflow. */
body.single-product .tabs-section .tab-panel {
  width: 100%;
  max-width: none;
}

body.single-product .tabs-section .tab-pane[data-tab-pane="desc"],
body.single-product .tabs-section .tab-pane[data-tab-pane="spec"],
body.single-product .tabs-section .tab-pane[data-tab-pane="storage"] {
  max-width: 820px;
}

body.single-product .tabs-section .tab-pane[data-tab-pane="rev"] {
  width: 100%;
  max-width: none;
}

body.single-product .tabs-section .tabs-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

body.single-product .tabs-section .tabs-list::-webkit-scrollbar {
  display: none;
}

body.single-product .tabs-section .tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.single-product #reviews.woocommerce-Reviews {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 20px;
}

body.single-product #comments,
body.single-product #review_form_wrapper {
  min-width: 0;
  border: 1px solid #eadfd3;
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 8px 24px rgba(59, 36, 27, .045);
}

body.single-product #comments {
  padding: 22px;
}

body.single-product #comments .woocommerce-Reviews-title {
  margin: 0 0 12px;
  color: #38261e;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

body.single-product #comments .woocommerce-noreviews {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #dfd1c3;
  border-radius: 12px;
  background: #faf7f1;
  color: #6f625a;
  font-size: 14px;
  line-height: 1.55;
}

body.single-product #comments .commentlist {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body.single-product #comments .commentlist > li {
  margin: 0;
  padding: 14px;
  border: 1px solid #eadfd3;
  border-radius: 12px;
  background: #fff;
}

body.single-product #comments .comment-text {
  margin: 0;
  padding: 0;
  border: 0;
}

body.single-product #review_form_wrapper {
  padding: 22px;
}

body.single-product #reply-title {
  display: block;
  margin: 0;
  color: #38261e;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

body.single-product #reply-title small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
}

body.single-product #commentform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 14px 0 0;
}

body.single-product #commentform > p {
  min-width: 0;
  margin: 0;
}

body.single-product #commentform > .comment-notes,
body.single-product #commentform > .comment-form-rating,
body.single-product #commentform > .comment-form-comment,
body.single-product #commentform > .comment-form-cookies-consent,
body.single-product #commentform > .form-submit {
  grid-column: 1 / -1;
}

body.single-product #commentform label {
  display: block;
  margin: 0 0 7px;
  color: #49372e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

body.single-product #commentform .comment-notes {
  margin: 0;
  color: #766a63;
  font-size: 13px;
  line-height: 1.55;
}

body.single-product #commentform .required {
  color: #8b1e2d;
}

body.single-product #commentform input[type="text"],
body.single-product #commentform input[type="email"],
body.single-product #commentform textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #dfd1c3;
  border-radius: 10px;
  background: #fff;
  padding: 11px 13px;
  color: #38261e;
  font: inherit;
  line-height: 1.5;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.single-product #commentform textarea {
  min-height: 142px;
  resize: vertical;
}

body.single-product #commentform input[type="text"]:focus,
body.single-product #commentform input[type="email"]:focus,
body.single-product #commentform textarea:focus {
  outline: none;
  border-color: #8b1e2d;
  box-shadow: 0 0 0 3px rgba(139, 30, 45, .12);
}

body.single-product #commentform .comment-form-rating label {
  margin-bottom: 6px;
}

body.single-product #commentform .comment-form-rating .stars {
  margin: 0;
  line-height: 1;
}

body.single-product #commentform .comment-form-rating .stars > span {
  display: flex;
  gap: 6px;
}

body.single-product #commentform .comment-form-rating .stars a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #c99a48 !important;
  text-decoration: none;
}

body.single-product #commentform .comment-form-rating .stars a::before {
  color: inherit;
  font-size: 29px;
  line-height: 1;
}

body.single-product #commentform .comment-form-rating .stars a:hover,
body.single-product #commentform .comment-form-rating .stars a:focus {
  color: #8b1e2d !important;
}

body.single-product #commentform .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 2px;
}

body.single-product #commentform .comment-form-cookies-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #8b1e2d;
}

body.single-product #commentform .comment-form-cookies-consent label {
  margin: 0;
  color: #766a63;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

body.single-product #commentform .form-submit {
  margin-top: 2px;
}

body.single-product #commentform #submit {
  min-width: 132px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: #84232e;
  padding: 11px 22px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

body.single-product #commentform #submit:hover {
  background: #651a23;
  transform: translateY(-1px);
}

body.single-product #commentform #submit:focus-visible {
  outline: 3px solid rgba(201, 154, 72, .55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body.single-product #reviews.woocommerce-Reviews {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.single-product .tabs-section .tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  body.single-product #comments {
    padding: 17px;
  }

  body.single-product #comments .woocommerce-Reviews-title {
    font-size: 20px;
  }

  body.single-product #review_form_wrapper {
    padding: 17px;
  }

  body.single-product #reply-title {
    font-size: 17px;
  }

  body.single-product #commentform {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin-top: 12px;
  }

  body.single-product #commentform > .comment-form-author,
  body.single-product #commentform > .comment-form-email {
    grid-column: 1 / -1;
  }

  body.single-product #commentform textarea {
    min-height: 132px;
  }

  body.single-product #commentform .comment-form-cookies-consent {
    gap: 8px;
  }

  body.single-product #commentform .comment-form-cookies-consent label {
    font-size: 12.5px;
  }

  body.single-product #commentform #submit {
    width: 100%;
    min-height: 48px;
    scroll-margin-bottom: 130px;
  }

  body.single-product .tab-pane[data-tab-pane="rev"].is-active {
    padding-bottom: 148px;
  }
}

/* Homepage promotions: one product led gift offer with compact support cards. */
.home-promo {
  padding-top: 26px;
  padding-bottom: 34px;
}

.home-promo__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.home-promo__heading {
  min-width: 0;
}

.home-promo__eyebrow,
.home-promo__label {
  margin: 0 0 5px;
  color: #a86f18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-promo__title {
  margin: 0;
  color: #84232e;
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 850;
  line-height: 1.12;
}

.home-promo__intro {
  max-width: 760px;
  margin: 7px 0 0;
  color: #75665d;
  font-size: 14px;
  line-height: 1.5;
}

.home-promo__shop-link,
.home-promo__business-link {
  color: #84232e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.home-promo__shop-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
}

.home-promo__shop-link span,
.home-promo__business-link span {
  font-size: 16px;
  line-height: 1;
}

.home-promo__shop-link:hover,
.home-promo__business-link:hover {
  color: #5f1721;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.home-promo__gift,
.home-promo__fish,
.home-promo__shipping {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9dfd2;
  border-radius: 17px;
}

.home-promo__gift {
  display: grid;
  grid-template-columns: minmax(210px, .86fr) minmax(0, 1.14fr);
  min-height: 350px;
  background: #fffaf4;
  box-shadow: 0 8px 22px rgba(75, 46, 32, .06);
}

.home-promo__gift--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.home-promo__gift-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #eee1cf;
}

.home-promo__gift-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: center;
}

.home-promo__image-note {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(47, 34, 27, .72);
  padding: 6px 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.home-promo__gift-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 25px;
}

.home-promo__gift-content .home-promo__label {
  margin-bottom: 7px;
}

.home-promo__gift-title,
.home-promo__fish-title,
.home-promo__shipping-title {
  margin: 0;
  font-weight: 850;
}

.home-promo__gift-title {
  color: #3c281f;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.2;
}

.home-promo__gift-title a {
  color: inherit;
  text-decoration: none;
}

.home-promo__gift-title a:hover {
  color: #84232e;
}

.home-promo__description {
  margin: 8px 0 0;
  color: #75665d;
  font-size: 13px;
  line-height: 1.45;
}

.home-promo__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 13px 0 0;
}

.home-promo__price del {
  color: #93857c;
  font-size: 13px;
}

.home-promo__price strong {
  color: #84232e;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.08;
}

.home-promo__price .woocommerce-Price-currencySymbol {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.home-promo__saving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  border-radius: 999px;
  background: #f6edd9;
  padding: 6px 10px;
  color: #65471d;
  font-size: 12px;
  font-weight: 800;
}

.home-promo__saving > span,
.home-promo__shipping-note {
  color: #527343;
}

.home-promo__shipping-note {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.home-promo__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  background: #84232e;
  padding: 10px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.home-promo__button:hover {
  transform: translateY(-1px);
  background: #641a23;
  color: #fff;
}

.home-promo__button:focus-visible,
.home-promo__shop-link:focus-visible,
.home-promo__business-link:focus-visible {
  outline: 3px solid rgba(201, 154, 72, .62);
  outline-offset: 3px;
}

.home-promo__business-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.35;
}

.home-promo__side {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.home-promo__fish {
  position: relative;
  display: flex;
  min-height: 196px;
  align-items: center;
  border-color: #79202a;
  background: #76212c;
  color: #fff;
}

.home-promo__fish::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #76212c 0%, #76212c 52%, rgba(118, 33, 44, .86) 70%, rgba(118, 33, 44, .18) 100%);
  content: "";
  pointer-events: none;
}

.home-promo__fish-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
  overflow: hidden;
}

.home-promo__fish-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-promo__fish-content {
  position: relative;
  z-index: 1;
  width: min(76%, 370px);
  padding: 20px;
}

.home-promo__label--light {
  color: #f0c96f;
}

.home-promo__fish-title {
  color: #fff;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.2;
}

.home-promo__fish-description {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.4;
}

.home-promo__fish-price {
  margin: 8px 0 0;
  color: #f1cc72;
  font-size: 13px;
  font-weight: 750;
}

.home-promo__fish-price .woocommerce-Price-amount {
  font-size: 19px;
  font-weight: 900;
}

.home-promo__button--gold {
  min-height: 36px;
  margin-top: 10px;
  background: #edc45e;
  padding: 8px 13px;
  color: #4e2c18;
  font-size: 11px;
}

.home-promo__button--gold:hover {
  background: #f4d17a;
  color: #3d2112;
}

.home-promo__shipping {
  display: flex;
  min-height: 132px;
  align-items: center;
  gap: 14px;
  background: #f4f3e9;
  padding: 18px;
}

.home-promo__shipping-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  background: #e8ebdb;
  color: #527343;
}

.home-promo__shipping-icon svg {
  width: 25px;
  height: 25px;
}

.home-promo__shipping-content {
  min-width: 0;
  flex: 1 1 auto;
}

.home-promo__label--green {
  margin-bottom: 3px;
  color: #647849;
  font-size: 9px;
}

.home-promo__shipping-title {
  color: #3f3028;
  font-size: 17px;
  line-height: 1.15;
}

.home-promo__shipping-description {
  margin: 4px 0 0;
  color: #74665d;
  font-size: 11px;
  line-height: 1.4;
}

.home-promo__shipping-description strong {
  color: #84232e;
}

.home-promo__button--small {
  min-height: 38px;
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .home-promo__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 12px;
  }

  .home-promo__gift {
    grid-template-columns: minmax(160px, .78fr) minmax(0, 1.22fr);
    min-height: 330px;
  }

  .home-promo__gift-image {
    min-height: 330px;
  }

  .home-promo__gift-content {
    padding: 20px 18px;
  }

  .home-promo__price strong {
    font-size: 25px;
  }

  .home-promo__shipping {
    gap: 10px;
    padding: 14px;
  }

  .home-promo__shipping-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}

@media (max-width: 700px) {
  body.home .quick-contact {
    right: 14px;
    left: auto;
  }

  .home-promo {
    padding: 25px 16px 30px;
  }

  .home-promo__head {
    display: block;
    margin-bottom: 15px;
  }

  .home-promo__eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .home-promo__title {
    font-size: 24px;
  }

  .home-promo__intro {
    margin-top: 5px;
    font-size: 13px;
  }

  .home-promo__shop-link {
    margin-top: 8px;
    font-size: 12px;
  }

  .home-promo__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-promo__gift {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 15px;
  }

  .home-promo__gift-media {
    aspect-ratio: 1.68;
    min-height: 0;
  }

  .home-promo__gift-image {
    min-height: 0;
    aspect-ratio: 1.68;
  }

  .home-promo__gift-content {
    padding: 16px 74px 15px 18px;
  }

  .home-promo__gift-title {
    font-size: 20px;
  }

  .home-promo__description {
    font-size: 13px;
  }

  .home-promo__price {
    margin-top: 9px;
  }

  .home-promo__price strong {
    font-size: 27px;
  }

  .home-promo__saving {
    margin-top: 6px;
  }

  .home-promo__shipping-note {
    margin-top: 6px;
  }

  .home-promo__gift-content > .home-promo__button {
    margin-top: 10px;
  }

  .home-promo__side {
    gap: 11px;
  }

  .home-promo__fish {
    min-height: 206px;
    border-radius: 15px;
  }

  .home-promo__fish-media {
    inset: 0 auto 0 0;
    width: 34%;
  }

  .home-promo__fish::after {
    background: linear-gradient(90deg, rgba(118, 33, 44, .02) 0%, rgba(118, 33, 44, .14) 25%, #76212c 38%, #76212c 100%);
  }

  .home-promo__fish-content {
    width: auto;
    flex: 1 1 auto;
    margin-left: 32%;
    padding: 17px 62px 17px 12px;
  }

  .home-promo__fish-content .home-promo__label {
    font-size: 9px;
  }

  .home-promo__fish-title {
    font-size: 16px;
  }

  .home-promo__fish-description {
    font-size: 11px;
  }

  .home-promo__fish-price .woocommerce-Price-amount {
    font-size: 17px;
  }

  .home-promo__button--gold {
    min-height: 35px;
    margin-top: 9px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .home-promo__shipping {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
    min-height: 0;
    border-radius: 14px;
    padding: 14px 74px 14px 14px;
  }

  .home-promo__shipping-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
  }

  .home-promo__shipping-title {
    font-size: 16px;
  }

  .home-promo__shipping-description {
    font-size: 11px;
  }

  .home-promo__button--small {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .home-promo__fish-content {
    margin-left: 28%;
    padding-right: 56px;
  }

  .home-promo__fish-media {
    width: 31%;
  }
}

/* The compact mobile hero brings category cards into the first viewport.
   Keep the fixed contact stack from covering the hero artwork or those cards. */
@media (max-width: 640px) {
  body.home .hero {
    padding-bottom: 16px;
  }

  body.home .hero__visual .hero__photo-img {
    object-position: 98% 52%;
  }

  body.home .quick-contact {
    display: none;
  }
}

/* Mobile categories: keep every category reachable in one swipe row, so the
   five-card list does not consume two rows and push featured products down. */
@media (max-width: 640px) {
  body.home .section--categories {
    overflow: hidden;
    padding: 16px 0 18px;
  }

  body.home .section--categories__title {
    display: block;
    margin: 0 20px 12px;
    color: var(--maroon);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
  }

  body.home .category-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0 20px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.home .category-grid::-webkit-scrollbar {
    display: none;
  }

  body.home .category-grid > li {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 0;
    scroll-snap-align: start;
  }

  body.home .category-card {
    display: block;
    text-align: center;
  }

  body.home .category-card__img {
    width: 76px;
    height: 76px;
    margin: 0 auto 6px;
  }

  body.home .category-card__name {
    display: block;
    font-size: 13px;
    line-height: 1.15;
  }

  body.home .category-card__cta {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.1;
  }
}
/* ==========================================================================
   WooCommerce Cart — Empty State & Gutenberg Block Optimization
   ========================================================================== */

/* Core block alignment fix: restores centered alignment for Gutenberg blocks */
.has-text-align-center {
  text-align: center !important;
}

/* Empty Cart Block Layout */
.wp-block-woocommerce-empty-cart-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0 60px;
}

/* Empty Cart Headline */
.wc-block-cart__empty-cart__title {
  text-align: center !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  color: var(--maroon, #68131f) !important;
  margin: 0 auto 10px !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
}

/* Replace default sad crying face with warm, artisanal shopping bag badge */
.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
  content: "" !important;
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 22px !important;
  border-radius: 50% !important;
  background-color: #faf4ee !important;
  border: 1.5px solid #eddcd0 !important;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2246%22%20height%3D%2246%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2368131f%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202%203%206v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V6l-3-4Z%22/%3E%3Cpath%20d%3D%22M3%206h18%22/%3E%3Cpath%20d%3D%22M16%2010a4%204%200%200%201-8%200%22/%3E%3C/svg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 44px 44px !important;
  mask-image: none !important;
-webkit-mask-image: none !important;
  box-shadow: 0 8px 24px -4px rgba(104, 19, 31, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .wc-block-cart__empty-cart__title.with-empty-cart-icon:hover:before {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(104, 19, 31, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  }
}

/* Empty State Subtitle Paragraph */
.wp-block-woocommerce-empty-cart-block > p.has-text-align-center {
  text-align: center !important;
  margin: 16px auto 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.wp-block-woocommerce-empty-cart-block > p.has-text-align-center:before {
  content: "Hãy dạo quanh cửa hàng để khám phá các món đặc sản miền Tây thơm ngon đúng điệu nhé." !important;
  display: block !important;
  font-size: 15px !important;
  color: #6b5a52 !important;
  margin-bottom: 8px !important;
  max-width: 480px !important;
  line-height: 1.6 !important;
}

/* Primary CTA Button: Duyệt cửa hàng */
.wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 12px 36px !important;
  background-color: var(--maroon, #68131f) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(104, 19, 31, 0.22) !important;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:after {
  content: "→" !important;
  display: inline-block !important;
  font-size: 16px !important;
  transition: transform 0.2s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:hover {
    background-color: #500e18 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(104, 19, 31, 0.32) !important;
  }

  .wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:hover:after {
    transform: translateX(3px) !important;
  }
}

.wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:focus-visible {
  outline: 2px solid var(--maroon, #68131f) !important;
  outline-offset: 3px !important;
}

/* Subtle Clean Divider replacing crude dots */
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator {
  border: none !important;
  border-top: 1px solid #ebdcd0 !important;
  max-width: 100% !important;
  margin: 56px auto 44px !important;
  height: 0 !important;
}

.wp-block-woocommerce-empty-cart-block hr.wp-block-separator:before {
  display: none !important;
}

/* Section Heading: Mới trong cửa hàng */
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
  text-align: center !important;
  font-size: clamp(22px, 2.2vw, 26px) !important;
  font-weight: 800 !important;
  color: var(--maroon, #68131f) !important;
  margin: 0 auto 8px !important;
  position: relative !important;
  letter-spacing: -0.01em !important;
}

.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title):after {
  content: "Gợi ý những món ngon đậm đà phong vị miền Tây" !important;
  display: block !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #8c766b !important;
  margin-top: 6px !important;
}

/* Product Grid Cards Refinement */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  background: #ffffff !important;
  border: 1px solid #ebdcd0 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(104, 19, 31, 0.08) !important;
    border-color: #dfc7b8 !important;
  }

  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover .wc-block-grid__product-image img {
    transform: scale(1.04) !important;
  }
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  aspect-ratio: 1 / 1 !important;
  background: #faf4ee !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
  border-radius: 10px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-main, #2b1f1d) !important;
  margin: 4px 0 10px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  transition: color 0.15s ease !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover .wc-block-grid__product-title {
  color: var(--maroon, #68131f) !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--maroon, #68131f) !important;
  background: #faf3ec !important;
  border: 1px solid #ebd9cc !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

@media (hover: hover) and (pointer: fine) {
  .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background: var(--maroon, #68131f) !important;
    color: #ffffff !important;
    border-color: var(--maroon, #68131f) !important;
    box-shadow: 0 4px 12px rgba(104, 19, 31, 0.18) !important;
  }
}

/* Classic WooCommerce Empty Cart Support */
.woocommerce-cart .woocommerce-info {
  background: #faf4ee !important;
  border: 1px solid #ebdcd0 !important;
  border-left: 4px solid var(--maroon, #68131f) !important;
  border-radius: 8px !important;
  color: var(--text-main, #2b1f1d) !important;
  font-size: 15px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
}

.woocommerce-cart .return-to-shop {
  text-align: center !important;
  margin: 24px 0 !important;
}

.woocommerce-cart .return-to-shop .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 36px !important;
  background-color: var(--maroon, #68131f) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}
/* ==========================================================================
   Brand Story — Photo & Caption Layout Optimization
   ========================================================================== */
.home-story__media {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.home-story__frame {
  position: relative;
  overflow: hidden;
}

@media (min-width: 901px) {
  .home-story__media {
    height: 100%;
  }

  .home-story__frame {
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto !important;
  }
}

.home-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay caption directly on the photo with a subtle gradient scrim */
.home-story__caption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 32px 24px 16px !important;
  background: linear-gradient(to top, rgba(16, 4, 6, 0.75) 0%, rgba(16, 4, 6, 0.35) 60%, transparent 100%) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  min-height: 0 !important;
}

/* Hide raw uppercase placeholder label "ẢNH MINH HỌA" */
.home-story__caption-label {
  display: none !important;
}

.home-story__caption-text {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}
