/**
 * Magusamaks WooCommerce Styles
 *
 * Complete WooCommerce override for the Magusamaks pastell design system.
 * Design tokens defined once below as :root custom properties.
 */


/* =================================================================
   0. DESIGN TOKENS — synced with theme/ui-kit.html (v1.0)
   ================================================================= */
:root {
  /* ─── DARK THEME PALETTE (reserved for future dark pages) ─── */
  --dark-bg:          #17110f;
  --dark-bg-2:        #1f1714;
  --dark-bg-3:        #2a1f1a;
  --dark-ink:         #f7ecd9;
  --dark-ink-2:       #cdb89a;
  --dark-ink-3:       #8a7360;
  --dark-line:        #342620;

  /* ─── LIGHT THEME PALETTE (WC pages use this) ─── */
  --light-bg:         #fdf8f3;
  --light-bg-2:       #f6efe6;
  --light-bg-3:       #efe5d8;
  --light-ink:        #2a1f18;
  --light-ink-2:      #5c4a3a;
  --light-ink-3:      #9a8574;
  --light-line:       #e5d8ca;

  /* ─── Short aliases (back-compat for existing WC templates) ─── */
  --bg:    var(--light-bg);
  --bg-2:  var(--light-bg-2);
  --bg-3:  var(--light-bg-3);
  --ink:   var(--light-ink);
  --ink-2: var(--light-ink-2);
  --ink-3: var(--light-ink-3);
  --line:  var(--light-line);

  /* ─── ACCENT COLORS ─── */
  --rose:             #d4808a;
  --rose-light:       #f2c4ca;
  --rose-deep:        #a35060;
  --rose-bg:          #fdf0f2;
  --lavender:         #bba8d0;
  --lavender-light:   #e6ddf0;
  --pistachio:        #a8c490;
  --pistachio-light:  #ddecd0;
  --apricot:          #e8a86d;
  --apricot-light:    #fde4c8;
  --butter:           #e8c96d;
  --cream:            #f5e6d0;
  --berry:            #8a2e42;

  /* ─── TYPOGRAPHY ─── */
  --font-display:     'Fraunces', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  /* ─── SPACING SCALE (8px base) ─── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-28: 7rem;
  --sp-32: 8rem;
  --sp-36: 9rem;

  /* ─── SECTION PADDING ─── */
  --section-py:       clamp(5rem, 10vw, 9rem);
  --section-py-sm:    clamp(3rem, 6vw, 5rem);
  --section-py-lg:    clamp(6rem, 12vw, 10rem);

  /* ─── HERO HEIGHT ─── */
  --hero-min-h:       100vh;
  --hero-pt:          9rem;
  --hero-pb:          4rem;

  /* ─── CONTAINER ─── */
  --container-max:    1480px;
  --container-px-sm:  1.25rem;
  --container-px-md:  2.5rem;
  --container-px-lg:  4rem;

  /* ─── BORDER RADIUS (UI kit scale) ─── */
  --radius-none:      0;
  --radius-sm:        2px;
  --radius-md:        8px;
  --radius-lg:        16px;   /* light cards */
  --radius-xl:        20px;   /* larger cards, totals */
  --radius-2xl:       24px;   /* gallery */
  --radius-pill:      60px;   /* light buttons */
  --radius-circle:    50%;
  /* Back-compat: --radius-card was 16px; now equals --radius-lg */
  --radius-card:      var(--radius-lg);

  /* ─── SHADOWS ─── */
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:        0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg:        0 20px 60px rgba(0,0,0,0.08);
  --shadow-rose:      0 8px 30px rgba(212,128,138,0.2);
  --shadow-rose-lg:   0 20px 60px rgba(212,128,138,0.15);

  /* ─── TRANSITIONS ─── */
  --ease-out:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:    0.2s;
  --duration-base:    0.3s;
  --duration-slow:    0.5s;
  --duration-slower:  0.8s;
  --duration-reveal:  1s;

  /* ─── Z-INDEX ─── */
  --z-base:           1;
  --z-dropdown:       10;
  --z-sticky:         20;
  --z-mobile-menu:    49;
  --z-header:         50;
  --z-modal:          100;
  --z-overlay:        200;

  /* ─── TOUCH TARGET ─── */
  --touch-min:        44px;
}

/* Shared WC page container — unified width across all WC templates */
.woo-shop .container,
.woo-cart .container,
.woo-co .container,
.woo-acc .container,
.woo-sp .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Clear the fixed site header — every WC page must push content below ~100px
   header. Template inline padding (clamp 3rem,…) was too small. */
.woo-shop,
.woo-cart,
.woo-co,
.woo-acc,
.woo-ty,
.woo-sp {
  padding-top: var(--hero-pt) !important;
}
.woo-ty .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .woo-shop .container,
  .woo-cart .container,
  .woo-co .container,
  .woo-acc .container,
  .woo-sp .container,
  .woo-ty .container { padding: 0 2.5rem; }
}
@media (min-width: 1200px) {
  .woo-shop .container,
  .woo-cart .container,
  .woo-co .container,
  .woo-acc .container,
  .woo-sp .container,
  .woo-ty .container { padding: 0 4rem; }
}

/* Shared typography for all WC page wrappers */
.woo-shop h1, .woo-shop h2, .woo-shop h3, .woo-shop h4,
.woo-cart h1, .woo-cart h2, .woo-cart h3,
.woo-co   h1, .woo-co   h2, .woo-co   h3,
.woo-acc  h1, .woo-acc  h2, .woo-acc  h3,
.woo-sp   h1, .woo-sp   h2, .woo-sp   h3, .woo-sp h4,
.woo-ty   h1, .woo-ty   h2, .woo-ty   h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.woo-shop em, .woo-cart em, .woo-co em,
.woo-acc em, .woo-sp em, .woo-ty em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.woo-shop a, .woo-cart a, .woo-co a,
.woo-acc a, .woo-sp a, .woo-ty a { color: inherit; text-decoration: none; }
.woo-shop .text-rose, .woo-cart .text-rose, .woo-co .text-rose,
.woo-acc .text-rose, .woo-sp .text-rose, .woo-ty .text-rose { color: var(--rose); }
.woo-shop .text-ink-2, .woo-cart .text-ink-2, .woo-co .text-ink-2,
.woo-acc .text-ink-2, .woo-sp .text-ink-2, .woo-ty .text-ink-2 { color: var(--ink-2); }
.woo-shop .text-ink-3, .woo-co .text-ink-3, .woo-sp .text-ink-3 { color: var(--ink-3); }
.woo-cart .text-pistachio, .woo-co .text-pistachio,
.woo-acc .text-pistachio, .woo-ty .text-pistachio { color: var(--pistachio); }

/* Shared eyebrow */
.woo-shop .eyebrow, .woo-cart .eyebrow, .woo-co .eyebrow,
.woo-acc .eyebrow, .woo-sp .eyebrow, .woo-ty .eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.woo-ty .eyebrow-center, .woo-sp .eyebrow-center { justify-content: center; }
.woo-ty .eyebrow-center::after, .woo-sp .eyebrow-center::after {
  content: ''; width: 2rem; height: 1px; background: var(--rose);
}


/* =================================================================
   1. PRODUCT LOOP / ARCHIVE (woo-shop)
   ================================================================= */

/* Product grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* Reset default WooCommerce float layout */
.woocommerce ul.products li.product {
  float: none;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Product image wrapper */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5d8ca;
  background: #f6efe6;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product a {
  overflow: hidden;
  border-radius: 16px;
  display: block;
  position: relative;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: #2a1f18;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  padding: 0.5rem 0 0;
  border-top: 1px solid #e5d8ca;
  margin: 0;
}

/* Product description excerpt */
.woocommerce ul.products li.product .product-desc,
.woocommerce ul.products li.product .short-description {
  color: #9a8574;
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price styling */
.woocommerce .price,
.woocommerce ul.products li.product .price {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #5c4a3a;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  white-space: nowrap;
}

.woocommerce .price del {
  opacity: 0.5;
  font-size: 0.85em;
  margin-right: 0.3rem;
}

.woocommerce .price ins {
  text-decoration: none;
  color: #d4808a;
}

/* Sale badge */
.woocommerce span.onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  bottom: auto;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: #d4808a;
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  border-radius: 30px;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  line-height: 1.4;
  margin: 0;
}

/* "New" badge via body class or custom badge */
.woocommerce .badge-new {
  background: #a8c490;
  color: #fff;
}

/* Category badge */
.woocommerce .badge-cat {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fdf8f3;
  color: #2a1f18;
  border: 1px solid #e5d8ca;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  z-index: 2;
}

/* Star rating */
.woocommerce .star-rating {
  color: #e8c96d;
  font-size: 0.85rem;
}

/* Loop add-to-cart button — covers both default WC <ul.products> markup AND
   our custom .p-card markup used in archive-product.php */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woo-shop .p-card .button,
.woo-shop .p-card .add_to_cart_button,
.woo-shop .products-grid .button,
.woo-shop .products-grid .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.7rem 1.4rem;
  min-height: 44px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: transparent;
  color: #2a1f18;
  border: 1.5px solid #e5d8ca;
  border-radius: 60px;
  transition: all 0.3s;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  margin-top: auto;
  text-decoration: none;
  text-align: center;
  line-height: 1;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woo-shop .p-card .button:hover,
.woo-shop .p-card .add_to_cart_button:hover,
.woo-shop .products-grid .add_to_cart_button:hover {
  border-color: #d4808a;
  color: #d4808a;
  background: transparent;
}

/* "View cart" message that WC injects after add-to-cart on the loop —
   give it room to breathe and style to match */
.woo-shop .p-card .added_to_cart,
.woocommerce ul.products li.product .added_to_cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  min-height: 40px;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a35060;
  background: #fdf0f2;
  border: 1px solid #f2c4ca;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s;
}
.woo-shop .p-card .added_to_cart:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
  background: #d4808a;
  border-color: #d4808a;
  color: #fff;
}

/* Category pills / term filter */
.woocommerce .cat-pills,
.woocommerce .widget_product_categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce .cat-pill,
.woocommerce .widget_product_categories ul li a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  padding: 0.65rem 1.2rem;
  border-radius: 60px;
  border: 1px solid #e5d8ca;
  color: #5c4a3a;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.woocommerce .cat-pill:hover,
.woocommerce .widget_product_categories ul li a:hover {
  border-color: #d4808a;
  color: #d4808a;
}

.woocommerce .cat-pill.active,
.woocommerce .widget_product_categories ul li.current-cat a {
  background: #2a1f18;
  color: #fdf8f3;
  border-color: #2a1f18;
}

.woocommerce .cat-pill .count {
  font-size: 0.6rem;
  opacity: 0.6;
  margin-left: 0.3rem;
}

/* Results bar */
.woocommerce .woocommerce-result-count {
  font-size: 0.78rem;
  color: #9a8574;
  margin: 0;
}


/* =================================================================
   2. ORDERING SELECT
   ================================================================= */

.woocommerce .woocommerce-ordering select,
.woocommerce .orderby {
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1px solid #e5d8ca;
  border-radius: 60px;
  font-size: 0.75rem;
  color: #5c4a3a;
  background: #fdf8f3;
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  outline: none;
  transition: border-color 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a8574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.woocommerce .woocommerce-ordering select:focus {
  border-color: #d4808a;
}

/* Results bar layout */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
  float: none;
}

.woocommerce .woo-results-bar,
.woocommerce-page .woocommerce-notices-wrapper + .woocommerce-result-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5d8ca;
  margin-bottom: 2rem;
}


/* =================================================================
   3. PAGINATION
   ================================================================= */

.woocommerce nav.woocommerce-pagination {
  text-align: center;
  margin-top: 4rem;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  display: inline-block;
  border: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #e5d8ca;
  border-radius: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #5c4a3a;
  transition: all 0.3s;
  text-decoration: none;
  background: transparent;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: #d4808a;
  color: #d4808a;
  background: transparent;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #2a1f18;
  border-color: #2a1f18;
  color: #fdf8f3;
}


/* =================================================================
   4. SINGLE PRODUCT PAGE (woo-single-product)
   ================================================================= */

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0;
}

.woocommerce .woocommerce-breadcrumb a {
  color: #9a8574;
  text-decoration: none;
  transition: color 0.3s;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: #d4808a;
}

.woocommerce .woocommerce-breadcrumb .breadcrumb-separator,
.woocommerce .woocommerce-breadcrumb > span:not(:last-child)::after {
  color: #e5d8ca;
}

/* Product layout */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .woocommerce div.product {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* Product gallery */
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 24px;
  position: relative;
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Gallery sale badge */
.woocommerce div.product .images .onsale,
.woocommerce div.product .woocommerce-product-gallery .onsale {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  left: auto;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: #d4808a;
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  border-radius: 30px;
  z-index: 10;
}

/* Gallery thumbnails */
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5d8ca;
  cursor: pointer;
  transition: border-color 0.3s;
  background: #f6efe6;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li .flex-active {
  border-color: #d4808a;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Product summary */
.woocommerce div.product .summary,
.woocommerce div.product .entry-summary {
  float: none !important;
  width: 100% !important;
}

@media (min-width: 1024px) {
  .woocommerce div.product .summary,
  .woocommerce div.product .entry-summary {
    position: sticky;
    top: 8rem;
  }
}

/* Eyebrow / category above title */
.woocommerce div.product .posted_in,
.woocommerce div.product .product_meta .posted_in {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #9a8574;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

/* Product title */
.woocommerce div.product .product_title,
.woocommerce div.product h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: #2a1f18;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 1rem;
}

/* Single product price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: #2a1f18;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.woocommerce div.product p.price del {
  opacity: 0.5;
  font-size: 0.85em;
  margin-right: 0.5rem;
}

.woocommerce div.product p.price ins {
  text-decoration: none;
  color: #d4808a;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .product-short-desc {
  color: #5c4a3a;
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

/* Product meta grid (weight, portions, allergens) */
.woocommerce div.product .meta-grid,
.woocommerce div.product .product_meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5d8ca;
  border-bottom: 1px solid #e5d8ca;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .woocommerce div.product .meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.woocommerce div.product .meta-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a8574;
  margin-bottom: 0.3rem;
}

.woocommerce div.product .meta-value {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
}

/* Quantity input */
.woocommerce .quantity .qty,
.woocommerce div.product .quantity .qty {
  width: 80px !important;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 16px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: #2a1f18;
  outline: none;
  min-height: 48px;
}

.woocommerce .quantity .qty:focus {
  border-color: #d4808a;
  box-shadow: 0 0 0 3px rgba(212, 128, 138, 0.15);
}

/* Quantity row label */
.woocommerce div.product .qty-row,
.woocommerce div.product form.cart .quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.woocommerce div.product .qty-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  font-weight: 500;
}

/* Single add-to-cart button */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.woocommerce .button.alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem 2rem !important;
  min-height: 48px;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: #2a1f18 !important;
  color: #fdf8f3 !important;
  border: 1.5px solid #2a1f18 !important;
  border-radius: 60px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce .button.alt:hover {
  background: #d4808a !important;
  border-color: #d4808a !important;
  color: #fff !important;
}

/* Detail accordion (tabs replacement) */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .detail-block {
  border-top: 1px solid #e5d8ca;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  flex-direction: column;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  border-bottom: 1px solid #e5d8ca;
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: #5c4a3a;
  transition: color 0.3s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #2a1f18;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 0 0 1.25rem;
  color: #9a8574;
  font-size: 0.88rem;
  line-height: 1.6;
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
}

/* Full description area */
.woocommerce div.product .woocommerce-product-details__description {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid #e5d8ca;
  max-width: 72ch;
}

.woocommerce div.product .woocommerce-product-details__description h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-details__description p {
  color: #5c4a3a;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Related products */
.woocommerce div.product .related.products {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: #f6efe6;
  border-top: 1px solid #e5d8ca;
  margin: 0 calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.woocommerce div.product .related.products > h2 {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #9a8574;
  text-align: center;
  margin-bottom: 4rem;
}

.woocommerce div.product .related.products ul.products li.product a img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5d8ca;
  transition: transform 0.3s;
}

.woocommerce div.product .related.products ul.products li.product:hover a img {
  transform: translateY(-4px);
}


/* =================================================================
   5. CART PAGE (woo-cart)
   ================================================================= */

/* NOTE: outer .woocommerce wrapper must NOT be a grid — the classic
   shortcode wraps our custom <section class="woo-cart"> in
   <div class="woocommerce"> and a grid here would push the single
   child to the first column only, breaking centering.
   Inner .cart-grid is the real layout grid, defined in cart.php. */
.woocommerce-cart .woocommerce,
.woocommerce-cart > .woocommerce {
  display: block;
  width: 100%;
}

/* Cart table */
.woocommerce-cart table.cart,
.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  border: none;
}

.woocommerce-cart table.cart th,
.woocommerce table.shop_table thead th {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a8574;
  font-weight: 500;
  padding: 1rem;
  border-bottom: 2px solid #e5d8ca;
  text-align: left;
  background: transparent;
}

.woocommerce-cart table.cart td,
.woocommerce table.shop_table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5d8ca;
  vertical-align: middle;
  border-top: none;
}

.woocommerce-cart table.cart .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5d8ca;
  background: #f6efe6;
}

.woocommerce-cart table.cart .product-name a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #2a1f18;
  text-decoration: none;
  transition: color 0.3s;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: #d4808a;
}

.woocommerce-cart table.cart .product-name .variation {
  font-size: 0.78rem;
  color: #9a8574;
  margin-top: 0.25rem;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  white-space: nowrap;
}

.woocommerce-cart table.cart .product-subtotal {
  font-weight: 500;
}

/* Cart quantity input */
.woocommerce-cart table.cart .product-quantity .qty {
  width: 60px !important;
  text-align: center;
  padding: 0.5rem;
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  outline: none;
  min-height: 40px;
}

.woocommerce-cart table.cart .product-quantity .qty:focus {
  border-color: #d4808a;
}

/* Remove item */
.woocommerce-cart table.cart .product-remove a,
.woocommerce a.remove {
  color: #9a8574 !important;
  font-size: 1.2rem;
  transition: color 0.3s;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.woocommerce-cart table.cart .product-remove a:hover,
.woocommerce a.remove:hover {
  color: #d4808a !important;
  background: #fdf0f2;
}

/* Coupon row */
.woocommerce-cart .coupon {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.woocommerce-cart .coupon .input-text,
.woocommerce #coupon_code {
  flex: 1;
  padding: 0.7rem 1rem;
  background: #fdf8f3;
  border: 1px solid #e5d8ca;
  border-radius: 60px;
  font-size: 0.82rem;
  outline: none;
  min-height: 44px;
  transition: border-color 0.3s;
}

.woocommerce-cart .coupon .input-text:focus,
.woocommerce #coupon_code:focus {
  border-color: #d4808a;
}

.woocommerce-cart .coupon .input-text::placeholder {
  color: #9a8574;
}

.woocommerce-cart .coupon .button,
.woocommerce button[name="update_cart"] {
  font-size: 0.72rem;
  padding: 0.6rem 1.2rem;
  min-height: 40px;
  background: transparent;
  color: #9a8574;
  border: 1.5px solid #e5d8ca;
  border-radius: 60px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all 0.3s;
}

.woocommerce-cart .coupon .button:hover,
.woocommerce button[name="update_cart"]:hover {
  border-color: #d4808a;
  color: #d4808a;
}

/* Cart actions row */
.woocommerce-cart table.cart td.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border: none;
}

/* Cart totals */
.woocommerce .cart_totals,
.woocommerce-cart .cart_totals {
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 20px;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.woocommerce .cart_totals h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.woocommerce .cart_totals table {
  width: 100%;
  border: none;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  padding: 1rem 0;
  border-bottom: 1px solid #e5d8ca;
  border-top: none;
}

.woocommerce .cart_totals table th {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  font-weight: 500;
  text-align: left;
  background: transparent;
}

.woocommerce .cart_totals table td {
  text-align: right;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
}

.woocommerce .cart_totals .order-total td,
.woocommerce .cart_totals .order-total .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #2a1f18;
}

/* Shipping free label */
.woocommerce .cart_totals .shipping .amount,
.woocommerce .cart_totals .woocommerce-shipping-totals td {
  color: #a8c490;
}

/* Proceed to checkout button */
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.1rem 2rem;
  min-height: 48px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: #2a1f18;
  color: #fdf8f3;
  border: 1.5px solid #2a1f18;
  border-radius: 60px;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  margin-top: 1.5rem;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background: #d4808a;
  border-color: #d4808a;
  color: #fff;
}

/* Continue shopping link */
.woocommerce .cart_totals .wc-continue-shopping a,
.woocommerce .return-to-shop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.1rem 2rem;
  min-height: 48px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: transparent;
  color: #2a1f18;
  border: 1.5px solid #e5d8ca;
  border-radius: 60px;
  transition: all 0.3s;
  text-decoration: none;
  margin-top: 0.75rem;
}

.woocommerce .return-to-shop a:hover {
  border-color: #d4808a;
  color: #d4808a;
}


/* =================================================================
   6. CHECKOUT PAGE (woo-checkout)
   ================================================================= */

/* NOTE: outer .woocommerce wrapper must NOT be a grid — see cart note above.
   Inner .co-grid is the real layout grid, defined in form-checkout.php. */
.woocommerce-checkout .woocommerce,
.woocommerce-checkout > .woocommerce {
  display: block;
  width: 100%;
}

/* Steps indicator */
.woocommerce .checkout-steps,
.woocommerce .steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
}

.woocommerce .step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.woocommerce .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e5d8ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.82rem;
  transition: all 0.3s;
}

.woocommerce .step-item.active .step-num {
  background: #2a1f18;
  border-color: #2a1f18;
  color: #fdf8f3;
}

.woocommerce .step-item.done .step-num,
.woocommerce .step-done .step-num {
  background: #a8c490;
  border-color: #a8c490;
  color: #fff;
}

.woocommerce .step-sep {
  width: 2rem;
  height: 1px;
  background: #e5d8ca;
}

/* Section titles in checkout */
.woocommerce-checkout h3,
.woocommerce-checkout .section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5d8ca;
  color: #2a1f18;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Form labels */
.woocommerce-checkout label,
.woocommerce form .form-row label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.woocommerce-checkout label .required,
.woocommerce form .form-row label .required {
  color: #d4808a;
}

/* Form inputs */
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #2a1f18;
  outline: none;
  transition: all 0.2s;
  min-height: 48px;
  appearance: none;
}

.woocommerce-checkout select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a8574' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.woocommerce-checkout textarea {
  min-height: 100px;
  resize: vertical;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: #d4808a;
  box-shadow: 0 0 0 3px rgba(212, 128, 138, 0.15);
}

/* Form row grid */
.woocommerce-checkout .form-row {
  margin-bottom: 1.25rem;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  float: none;
  width: 100%;
}

@media (min-width: 640px) {
  .woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
  }
}

/* Payment methods */
.woocommerce-checkout #payment {
  background: transparent;
  border: none;
  border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5d8ca;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout #payment ul.payment_methods li.active {
  border-color: #d4808a;
  background: #fdf0f2;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #d4808a;
  flex-shrink: 0;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #2a1f18;
  margin: 0;
  cursor: pointer;
}

.woocommerce-checkout #payment .payment_box {
  background: #fdf0f2;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #5c4a3a;
}

.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

/* GDPR / Terms checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 1.5rem;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #9a8574;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #d4808a;
  margin-top: 2px;
  flex-shrink: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover {
  color: #d4808a;
}

/* Place order button */
.woocommerce-checkout #place_order,
.woocommerce #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 1.25rem 2rem;
  min-height: 52px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1.5px solid #2a1f18;
  background: #2a1f18;
  color: #fdf8f3;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.woocommerce-checkout #place_order:hover {
  background: #d4808a;
  border-color: #d4808a;
  color: #fff;
}

/* Secure badge */
.woocommerce-checkout .secure-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: #9a8574;
}

.woocommerce-checkout .secure-badge svg {
  color: #a8c490;
}

/* Order review sidebar */
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .order-review {
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 20px;
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

/* Order review items */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  display: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5d8ca;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 400;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .shipping th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .tax-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th {
  display: table-cell;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  font-weight: 500;
  text-align: left;
  background: transparent;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
  font-size: 1.5rem;
  color: #2a1f18;
}

/* Edit cart link */
.woocommerce-checkout .edit-cart-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #9a8574;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* =================================================================
   7. THANK YOU / ORDER RECEIVED (woo-thankyou)
   ================================================================= */

.woocommerce-order-received .woocommerce,
.woocommerce-order-received > .woocommerce {
  display: block;
  width: 100%;
}

/* Success checkmark */
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: #2a1f18;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Order details cards */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce .order-card {
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.woocommerce-order-received .woocommerce-order-details h2,
.woocommerce-order-received .woocommerce-customer-details h2,
.woocommerce .order-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Order detail rows */
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce .order-overview {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-order-received .woocommerce-order-overview li,
.woocommerce .order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5d8ca;
  font-size: 0.9rem;
}

.woocommerce-order-received .woocommerce-order-overview li:last-child,
.woocommerce .order-row:last-child {
  border-bottom: none;
}

.woocommerce .order-label {
  color: #9a8574;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.woocommerce .order-value {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

/* Order status badge */
.woocommerce .order-status,
.woocommerce mark.order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: none;
}

.woocommerce .status-processing,
.woocommerce mark.order-status.processing {
  background: #e8c96d;
  color: #2a1f18;
}

.woocommerce .status-completed,
.woocommerce mark.order-status.completed {
  background: #ddecd0;
  color: #2a1f18;
}

/* Order items in thankyou */
.woocommerce-order-received .woocommerce-table--order-details {
  border: none;
}

.woocommerce-order-received .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--order-details th {
  padding: 1rem 0;
  border-bottom: 1px solid #e5d8ca;
  border-top: none;
}

.woocommerce-order-received .woocommerce-table--order-details .product-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.9rem;
}

.woocommerce-order-received .woocommerce-table--order-details .product-name .product-quantity {
  font-size: 0.75rem;
  color: #9a8574;
}

.woocommerce-order-received .woocommerce-table--order-details .product-total {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  text-align: right;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a8574;
  font-weight: 500;
  background: transparent;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot .order-total th {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a1f18;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot .order-total td {
  font-size: 1.5rem;
  color: #2a1f18;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot td {
  border-top: 2px solid #e5d8ca;
}

/* "What happens next" box */
.woocommerce .next-steps-box {
  background: #fdf0f2;
  border: 1px solid #f2c4ca;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
}

.woocommerce .next-steps-box h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* Thank you action buttons */
.woocommerce-order-received .woocommerce-order-actions,
.woocommerce .thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}


/* =================================================================
   8. MINI-CART DRAWER
   ================================================================= */

.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-mini-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5d8ca;
  align-items: center;
}

.woocommerce-mini-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5d8ca;
  flex-shrink: 0;
}

.woocommerce-mini-cart-item a:not(.remove) {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #2a1f18;
  text-decoration: none;
}

.woocommerce-mini-cart-item .quantity {
  font-size: 0.82rem;
  color: #9a8574;
}

.woocommerce-mini-cart-item .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

/* Hide default mini-cart footer — theme provides custom footer */
.woocommerce-mini-cart__total,
.woocommerce-mini-cart__buttons,
p.woocommerce-mini-cart__total,
p.woocommerce-mini-cart__buttons {
  display: none !important;
}

.woocommerce-mini-cart-item .remove {
  color: #9a8574 !important;
  font-size: 0.85rem;
  margin-left: auto;
  transition: all 0.3s;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.woocommerce-mini-cart-item .remove:hover {
  background: #fdf0f2;
  color: #d4808a !important;
}


/* =================================================================
   9. NOTICES & MESSAGES
   ================================================================= */

.woocommerce-message,
.woocommerce-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ddecd0 !important;
  border: 1px solid #a8c490 !important;
  color: #2a1f18 !important;
  border-radius: 16px !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-top: none;
}

.woocommerce-info {
  background: #f6efe6 !important;
  border-color: #e5d8ca !important;
}

.woocommerce-error {
  background: #fdf0f2 !important;
  border: 1px solid #d4808a !important;
  color: #2a1f18 !important;
  border-radius: 16px !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  list-style: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: #a8c490 !important;
}

.woocommerce-error::before {
  color: #d4808a !important;
}

/* Notice with continue shopping link */
.woocommerce-message a.button,
.woocommerce-message .restore-item {
  margin-left: auto;
  font-size: 0.82rem;
  color: #5c4a3a;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  border: none;
}


/* =================================================================
   10. WOOCOMMERCE BLOCK STYLES (Cart & Checkout blocks)
   ================================================================= */

/* Hide duplicate page title from blocks */
.page-template .wp-block-woocommerce-checkout .wp-block-heading:first-child,
.page-template .wp-block-woocommerce-cart .wp-block-heading:first-child,
.wc-block-checkout .wc-block-checkout__heading,
.wc-block-cart .wc-block-cart__heading {
  display: none !important;
}

/* Full-width container */
.wc-block-checkout,
.wc-block-cart {
  font-family: 'Inter', system-ui, sans-serif;
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Spacing between sections */
.wc-block-checkout .wc-block-components-checkout-step {
  margin-bottom: 2rem !important;
  padding-bottom: 2rem !important;
  border-bottom: 1px solid #e5d8ca !important;
}

.wc-block-checkout .wc-block-components-checkout-step:last-child {
  border-bottom: none !important;
}

/* Section headings */
.wc-block-checkout .wc-block-components-checkout-step__heading {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  color: #2a1f18 !important;
}

/* Order summary sidebar */
.wc-block-checkout .wc-block-components-sidebar {
  background: #f6efe6 !important;
  border: 1px solid #e5d8ca !important;
  border-radius: 20px !important;
  padding: 2rem !important;
}

.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary__button-text {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.2rem !important;
}

/* Cart items in sidebar */
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 0.95rem !important;
  color: #2a1f18 !important;
}

.wc-block-checkout .wc-block-components-product-price,
.wc-block-cart .wc-block-components-product-price {
  font-family: 'Fraunces', Georgia, serif !important;
  font-style: italic !important;
}

/* Block text inputs */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-cart .wc-block-components-text-input input {
  background: #f6efe6 !important;
  border: 1px solid #e5d8ca !important;
  border-radius: 16px !important;
  padding: 0.85rem 1.25rem !important;
  font-size: 0.95rem !important;
  min-height: 48px !important;
  color: #2a1f18 !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-cart .wc-block-components-text-input input:focus {
  border-color: #d4808a !important;
  box-shadow: 0 0 0 3px rgba(212, 128, 138, 0.15) !important;
}

/* Block buttons */
.wc-block-checkout .wc-block-components-button,
.wc-block-cart .wc-block-components-button {
  background: #2a1f18 !important;
  color: #fdf8f3 !important;
  border: 1.5px solid #2a1f18 !important;
  border-radius: 60px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.1rem 2rem !important;
  min-height: 48px !important;
  transition: all 0.4s !important;
}

.wc-block-checkout .wc-block-components-button:hover,
.wc-block-cart .wc-block-components-button:hover {
  background: #d4808a !important;
  border-color: #d4808a !important;
}

/* Block headings */
.wc-block-checkout .wc-block-components-checkout-step__heading,
.wc-block-checkout h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 400 !important;
}

/* Block totals wrapper borders */
.wc-block-checkout .wc-block-components-totals-wrapper,
.wc-block-cart .wc-block-components-totals-wrapper {
  border-color: #e5d8ca !important;
}

/* Cart block item rows */
.wc-block-cart .wc-block-cart-items__row {
  border-color: #e5d8ca !important;
}

.wc-block-cart .wc-block-cart-items .wc-block-components-product-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: #2a1f18;
}

/* Block select components */
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-country-input input {
  background: #f6efe6 !important;
  border: 1px solid #e5d8ca !important;
  border-radius: 16px !important;
  min-height: 48px !important;
}

/* Block radio buttons (payment/shipping) */
.wc-block-components-radio-control .wc-block-components-radio-control__option {
  padding: 1rem !important;
  border: 1px solid #e5d8ca !important;
  border-radius: 16px !important;
  margin-bottom: 0.75rem !important;
  transition: all 0.2s !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__option:hover,
.wc-block-components-radio-control .wc-block-components-radio-control__option--checked {
  border-color: #d4808a !important;
  background: #fdf0f2 !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input {
  accent-color: #d4808a;
}

/* Block checkbox */
.wc-block-checkout__terms input[type="checkbox"],
.wc-block-components-checkbox__input {
  accent-color: #d4808a;
}


/* =================================================================
   11. GENERAL BUTTON STYLES (shared)
   ================================================================= */

/* Primary button (dark) */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 60px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 44px;
}

/* Alt button (primary CTA) */
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: #2a1f18;
  color: #fdf8f3;
  border: 1.5px solid #2a1f18;
}

.woocommerce .button.alt:hover {
  background: #d4808a;
  border-color: #d4808a;
  color: #fff;
}

/* Outline button */
.woocommerce .button.btn-outline,
.woocommerce a.button.btn-outline {
  background: transparent;
  color: #2a1f18;
  border: 1.5px solid #e5d8ca;
}

.woocommerce .button.btn-outline:hover {
  border-color: #d4808a;
  color: #d4808a;
}

/* Disabled button */
.woocommerce .button:disabled,
.woocommerce .button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =================================================================
   12. RESPONSIVE CART TABLE
   ================================================================= */

@media (max-width: 768px) {
  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart thead,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart th,
  .woocommerce-cart table.cart td,
  .woocommerce-cart table.cart tr {
    display: block;
  }

  .woocommerce-cart table.cart thead {
    display: none;
  }

  .woocommerce-cart table.cart tr {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5d8ca;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: center;
  }

  .woocommerce-cart table.cart td {
    padding: 0.25rem 0;
    border: none;
  }

  .woocommerce-cart table.cart .product-thumbnail {
    grid-row: 1 / 3;
  }

  .woocommerce-cart table.cart .product-thumbnail img {
    width: 70px;
    height: 70px;
  }

  .woocommerce-cart table.cart td.actions {
    grid-column: 1 / -1;
    flex-direction: column;
  }
}


/* =================================================================
   13. WIDGETS & SIDEBAR
   ================================================================= */

.woocommerce .widget_price_filter .ui-slider {
  background: #e5d8ca;
  border: none;
  border-radius: 4px;
  height: 4px;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: #d4808a;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: #d4808a;
  border: 2px solid #fdf8f3;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  top: -7px;
  cursor: pointer;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
  background: #2a1f18;
  color: #fdf8f3;
  border: 1.5px solid #2a1f18;
  border-radius: 60px;
  font-size: 0.72rem;
  padding: 0.6rem 1.2rem;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
  background: #d4808a;
  border-color: #d4808a;
}


/* =================================================================
   14. MY ACCOUNT
   ================================================================= */

/* Outer shortcode wrapper must not interfere with .acc-grid in my-account.php */
.woocommerce-account .woocommerce,
.woocommerce-account > .woocommerce {
  display: block;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #e5d8ca;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 1rem 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: #5c4a3a;
  transition: color 0.3s;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  color: #d4808a;
}

.woocommerce-account .woocommerce-MyAccount-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5c4a3a;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: #d4808a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Account forms */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  background: #f6efe6;
  border: 1px solid #e5d8ca;
  border-radius: 20px;
  padding: 2rem;
}

.woocommerce-account .woocommerce-form-login label,
.woocommerce-account .woocommerce-form-register label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a8574;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-form-login input[type="text"],
.woocommerce-account .woocommerce-form-login input[type="password"],
.woocommerce-account .woocommerce-form-login input[type="email"],
.woocommerce-account .woocommerce-form-register input[type="text"],
.woocommerce-account .woocommerce-form-register input[type="password"],
.woocommerce-account .woocommerce-form-register input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #fdf8f3;
  border: 1px solid #e5d8ca;
  border-radius: 16px;
  font-size: 0.95rem;
  color: #2a1f18;
  outline: none;
  min-height: 48px;
  transition: all 0.2s;
}

.woocommerce-account .woocommerce-form-login input:focus,
.woocommerce-account .woocommerce-form-register input:focus {
  border-color: #d4808a;
  box-shadow: 0 0 0 3px rgba(212, 128, 138, 0.15);
}


/* =================================================================
   15. REDUCED MOTION
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  .woocommerce *,
  .wc-block-checkout *,
  .wc-block-cart * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =================================================================
   16. PRINT STYLES
   ================================================================= */

@media print {
  .woocommerce .cart_totals,
  .woocommerce .order-card {
    background: #fff;
    border: 1px solid #ccc;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
