/* Snuuddle base — page styles are inline in each template.
   This file: admin-bar fix, nav fallback (pages with no inline nav CSS,
   e.g. cart/checkout via index.php), nav cart button, cart drawer,
   WooCommerce reskin (cart / checkout / order received / notices). */

/* ── Admin bar ─────────────────────────────────────────────── */
body.admin-bar #nav      { top: 32px; }
body.admin-bar #site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #nav      { top: 46px; }
  body.admin-bar #site-nav { top: 46px; }
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Nav (SHARED COMPONENT — one definition for every page) ─────
   Markup: header.php. Scroll behaviour: header.php (.scrolled toggled
   at scrollY>50). Page templates DO NOT carry their own nav CSS — the
   per-page inline copies were removed (strip_nav_inline.py) so this is
   the single source of truth and pages can no longer drift.

   Default = solid white frosted: WooCommerce cart/checkout/account +
   404 (no dark hero, rendered via index.php).
   Content pages get body.snd-nav-overlay (functions.php) → transparent
   over the dark hero, turning solid on scroll. This is the candle
   behaviour, now identical on every content page. */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(24, 22, 31, 0.08);
  box-shadow: 0 4px 24px rgba(24, 22, 31, 0.05);
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#nav a { text-decoration: none; color: inherit; }
.n-logo { display: flex; align-items: center; }
.n-logo img { height: clamp(26px, 3vw, 36px); width: auto; transition: filter 0.4s ease; }
.n-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.n-links a { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(24, 22, 31, 0.55); transition: color 0.3s ease; }
.n-links a:hover, .n-links a.active { color: #18161F; }
.n-btn { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 22px; border-radius: 999px; color: #FFFFFF; background: #D4754E; border: none; cursor: pointer; transition: background 0.25s; }
.n-btn:hover { background: #BE5E38; }

/* Overlay state — transparent over a dark hero (content pages, before scroll) */
.snd-nav-overlay #nav:not(.scrolled) {
  padding: 28px 48px;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.snd-nav-overlay #nav:not(.scrolled) .n-logo img { filter: brightness(0) invert(1); }
.snd-nav-overlay #nav:not(.scrolled) .n-links a { color: rgba(255, 255, 255, 0.65); }
.snd-nav-overlay #nav:not(.scrolled) .n-links a:hover,
.snd-nav-overlay #nav:not(.scrolled) .n-links a.active { color: #FFFFFF; }
.snd-nav-overlay #nav:not(.scrolled) .snd-cart-btn { color: rgba(255, 255, 255, 0.85); }
.snd-nav-overlay #nav:not(.scrolled) .n-burger { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 1100px) and (min-width: 769px) {
  .n-links {
    position: static !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: 32px !important;
    gap: 20px !important;
  }
  .n-links a {
    white-space: nowrap !important;
  }
}
@media (max-width: 768px) {
  #nav { padding: 14px 20px; }
  /* keep the overlay nav the same height as solid on mobile — no shrink/jump on scroll */
  .snd-nav-overlay #nav:not(.scrolled) { padding: 14px 20px; }
  .n-links { display: none; }
}

/* ── Nav right group + cart button ─────────────────────────── */
.n-right { display: flex; align-items: center; gap: 12px; }
.snd-cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: #18161F;
  transition: color 0.3s ease, opacity 0.2s;
}
.snd-cart-btn:hover { opacity: 0.7; }
/* (Overlay/transparent cart-icon colour is handled by the .snd-nav-overlay
   block above — one source of truth.) */
.snd-cart-count {
  position: absolute; top: 0; right: -2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: #D4754E; color: #FFFFFF;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
  display: none;
}
.snd-cart-count.has-items { display: block; }

/* ── Cart drawer ───────────────────────────────────────────── */
#snd-cart-overlay {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(10, 8, 18, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#snd-cart-overlay.open { opacity: 1; pointer-events: auto; }
#snd-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 991;
  width: 420px; max-width: 100vw;
  background: #FFFFFF;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -24px 0 60px rgba(10, 8, 18, 0.18);
}
#snd-cart-drawer.open { transform: translateX(0); }
body.snd-drawer-locked { overflow: hidden; }
.snd-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(24, 22, 31, 0.08);
  flex-shrink: 0;
}
.snd-drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; letter-spacing: -0.02em; color: #18161F;
}
.snd-drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: rgba(24, 22, 31, 0.55); transition: color 0.2s;
}
.snd-drawer-close:hover { color: #18161F; }
#snd-drawer-body { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.snd-drawer-items { list-style: none; margin: 0; padding: 0 28px; flex: 1; }
.snd-drawer-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(24, 22, 31, 0.07);
}
.snd-di-img { width: 72px; flex-shrink: 0; }
.snd-di-img img { width: 100%; height: auto; display: block; border-radius: 4px; background: #F7F5F2; }
.snd-di-info { flex: 1; min-width: 0; }
.snd-di-name { font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; font-weight: 500; color: #18161F; margin-bottom: 4px; }
.snd-di-qty { font-size: 12px; color: rgba(24, 22, 31, 0.45); margin-bottom: 4px; }
.snd-di-price { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; color: #18161F; }
.snd-di-remove {
  flex-shrink: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: rgba(24, 22, 31, 0.35); text-decoration: none;
  transition: color 0.2s;
}
.snd-di-remove:hover { color: #B22135; }
.snd-drawer-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(24, 22, 31, 0.08);
  background: #FFFFFF; flex-shrink: 0;
}
.snd-drawer-subtotal {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; color: #18161F; margin-bottom: 6px;
}
.snd-drawer-subtotal .woocommerce-Price-amount { font-size: 22px; }
.snd-drawer-note { font-size: 12px; color: rgba(24, 22, 31, 0.45); margin: 0 0 16px; }
.snd-drawer-checkout {
  display: block; text-align: center;
  background: #D4754E; color: #FFFFFF !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 999px;
  text-decoration: none; transition: background 0.25s;
}
.snd-drawer-checkout:hover { background: #BE5E38; }
.snd-drawer-viewcart {
  display: block; text-align: center; margin-top: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(24, 22, 31, 0.45); text-decoration: none; transition: color 0.2s;
}
.snd-drawer-viewcart:hover { color: #18161F; }
.snd-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 28px; }
.snd-drawer-empty p { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; color: rgba(24, 22, 31, 0.55); margin: 0; }
@media (max-width: 600px) {
  #snd-cart-drawer { width: 100vw; }
}

/* ══════════════════════════════════════════════════════════════════
   WooCommerce reskin — Cart / Checkout / Account / Order Received
   rendered through index.php (shortcodes in page content).
   Design: Playfair headings, DM Sans body, terracotta pill CTAs,
   brand purple focus rings.
   ══════════════════════════════════════════════════════════════════ */
.woo-main { padding-top: 80px; }
.woocommerce-notices-wrapper { padding: 0; width: 100%; max-width: 1200px; margin: 0 auto; }

/* Global font stack for all WC components */
.woocommerce, .woocommerce-page,
.woocommerce-page *, .woocommerce * {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Page container — reduced top padding so content sits closer to the nav */
body.woocommerce-cart #main,
body.woocommerce-checkout #main,
body.woocommerce-account #main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 48px 100px !important;
  color: #18161F;
}
@media (max-width: 768px) {
  body.woocommerce-cart #main,
  body.woocommerce-checkout #main,
  body.woocommerce-account #main {
    padding: 110px 16px 60px !important;
  }
}

/* ── Headings & font overrides ── */
body.woocommerce-cart #main h1, body.woocommerce-checkout #main h1,
body.woocommerce-cart #main h2, body.woocommerce-checkout #main h2,
body.woocommerce-account #main h1, body.woocommerce-account #main h2,
.woocommerce h2, .woocommerce h3, .woocommerce h4,
.woocommerce-thankyou-order-received,
.woocommerce-order ul.woocommerce-order-overview li strong,
.snd-drawer-title, .snd-drawer-subtotal {
  font-family: 'Playfair Display', Georgia, serif !important;
}
body.woocommerce-cart #main h1, body.woocommerce-checkout #main h1,
body.woocommerce-account #main h1, .woocommerce-thankyou-order-received {
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 24px;
}
#main h1.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 24px;
}
.woocommerce h2, .woocommerce h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* ── Buttons → terracotta pills ── */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
  background: #D4754E; color: #FFFFFF !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 36px; border: none; border-radius: 999px;
  transition: background 0.25s, transform 0.2s; cursor: pointer;
  display: inline-block; text-align: center;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
  background: #BE5E38; color: #FFFFFF !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: #D4754E; color: #FFFFFF; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #BE5E38; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] {
  background: rgba(24, 22, 31, 0.08); color: rgba(24, 22, 31, 0.4); padding: 16px 36px;
}
.wc-proceed-to-checkout a.checkout-button {
  display: block; text-align: center; font-size: 12px; padding: 18px 36px; width: 100%;
}

/* Secondary Actions / Coupon buttons (outline style) */
.woocommerce-cart table.cart td.actions .button,
.woocommerce-cart table.cart td.actions input.button {
  background: transparent !important;
  color: #6A5DB0 !important;
  border: 1.5px solid #6A5DB0 !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 999px !important;
  transition: all 0.25s ease;
}
.woocommerce-cart table.cart td.actions .button:hover,
.woocommerce-cart table.cart td.actions input.button:hover {
  background: #6A5DB0 !important;
  color: #FFFFFF !important;
  border-color: #6A5DB0 !important;
}

/* ── Tables (cart, order review, order details) ── */
.woocommerce table.shop_table {
  border: none !important;
  border-radius: 0;
  border-collapse: collapse;
  width: 100%;
}
.woocommerce table.shop_table th {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(24, 22, 31, 0.45) !important; background: transparent !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(24, 22, 31, 0.1) !important;
  padding: 10px 8px !important;
  text-align: left;
}
.woocommerce table.shop_table td {
  border-top: none !important;
  border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important;
  padding: 18px 8px !important;
  vertical-align: middle;
  background: transparent !important;
}
.woocommerce table.shop_table tbody tr:last-child td {
  border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important;
}
.woocommerce table.shop_table td.product-name a {
  color: #18161F; text-decoration: none; font-weight: 500; font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  transition: color 0.25s;
}
.woocommerce table.shop_table td.product-name a:hover { color: #6A5DB0; }

/* Product thumbnail */
.woocommerce-cart table.cart img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; background: #F7F5F2;
}

/* Remove link */
.woocommerce a.remove {
  color: rgba(24, 22, 31, 0.3) !important; font-weight: 300;
  font-size: 18px; transition: all 0.2s;
  background: transparent !important;
  width: 28px; height: 28px; line-height: 28px;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(24, 22, 31, 0.1);
}
.woocommerce a.remove:hover {
  color: #B22135 !important; background: rgba(178, 33, 53, 0.06) !important;
  border-color: rgba(178, 33, 53, 0.2);
}

/* Price amount */
.woocommerce .woocommerce-Price-amount {
  font-size: 15px; color: #18161F;
  font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* ── Desktop cart table & actions grid ── */
@media (min-width: 769px) {
  /* Desktop cart table — table-layout: fixed keeps columns strictly aligned and tight */
  .woocommerce-cart table.cart { table-layout: fixed !important; width: 100% !important; }
  .woocommerce-cart table.cart td.product-remove,
  .woocommerce-cart table.cart th.product-remove { width: 50px !important; text-align: center !important; }
  .woocommerce-cart table.cart td.product-thumbnail,
  .woocommerce-cart table.cart th.product-thumbnail { width: 88px !important; text-align: left !important; }
  .woocommerce-cart table.cart td.product-name,
  .woocommerce-cart table.cart th.product-name { text-align: left !important; }
  .woocommerce-cart table.cart td.product-price,
  .woocommerce-cart table.cart th.product-price { width: 110px !important; text-align: right !important; white-space: nowrap !important; }
  .woocommerce-cart table.cart td.product-quantity,
  .woocommerce-cart table.cart th.product-quantity { width: 130px !important; text-align: center !important; }
  .woocommerce-cart table.cart td.product-subtotal,
  .woocommerce-cart table.cart th.product-subtotal { width: 110px !important; text-align: right !important; white-space: nowrap !important; }

  /* Coupon + cart actions on desktop: coupon float left, update cart float right (aligned below subtotal) */
  .woocommerce-cart table.cart td.actions {
    display: table-cell !important;
    width: 100% !important;
    border-bottom: none !important;
    padding: 18px 0 !important;
    background: transparent !important;
  }
  .woocommerce-cart table.cart td.actions .coupon {
    float: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .woocommerce-cart table.cart td.actions > button[name="update_cart"],
  .woocommerce-cart table.cart td.actions > .button:not(.checkout-button) {
    float: right !important;
  }
}

.woocommerce-cart table.cart td.product-quantity .quantity {
  display: inline-flex; align-items: center; justify-content: center;
}

/* Quantity input */
.woocommerce .quantity .qty {
  width: 52px; padding: 10px 4px;
  border: 1px solid rgba(24, 22, 31, 0.12); border-radius: 6px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; color: #18161F;
  background: #FFFFFF; text-align: center;
}

/* Coupon + cart actions styling */
.woocommerce-cart table.cart td.actions .coupon {
  display: flex; align-items: center; gap: 8px;
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 170px; padding: 12px 16px; margin-right: 0; margin-bottom: 0 !important;
  border: 1px solid rgba(24, 22, 31, 0.12); border-radius: 6px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px;
  background: #FAF9F6;
}

/* ── Cart layout: vertically stacked table + right-aligned totals card ── */
.woocommerce-cart .woocommerce {
  display: block;
  width: 100%;
}
.woocommerce-cart .woocommerce-cart-form {
  width: 100%;
  margin-bottom: 40px;
}
.woocommerce-cart .cart-collaterals {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 480px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .woocommerce-cart .cart-collaterals {
    justify-content: stretch;
    margin-top: 32px;
  }
  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
  }
}

/* Cart totals card */
.cart-collaterals .cart_totals {
  background: #FFFFFF;
  border: 1px solid rgba(24, 22, 31, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(8, 6, 23, 0.04);
}
.cart-collaterals .cart_totals h2 {
  font-size: 20px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(24, 22, 31, 0.08);
  padding-bottom: 10px;
}
.cart-collaterals .cart_totals table.shop_table { border: none !important; background: transparent; }
.cart-collaterals .cart_totals table.shop_table th {
  background: transparent !important; padding: 10px 0 !important;
  border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important; font-weight: 500;
}
.cart-collaterals .cart_totals table.shop_table td {
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important; text-align: right;
}
.cart-collaterals .cart_totals table.shop_table tr.order-total th,
.cart-collaterals .cart_totals table.shop_table tr.order-total td {
  border-bottom: none !important;
  padding-top: 16px !important;
  font-size: 15px;
}
.cart-collaterals .cart_totals table.shop_table tr.order-total .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* Force express payment buttons to fit inside the cart totals card */
.cart-collaterals .cart_totals,
.cart-collaterals .cart_totals * {
  box-sizing: border-box !important;
}
.cart-collaterals #wc-stripe-payment-request-wrapper,
.cart-collaterals #wc-stripe-payment-request-button,
.cart-collaterals .wc-proceed-to-checkout + div,
.cart-collaterals .wc-proceed-to-checkout + form,
.cart-collaterals [class*="payment-request"],
.cart-collaterals [id*="payment-request"],
.cart-collaterals div[class*="stripe-banner"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.cart-collaterals #wc-stripe-payment-request-wrapper *,
.cart-collaterals #wc-stripe-payment-request-button *,
.cart-collaterals [class*="payment-request"] *,
.cart-collaterals [id*="payment-request"] * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Shipping calculator */
.woocommerce-shipping-calculator .shipping-calculator-button {
  color: #6A5DB0 !important;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none !important;
  border-bottom: 1.5px solid #6A5DB0;
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.woocommerce-shipping-calculator .shipping-calculator-button:hover {
  color: #4A3D90 !important;
  border-bottom-color: #4A3D90;
}
.woocommerce-shipping-calculator section.shipping-calculator-form {
  margin-top: 16px; display: flex; flex-direction: column; gap: 12px;
}
.woocommerce-shipping-calculator section.shipping-calculator-form p {
  margin: 0 !important;
}

/* ── Forms (checkout billing, account, coupon) ── */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  padding: 14px 16px;
  border: 1px solid rgba(24, 22, 31, 0.08); border-radius: 4px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; color: #18161F;
  background: #FAF9F6;
  width: 100%; box-shadow: none;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #6A5DB0; outline: none;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(106, 93, 176, 0.08);
}
.woocommerce form .form-row label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(24, 22, 31, 0.7); margin-bottom: 6px; display: block;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #B22135; }
.select2-container--default .select2-selection--single {
  height: 48px; padding: 0 16px;
  border: 1px solid rgba(24, 22, 31, 0.08) !important; border-radius: 4px !important;
  background-color: #FAF9F6 !important;
  display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0; color: #18161F; font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%; transform: translateY(-50%); right: 12px;
}

/* ── Checkout: 2-column grid on desktop ── */
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: start;
  }
  .woocommerce-checkout form.checkout #customer_details {
    grid-column: 1; grid-row: 1 / 3; margin-bottom: 0;
  }
  .woocommerce-checkout form.checkout #order_review_heading {
    grid-column: 2; grid-row: 1; margin-top: 0;
    border-bottom: 2px solid #18161F; padding-bottom: 12px;
  }
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 2; grid-row: 2; width: 100%;
  }
}
.woocommerce-checkout #customer_details.col2-set,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%; max-width: 100%; float: none;
}
.woocommerce-checkout #customer_details .col-2 { margin-top: 40px; }

/* Order Review */
#order_review {
  background: #FAF9F6; border: 1px solid rgba(24, 22, 31, 0.05);
  border-radius: 8px; padding: 32px;
}
#order_review table.shop_table { margin-bottom: 24px; }
#order_review table.shop_table th { border-bottom: 1px solid rgba(24, 22, 31, 0.12) !important; }
#order_review table.shop_table td { padding: 14px 0 !important; border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important; }
#order_review table.shop_table td.product-total { text-align: right; }
#order_review table.shop_table tfoot th { font-weight: 500; border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important; }
#order_review table.shop_table tfoot td { text-align: right; border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important; }
#order_review table.shop_table tfoot tr.order-total th,
#order_review table.shop_table tfoot tr.order-total td { border-bottom: none !important; padding-top: 20px !important; }

/* Checkout payment */
.woocommerce-checkout #payment {
  background: transparent !important; border: none !important; border-radius: 0; padding: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom: none !important; padding: 0 !important; margin-bottom: 24px !important; }
.woocommerce-checkout #payment ul.payment_methods li { line-height: 1.8; margin-bottom: 14px; font-size: 14px; }
.woocommerce-checkout #payment ul.payment_methods li input { margin-right: 8px; }
.woocommerce-checkout #payment div.payment_box {
  background: rgba(24, 22, 31, 0.03) !important; color: rgba(24, 22, 31, 0.7) !important;
  border-radius: 6px !important; padding: 16px 20px !important; margin: 12px 0 !important;
  font-size: 13px !important; line-height: 1.5 !important;
  border: 1px solid rgba(24, 22, 31, 0.04) !important;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.form-row.place-order { padding: 0 !important; }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 12px; padding: 18px 36px; }

/* ── Notices / Notifications ── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: none !important;
  border-radius: 6px; background: #FAF9F6 !important;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; color: #18161F !important;
  padding: 18px 24px 18px 54px !important;
  margin-bottom: 24px !important;
  border: 1px solid rgba(24, 22, 31, 0.08) !important;
  border-left: 3px solid #6A5DB0 !important;
  box-shadow: 0 4px 12px rgba(24, 22, 31, 0.02);
}
.woocommerce-message { border-left-color: #5A8A5A !important; }
.woocommerce-message::before { color: #5A8A5A !important; }
.woocommerce-error { border-left-color: #B22135 !important; }
.woocommerce-error::before { color: #B22135 !important; }
/* Vertically center the notice icon regardless of WooCommerce core's default
   positioning (our custom padding doesn't match its built-in assumptions). */
.woocommerce-message, .woocommerce-info, .woocommerce-error { position: relative; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  position: absolute !important; left: 22px !important; top: 50% !important;
  transform: translateY(-50%) !important; margin: 0 !important;
}
.woocommerce-message a.button, .woocommerce-info a.button { padding: 10px 20px; font-size: 10px; margin-left: auto; display: inline-block; }

/* Order received */
.woocommerce-order ul.woocommerce-order-overview {
  border: 1px solid rgba(24, 22, 31, 0.08) !important; border-radius: 6px !important;
  padding: 24px; margin-bottom: 40px; background: #FAF9F6;
  display: flex; flex-wrap: wrap; gap: 20px;
}
.woocommerce-order ul.woocommerce-order-overview li {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(24, 22, 31, 0.45);
  border-right: 1px solid rgba(24, 22, 31, 0.08) !important;
  padding-right: 24px; flex: 1; min-width: 120px;
}
.woocommerce-order ul.woocommerce-order-overview li:last-child { border-right: none !important; }
.woocommerce-order ul.woocommerce-order-overview li strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px; letter-spacing: 0; text-transform: none; color: #18161F;
  display: block; margin-top: 6px;
}
.woocommerce-thankyou-order-received {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -0.02em;
  color: #18161F; margin-bottom: 28px;
}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid rgba(24, 22, 31, 0.07); }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 14px 4px;
  font-size: 13px; color: rgba(24, 22, 31, 0.55); text-decoration: none; transition: color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: #6A5DB0; }
/* Hide the "View cart" text link WC injects next to AJAX buttons */
a.added_to_cart { display: none !important; }

/* ── Mobile nav menu (burger + full-screen overlay) ────────────
   Markup lives in header.php; mirrors the prototype add_mobile_nav.py block.
   Overlay bg is hardcoded #0a0812 — do NOT use var(--dark): on the homepage
   --dark is white, which would make the menu white-on-white. */
.n-burger{display:none;background:none;border:none;cursor:pointer;padding:8px;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;line-height:0;color:rgba(24,22,31,.85);}
.n-burger span{display:block;width:22px;height:2px;border-radius:2px;background:currentColor;transition:opacity .25s ease;}
/* overlay (transparent-nav) burger colour: see .snd-nav-overlay block above */
.n-overlay{position:fixed;inset:0;z-index:300;background:#0a0812;display:flex;flex-direction:column;justify-content:center;align-items:center;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .4s ease,visibility .4s ease,transform .4s ease;}
.n-overlay.open{opacity:1;visibility:visible;transform:none;}
.n-overlay-close{position:absolute;top:16px;right:18px;background:none;border:none;color:rgba(255,255,255,.85);cursor:pointer;padding:8px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;}
.n-overlay-links{list-style:none;margin:0;padding:0;text-align:center;}
.n-overlay-links li{margin:0;opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease;}
.n-overlay.open .n-overlay-links li{opacity:1;transform:none;}
.n-overlay.open .n-overlay-links li:nth-child(1){transition-delay:.10s;}
.n-overlay.open .n-overlay-links li:nth-child(2){transition-delay:.16s;}
.n-overlay.open .n-overlay-links li:nth-child(3){transition-delay:.22s;}
.n-overlay.open .n-overlay-links li:nth-child(4){transition-delay:.28s;}
.n-overlay.open .n-overlay-links li:nth-child(5){transition-delay:.34s;}
.n-overlay-links a{display:inline-block;padding:13px 0;font-family:'Playfair Display',Georgia,serif;font-size:32px;line-height:1.1;color:#fff;letter-spacing:.01em;}
.n-overlay-links a.active{color:#6A5DB0;}
.n-overlay-foot{position:absolute;bottom:30px;left:0;right:0;text-align:center;color:rgba(255,255,255,.5);font-size:11px;letter-spacing:.14em;text-transform:uppercase;}
@media (max-width:768px){
  .n-burger{display:flex; order:1;}
  .snd-cart-btn{order:2;}
}
@media (min-width:769px){ .n-overlay{display:none;} }

/* ══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE CART
   Overrides WooCommerce's woocommerce-smallscreen.css which uses
   table.shop_table_responsive + td::before { content: attr(data-title) }
   We hide WC's ::before labels and provide our own ::after labels
   with proper flex layout.
   ══════════════════════════════════════════════════════════════════ */

/* Tablet: stack cart + collaterals vertically */
@media (max-width: 768px) {
  .woocommerce-cart .woocommerce {
    display: block !important;
  }
  .woocommerce-cart .woocommerce > .cart-collaterals {
    margin-top: 28px;
    width: 100% !important;
  }
  .cart-collaterals .cart_totals {
    padding: 20px;
    border-radius: 12px;
  }
}

/* Full mobile cart card layout */
@media only screen and (max-width: 768px) {

  /* Force table to block layout — beat WC's smallscreen specificity */
  body.woocommerce-cart table.shop_table_responsive thead,
  body.woocommerce-cart table.shop_table.cart thead,
  .woocommerce-cart table.shop_table_responsive thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table_responsive,
  body.woocommerce-cart table.shop_table_responsive tbody,
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table.cart tbody,
  .woocommerce-cart table.shop_table_responsive,
  .woocommerce-cart table.shop_table_responsive tbody {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr,
  body.woocommerce-cart table.shop_table.cart tr,
  .woocommerce-cart table.shop_table_responsive tr {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table_responsive td,
  body.woocommerce-cart table.shop_table.cart td,
  .woocommerce-cart table.shop_table_responsive td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
  }

  /* Kill WooCommerce's data-title ::before labels */
  body.woocommerce-cart table.shop_table_responsive tr td::before,
  body.woocommerce-cart table.shop_table.cart tr td::before,
  .woocommerce table.shop_table_responsive tr td::before {
    display: none !important;
    content: none !important;
  }

  /* Each cart item → clean card */
  body.woocommerce-cart table.shop_table_responsive tr.cart_item,
  body.woocommerce-cart table.shop_table.cart tr.cart_item,
  .woocommerce-cart table.shop_table_responsive tr.cart_item {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(24, 22, 31, 0.06) !important;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(8, 6, 23, 0.03);
  }

  /* Remove button → top-right of card */
  body.woocommerce-cart table.shop_table_responsive td.product-remove,
  body.woocommerce-cart table.shop_table.cart td.product-remove,
  .woocommerce-cart table.shop_table_responsive td.product-remove {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: auto !important;
    border-bottom: none !important;
    padding: 0 !important;
    z-index: 10;
  }

  /* Product thumbnail → centered, force visible */
  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail,
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail {
    display: block !important;
    border-bottom: none !important;
    padding: 0 0 12px 0 !important;
    text-align: center !important;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img,
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
    display: block !important;
  }

  /* Product name → centered */
  body.woocommerce-cart table.shop_table_responsive td.product-name,
  body.woocommerce-cart table.shop_table.cart td.product-name,
  .woocommerce-cart table.shop_table_responsive td.product-name {
    border-bottom: 1px solid rgba(24, 22, 31, 0.06) !important;
    padding: 0 0 14px 0 !important;
    text-align: center !important;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-name a,
  body.woocommerce-cart table.shop_table.cart td.product-name a,
  .woocommerce-cart table.shop_table_responsive td.product-name a {
    font-size: 15px !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-weight: 600 !important;
    color: #18161F;
  }

  /* Price / Qty / Subtotal → flex rows with label on left, value on right */
  body.woocommerce-cart table.shop_table_responsive td.product-price,
  body.woocommerce-cart table.shop_table_responsive td.product-quantity,
  body.woocommerce-cart table.shop_table_responsive td.product-subtotal,
  body.woocommerce-cart table.shop_table.cart td.product-price,
  body.woocommerce-cart table.shop_table.cart td.product-quantity,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal,
  .woocommerce-cart table.shop_table_responsive td.product-price,
  .woocommerce-cart table.shop_table_responsive td.product-quantity,
  .woocommerce-cart table.shop_table_responsive td.product-subtotal {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(24, 22, 31, 0.04) !important;
  }
  body.woocommerce-cart table.shop_table_responsive td.product-subtotal,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal,
  .woocommerce-cart table.shop_table_responsive td.product-subtotal {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  /* Custom row labels via ::after (order: -1 moves them to the left) */
  body.woocommerce-cart table.shop_table_responsive td.product-price::after,
  body.woocommerce-cart table.shop_table.cart td.product-price::after,
  .woocommerce-cart table.shop_table_responsive td.product-price::after {
    content: "Price";
    order: -1;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(24, 22, 31, 0.4);
  }
  body.woocommerce-cart table.shop_table_responsive td.product-quantity::after,
  body.woocommerce-cart table.shop_table.cart td.product-quantity::after,
  .woocommerce-cart table.shop_table_responsive td.product-quantity::after {
    content: "Qty";
    order: -1;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(24, 22, 31, 0.4);
  }
  body.woocommerce-cart table.shop_table_responsive td.product-subtotal::after,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal::after,
  .woocommerce-cart table.shop_table_responsive td.product-subtotal::after {
    content: "Subtotal";
    order: -1;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(24, 22, 31, 0.4);
  }

  /* Coupon & actions → stacked */
  body.woocommerce-cart table.shop_table_responsive td.actions,
  body.woocommerce-cart table.shop_table.cart td.actions,
  .woocommerce-cart table.cart td.actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 0 0 0 !important;
    gap: 10px;
    border-bottom: none !important;
  }
  body.woocommerce-cart table.shop_table_responsive td.actions .coupon,
  body.woocommerce-cart table.shop_table.cart td.actions .coupon,
  .woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    width: 100% !important;
  }
  body.woocommerce-cart table.shop_table_responsive td.actions .coupon .input-text,
  body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .input-text {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
  }
  body.woocommerce-cart table.shop_table_responsive td.actions > button.button,
  body.woocommerce-cart table.shop_table.cart td.actions > button.button,
  .woocommerce-cart table.cart td.actions > button.button {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  /* Restore and format labels for Cart Totals table on mobile */
  .cart-collaterals .cart_totals table.shop_table,
  .cart-collaterals .cart_totals table.shop_table tbody,
  .cart-collaterals .cart_totals table.shop_table tr {
    display: table !important;
    width: 100% !important;
  }
  .cart-collaterals .cart_totals table.shop_table tr {
    display: table-row !important;
    border-bottom: 1px solid rgba(24, 22, 31, 0.05) !important;
  }
  .cart-collaterals .cart_totals table.shop_table tr:last-child {
    border-bottom: none !important;
  }
  .cart-collaterals .cart_totals table.shop_table th,
  .cart-collaterals .cart_totals table.shop_table td {
    display: table-cell !important;
    padding: 12px 0 !important;
    vertical-align: top;
    background: transparent !important;
    border: none !important;
  }
  .cart-collaterals .cart_totals table.shop_table th {
    text-align: left !important;
    width: 40% !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(24, 22, 31, 0.5) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .cart-collaterals .cart_totals table.shop_table td {
    text-align: right !important;
    width: 60% !important;
  }
  /* Allow shipping row to stack to give the options/form full width */
  .cart-collaterals .cart_totals table.shop_table tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cart-collaterals .cart_totals table.shop_table tr.shipping th,
  .cart-collaterals .cart_totals table.shop_table tr.shipping td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 8px 0 !important;
  }
  .cart-collaterals .cart_totals table.shop_table tr.shipping td {
    text-align: left !important;
  }

  /* Make Checkout Order Review table display as a beautiful clean table on mobile */
  #order_review table.shop_table,
  #order_review table.shop_table tbody,
  #order_review table.shop_table tfoot,
  #order_review table.shop_table tr {
    display: table !important;
    width: 100% !important;
  }
  #order_review table.shop_table tr {
    display: table-row !important;
  }
  #order_review table.shop_table th,
  #order_review table.shop_table td {
    display: table-cell !important;
    padding: 12px 8px !important;
  }
  #order_review table.shop_table td.product-total,
  #order_review table.shop_table tfoot td {
    text-align: right !important;
  }
  /* Hide the data-title attribute generated by WC on mobile */
  .cart-collaterals .cart_totals table.shop_table td::before,
  #order_review table.shop_table td::before,
  #order_review table.shop_table tfoot td::before {
    display: none !important;
    content: none !important;
  }
}


/* Cart-page cross-sell card (pillow<->candle upsell) */
.snd-cart-upsell {
  display: flex; align-items: center; gap: 20px;
  margin: 28px 0; padding: 20px;
  background: #FAF9F6; border: 1px solid rgba(24, 22, 31, 0.08); border-radius: 12px;
}
.snd-cu-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.snd-cu-info { flex: 1; min-width: 0; }
.snd-cu-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #6A5DB0; margin-bottom: 4px;
}
.snd-cu-title { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: #18161F; margin-bottom: 4px; }
.snd-cu-desc { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; color: rgba(24, 22, 31, 0.6); line-height: 1.5; }
.snd-cu-price {
  font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: #18161F;
  flex-shrink: 0; white-space: nowrap;
}
.snd-cu-add {
  flex-shrink: 0; background: #D4754E; color: #FFFFFF !important;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background 0.25s;
}
.snd-cu-add:hover { background: #BE5E38; }
@media (max-width: 640px) {
  .snd-cart-upsell { flex-wrap: wrap; }
  .snd-cu-info { flex-basis: 100%; order: 1; }
  .snd-cu-img { order: 0; }
  .snd-cu-price { order: 2; }
  .snd-cu-add { order: 3; margin-left: auto; }
}
