/* =========================================================================
   Henroo — WooCommerce overrides
   Restyles cart, checkout, my-account, page templates, search, 404 so they
   match the Henroo aesthetic instead of bare Storefront.
   ------------------------------------------------------------------------- */

/* --- Page wrappers ------------------------------------------------------- */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main,
.woocommerce-order-received .site-main,
.page .site-main,
.search-results .site-main,
.error404 .site-main,
.single-post .site-main,
.blog .site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 56px 64px;   /* match .hr-page sections (homepage, shop, category, PDP) */
}
@media (max-width: 1024px) {
  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main,
  .woocommerce-account .site-main,
  .woocommerce-order-received .site-main,
  .page .site-main,
  .search-results .site-main,
  .error404 .site-main { padding: 24px 32px 48px; }
}
@media (max-width: 720px) {
  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main,
  .woocommerce-account .site-main,
  .woocommerce-order-received .site-main,
  .page .site-main,
  .search-results .site-main,
  .error404 .site-main { padding: 24px 20px 48px; }
}

/* Storefront caps .entry-content at 760px for readability — too narrow for
   WC's two-column cart/checkout/account layouts, so widen there. */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content,
.woocommerce-order-received .entry-content {
  max-width: 100% !important;
}

/* Page heading — Caveat */
.entry-header .entry-title,
.woocommerce-MyAccount-content h2,
.page-content h1, .page-content h2 {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.01em;
}
.entry-header { margin-bottom: 32px; }
.entry-header .entry-title { font-size: 64px; line-height: 1; color: var(--ink); margin: 0; }

/* Generic body copy — page content */
.entry-content p, .page-content p, .woocommerce-MyAccount-content p,
.woocommerce-info, .woocommerce-message, .woocommerce-error,
.woocommerce-notices-wrapper p, .woocommerce-cart-form p {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
}
.entry-content a, .page-content a, .woocommerce-MyAccount-content a {
  color: var(--clay-500); text-decoration: underline;
}
.entry-content a:hover { color: var(--ink); }

.entry-content h2, .page-content h2 { font-size: 36px; margin: 32px 0 14px; line-height: 1.2; }
.entry-content h3, .page-content h3 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; margin: 24px 0 8px; color: var(--ink); }

/* --- Notices ------------------------------------------------------------- */
/* WC's base CSS positions an icon font glyph absolutely inside the notice;
   our paper-warm restyle was leaving the icon over the first character of
   the message. Restore left-padding for the icon, position the ::before
   so it lines up vertically, and override the icon glyph to a clay ✦. */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
  position: relative !important;
  background: var(--paper-warm) !important;
  color: var(--ink-soft) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-1) !important;
  border-top: 3px solid var(--clay-300) !important;
  padding: 18px 22px 18px 56px !important;
  margin-bottom: 20px !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  line-height: 1.5;
  list-style: none !important;
}
.woocommerce-error { border-top-color: var(--heart-red) !important; color: var(--heart-red) !important; }

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  /* Override WC's icon-font with a clay ✦. Position absolute inside the
     notice's reserved 56px left-padding so it never sits over the text. */
  content: '\2726' !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--clay-500) !important;
  position: absolute !important;
  top: 50% !important;
  left: 22px !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-error::before { color: var(--heart-red) !important; content: '!' !important; font-size: 24px !important; }

.woocommerce-info a, .woocommerce-message a, .woocommerce-error a {
  color: var(--clay-500) !important; text-decoration: underline;
  font-weight: 600;
}
.woocommerce-info a:hover, .woocommerce-message a:hover, .woocommerce-error a:hover { color: var(--ink) !important; }

/* Inline notice button — keep small and secondary so it doesn't compete
   with primary CTAs further down the page. */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  margin-left: 8px;
  border: 0 !important;
  text-transform: none;
}

/* Mobile layout for cart/account notices.
   Storefront's default floats the View-basket button right, which on a
   ~360px viewport leaves the message text wrapping awkwardly around it
   onto 2-3 lines and pulls the centred ✦ icon between those lines.
   Below 480px, stack the message + button as a column with the message
   text on top and the button as a full-width block below. Pin the icon
   to the top so it lines up with the first text line. */
@media (max-width: 480px) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error,
  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-info,
  .woocommerce-notices-wrapper .woocommerce-error {
    padding: 16px 18px 16px 48px !important;
    font-size: 14px !important;
  }
  .woocommerce-message::before,
  .woocommerce-info::before,
  .woocommerce-error::before {
    top: 18px !important;
    transform: none !important;
    left: 16px !important;
  }
  /* WC's three notice templates use different DOM:
       success.php  -> <div class="woocommerce-message">  (button + text node siblings)
       notice.php   -> <div class="woocommerce-info">     (button + text node siblings)
       error.php    -> <ul class="woocommerce-error"><li>... (siblings inside <li>)
     Apply flex column-reverse to whichever element is the actual flex
     container of (button | text node) — the <div> for success/info, the
     <li> for errors — so the text node (last in source order) renders
     above the floated-cancel'd button. */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error > li,
  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-info,
  .woocommerce-notices-wrapper .woocommerce-error > li {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .woocommerce-message .button,
  .woocommerce-message a.button,
  .woocommerce-info .button,
  .woocommerce-info a.button,
  .woocommerce-error .button,
  .woocommerce-error a.button {
    float: none !important;
    margin: 0 !important;
    text-align: center;
  }
}

/* --- Shop tables (cart, checkout review, order details) ----------------- */
.shop_table, table.shop_table {
  border: 0 !important;
  background: var(--paper) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-1);
}
.shop_table thead th {
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--font-sans); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 18px;
  border: 0;
}
.shop_table tbody td, .shop_table tfoot td, .shop_table tfoot th {
  border: 0;
  border-bottom: 1px solid var(--border-1) !important;
  padding: 18px;
  vertical-align: middle;
  font-family: var(--font-sans); font-size: 15px; color: var(--ink-soft);
  background: var(--paper);
}
.shop_table tfoot th {
  background: var(--paper-warm) !important;
  font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  color: var(--ink);
}
.shop_table tbody tr:last-child td, .shop_table tfoot tr:last-child td, .shop_table tfoot tr:last-child th { border-bottom: 0 !important; }

.shop_table .product-name a, .order_details .product-name a {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--ink) !important; text-decoration: none;
}
.shop_table .product-name a:hover { color: var(--clay-500) !important; }

.shop_table .product-price,
.shop_table .product-subtotal,
.shop_table td.product-total,
.shop_table .order-total bdi,
.shop_table .product-quantity .amount,
.cart_totals .amount, .order_details .amount, td.product-total .amount {
  font-family: var(--font-serif); font-weight: 700; font-size: 17px;
  color: var(--ink); font-variant-numeric: oldstyle-nums;
}

.shop_table .product-thumbnail img {
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  width: 80px; height: 80px;
  object-fit: cover;
}

.shop_table .product-remove a.remove,
.shop_table a.remove {
  color: var(--ink-muted) !important;
  background: transparent !important;
  font-size: 22px;
  width: 30px; height: 30px;
  font-weight: 400 !important;
  text-decoration: none !important;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: all 180ms;
}
.shop_table a.remove:hover {
  color: var(--heart-red) !important;
  background: rgba(194, 59, 44, 0.08) !important;
}

/* Cart qty input */
.shop_table .quantity input[type="number"] {
  font-family: var(--font-serif); font-size: 17px;
  width: 80px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  background: var(--paper-warm);
  color: var(--ink);
}
.shop_table .quantity input[type="number"]:focus {
  outline: none; border-color: var(--ink);
}

/* --- Buttons (sitewide WC) ---------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.wc-block-components-button {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 2.5px solid var(--ink) !important;
  border-radius: 12px !important;
  padding: 12px 22px !important;
  cursor: pointer !important;
  transition: all 180ms var(--ease-soft) !important;
  text-decoration: none !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
  background: var(--clay-500) !important;
  border-color: var(--clay-500) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2) !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
  background: var(--clay-500) !important;
  border-color: var(--clay-500) !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce a.button[disabled] {
  background: var(--paper-warm) !important;
  color: var(--ink-muted) !important;
  border-color: var(--border-2) !important;
  cursor: not-allowed !important;
}

/* --- "View basket" follow-up link --------------------------------------- */
/* WooCommerce/Storefront injects <a class="added_to_cart wc-forward">View
   basket</a> beside the add-to-cart button after a successful AJAX add.
   Storefront ships it as another heavy filled button, which competes with
   the primary CTA and clashes with the warm/handwritten language of the
   card. Reskin as a tilted hand-noted link, kin to .b-hero-arrow and the
   "see all 8 →" pattern, with a quiet entrance so it slips in instead of
   popping. Selectors are scoped to category + cross-sell card metas so
   nothing else on the site is touched. */
.cat-card-meta a.added_to_cart.wc-forward,
.b-card-meta a.added_to_cart.wc-forward,
.cat-cross-tile a.added_to_cart.wc-forward {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0 2px;        /* nudges left-aligned with the CTA above */
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  color: var(--clay-500) !important;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  transition: color 180ms var(--ease-soft), transform 220ms var(--ease-soft);
  animation: hp-view-basket-in 320ms var(--ease-soft) both;
  width: auto !important;
}
/* Render our own animated arrow via ::after so it can slide on hover. */
.cat-card-meta a.added_to_cart.wc-forward::after,
.b-card-meta a.added_to_cart.wc-forward::after,
.cat-cross-tile a.added_to_cart.wc-forward::after {
  content: '\2192';                 /* → */
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transition: transform 220ms var(--ease-soft);
  margin-left: -2px;
}
.cat-card-meta a.added_to_cart.wc-forward:hover,
.b-card-meta a.added_to_cart.wc-forward:hover,
.cat-cross-tile a.added_to_cart.wc-forward:hover {
  color: var(--ink) !important;
  transform: rotate(-0.5deg) translateX(2px);
}
.cat-card-meta a.added_to_cart.wc-forward:hover::after,
.b-card-meta a.added_to_cart.wc-forward:hover::after,
.cat-cross-tile a.added_to_cart.wc-forward:hover::after {
  transform: translateX(4px);
}
@keyframes hp-view-basket-in {
  from { opacity: 0; transform: rotate(-1.5deg) translateY(-3px); }
  to   { opacity: 1; transform: rotate(-1.5deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card-meta a.added_to_cart.wc-forward,
  .b-card-meta a.added_to_cart.wc-forward,
  .cat-cross-tile a.added_to_cart.wc-forward { animation: none; transform: none; }
  .cat-card-meta a.added_to_cart.wc-forward:hover,
  .b-card-meta a.added_to_cart.wc-forward:hover,
  .cat-cross-tile a.added_to_cart.wc-forward:hover { transform: none; }
}

/* --- Form fields (everywhere) ------------------------------------------- */
.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,
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="search"], input[type="url"],
input[type="number"], textarea, select {
  font-family: var(--font-sans); font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms;
  box-shadow: none;
  width: 100%;
  line-height: 1.4;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
input:focus, textarea:focus, select:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 3px rgba(196, 137, 90, 0.18) !important;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
form label {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px; display: block;
}
.woocommerce form .form-row label .required { color: var(--heart-red); }
.woocommerce form .form-row { margin-bottom: 16px; }

/* Stop Storefront's float-half-width form rows */
.woocommerce form .form-row,
.woocommerce-page form .form-row {
  float: none !important;
  width: 100% !important;
  display: block !important;
}
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
  width: calc(50% - 8px) !important;
  display: inline-block !important;
  vertical-align: top;
}
.woocommerce form .form-row-first,
.woocommerce-page form .form-row-first { margin-right: 14px; }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100% !important;
}
.woocommerce form .form-row .select2-container { width: 100% !important; }
@media (max-width: 720px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-first,
  .woocommerce-page form .form-row-last {
    width: 100% !important; display: block !important; margin-right: 0 !important;
  }
}

/* select2 (used for WC country/state dropdowns) */
.select2-container--default .select2-selection--single {
  border: 1.5px solid var(--border-2) !important;
  border-radius: 10px !important;
  height: auto !important;
  padding: 8px 12px !important;
  background: var(--paper) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink) !important; line-height: 1.6 !important; padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important; right: 8px !important;
}
.select2-dropdown {
  border: 1.5px solid var(--border-2) !important;
  border-radius: 10px !important;
  background: var(--paper) !important;
  box-shadow: var(--shadow-2) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--clay-300) !important;
  color: var(--paper) !important;
}

/* --- Cart specifics ------------------------------------------------------ */
.woocommerce .cart-collaterals .cart_totals {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border-1);
}

/* Section-level headings inside cart/checkout panels are downgraded from
   page-title weight so the actual page H1 stays dominant. */
.cart_totals h2, .woocommerce-shipping-calculator h2,
.woocommerce-checkout h3, #order_review_heading,
.woocommerce-additional-fields h3 {
  font-family: var(--font-sans) !important; font-weight: 700 !important;
  font-size: 12px !important; letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--clay-600) !important;   /* AA contrast on paper-warm */
  margin: 0 0 18px !important; padding: 0 !important;
  line-height: 1 !important;
}
/* "Your order" on checkout reads like a section eyebrow */
#order_review_heading { padding-bottom: 8px !important; border-bottom: 1px solid var(--border-1); }

/* Cart actions row: Apply coupon and Update basket are SECONDARY — Proceed
   to checkout is the primary. The previous treatment painted them all
   the same dark fill which inverted the hierarchy. */
.woocommerce-cart .cart .actions { padding: 14px !important; background: transparent !important; }
.woocommerce-cart .cart .actions .button[name="apply_coupon"],
.woocommerce-cart .cart .actions .button[name="update_cart"],
.woocommerce-cart .cart .actions input[name="update_cart"] {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border-2) !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
}
.woocommerce-cart .cart .actions .button[name="apply_coupon"]:hover,
.woocommerce-cart .cart .actions .button[name="update_cart"]:hover {
  background: var(--paper-warm) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  transform: none !important;
  box-shadow: none !important;
}
.woocommerce-cart .cart .actions .coupon { display: flex; gap: 8px; flex: 1; align-items: center; }
.woocommerce-cart .cart .actions .button[name="update_cart"] { margin-left: auto; }

/* Single-piece "qty pebble" — every Henroo product is one-of-a-kind so the
   qty cell is normally empty/locked; replace it with a clay pill. */
.woocommerce-cart .product-quantity .quantity .qty[readonly] { display: none; }
.woocommerce-cart .product-quantity::after {
  content: 'one of a kind';
  display: inline-block;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay-500);
  background: rgba(196, 137, 90, 0.12);
  padding: 6px 12px; border-radius: 999px;
}
.woocommerce-cart .product-quantity:has(.quantity:not(:empty))::after { display: none; }

/* Coupon input — flexible width inside the actions row */
.woocommerce .coupon { display: flex !important; align-items: center; gap: 8px; flex: 1; }
.woocommerce .coupon input.input-text {
  width: auto !important;
  flex: 1; min-width: 140px;
  margin: 0 !important;
}

/* Empty cart state — bigger, warmer. Hide the duplicate "Basket" H1
   so the empty-state heading is the only one. */
.woocommerce-cart:has(.wc-empty-cart-message) .entry-header,
.woocommerce-cart:has(.cart-empty) .entry-header { display: none !important; }
.woocommerce-cart .cart-empty.woocommerce-info {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; line-height: 1.1;
  text-align: center;
  padding: 96px 22px 16px 22px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
}
.woocommerce-cart .cart-empty.woocommerce-info::before { display: none !important; }
.woocommerce-cart .return-to-shop {
  text-align: center; padding-bottom: 96px;
}
.woocommerce-cart .return-to-shop .button { font-size: 16px !important; padding: 14px 26px !important; }
.cart_totals .shop_table { box-shadow: none; background: transparent !important; width: 100%; margin: 0; }
.cart_totals .shop_table th, .cart_totals .shop_table td {
  background: transparent !important;
  /* Top-align so the Shipment row's "Change address / Country" stack
     sits flush with its label rather than middle-aligned to the dropdown. */
  vertical-align: top !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border-1) !important;
}
.cart_totals .shop_table th { text-align: left !important; width: 38%; }
.cart_totals .shop_table td { text-align: right !important; }
.cart_totals .shop_table tr:last-child th,
.cart_totals .shop_table tr:last-child td { border-bottom: 0 !important; padding-bottom: 0 !important; }
/* Order-total row: bigger, weighted, sits as the headline figure. */
.cart_totals .shop_table .order-total th,
.cart_totals .shop_table .order-total td {
  font-size: 14px !important;
  border-top: 1px solid var(--border-2) !important;
  padding-top: 18px !important;
}
.cart_totals .shop_table .order-total td bdi,
.cart_totals .shop_table .order-total td .amount { font-size: 22px !important; font-weight: 700 !important; }
/* Shipment-row destination text + change-address dropdown sit below the
   price as a stacked block, not crammed inline next to "Flat rate: £…". */
.cart_totals .woocommerce-shipping-destination { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.cart_totals .shipping-calculator-button { display: inline-block; margin-top: 6px; }
.wc-proceed-to-checkout { padding: 16px 0 0; }
.wc-proceed-to-checkout .checkout-button {
  width: 100%;
  text-align: center;
  font-size: 16px !important;
  padding: 16px 22px !important;
  background: var(--clay-500) !important;
  border-color: var(--clay-500) !important;
}
.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--clay-400) !important;
  border-color: var(--clay-400) !important;
}

/* No cross-sells on a one-of-a-kind shop, so the default 2-col grid
   leaves the whole left column empty and the totals box hangs as a
   narrow strip mid-page. Right-align the totals to a sensible
   max-width when it's the only collateral, and only kick into the
   2-col grid if cross-sells are present. */
.woocommerce .cart-collaterals { display: block; }
.woocommerce .cart-collaterals:has(.cross-sells) {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: flex-start;
}
.woocommerce .cart-collaterals .cart_totals { width: 100%; max-width: 480px; margin-left: auto; }
@media (max-width: 860px) {
  .woocommerce .cart-collaterals:has(.cross-sells) { grid-template-columns: 1fr; }
  .woocommerce .cart-collaterals .cart_totals { max-width: none; margin-left: 0; }
}

/* --- Cart page responsive layout (<= 600px) ----------------------------- *
 * The default WC cart table renders as 6 columns side-by-side which busts
 * out of small viewports. Collapse each <tr> into a card-style grid using
 * the data-title="Product|Price|Quantity|Subtotal" attributes WC already
 * stamps on each <td>. Thumbnail anchors the card on the left, name + price
 * + qty + subtotal stack on the right, remove (×) sits top-right. */
@media (max-width: 600px) {
  .woocommerce-cart .shop_table.cart,
  .woocommerce-cart .shop_table.cart tbody { display: block !important; width: 100%; }
  .woocommerce-cart .shop_table.cart thead { display: none; }

  /* Each cart row reduces to a card with three things that matter:
       - the piece itself (88x88 thumbnail anchoring the left)
       - what it is (Caveat display name, large)
       - what it costs (Fraunces price, single number)
     Quantity is always 1 on a one-of-a-kind shop and per-line subtotal
     duplicates the basket-totals card below — both cells are hidden.
     The data-title "Product:" / "Price:" labels are dropped. */
  .woocommerce-cart .shop_table.cart tbody tr.cart_item {
    position: relative;
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "thumb name"
      "thumb price";
    column-gap: 8px;
    row-gap: 4px;
    padding: 16px 14px !important;
    border-bottom: 1px solid var(--border-1) !important;
    background: var(--paper) !important;
  }
  .woocommerce-cart .shop_table.cart tbody td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  /* Hide qty stepper + per-line subtotal entirely. The qty <input> stays
     in DOM — display:none doesn't unmount — so update-basket still posts
     quantity=1 correctly. */
  .woocommerce-cart .shop_table.cart td.product-quantity,
  .woocommerce-cart .shop_table.cart td.product-subtotal {
    display: none !important;
  }
  /* Thumbnail: square photo, soft rounded corners + 1-step shadow.
     Centred vertically against the type stack on the right. */
  .woocommerce-cart .shop_table.cart td.product-thumbnail {
    grid-area: thumb;
    align-self: center;
  }
  .woocommerce-cart .shop_table.cart td.product-thumbnail img,
  .woocommerce-cart .shop_table.cart td.product-thumbnail a img {
    /* `max-width: none !important` overrides Storefront's
       `table.cart .product-thumbnail img { max-width: 3.7em }` which
       was clamping our 88px square down to ~55px wide. */
    width: 88px !important; height: 88px !important;
    max-width: none !important;
    object-fit: cover; border-radius: 12px; display: block;
    box-shadow: var(--shadow-1);
  }
  /* Name: Caveat display script, the personality of the row. align-self:end
     so it meets the price line below with a small gap, optically centring
     the type stack against the 88px thumbnail. Right-padding clears the
     absolute × icon so longer titles don't slide under it. */
  .woocommerce-cart .shop_table.cart td.product-name {
    grid-area: name;
    align-self: end;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    padding-right: 36px !important;
  }
  .woocommerce-cart .shop_table.cart td.product-name a {
    text-decoration: none;
    color: var(--ink) !important;
  }
  /* Price: the only figure per row, set in serif with old-style numerals
     so it reads like a price tag tied to the piece. */
  .woocommerce-cart .shop_table.cart td.product-price {
    grid-area: price;
    align-self: start;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: oldstyle-nums;
  }
  /* Suppress Storefront's responsive-cart pseudo-labels — they would
     otherwise render "Product: " / "Price: " / "Subtotal: " before each
     value via `::before { content: attr(data-title) }`. */
  .woocommerce-cart .shop_table.cart td.product-name::before,
  .woocommerce-cart .shop_table.cart td.product-price::before,
  .woocommerce-cart .shop_table.cart td.product-subtotal::before,
  .woocommerce-cart .shop_table.cart td.product-quantity::before {
    content: none !important;
    display: none !important;
  }
  .woocommerce-cart .shop_table.cart td.product-price .amount,
  .woocommerce-cart .shop_table.cart td.product-price bdi {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    font-family: inherit;
  }
  .woocommerce-cart .shop_table.cart td.product-remove {
    /* Lifted out of the grid into the card's top-right corner so it
       doesn't reserve a column from the product-name area. */
    position: absolute;
    top: 10px;
    right: 14px;
    width: 30px !important;
    line-height: 1;
    /* Override default `display: table-cell` — table cells absolute-position
       awkwardly (the visible icon ended up overshooting the card edge). */
    display: block !important;
    text-align: right;
  }
  .woocommerce-cart .shop_table.cart td.product-remove a.remove {
    margin: 0;
    display: inline-block;
  }

  /* Actions row: stack coupon + update basket vertically with full-width
     fields/buttons. Default tries to flow input + 2 buttons on one line. */
  .woocommerce-cart .shop_table.cart tr:has(.actions) { display: block !important; padding: 0 !important; }
  .woocommerce-cart .shop_table.cart td.actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 14px !important;
  }
  .woocommerce-cart .shop_table.cart td.actions .coupon {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .woocommerce-cart .shop_table.cart td.actions .coupon label { display: none; }
  .woocommerce-cart .shop_table.cart td.actions .coupon input.input-text {
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0;
  }
  .woocommerce-cart .shop_table.cart td.actions .coupon .button[name="apply_coupon"],
  .woocommerce-cart .shop_table.cart td.actions .button[name="update_cart"],
  .woocommerce-cart .shop_table.cart td.actions input[name="update_cart"] {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* --- Checkout specifics ------------------------------------------------- */
/* Storefront's default lays out the checkout with floats — #customer_details
   on the left, #order_review float:right with a 243-ish-px width that ignores
   the actual page width. Replace with a proper grid: details on the left,
   order summary stacked above the review on the right. minmax(0, …) keeps
   long input values from blowing the column out. */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 0;
  align-items: start;
}
.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1; grid-row: 1 / span 2;
  float: none !important; width: auto !important;
}
.woocommerce-checkout form.checkout #order_review_heading {
  grid-column: 2; grid-row: 1;
  float: none !important; width: auto !important;
}
.woocommerce-checkout form.checkout #order_review {
  grid-column: 2; grid-row: 2;
  float: none !important; width: auto !important;
}
@media (max-width: 860px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 1; grid-row: auto;
  }
}

.woocommerce-checkout #customer_details {
  background: var(--paper);
  padding: 0;
  margin-bottom: 0;
}
.woocommerce-checkout-review-order {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-1);
  position: sticky; top: calc(var(--site-header-h) + 16px);
}
.woocommerce-checkout-review-order .shop_table { box-shadow: none; background: transparent !important; width: 100%; margin: 0; }
.woocommerce-checkout-review-order .shop_table th,
.woocommerce-checkout-review-order .shop_table td {
  background: transparent !important;
  vertical-align: top !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border-1) !important;
}
/* Hide thead — Product / Total row is redundant in a tight summary card. */
.woocommerce-checkout-review-order .shop_table thead { display: none; }
/* Product row: name on the left, line subtotal right-aligned. */
.woocommerce-checkout-review-order .shop_table tbody td {
  text-align: left !important;
}
.woocommerce-checkout-review-order .shop_table tbody td.product-total,
.woocommerce-checkout-review-order .shop_table tbody td:last-child {
  text-align: right !important;
  white-space: nowrap;
}
/* Tfoot rows (Subtotal / Shipment / Total): label left, value right. */
.woocommerce-checkout-review-order .shop_table tfoot th { text-align: left !important; width: 38%; }
.woocommerce-checkout-review-order .shop_table tfoot td { text-align: right !important; }
.woocommerce-checkout-review-order .shop_table tr:last-child th,
.woocommerce-checkout-review-order .shop_table tr:last-child td { border-bottom: 0 !important; padding-bottom: 0 !important; }
/* Order-total row: separator and a beefier figure. */
.woocommerce-checkout-review-order .shop_table .order-total th,
.woocommerce-checkout-review-order .shop_table .order-total td {
  font-size: 14px !important;
  border-top: 1px solid var(--border-2) !important;
  padding-top: 18px !important;
}
.woocommerce-checkout-review-order .shop_table .order-total td bdi,
.woocommerce-checkout-review-order .shop_table .order-total td .amount { font-size: 22px !important; font-weight: 700 !important; }
.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  border: 1px solid var(--border-1);
  list-style: none;
  margin-bottom: 18px;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-1);
}
.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods label {
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  color: var(--ink); letter-spacing: 0;
}
.woocommerce-checkout #payment div.payment_box {
  background: var(--paper-warm);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 10px;
}
.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--paper-warm) !important;
}
/* Wrap the final CTA in its own card so the moment-of-purchase has gravity */
.woocommerce-checkout .form-row.place-order {
  background: var(--paper);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-1);
  margin-top: 18px;
}
.woocommerce-checkout #place_order {
  width: 100%;
  font-size: 16px !important;
  padding: 18px !important;
  background: var(--clay-500) !important;
  border-color: var(--clay-500) !important;
}
.woocommerce-checkout #place_order:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}

/* Terms-and-conditions disclosure — readable card, not raw fall-through */
.woocommerce-terms-and-conditions {
  background: var(--paper);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
  max-height: 240px; overflow: auto;
  margin-top: 12px;
}

/* Two-column checkout */
.woocommerce-checkout form.checkout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: flex-start;
}
.woocommerce-checkout form.checkout > #order_review_heading,
.woocommerce-checkout form.checkout > #order_review {
  grid-column: 2;
}
.woocommerce-checkout form.checkout > #customer_details {
  grid-column: 1; grid-row: 1 / span 2;
}
.woocommerce-checkout form.checkout #order_review_heading {
  margin-bottom: 14px;
}

/* Storefront's col2-set / col-1 / col-2 floats: undo so they stack
   vertically inside the left grid column (with full width for fields).
   #customer_details IS the .col2-set in WC's markup, so we need to
   target the id itself, not just descendants. */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout .col2-set {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout #customer_details .col-2 {
  margin-top: 32px !important;
}
@media (max-width: 860px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }
  .woocommerce-checkout form.checkout > #customer_details,
  .woocommerce-checkout form.checkout > #order_review_heading,
  .woocommerce-checkout form.checkout > #order_review {
    grid-column: 1;
  }
  .woocommerce-checkout-review-order { position: static; }
}

/* --- My Account ---------------------------------------------------------- */
.woocommerce-account .entry-content > .woocommerce {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  align-items: flex-start;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation { min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
@media (max-width: 720px) {
  .woocommerce-account .entry-content > .woocommerce { grid-template-columns: 1fr; }
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  /* Storefront's base sets `padding: 0 0 0 24px` on every <ul> — kill it
     so the active row's ink fill spans edge-to-edge inside the rounded
     card (otherwise paper-warm shows on the left of the selected item). */
  padding: 0 !important; margin: 0 !important;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
  overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--border-1);
}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
/* Storefront-Powerpack stamps `padding: 12px 0` and `float: right` on
   the link/icon — bump specificity + !important to win without
   rewriting their rules. */
body.woocommerce-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account .woocommerce-MyAccount-navigation li > a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 22px 14px 18px !important;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--ink-soft); text-decoration: none;
  border-left: 4px solid transparent;   /* reserve space so text doesn't shift on active */
  transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft), border-color 180ms var(--ease-soft);
}

/* Replace Storefront-Powerpack's Font Awesome ::before icons (which were
   barely visible at low opacity, and disappeared entirely against the
   ink active state) with our own inline-SVG mask-image icons. They sit
   on the left of the label, change colour with the link's `currentColor`,
   so they're always legible regardless of state. */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  content: '' !important;
  font-family: inherit !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  /* Override Powerpack's `float: right` so the icon sits with the
     flex flow (left of the label), not flush against the right edge. */
  float: none !important;
  position: static !important;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  /* default fallback — a small dot, replaced per-slug below */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/></svg>");
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
  opacity: 0.85;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::after { display: none !important; }

/* Per-slug icon — feather-style 24×24 strokes converted to mask-image URLs. */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 0 1 18 0'/><path d='M12 12l4-3'/><circle cx='12' cy='12' r='1.5' fill='black'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 0 1 18 0'/><path d='M12 12l4-3'/><circle cx='12' cy='12' r='1.5' fill='black'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--orders a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/><path d='M3 6h18'/><path d='M16 10a4 4 0 0 1-8 0'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/><path d='M3 6h18'/><path d='M16 10a4 4 0 0 1-8 0'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--downloads a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--edit-address a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9 12 2l9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><polyline points='9 22 9 12 15 12 15 22'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9 12 2l9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><polyline points='9 22 9 12 15 12 15 22'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--payment-methods a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><line x1='2' y1='10' x2='22' y2='10'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><line x1='2' y1='10' x2='22' y2='10'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--edit-account a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>") !important;
}
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>") !important;
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>") !important;
}

/* Active state: ink fill + clay border-left (inset shadow leaked past
   the parent <ul>'s rounded corners; a real border is clipped properly).
   Icon inherits currentColor so flips to paper automatically. */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--ink); color: var(--paper);
  border-left-color: var(--clay-300);
  padding-left: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before { opacity: 1; }

/* Hover previews the active treatment with a lighter clay accent. */
.woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a:focus-visible {
  background: var(--paper); color: var(--ink); outline: none;
  border-left-color: var(--clay-100);
  padding-left: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover::before {
  opacity: 1;
  color: var(--clay-500);
}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1; color: var(--ink);
  margin: 0 0 18px;
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

/* Login / register columns */
.u-columns.col2-set {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 720px) { .u-columns.col2-set { grid-template-columns: 1fr; } }
.u-columns.col2-set .u-column1, .u-columns.col2-set .u-column2 {
  background: var(--paper-warm);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
}
.u-columns.col2-set h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  margin: 0 0 14px; line-height: 1;
}

/* Standalone login form (when registration is disabled) — wrap in a card */
.woocommerce-account form.login {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper-warm);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
}

/* --- Addresses page (My Account → Addresses) ---------------------------- */
/* Storefront's .u-columns.col2-set.addresses uses float-based half-widths
   that don't honor the .u-columns grid override above (more specific
   selector loses to .col2-set + .addresses). Force grid + reset floats. */
.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .u-columns.col2-set.addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  margin: 24px 0 0 !important;
}
.woocommerce-account .woocommerce-Address,
.woocommerce-account .u-columns.col2-set.addresses > .u-column1,
.woocommerce-account .u-columns.col2-set.addresses > .u-column2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 28px 32px !important;
  background: var(--paper-warm);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) {
  .woocommerce-account .woocommerce-Addresses,
  .woocommerce-account .u-columns.col2-set.addresses {
    grid-template-columns: 1fr !important;
  }
}

/* Card title row: heading on the left, "Edit" pill on the right */
.woocommerce-account .woocommerce-Address-title.title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border-1);
}
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}
.woocommerce-account .woocommerce-Address-title a.edit {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  flex-shrink: 0;
  /* Powerpack hides this text via text-indent:-9999px and overflow:hidden
     to leave only the FA pencil. We want the actual "Edit" label. */
  text-indent: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
}
.woocommerce-account .woocommerce-Address-title a.edit:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
/* Strip any Powerpack ::before glyph on the edit link */
.woocommerce-account .woocommerce-Address-title a.edit::before {
  display: none !important;
  content: none !important;
}

/* Address body */
.woocommerce-account .woocommerce-Address address {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: normal;
  margin: 0;
}

/* Edit-address form (singular — billing OR shipping screen) */
.woocommerce-address-fields {
  background: var(--paper-warm);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.woocommerce-address-fields h3 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 1 !important;
  margin: 0 0 18px !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
.woocommerce-account form.login p.lost_password {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-1);
  font-size: 13px;
}

/* Checkbox / radio labels — scope back to inline so "Remember me" doesn't
   render as a section heading. Form-row labels keep the small-caps look. */
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
}

/* "(optional)" suffix de-emphasised on form labels */
.woocommerce form .form-row label .optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Validation error state */
.woocommerce-invalid input.input-text,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
  border-color: var(--heart-red) !important;
  box-shadow: 0 0 0 3px rgba(194,59,44,0.15) !important;
}

/* --- Order received / thankyou ------------------------------------------- */
.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: var(--font-display); font-weight: 700;
  font-size: 48px; line-height: 1.1;
  color: var(--ink);
  margin: 0 0 22px;
}
.woocommerce-order ul.order_details {
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  border: 1px solid var(--border-1);
  margin-bottom: 32px;
}
@media (max-width: 720px) { .woocommerce-order ul.order_details { grid-template-columns: 1fr; } }
.woocommerce-order ul.order_details li {
  font-family: var(--font-sans); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clay-500);
  border-right: 0;
  padding-right: 0;
}
.woocommerce-order ul.order_details li strong {
  display: block;
  font-family: var(--font-serif); font-weight: 600; font-size: 18px;
  text-transform: none; letter-spacing: 0;
  color: var(--ink); margin-top: 4px;
}
.woocommerce-order h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  margin: 32px 0 16px; line-height: 1;
}

/* --- 404 (hp-404) -------------------------------------------------------- */
.hp-404 { padding: 32px 40px 96px; max-width: 1400px; margin: 0 auto; }
.hp-404-hero { text-align: center; padding: 32px 0 56px; }
.hp-404-hero .hp-eyebrow { color: var(--clay-500); margin-bottom: 14px; display: inline-block; }
.hp-404-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 72px; line-height: 1.05; color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 760px; margin: 0 auto 14px;
}
.hp-404-hero .hp-eyebrow {
  font-size: 14px; letter-spacing: 0.14em;
}
.hp-404-hero .hp-lead {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; line-height: 1.5; color: var(--ink-soft);
  max-width: 520px; margin: 0 auto 28px;
}
.hp-404-search {
  display: flex; gap: 10px;
  max-width: 520px; margin: 0 auto;
}
.hp-404-search input[type="search"] {
  flex: 1; font: inherit; font-family: var(--font-sans); font-size: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-2); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  outline: none;
  min-width: 0;
}
.hp-404-search input[type="search"]:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(196,137,90,0.18); }
.hp-404-search button {
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--paper);
  padding: 14px 24px;
  border: 0; border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 180ms;
}
.hp-404-search button:hover { background: var(--clay-500); }

/* Inside the .hp-404 wrapper we already have horizontal padding from
   .site-main / .hp-404; nested .b-pieces and .b-portals have their own
   56px padding which would double-pad. Reset their horizontal padding. */
.hp-404 .b-pieces, .hp-404 .b-portals {
  padding-left: 0 !important; padding-right: 0 !important;
}
.hp-404-new { padding: 0 0 64px; }
.hp-404-portals { padding: 32px 0 0; }
.hp-404-portals-grid {
  /* Match design language of homepage portal grid but with smaller, simpler tiles */
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: 220px !important;
}
@media (max-width: 720px) {
  .hp-404 { padding: 24px 20px 64px; }
  .hp-404-hero h1 { font-size: 56px; }
  .hp-404-hero .hp-lead { font-size: 18px; }
  .hp-404-search { flex-direction: column; }
  .hp-404-search button { width: 100%; }
  .hp-404-portals-grid { grid-template-columns: 1fr !important; grid-template-rows: 180px !important; }
}

/* Storefront's bare 404 fallback (in case 404.php somehow doesn't load) */
.error404:not(.hp-404) .site-main { text-align: center; padding-top: 64px; padding-bottom: 96px; }
.error404 .page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 88px; line-height: 1; color: var(--ink);
}

/* --- Search results ------------------------------------------------------ */
.search-results .page-header h1,
.search .page-title,
.woocommerce-products-header__title,
.woocommerce-products-header .woocommerce-products-header__title {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: 64px !important; line-height: 1.05 !important; color: var(--ink) !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 16px !important;
  text-align: left !important;
}
@media (max-width: 720px) {
  .woocommerce-products-header__title,
  .search-results .page-header h1,
  .search .page-title { font-size: 48px !important; }
}
.woocommerce-products-header { margin: 0 0 8px !important; padding: 0 !important; }

/* Storefront emits .storefront-sorting twice (above + below the products
   list). Above we want a clean toolbar; below we only want pagination
   (the bottom "Showing X results / Relevance" duplicate is noise).
   The wrapper has 3 flex children: an empty `.woocommerce-notices-wrapper`,
   the ordering form, and the result-count <p>. With justify-content
   space-between this pushes the ordering form to the middle. Hide the
   empty notices-wrapper so it reduces to a clean two-child left/right. */
.woocommerce-shop .storefront-sorting,
.post-type-archive-product .storefront-sorting,
.search-results.woocommerce .storefront-sorting,
.tax-product_cat .storefront-sorting {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  background: var(--paper);
  padding: 14px 0 !important;
  margin: 0 0 24px !important;
  border-bottom: 1px solid var(--border-1);
}
.storefront-sorting > .woocommerce-notices-wrapper:empty { display: none; }
.storefront-sorting .woocommerce-ordering { margin-right: auto; }
.storefront-sorting .woocommerce-result-count { margin-left: auto; }
.woocommerce-shop .storefront-sorting + .storefront-sorting,
.post-type-archive-product ul.products + .storefront-sorting,
.search-results.woocommerce ul.products + .storefront-sorting {
  /* Bottom toolbar — drop the duplicate ordering form, keep only result count + pagination */
  border-top: 1px solid var(--border-1); border-bottom: 0;
  margin: 32px 0 0 !important;
}
.post-type-archive-product ul.products + .storefront-sorting .woocommerce-ordering,
.search-results.woocommerce ul.products + .storefront-sorting .woocommerce-ordering {
  display: none;
}

/* Result-count + ordering form styling */
.woocommerce-result-count {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  color: var(--ink-muted); margin: 0 !important;
}
.woocommerce-ordering select.orderby {
  font: inherit; font-family: var(--font-sans); font-size: 14px;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1714' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") right 12px center / 12px no-repeat;
  appearance: none; cursor: pointer; color: var(--ink);
}
.search-results article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-1);
}
.search-results article .entry-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px; margin: 0 0 8px;
}
.search-results article .entry-title a { color: var(--ink); text-decoration: none; }
.search-results article .entry-title a:hover { color: var(--clay-500); }

/* Style WC's default product loop (search results, post-type-archive) to
   look like .cat-grid / .cat-card so users get the same product-card
   experience everywhere they see results. */
body.post-type-archive-product ul.products,
body.search-results.woocommerce ul.products,
body.search.woocommerce ul.products {
  list-style: none !important;
  padding: 0 !important; margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

/* Storefront emits a `::before { content: ""; display: table; }` clearfix
   on `ul.products` which becomes a grid item, eating the first cell. Kill
   it so cards start at col 1. */
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.search-results.woocommerce ul.products::before,
body.search-results.woocommerce ul.products::after { display: none !important; }
body.post-type-archive-product ul.products li.product,
body.search-results.woocommerce ul.products li.product,
body.search.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
/* Storefront's `.first` / `.last` floats are still in the markup —
   neutralise them so they don't fight the grid. */
body.post-type-archive-product ul.products li.product.first,
body.post-type-archive-product ul.products li.product.last,
body.search-results.woocommerce ul.products li.product.first,
body.search-results.woocommerce ul.products li.product.last {
  clear: none !important; margin-right: 0 !important;
}
body.post-type-archive-product ul.products li.product a img,
body.search-results.woocommerce ul.products li.product a img {
  border-radius: 18px !important;
  box-shadow: 0 4px 14px rgba(60,40,20,0.10);
  margin-bottom: 14px !important;
  aspect-ratio: 1; object-fit: cover;
  width: 100%;
}
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.search-results.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: 26px !important; line-height: 1 !important;
  color: var(--ink) !important;
  padding: 0 !important; margin: 6px 4px 4px !important;
}
body.post-type-archive-product ul.products li.product .price,
body.search-results.woocommerce ul.products li.product .price {
  font-family: var(--font-serif) !important; font-weight: 600 !important;
  font-size: 17px !important; color: var(--ink) !important;
  font-variant-numeric: oldstyle-nums;
  padding: 0 4px;
  display: block;
}
body.post-type-archive-product ul.products li.product .button,
body.search-results.woocommerce ul.products li.product .button {
  margin-top: 10px !important;
  display: inline-block !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  background: var(--paper-warm) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 10px !important;
}
body.post-type-archive-product ul.products li.product .button:hover,
body.search-results.woocommerce ul.products li.product .button:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Sold-out cards: the henroo-customisations plugin already replaces the
   price with a styled "SOLD" label, so the duplicate "Sold" button is
   redundant. Hide it and let the price span speak for itself. */
body.post-type-archive-product ul.products li.product:not(.instock) .button,
body.search-results.woocommerce ul.products li.product:not(.instock) .button {
  display: none !important;
}
body.post-type-archive-product ul.products li.product:not(.instock),
body.search-results.woocommerce ul.products li.product:not(.instock) { opacity: 0.65; }
body.post-type-archive-product ul.products li.product .sold-label,
body.search-results.woocommerce ul.products li.product .sold-label {
  display: inline-block;
  background: var(--ink-muted) !important;
  color: var(--paper) !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  body.post-type-archive-product ul.products,
  body.search-results.woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  body.post-type-archive-product ul.products,
  body.search-results.woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Generic page (privacy, shipping, etc) ------------------------------ */
.page .entry-content {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.7;
}
/* Storefront stacks ~180px of bottom space below the article (.hentry
   margin-bottom 72px + .site-main padding-bottom 64px + .content-area
   margin-bottom 44px). Our footer has its own 56px top padding, so
   collapse those Storefront defaults to a single ~24px breath. */
body.page .hentry { margin-bottom: 0; }
body.page .site-main { padding-bottom: 24px; }
body.page .content-area { margin-bottom: 0; }
.page .entry-content h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  margin: 32px 0 12px; color: var(--ink);
}
.page .entry-content blockquote {
  border-left: 3px solid var(--clay-300);
  padding-left: 22px;
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft); margin: 24px 0;
}
.page .entry-content ul, .page .entry-content ol {
  padding-left: 24px;
}

/* --- Coupon row on cart -------------------------------------------------- */
.woocommerce .coupon {
  display: flex !important; align-items: center; gap: 8px;
}
.woocommerce .coupon input.input-text {
  width: 240px !important;
  margin: 0 !important;
}

/* Storefront's footer-bar that we hid earlier — stay hidden */
.storefront-handheld-footer-bar { display: none !important; }

/* Dim Storefront's stray h1 page title we sometimes don't want */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header {
  text-align: left;
  padding-bottom: 0;
}
body.woocommerce-cart .entry-header .entry-title,
body.woocommerce-checkout .entry-header .entry-title,
body.woocommerce-account .entry-header .entry-title {
  font-size: 56px;
  margin-bottom: 24px;
}

/* Mobile responsiveness for tables */
@media (max-width: 720px) {
  .woocommerce-cart .shop_table thead { display: none; }
  .woocommerce-cart .shop_table tbody td { display: block; padding: 8px 18px; border-bottom: 0 !important; }
  .woocommerce-cart .shop_table tbody td.product-thumbnail { padding-top: 18px; }
  .woocommerce-cart .shop_table tbody td.product-remove { padding-bottom: 18px; }
  .woocommerce-cart .shop_table tbody tr {
    display: block;
    border-bottom: 1px solid var(--border-1);
    padding: 8px 0;
  }
  .woocommerce-cart .shop_table tbody td::before {
    content: attr(data-title);
    display: inline-block;
    font-family: var(--font-sans); font-weight: 700;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--clay-500); min-width: 110px;
  }
  .entry-header .entry-title,
  body.woocommerce-cart .entry-header .entry-title,
  body.woocommerce-checkout .entry-header .entry-title,
  body.woocommerce-account .entry-header .entry-title {
    font-size: 48px;
  }
  .woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-account .site-main, .page .site-main { padding: 24px 20px 48px; }
  .woocommerce-order ul.order_details { grid-template-columns: 1fr; }
}
