/* ---------------------------------------------------------------
   WooCommerce surfaces (shop, product, cart, checkout) restyled to
   match the demo. Woo's own stylesheets are dequeued in functions.php,
   so everything a Woo template renders is defined here.
   --------------------------------------------------------------- */

.shopwrap { padding: 96px 0 88px; }
.shopwrap .sec-head { margin-bottom: 34px; }
.shopwrap.single { padding-top: 112px; }

/* --- notices --- */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua);
  border-radius: var(--r);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: .92rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.woocommerce-notices-wrapper .woocommerce-error { border-left-color: #B4402F; }
.woocommerce-notices-wrapper a.button {
  margin-left: auto;
  background: var(--ink);
  color: var(--bone);
  border-radius: 100px;
  padding: .5rem 1.1rem;
  font-size: .8rem;
  font-weight: 600;
}

/* --- archive grid: reuse the demo product card grid --- */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
ul.products li.product { margin: 0; }

.woocommerce-result-count { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.woocommerce-ordering { margin-bottom: 24px; }
.woocommerce-ordering select {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  padding: .5rem 1rem;
  font-family: inherit;
  font-size: .84rem;
  color: var(--ink);
}

/* --- pagination --- */
.woocommerce-pagination ul {
  list-style: none; display: flex; gap: 8px; padding: 0; margin: 40px 0 0; justify-content: center;
}
.woocommerce-pagination a, .woocommerce-pagination span {
  display: grid; place-items: center; min-width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 100px; font-size: .86rem;
}
.woocommerce-pagination .current { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* --- single product --- */
.single-product div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 940px) { .single-product div.product { grid-template-columns: 1fr; gap: 32px; } }

.single-product .woocommerce-product-gallery {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  padding: 26px;
}
.single-product .woocommerce-product-gallery img { border-radius: 8px; }
.single-product .woocommerce-product-gallery__wrapper { display: grid; gap: 12px; }

.single-product .product_title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.04;
  margin-bottom: .3em;
}
.single-product .woocommerce-product-details__short-description { color: var(--muted); max-width: 52ch; margin-bottom: 1.4rem; }
.single-product div.product p.price {
  font-family: var(--f-impact);
  font-size: 2.1rem;
  letter-spacing: .01em;
  margin: 0 0 .1em;
  display: block;
}
.single-product .cicil-single { display: block; font-family: var(--f-ui); font-size: .78rem; color: var(--muted); margin-bottom: 1.6rem; }
.single-product .stock { font-size: .84rem; color: var(--aqua); margin-bottom: 1rem; }
.single-product .stock.out-of-stock { color: #B4402F; }

.single-product form.cart { display: flex; gap: 12px; align-items: stretch; margin: 0 0 1.6rem; flex-wrap: wrap; }
.single-product form.cart .quantity { display: flex; }
.single-product form.cart .quantity input {
  width: 88px; text-align: center;
  border: 1px solid var(--line); border-radius: 100px;
  background: transparent; font-family: inherit; font-size: 1rem; padding: .8rem .6rem; color: var(--ink);
}
.single-product .product_meta { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 5px; }
.single-product .product_meta a { text-decoration: underline; text-underline-offset: 3px; }

/* tabs */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 34px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs a { font-size: .84rem; font-weight: 600; color: var(--muted); padding-bottom: 6px; display: inline-block; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--aqua); }
.woocommerce-tabs .panel h2 { font-size: 1.4rem; margin-bottom: .6em; }
.woocommerce-tabs table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.woocommerce-tabs th, .woocommerce-tabs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* related */
.related.products, .up-sells { grid-column: 1 / -1; margin-top: 64px; }
.related.products > h2, .up-sells > h2 { font-size: 1.7rem; margin-bottom: 22px; }

/* --- buttons (shared) --- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink); border-radius: 100px;
  padding: .85rem 1.6rem; font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: .2s; line-height: 1;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--aqua); border-color: var(--aqua); color: #fff;
}
.woocommerce button.button:disabled, .woocommerce a.button.disabled { opacity: .45; cursor: not-allowed; }
.woocommerce .button.wc-backward { background: transparent; color: var(--ink); }

/* --- cart --- */
.woocommerce-cart-form table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.woocommerce-cart-form table.shop_table th {
  text-align: left; font-family: var(--f-impact); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
  padding: 0 12px 12px 0; border-bottom: 1px solid var(--line);
}
.woocommerce-cart-form table.shop_table td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce-cart-form .product-thumbnail img { width: 72px; border-radius: 8px; background: var(--sand); }
.woocommerce-cart-form .product-name a { font-weight: 600; }
.woocommerce-cart-form .product-remove a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1;
}
.woocommerce-cart-form .product-remove a:hover { background: #B4402F; color: #fff; border-color: #B4402F; }
.woocommerce-cart-form .quantity input {
  width: 74px; text-align: center; border: 1px solid var(--line); border-radius: 100px;
  padding: .55rem; background: transparent; font-family: inherit; color: var(--ink);
}
.woocommerce-cart-form .coupon { display: flex; gap: 10px; flex-wrap: wrap; }
.woocommerce-cart-form .coupon input[type="text"] {
  border: 1px solid var(--line); border-radius: 100px; padding: .8rem 1.2rem;
  background: transparent; font-family: inherit; min-width: 200px; color: var(--ink);
}

.cart-collaterals { display: grid; grid-template-columns: 1fr; max-width: 460px; margin-left: auto; }
.cart_totals { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.cart_totals h2 { font-size: 1.3rem; margin-bottom: 16px; }
.cart_totals table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cart_totals th, .cart_totals td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.cart_totals tr:last-child th, .cart_totals tr:last-child td { border-bottom: 0; font-size: 1.15rem; font-weight: 600; }
.cart_totals .checkout-button { width: 100%; margin-top: 18px; }

/* --- checkout --- */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 940px) { .woocommerce-checkout .col2-set { grid-template-columns: 1fr; } }
#customer_details h3, #order_review_heading { font-size: 1.35rem; margin: 0 0 18px; }
.woocommerce-checkout .form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.woocommerce-checkout label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.woocommerce-checkout .required { color: #B4402F; }
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
  border: 1px solid var(--line); border-radius: 10px; padding: .82rem 1rem;
  background: #fff; font-family: inherit; font-size: .95rem; width: 100%; color: var(--ink);
}
.woocommerce-checkout textarea { min-height: 96px; }
#order_review { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
#order_review table.shop_table { width: 100%; border-collapse: collapse; font-size: .93rem; }
#order_review th, #order_review td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
#order_review tfoot tr:last-child th, #order_review tfoot tr:last-child td { font-size: 1.12rem; font-weight: 600; border-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods li {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff;
}
.woocommerce-checkout #payment ul.payment_methods label { font-weight: 600; cursor: pointer; }
.woocommerce-checkout #payment .payment_box { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.woocommerce-checkout #place_order { width: 100%; margin-top: 8px; font-size: 1rem; padding: 1.05rem 1.6rem; }
.woocommerce-privacy-policy-text { font-size: .8rem; color: var(--muted); margin: 14px 0; }

/* order received */
.woocommerce-order { display: grid; gap: 26px; }
.woocommerce-order-overview {
  list-style: none; padding: 22px; margin: 0; display: flex; flex-wrap: wrap; gap: 26px;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r);
}
.woocommerce-order-overview strong { display: block; font-size: 1.05rem; }

/* account */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.woocommerce-MyAccount-navigation a { font-size: .86rem; font-weight: 600; color: var(--muted); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--aqua); }

/* the demo's .add button used as Woo add-to-cart link */
a.add.add_to_cart_button { text-decoration: none; }
.added_to_cart { display: none; }

/* ---------------------------------------------------------------
   WooCommerce BLOCK cart + checkout. WooCommerce 11 ships these as
   blocks, so the classic selectors above do not reach them.
   --------------------------------------------------------------- */

.wc-block-components-title,
.wp-block-woocommerce-cart .wc-block-cart__totals-title {
  font-family: var(--f-impact) !important;
  font-size: .74rem !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted) !important;
  font-weight: 400 !important;
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--ink) !important;
  color: var(--bone) !important;
  border-radius: 100px !important;
  font-family: var(--f-ui) !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  padding: 1.05rem 1.6rem !important;
  transition: .2s;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--aqua) !important;
  color: #fff !important;
}
.wc-block-components-product-name { font-weight: 600; color: var(--ink); }
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
  border-radius: 8px;
  background: var(--sand);
  padding: 6px;
}
.wc-block-cart-item__wrap .wc-block-components-product-price__value { font-family: var(--f-display); }
.wc-block-components-quantity-selector {
  border: 1px solid var(--line) !important;
  border-radius: 100px !important;
  overflow: hidden;
}
.wc-block-components-quantity-selector input { background: transparent; color: var(--ink); }
.wc-block-components-totals-item__value { font-weight: 600; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--f-impact);
  font-size: 1.5rem;
}
.wp-block-woocommerce-cart .wc-block-cart__totals-title + * ,
.wc-block-components-sidebar {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.wc-block-components-sidebar { padding: 24px; }
.wc-block-components-text-input input,
.wc-block-components-address-form input,
.wc-block-components-form .wc-block-components-text-input input {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-family: var(--f-ui) !important;
  color: var(--ink) !important;
}
.wc-block-components-checkout-step__title { font-family: var(--f-display) !important; font-size: 1.25rem !important; }
.wc-block-components-radio-control__option {
  border: 1px solid var(--line);
  border-radius: 10px;
  /* Woo positions the radio absolutely on the left. Keep its gutter or the
     label text slides underneath the control and gets clipped. */
  padding: 14px 16px 14px 46px;
  background: #fff;
  margin-bottom: 10px;
}
.wc-block-components-radio-control__option::before,
.wc-block-components-radio-control__input { left: 16px; }
.wc-block-components-radio-control__label-group,
.wc-block-components-radio-control__label { min-width: 0; }
.wc-block-components-notice-banner {
  border-radius: var(--r) !important;
  border-color: var(--line) !important;
}
.pagebody { max-width: none; }
.pagebody > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------
   Product detail page (PDP)
   --------------------------------------------------------------- */
.pdp { padding: 104px 0 90px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 30px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs em { font-style: normal; color: var(--ink); }

.pdp-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 940px) { .pdp-grid { grid-template-columns: 1fr; gap: 30px; } }

.pdp-plate {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: radial-gradient(130% 110% at 50% 6%, #FFFFFF 0%, #FCFAF6 58%, #F1EADD 100%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 6%;
}
.pdp-plate img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 44px rgba(20,30,25,.18));
}
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 74px; height: 74px; padding: 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--sand);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumb:hover { border-color: var(--ink); }

.pdp-buy .eyebrow { display: block; margin-bottom: .55rem; }
.pdp-title {
  font-family: var(--f-impact);
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: .94;
  letter-spacing: -.02em;
  margin-bottom: .45em;
}
.pdp-lede { color: var(--muted); font-size: 1.04rem; max-width: 46ch; margin-bottom: 1.5rem; }
.pdp-bul { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.9rem; }
.pdp-bul li { font-size: .92rem; display: flex; gap: .6rem; color: var(--ink-2); }
.pdp-bul li::before { content: "✓"; color: var(--aqua); flex-shrink: 0; font-weight: 700; }

.pdp-pricebox { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 22px; }
.pdp-price .woocommerce-Price-amount,
.pdp-price { font-family: var(--f-impact); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: .005em; }
.pdp-cicil { font-size: .88rem; color: var(--aqua); margin-top: .5rem; font-weight: 600; }
.pdp-pricebox small { display: block; font-size: .76rem; color: var(--muted); margin-top: .35rem; }

.pdp .cart { display: flex; gap: 12px; align-items: stretch; margin: 0 0 1.7rem; flex-wrap: wrap; }
.pdp .quantity input {
  width: 92px; text-align: center; border: 1px solid var(--line); border-radius: 100px;
  background: transparent; font-family: inherit; font-size: 1rem; padding: .9rem .6rem; color: var(--ink);
}
.pdp .single_add_to_cart_button {
  flex: 1; min-width: 200px;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink); border-radius: 100px;
  padding: .95rem 2rem; font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.pdp .single_add_to_cart_button:hover { background: var(--aqua); border-color: var(--aqua); color: #fff; }

.pdp-assure { list-style: none; display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 20px; margin: 0 0 18px; }
.pdp-assure li { font-size: .86rem; color: var(--ink-2); display: flex; gap: .6rem; }
.pdp-assure li::before { content: "→"; color: var(--aqua); flex-shrink: 0; }
.pdp-sku { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

.pdp-specs { margin-top: 78px; border-top: 1px solid var(--line); padding-top: 34px; max-width: 620px; }
.pdp-specs h2 { font-size: 1.5rem; margin-bottom: 16px; }
.pdp-specs table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pdp-specs th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--line); width: 45%; }
.pdp-specs td { padding: 12px 0; border-bottom: 1px solid var(--line); }

.pdp-related { margin-top: 84px; }
.pgrid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .pgrid-4 { grid-template-columns: repeat(2, 1fr); } }


/* header cart count */
.cart-link { position: relative; }
.cart-n {
  position: absolute; top: -3px; right: -3px;
  background: var(--aqua); color: #fff;
  min-width: 19px; height: 19px; border-radius: 100px;
  font-size: .66rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 5px;
}
.cart-n[hidden] { display: none; }
.cart-dot.has-items { background: var(--aqua-lt); }

.shoparch { padding: 104px 0 90px; }
.arch-count { color: var(--muted); font-size: .84rem; align-self: end; }

/* Uniform card heights in the archive grid: push the price row to the bottom
   so footers align across a row regardless of description length. */
.pgrid-prod .prod:not(.feat) .prod-body { display: flex; flex-direction: column; flex: 1; }
.pgrid-prod .prod:not(.feat) .prod-foot { margin-top: auto; }
.pgrid-prod .prod:not(.feat) .spec { min-height: 3.2em; }

/* An h1 that carries the visual weight of a section h2. Keeps one h1 per page
   for SEO and screen readers without changing the established hierarchy. */
h1.as-h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.012em;
}

/* Order summary: Woo prints the unit price under the product name and the line
   total on the right. At qty 1 they are the same number twice, competing for
   attention. Demote the unit price to a caption. */
.wc-block-components-order-summary-item__description .wc-block-components-product-price__value {
  font-family: var(--f-ui);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
}
.wc-block-components-order-summary-item__total-price {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 600;
}
.wc-block-components-order-summary-item__description { padding-right: 10px; }

/* Products without photography (the prepaid filter plans) fall back to Woo's
   placeholder, which reads as a broken image. Render it as a quiet branded
   panel instead. Replace with real photography when Kevin supplies it. */
.prod-img img[src*="woocommerce-placeholder"] {
  opacity: .16;
  filter: grayscale(1);
  mix-blend-mode: normal;
  width: 46%;
  height: 46%;
  margin: auto;
}
.prod-img:has(img[src*="woocommerce-placeholder"]) {
  background: linear-gradient(160deg, var(--sand) 0%, var(--stone) 100%);
}
.prod-img:has(img[src*="woocommerce-placeholder"])::after {
  content: "";
  position: absolute;
  inset: auto 14% 16% 14%;
  height: 1px;
  background: rgba(14,21,18,.14);
}
.pdp-plate img[src*="woocommerce-placeholder"] { opacity: .18; filter: grayscale(1); }

/* ---------------------------------------------------------------
   Cart drawer. Opens on add-to-cart and on the header cart icon, so
   the shopper confirms and continues without losing their place.
   --------------------------------------------------------------- */
.cart-scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(14,21,18,.46);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .34s cubic-bezier(.4,0,.2,1);
}
.cart-scrim.show { opacity: 1; }

.cartdrawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(430px, 100vw);
  background: var(--bone);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(14,21,18,.18);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.cartdrawer.open { transform: none; visibility: visible; }

.cartdrawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cartdrawer-head h2 {
  font-family: var(--f-impact); text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .06em; margin: 0;
}
.cartdrawer-x {
  width: 40px; height: 40px; border-radius: 100px; flex-shrink: 0;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: .2s;
}
.cartdrawer-x:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.cartdrawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 0; overscroll-behavior: contain; }
.cartdrawer-note {
  flex-shrink: 0; padding: 0 24px 20px;
  font-size: .74rem; color: var(--muted); text-align: center;
}

/* WooCommerce mini cart internals.
   Markup is: <li><a.remove>, <a>[img + name]</a>, <span.quantity></li>
   The thumbnail lives INSIDE the product link, so the link itself has to be
   the flex row. Treating the img as a grid child does nothing. */
.cartdrawer ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 8px 0 0; }
.cartdrawer li.woocommerce-mini-cart-item {
  position: relative;
  padding: 18px 38px 18px 0;
  border-bottom: 1px solid var(--line);
}
.cartdrawer li.woocommerce-mini-cart-item > a:not(.remove) {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: .93rem; line-height: 1.3; color: var(--ink);
}
.cartdrawer li.woocommerce-mini-cart-item img {
  width: 62px; height: 62px; flex-shrink: 0;
  object-fit: contain; background: var(--sand);
  border-radius: 10px; padding: 6px; margin: 0;
}
.cartdrawer li.woocommerce-mini-cart-item .quantity {
  display: block; margin: 6px 0 0 76px;
  font-size: .84rem; color: var(--muted);
}
.cartdrawer li.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount { color: var(--ink-2); }
.cartdrawer a.remove {
  position: absolute; top: 18px; right: 0;
  width: 26px; height: 26px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted);
  display: grid !important; place-items: center;
  font-size: .95rem; line-height: 1; text-decoration: none; transition: .18s;
}
.cartdrawer a.remove:hover { background: #B4402F; border-color: #B4402F; color: #fff; }

.cartdrawer .woocommerce-mini-cart__empty-message {
  text-align: center; color: var(--muted); padding: 54px 0 40px; font-size: .95rem;
}
.cartdrawer .woocommerce-mini-cart__total {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); border-bottom: 0;
  margin: 4px 0 0; padding: 18px 0 6px; font-size: .88rem; color: var(--muted);
}
.cartdrawer .woocommerce-mini-cart__total strong { font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.cartdrawer .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-family: var(--f-impact); font-size: 1.5rem; color: var(--ink);
}
.cartdrawer .woocommerce-mini-cart__buttons {
  display: grid; gap: 10px; margin: 14px 0 20px;
}
.cartdrawer .woocommerce-mini-cart__buttons a {
  display: flex; align-items: center; justify-content: center;
  border-radius: 100px; padding: .92rem 1.4rem;
  font-size: .9rem; font-weight: 600; transition: .2s; text-align: center;
}
/* second button in the pair is checkout: give it the primary weight */
.cartdrawer .woocommerce-mini-cart__buttons a:not(.checkout) {
  border: 1px solid var(--line); color: var(--ink); background: transparent;
}
.cartdrawer .woocommerce-mini-cart__buttons a:not(.checkout):hover { border-color: var(--ink); }
.cartdrawer .woocommerce-mini-cart__buttons a.checkout {
  background: var(--ink); color: var(--bone); border: 1px solid var(--ink);
}
.cartdrawer .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--aqua); border-color: var(--aqua); color: #fff; }

body.cart-open { overflow: hidden; }

@media (max-width: 480px) {
  .cartdrawer { width: 100vw; border-left: 0; }
  .cartdrawer-body { padding-left: 18px; padding-right: 18px; }
  .cartdrawer-head { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cartdrawer, .cart-scrim { transition: none; }
}

/* Keep focus clearly visible, but in the brand's colour rather than the
   browser's default blue. Only for keyboard users. */
.cartdrawer :focus-visible,
.cart-link:focus-visible,
.icon-btn:focus-visible,
.add:focus-visible,
.single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--aqua-lt);
  outline-offset: 2px;
  border-radius: 100px;
}
.cartdrawer :focus:not(:focus-visible) { outline: none; }

/* WooCommerce writes "Subtotal:" with a colon; drop it for a cleaner row. */
.cartdrawer .woocommerce-mini-cart__total strong { font-size: .74rem; }

/* Empty drawer: centre the message and offer a route back to the range. */
.cartdrawer .woocommerce-mini-cart__empty-message {
  text-align: center; color: var(--muted); padding: 60px 0 14px; font-size: .98rem;
}
.minicart-empty-cta { text-align: center; padding: 0 0 30px; }
.minicart-empty-cta p { color: var(--muted); font-size: .88rem; margin: 0 auto 20px; max-width: 26ch; }
.minicart-empty-cta .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink); border-radius: 100px;
  padding: .85rem 1.7rem; font-size: .88rem; font-weight: 600; transition: .2s;
}
.minicart-empty-cta .btn:hover { background: var(--aqua); border-color: var(--aqua); color: #fff; }
/* the shipping caption only makes sense once something is in the cart */
.cartdrawer:has(.woocommerce-mini-cart__empty-message) .cartdrawer-note { visibility: hidden; }
