/* =====================================================================
   Entotox — Product Page (single product) redesign
   Phase 1 of the shop rebrand. Tokens sampled from the Entotox logo.
   Scoped to body.single-product so nothing else on the site is touched.
   Written with CSS logical properties so Arabic RTL is a `dir` switch,
   not a second stylesheet.
   ===================================================================== */

:root{
  /* Brand palette — ONLY these three brand colors (+ neutral greys, error red). */
  --etx-green:#3aae2a;        /* brand green — primary actions / CTAs */
  --etx-green-700:#2eaac4;    /* hover colour (brand) */
  --etx-green-ink:#ffffff;    /* label on green fills (white, per brand) */
  --etx-blue:#2eaac4;         /* brand hover colour */
  --etx-blue-700:#1a7d92;     /* darker brand blue — links / info icons / focus on light (AA) */
  --etx-blue-tint:#e7f5f9;    /* pale blue surface for blue-accent hovers */
  --etx-gray:#605f5e;         /* brand grey — secondary voice */
  --etx-charcoal:#2E2C2D;     /* structure: header strips, footer bands (dark neutral grey) */
  --etx-charcoal-deep:#201F20;
  --etx-ink:#2B292A;          /* headings / strong text (neutral grey) */
  --etx-ink-soft:#4A4849;     /* body copy */
  --etx-ink-faint:#767476;    /* meta / captions */
  --etx-ground:#F7F8F6;
  --etx-card:#FFFFFF;
  --etx-line:#E3E4E1;
  --etx-tint:#EFF7E7;         /* green-tinted surface */
  --etx-ok:#3aae2a;           /* in-stock / success — brand primary */
  --etx-amber:#4A4849;        /* low-stock — neutral grey (on-palette) */
  --etx-danger:#C24040;       /* errors / validation ONLY */
  --etx-shadow:0 1px 2px rgba(32,31,32,.06),0 8px 24px rgba(32,31,32,.08);
  --etx-radius-card:12px;
  --etx-radius-btn:10px;
  --etx-radius-pill:99px;
  /* The site's own type: Montserrat (Latin), Tajawal (RTL). */
  --etx-font:"Montserrat",sans-serif;
}
.rtl{--etx-font:"Tajawal","Montserrat","IBM Plex Sans Arabic",-apple-system,"Segoe UI",sans-serif}

/* ---------------------------------------------------------------------
   Header — the theme header is position:absolute and expects a dark hero
   beneath it. With the banner gone, drop it into normal flow and give it
   the brand charcoal so its (light) menu text stays legible and on-brand.
   Scoped to product pages only.
   --------------------------------------------------------------------- */
body.single-product .site-header.header-absolute{
  position:relative;
  background-color:var(--etx-charcoal);
}
/* Bottom clearance so the last section isn't flush against the footer. */
body.single-product #site-content{padding-block-end:90px}

/* Mobile bar sits fixed over content — reserve its height. */
@media (max-width:1024px){
  body.single-product #site-content{padding-block-start:60px}
}

/* ---------------------------------------------------------------------
   Layout shell — kill the theme's 120px top padding + banner leftovers
   --------------------------------------------------------------------- */
body.single-product .bugro-content-wrap{
  padding-block:0 !important;
  background:var(--etx-ground);
}
body.single-product #site-content{background:var(--etx-ground)}
body.single-product .bugro-content-wrap.container{max-width:1200px}

/* Breadcrumb utility bar — hidden per client request. */
.etx-crumb-bar{display:none}

/* (kept for reference if re-enabled) */
.etx-crumb-bar.etx-crumb-show{
  display:block;
  border-block-end:1px solid var(--etx-line);
  background:var(--etx-card);
}
.etx-crumb-bar .etx-crumb-inner{
  max-width:1200px;margin-inline:auto;padding:12px 28px;
  font-family:var(--etx-font);font-size:13px;color:var(--etx-ink-faint);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.4;
}
.etx-crumb-bar a{color:var(--etx-ink-faint);text-decoration:none;transition:color .2s ease}
.etx-crumb-bar a:hover{color:var(--etx-blue)}
.etx-crumb-bar .breadcrumb{margin:0;padding:0;background:none;display:inline}

/* ---------------------------------------------------------------------
   The product itself
   --------------------------------------------------------------------- */
.single-product div.product.etx-pdp{
  max-width:1200px;margin-inline:auto;padding:72px 28px 8px;
}
.single-product .etx-pdp *{box-sizing:border-box}

.etx-pdp .etx-pdp-main{
  display:grid;grid-template-columns:minmax(0,53%) minmax(0,47%);
  gap:44px;align-items:start;
}

/* ---- Gallery ---- */
.etx-pdp .woocommerce-product-gallery{
  width:100% !important;margin:0;float:none;
}
.etx-pdp .woocommerce-product-gallery__wrapper{margin:0}
.etx-pdp .woocommerce-product-gallery__image{
  background:var(--etx-tint);
  border:1px solid var(--etx-line);
  border-radius:var(--etx-radius-card);
  overflow:hidden;
}
.etx-pdp .woocommerce-product-gallery__image img{
  display:block;width:100%;height:auto;mix-blend-mode:multiply;
}
.etx-pdp .flex-control-thumbs{
  display:flex;gap:10px;margin:12px 0 0;padding:0;list-style:none;flex-wrap:wrap;
}
.etx-pdp .flex-control-thumbs li{width:64px !important;margin:0}
.etx-pdp .flex-control-thumbs img{
  border:1px solid var(--etx-line);border-radius:8px;padding:4px;background:var(--etx-card);
  opacity:.7;transition:opacity .2s ease,border-color .2s ease;cursor:pointer;
}
.etx-pdp .flex-control-thumbs img.flex-active,
.etx-pdp .flex-control-thumbs img:hover{opacity:1;border-color:var(--etx-green)}

/* Sale / series badge on the gallery */
.etx-pdp .woocommerce-product-gallery{position:relative}
.etx-pdp span.onsale{
  position:absolute;inset-block-start:12px;inset-inline-start:12px;inset-inline-end:auto;
  margin:0;min-height:0;min-width:0;line-height:1;
  background:var(--etx-charcoal);color:var(--etx-green);
  font-family:var(--etx-font);font-weight:700;font-size:11px;letter-spacing:.06em;
  text-transform:uppercase;padding:6px 12px;border-radius:var(--etx-radius-pill);z-index:2;
}

/* ---- Buy box (summary) ---- */
.etx-pdp .summary.entry-summary{width:100% !important;margin:0;float:none;padding:0}

.etx-pdp .etx-eyebrow{
  font-family:var(--etx-font);font-size:12px;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;color:var(--etx-blue-700);
  margin:0 0 8px;
}
.etx-pdp .etx-eyebrow a{color:inherit;text-decoration:none}
.etx-pdp .etx-eyebrow a:hover{text-decoration:underline}

.single-product .etx-pdp .product_title.entry-title{
  font-family:var(--etx-font);font-weight:700;
  font-size:clamp(24px,3.4vw,34px);line-height:1.18;letter-spacing:-.02em;
  color:var(--etx-ink);margin:0 0 10px;text-wrap:balance;
}

/* rating + sku row */
.etx-pdp .etx-meta-row{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  font-family:var(--etx-font);font-size:13px;color:var(--etx-ink-faint);
  margin:0 0 14px;
}
.etx-pdp .etx-meta-row .star-rating{margin:0;font-size:15px;color:var(--etx-blue-700)}
.etx-pdp .etx-meta-row .woocommerce-review-link{color:var(--etx-ink-faint)}
.etx-pdp .etx-meta-row .etx-sku{position:relative;padding-inline-start:14px}
.etx-pdp .etx-meta-row .etx-sku::before{
  content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;
  width:1px;height:12px;background:var(--etx-line);transform:translateY(-50%);
}

/* price */
.etx-pdp .summary .price,
.single-product .etx-pdp p.price{
  font-family:var(--etx-font);font-weight:700;font-size:28px;
  color:var(--etx-ink) !important;margin:0 0 4px;line-height:1.2;
  font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
}
.etx-pdp .summary .price ins{text-decoration:none;color:var(--etx-ink) !important}
.etx-pdp .summary .price del{
  font-size:18px;font-weight:400;color:var(--etx-ink-faint) !important;opacity:1;
}
.etx-pdp .summary .price del .amount{color:var(--etx-ink-faint) !important}
.etx-pdp .etx-price-note{
  font-family:var(--etx-font);font-size:13px;font-weight:400;color:var(--etx-ink-faint);
  margin:0 0 14px;
}

/* pest chips */
.etx-pdp .etx-pests{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.etx-pdp .etx-pests .etx-pests-label{font-size:12px;color:var(--etx-ink-faint)}
.etx-pdp .etx-pests a,.etx-pdp .etx-pests span.etx-chip{
  font-family:var(--etx-font);font-size:12px;font-weight:600;text-decoration:none;
  color:var(--etx-ink-soft);background:var(--etx-tint);border:1px solid var(--etx-line);
  border-radius:var(--etx-radius-pill);padding:3px 11px;transition:border-color .2s ease;
}
.etx-pdp .etx-pests a:hover{border-color:var(--etx-blue)}

/* short description → benefit bullets */
.etx-pdp .woocommerce-product-details__short-description{
  font-family:var(--etx-font);font-size:14.5px;line-height:1.6;color:var(--etx-ink-soft);
  margin:0 0 18px;
}
.etx-pdp .woocommerce-product-details__short-description p{margin:0 0 10px}
.etx-pdp .woocommerce-product-details__short-description ul{
  list-style:none;margin:0;padding:0;
}
.etx-pdp .woocommerce-product-details__short-description ul li{
  position:relative;padding-inline-start:26px;margin-block:0 9px;line-height:1.5;
}
.etx-pdp .woocommerce-product-details__short-description ul li::before{
  content:"";position:absolute;inset-inline-start:0;inset-block-start:2px;
  width:17px;height:17px;border-radius:50%;background:var(--etx-tint);
  /* check mark */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b8420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:11px;
}

/* stock badge */
.etx-pdp .etx-stock{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--etx-font);font-size:13px;font-weight:600;
  margin:0 0 18px;
}
.etx-pdp .etx-stock::before{content:"";width:8px;height:8px;border-radius:50%}
.etx-pdp .etx-stock.in{color:var(--etx-ok)}
.etx-pdp .etx-stock.in::before{background:var(--etx-ok)}
.etx-pdp .etx-stock.low{color:var(--etx-ink)}
.etx-pdp .etx-stock.low::before{background:var(--etx-ink)}
.etx-pdp .etx-stock.out{color:var(--etx-ink-faint)}
.etx-pdp .etx-stock.out::before{background:var(--etx-ink-faint)}

/* ---- Add to cart / quantity ---- */
.etx-pdp form.cart{margin:0 0 12px !important;display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}
.etx-pdp form.cart .quantity{margin:0;display:flex}
.etx-pdp form.cart .quantity input.qty{
  width:72px;height:52px;border:1px solid var(--etx-line);border-radius:var(--etx-radius-btn);
  background:var(--etx-card);color:var(--etx-ink);font-family:var(--etx-font);
  font-size:16px;font-weight:600;text-align:center;-moz-appearance:auto;
}
/* Keep the native +/- spinner permanently visible (Chrome hides it until hover). */
.etx-pdp form.cart .quantity input.qty::-webkit-outer-spin-button,
.etx-pdp form.cart .quantity input.qty::-webkit-inner-spin-button{
  -webkit-appearance:inner-spin-button;
  appearance:auto;
  opacity:1;
  height:52px;
}
.single-product .etx-pdp form.cart button.single_add_to_cart_button,
.single-product .etx-pdp .etx-btn-primary{
  flex:1 1 auto;min-height:52px;padding:0 24px;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--etx-green) !important;color:var(--etx-green-ink) !important;
  border:none !important;border-radius:var(--etx-radius-btn) !important;
  font-family:var(--etx-font);font-weight:700;font-size:15px;letter-spacing:.01em;
  text-transform:none;cursor:pointer;transition:background .2s ease,color .2s ease,transform .1s ease;
  box-shadow:none;
}
.single-product .etx-pdp form.cart button.single_add_to_cart_button:hover,
.single-product .etx-pdp .etx-btn-primary:hover{
  background:var(--etx-blue) !important;color:#fff !important;
}
.single-product .etx-pdp form.cart button.single_add_to_cart_button:active{transform:translateY(1px)}
.single-product .etx-pdp form.cart button.single_add_to_cart_button:disabled{
  opacity:.55;cursor:not-allowed;
}

/* variations table tidy */
.etx-pdp table.variations{margin:0 0 14px}
.etx-pdp table.variations td,.etx-pdp table.variations th{padding-block:6px}

/* ---- Secondary quote CTA ---- */
.etx-pdp .etx-quote-cta{margin:0 0 18px}
.single-product .etx-pdp .etx-btn-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;
  min-height:48px;padding:0 20px;
  background:transparent;color:var(--etx-ink);
  border:1.5px solid var(--etx-gray);border-radius:var(--etx-radius-btn);
  font-family:var(--etx-font);font-weight:600;font-size:14px;text-decoration:none;
  transition:border-color .2s ease,color .2s ease,background .2s ease;
}
.single-product .etx-pdp .etx-btn-outline:hover{
  border-color:var(--etx-blue);color:var(--etx-blue-700);background:var(--etx-blue-tint);
}
.etx-pdp .etx-btn-outline svg{width:17px;height:17px;stroke:currentColor;fill:none}

/* ---- Trust microrow ---- */
.etx-pdp .etx-trust-row{
  display:flex;gap:18px;flex-wrap:wrap;
  border-block-start:1px solid var(--etx-line);padding-block-start:16px;margin-block-start:4px;
}
.etx-pdp .etx-trust-row .etx-trust-item{
  display:flex;align-items:center;gap:8px;
  font-family:var(--etx-font);font-size:12.5px;color:var(--etx-ink-faint);text-decoration:none;
}
.etx-pdp .etx-trust-row a.etx-trust-item:hover{color:var(--etx-blue)}
.etx-pdp .etx-trust-row svg{width:17px;height:17px;stroke:var(--etx-blue-700);fill:none;flex:none}

/* ---------------------------------------------------------------------
   Details zone — tabs
   --------------------------------------------------------------------- */
.etx-pdp .woocommerce-tabs{margin-block-start:56px}
.etx-pdp .woocommerce-tabs ul.tabs{
  display:flex;gap:26px;padding:0 !important;margin:0 0 24px;list-style:none;
  border-block-end:1px solid var(--etx-line) !important;background:none !important;
}
.etx-pdp .woocommerce-tabs ul.tabs::before,
.etx-pdp .woocommerce-tabs ul.tabs::after{display:none !important}
.etx-pdp .woocommerce-tabs ul.tabs li{
  background:none !important;border:none !important;border-radius:0 !important;
  padding:0 !important;margin:0 !important;
}
.etx-pdp .woocommerce-tabs ul.tabs li::before,
.etx-pdp .woocommerce-tabs ul.tabs li::after{display:none !important}
.etx-pdp .woocommerce-tabs ul.tabs li a{
  display:inline-block;padding:0 0 12px !important;
  font-family:var(--etx-font);font-weight:600;font-size:15px;
  color:var(--etx-ink-faint) !important;border-block-end:2px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.etx-pdp .woocommerce-tabs ul.tabs li.active a,
.etx-pdp .woocommerce-tabs ul.tabs li a:hover{
  color:var(--etx-ink) !important;border-block-end-color:var(--etx-green);
}
.etx-pdp .woocommerce-Tabs-panel{
  font-family:var(--etx-font);font-size:15px;line-height:1.7;color:var(--etx-ink-soft);
  max-width:72ch;
}
.etx-pdp .woocommerce-Tabs-panel h2{
  font-family:var(--etx-font);font-size:20px;color:var(--etx-ink);margin:0 0 14px;
}
/* spec table */
.etx-pdp .woocommerce-product-attributes{
  width:100%;border-collapse:collapse;border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);overflow:hidden;
}
.etx-pdp .woocommerce-product-attributes th,
.etx-pdp .woocommerce-product-attributes td{
  padding:12px 16px;border:none;border-block-end:1px solid var(--etx-line);
  font-family:var(--etx-font);font-size:14px;text-align:start;
}
.etx-pdp .woocommerce-product-attributes tr:nth-child(even){background:var(--etx-tint)}
.etx-pdp .woocommerce-product-attributes th{
  color:var(--etx-ink);font-weight:600;width:38%;
}
.etx-pdp .woocommerce-product-attributes td{color:var(--etx-ink-soft)}
.etx-pdp .woocommerce-product-attributes tr:last-child th,
.etx-pdp .woocommerce-product-attributes tr:last-child td{border-block-end:none}

/* ---------------------------------------------------------------------
   "Why Entotox" trust strip
   --------------------------------------------------------------------- */
.etx-trust-strip{background:var(--etx-charcoal);margin-block-start:56px}
.etx-trust-strip .etx-trust-strip-inner{
  max-width:1200px;margin-inline:auto;padding:22px 28px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
}
.etx-trust-strip .etx-ts-item{
  display:flex;align-items:center;gap:12px;color:#D7D5D6;
  font-family:var(--etx-font);font-size:13.5px;line-height:1.35;
}
.etx-trust-strip .etx-ts-item strong{color:#fff;font-weight:600;display:block}
.etx-trust-strip svg{width:26px;height:26px;stroke:var(--etx-blue);fill:none;flex:none}

/* ---------------------------------------------------------------------
   Related / upsell products — "You may also need"
   --------------------------------------------------------------------- */
.etx-pdp-related{max-width:1200px;margin:56px auto 0;padding:0 28px}
.etx-pdp-related > h2,
.etx-pdp .related.products > h2,
.etx-pdp .up-sells > h2{
  font-family:var(--etx-font);font-size:22px;font-weight:700;letter-spacing:-.02em;
  color:var(--etx-ink);margin:0 0 22px;
}
.single-product .related.products,
.single-product .up-sells.upsells{
  max-width:1200px;margin-inline:auto;padding:0 28px;float:none;width:auto;clear:both;
}
.single-product .related.products ul.products,
.single-product .up-sells ul.products{
  display:grid !important;grid-template-columns:repeat(4,1fr);gap:18px;margin:0;
}
/* WooCommerce's clearfix pseudo-elements become grid items and eat the
   first/last cells — remove them so the grid starts at box 1. */
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after,
.single-product .up-sells ul.products::before,
.single-product .up-sells ul.products::after{
  content:none !important;display:none !important;
}
/* Card styling: entotox-catalog.css (.etx-card), shared with the store page. */

/* ---------------------------------------------------------------------
   Service cross-sell ribbon
   --------------------------------------------------------------------- */
.etx-service-ribbon{max-width:1200px;margin:56px auto 0;padding:0 28px}
.etx-service-ribbon .etx-sr-inner{
  background:var(--etx-tint);border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);
  padding:22px 26px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.etx-service-ribbon .etx-sr-text{flex:1 1 320px}
.etx-service-ribbon .etx-sr-text strong{
  font-family:var(--etx-font);font-size:17px;color:var(--etx-ink);display:block;margin-block-end:2px;
}
.etx-service-ribbon .etx-sr-text span{font-family:var(--etx-font);font-size:14px;color:var(--etx-ink-soft)}
.etx-service-ribbon a.etx-btn-outline{width:auto;white-space:nowrap}

/* ---------------------------------------------------------------------
   Sticky purchase bar
   --------------------------------------------------------------------- */
/* Bottom-anchored so it never collides with the theme's own sticky header. */
.etx-sticky-bar{
  position:fixed;inset-inline:0;inset-block-end:0;z-index:1000;
  background:var(--etx-card);border-block-start:1px solid var(--etx-line);
  box-shadow:0 -6px 20px rgba(32,31,32,.10);
  transform:translateY(100%);transition:transform .25s ease;
  will-change:transform;padding-block-end:env(safe-area-inset-bottom);
}
.etx-sticky-bar.is-visible{transform:translateY(0)}
.etx-sticky-bar .etx-sticky-inner{
  max-width:1200px;margin-inline:auto;padding:10px 28px;
  display:flex;align-items:center;gap:16px;
}
.etx-sticky-bar img{width:44px;height:44px;object-fit:contain;background:var(--etx-tint);border-radius:8px;padding:4px}
.etx-sticky-bar .etx-sticky-title{
  font-family:var(--etx-font);font-weight:600;font-size:15px;color:var(--etx-ink);
  line-height:1.2;margin:0;flex:1 1 auto;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.etx-sticky-bar .etx-sticky-price{
  font-family:var(--etx-font);font-weight:700;font-size:17px;color:var(--etx-ink);
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
.etx-sticky-bar .etx-sticky-price del{font-size:13px;font-weight:400;color:var(--etx-ink-faint);margin-inline-end:6px}
.etx-sticky-bar .etx-sticky-cta{
  min-height:44px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--etx-green);color:var(--etx-green-ink);border:none;border-radius:var(--etx-radius-btn);
  font-family:var(--etx-font);font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;
  transition:background .2s ease,color .2s ease;white-space:nowrap;
}
.etx-sticky-bar .etx-sticky-cta:hover{background:var(--etx-blue);color:#fff}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width:900px){
  .etx-pdp .etx-pdp-main{grid-template-columns:1fr;gap:28px}
  .etx-trust-strip .etx-trust-strip-inner{grid-template-columns:1fr 1fr;gap:16px 20px}
  .single-product .related.products ul.products,
  .single-product .up-sells ul.products{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .single-product div.product.etx-pdp{padding:36px 18px 8px}
  .etx-crumb-bar .etx-crumb-inner{padding:10px 18px;font-size:12px}
  .etx-pdp form.cart{flex-wrap:wrap}
  .etx-pdp form.cart .quantity input.qty{height:50px}
  .single-product .etx-pdp form.cart button.single_add_to_cart_button{flex-basis:100%}
  .etx-trust-strip .etx-trust-strip-inner{grid-template-columns:1fr}

  /* Related / upsells: one larger box per row with breathing room. */
  .etx-pdp-related,
  .single-product .related.products,
  .single-product .up-sells.upsells{padding-inline:18px}
  .single-product .related.products ul.products,
  .single-product .up-sells ul.products{grid-template-columns:1fr;gap:14px}
  
  /* Service ribbon: stop the text block's flex-basis becoming a height. */
  .etx-service-ribbon{padding-inline:18px}
  .etx-service-ribbon .etx-sr-inner{flex-direction:column;align-items:flex-start;gap:14px;padding:20px 22px}
  .etx-service-ribbon .etx-sr-text{flex:0 0 auto}
  .etx-service-ribbon a.etx-btn-outline{width:100%}
  /* sticky bar → hide thumbnail + title, keep price + CTA */
  .etx-sticky-bar img,.etx-sticky-bar .etx-sticky-title{display:none}
  .etx-sticky-bar .etx-sticky-inner{padding:10px 18px}
  .etx-sticky-bar .etx-sticky-price{flex:1 1 auto}
  .etx-sticky-bar .etx-sticky-cta{flex:0 0 auto}
}

/* Breathing room so the sticky bar never covers footer content. */
body.single-product.etx-sticky-active{padding-block-end:76px}

/* ---------------------------------------------------------------------
   RTL — logical properties do most of the work; these are the fixes
   that direction alone can't express.
   --------------------------------------------------------------------- */
.rtl .etx-pdp .woocommerce-product-details__short-description,
.rtl .etx-pdp .woocommerce-Tabs-panel{line-height:1.85}
.rtl .etx-pdp .star-rating{direction:ltr}      /* stars stay LTR */
.rtl .etx-pdp .summary .price,
.rtl .etx-sticky-bar .etx-sticky-price{direction:ltr;justify-content:flex-start}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .etx-sticky-bar,
  .single-product .etx-pdp form.cart button.single_add_to_cart_button,
  .etx-pdp .flex-control-thumbs img{transition:none}
}

/* Focus visibility (theme strips some of these) */
.etx-pdp a:focus-visible,
.etx-pdp button:focus-visible,
.etx-sticky-bar a:focus-visible,
.etx-sticky-bar button:focus-visible,
.etx-crumb-bar a:focus-visible{
  outline:2px solid var(--etx-blue-700);outline-offset:2px;border-radius:2px;
}

/* =====================================================================
   CART PAGE  (Phase 2) — scoped to body.woocommerce-cart
   ===================================================================== */

/* Header: drop the photo banner, put the header in flow on charcoal
   (same treatment as the product page) + breathing room. */
body.woocommerce-cart .site-header.header-absolute{
  position:relative;background-color:var(--etx-charcoal);
}
body.woocommerce-cart .bugro-page-header{display:none}
body.woocommerce-cart .bugro-content-wrap{padding-block:0 !important;background:var(--etx-ground)}
body.woocommerce-cart #site-content{background:var(--etx-ground);padding-block-end:90px}
@media (max-width:1024px){ body.woocommerce-cart #site-content{padding-block-start:60px} }

body.woocommerce-cart .bugro-content-wrap.container{max-width:1200px}
body.woocommerce-cart .woocommerce{font-family:var(--etx-font)}

/* ---- Heading ---- */
.etx-cart-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;
  padding-block:72px 24px;
}
.etx-cart-head h1{
  font-family:var(--etx-font);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(26px,3.4vw,36px);color:var(--etx-ink);margin:0;line-height:1.1;
}
.etx-cart-head p{margin:6px 0 0;color:var(--etx-ink-faint);font-size:14px}
.etx-cart-continue{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-family:var(--etx-font);font-weight:600;font-size:14px;color:var(--etx-blue-700);
  transition:color .2s ease;
}
.etx-cart-continue:hover{color:var(--etx-ink)}
.etx-cart-continue svg{width:17px;height:17px;stroke:currentColor;fill:none}

/* ---- Two-column grid (cart items | summary) ---- */
.etx-cart-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:40px;align-items:start;
}

/* ---- Cart items table → clean rows ---- */
.woocommerce-cart .woocommerce-cart-form{margin:0}
.woocommerce-cart table.shop_table.cart{
  border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);border-collapse:separate;
  border-spacing:0;overflow:hidden;background:var(--etx-card);margin:0;box-shadow:var(--etx-shadow);
}
.woocommerce-cart table.cart thead{
  background:var(--etx-tint);
}
.woocommerce-cart table.cart thead th{
  font-family:var(--etx-font);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--etx-ink-faint);font-weight:600;padding:14px 16px;border:none;text-align:start;
}
.woocommerce-cart table.cart tbody td{
  padding:18px 16px;border:none;border-block-start:1px solid var(--etx-line);vertical-align:middle;
  background:var(--etx-card);
}
.woocommerce-cart table.cart tbody tr:first-child td{border-block-start:none}
.woocommerce-cart table.cart td.product-thumbnail img{
  width:72px;height:72px;object-fit:contain;background:var(--etx-tint);border-radius:8px;padding:6px;
  mix-blend-mode:multiply;
}
.woocommerce-cart table.cart td.product-name a{
  font-family:var(--etx-font);font-weight:600;font-size:15px;color:var(--etx-ink);text-decoration:none;
}
.woocommerce-cart table.cart td.product-name a:hover{color:var(--etx-blue-700)}
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal{
  font-family:var(--etx-font);font-weight:600;color:var(--etx-ink) !important;
  font-variant-numeric:tabular-nums;
}
.woocommerce-cart table.cart td.product-subtotal{font-weight:700}
/* Beat the theme's lime `.amount` rule — line prices in ink, green reserved for actions. */
.woocommerce-cart table.cart td.product-price .amount,
.woocommerce-cart table.cart td.product-price bdi,
.woocommerce-cart table.cart td.product-subtotal .amount,
.woocommerce-cart table.cart td.product-subtotal bdi{color:var(--etx-ink) !important}
.woocommerce-cart .cart_totals .amount,
.woocommerce-cart .cart_totals bdi{color:inherit !important}
.woocommerce-cart table.cart td.product-remove{width:36px}
.woocommerce-cart table.cart td.product-remove a.remove{
  display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border-radius:50%;background:var(--etx-ground);color:var(--etx-ink-faint) !important;
  font-size:18px;line-height:1;border:1px solid var(--etx-line);transition:all .2s ease;
}
.woocommerce-cart table.cart td.product-remove a.remove:hover{
  background:var(--etx-danger) !important;color:#fff !important;border-color:var(--etx-danger);
}
/* quantity */
.woocommerce-cart table.cart td.product-quantity .quantity{display:inline-flex}
.woocommerce-cart table.cart td.product-quantity input.qty{
  width:70px;height:44px;border:1px solid var(--etx-line);border-radius:var(--etx-radius-btn);
  background:var(--etx-card);color:var(--etx-ink);font-family:var(--etx-font);font-weight:600;
  text-align:center;-moz-appearance:auto;
}
.woocommerce-cart table.cart td.product-quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart table.cart td.product-quantity input.qty::-webkit-inner-spin-button{
  -webkit-appearance:inner-spin-button;appearance:auto;opacity:1;height:44px;
}

/* actions row: coupon + update */
.woocommerce-cart table.cart td.actions{
  padding:16px;background:var(--etx-tint);border-block-start:1px solid var(--etx-line);
}
.woocommerce-cart table.cart td.actions .coupon{display:inline-flex;gap:8px;float:none}
.woocommerce-cart table.cart td.actions input#coupon_code{
  height:44px;min-width:170px;border:1px solid var(--etx-line);border-radius:var(--etx-radius-btn);
  padding:0 14px;background:var(--etx-card);color:var(--etx-ink);font-family:var(--etx-font);font-size:14px;
}
.woocommerce-cart table.cart td.actions button{
  height:44px;padding:0 18px;border-radius:var(--etx-radius-btn) !important;
  font-family:var(--etx-font);font-weight:600;font-size:13.5px;border:1px solid var(--etx-line) !important;
  background:var(--etx-card) !important;color:var(--etx-ink) !important;transition:all .2s ease;
}
.woocommerce-cart table.cart td.actions button[name="apply_coupon"]{
  background:var(--etx-charcoal) !important;color:#fff !important;border-color:var(--etx-charcoal) !important;
}
.woocommerce-cart table.cart td.actions button:hover{background:var(--etx-blue) !important;color:var(--etx-green-ink) !important;border-color:var(--etx-blue) !important}
.woocommerce-cart table.cart td.actions button[name="update_cart"]{float:right}

/* ---- Order summary card ---- */
.woocommerce-cart .cart-collaterals{width:auto;float:none;margin:0}
.woocommerce-cart .cart_totals{
  width:auto !important;float:none;background:var(--etx-card);border:1px solid var(--etx-line);
  border-radius:var(--etx-radius-card);box-shadow:var(--etx-shadow);padding:24px 24px 26px;
  position:sticky;top:24px;
}
.woocommerce-cart .cart_totals h2{
  font-family:var(--etx-font);font-size:18px;font-weight:700;letter-spacing:-.01em;
  color:var(--etx-ink);margin:0 0 16px;
}
.woocommerce-cart .cart_totals table.shop_table{border:none;margin:0}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td{
  border:none;border-block-end:1px solid var(--etx-line);padding:12px 0;
  font-family:var(--etx-font);font-size:14.5px;color:var(--etx-ink-soft);background:transparent;
}
.woocommerce-cart .cart_totals table.shop_table th{font-weight:500;color:var(--etx-ink-faint)}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td{
  font-family:var(--etx-font);font-weight:700;font-size:17px;color:var(--etx-ink) !important;
  border-block-end:none;padding-block-start:16px;
}
.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-cart .cart_totals .order-total bdi{font-variant-numeric:tabular-nums}

/* proceed to checkout */
.woocommerce-cart .wc-proceed-to-checkout{padding:18px 0 0}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;
  background:var(--etx-green) !important;color:var(--etx-green-ink) !important;border:none !important;
  border-radius:var(--etx-radius-btn) !important;font-family:var(--etx-font);font-weight:700;
  font-size:15px;text-transform:none;box-shadow:none;transition:background .2s ease,color .2s ease;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{
  background:var(--etx-blue) !important;color:#fff !important;
}

/* reassurance under checkout button */
.etx-cart-reassure{
  display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-block-start:14px;
}
.etx-cart-reassure span{
  display:inline-flex;align-items:center;gap:6px;font-family:var(--etx-font);font-size:12px;color:var(--etx-ink-faint);
}
.etx-cart-reassure svg{width:15px;height:15px;stroke:var(--etx-blue-700);fill:none;flex:none}

/* bulk quote prompt under the card */
.etx-cart-quote{
  margin-block-start:16px;padding:16px 18px;background:var(--etx-tint);border:1px solid var(--etx-line);
  border-radius:var(--etx-radius-card);text-align:center;
}
.etx-cart-quote p{margin:0 0 10px;font-family:var(--etx-font);font-size:13.5px;color:var(--etx-ink-soft)}
.woocommerce-cart .etx-cart-quote .etx-btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:0 18px;background:transparent;color:var(--etx-ink);border:1.5px solid var(--etx-gray);border-radius:var(--etx-radius-btn);font-family:var(--etx-font);font-weight:600;font-size:13.5px;text-decoration:none;transition:border-color .2s ease,color .2s ease,background .2s ease}
.woocommerce-cart .etx-cart-quote .etx-btn-outline:hover{border-color:var(--etx-blue);color:var(--etx-blue-700);background:var(--etx-blue-tint)}
.woocommerce-cart .etx-cart-quote .etx-btn-outline svg{width:16px;height:16px;stroke:currentColor;fill:none}

/* ---- Cross-sells (full width below) ---- */
.woocommerce-cart .cross-sells{margin:48px 0 0;width:auto;float:none}
.woocommerce-cart .cross-sells > h2{
  font-family:var(--etx-font);font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--etx-ink);margin:0 0 22px;
}
.woocommerce-cart .cross-sells ul.products{
  display:grid !important;grid-template-columns:repeat(4,1fr);gap:18px;margin:0;
}
.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after{content:none !important;display:none !important}
.woocommerce-cart .cross-sells ul.products li.product{
  width:auto !important;margin:0 !important;float:none !important;background:var(--etx-card);
  border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);overflow:hidden;padding:0;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.woocommerce-cart .cross-sells ul.products li.product:hover{border-color:var(--etx-green);box-shadow:var(--etx-shadow)}
.woocommerce-cart .cross-sells li.product a img{margin:0;background:var(--etx-tint);aspect-ratio:1/1;object-fit:contain;mix-blend-mode:multiply;padding:14px}
.woocommerce-cart .cross-sells li.product .woocommerce-loop-product__title{font-family:var(--etx-font);font-size:14px !important;font-weight:600;color:var(--etx-ink);padding:12px 14px 0 !important;line-height:1.3}
.woocommerce-cart .cross-sells li.product .price{display:block;padding:4px 14px 0;color:var(--etx-ink) !important;font-family:var(--etx-font);font-weight:700;font-size:15px}
.woocommerce-cart .cross-sells li.product a.button{
  margin:12px 14px 14px;padding:9px 14px;width:calc(100% - 28px);text-align:center;background:var(--etx-tint) !important;
  color:var(--etx-blue-700) !important;border:1px solid var(--etx-line) !important;border-radius:var(--etx-radius-btn) !important;
  font-family:var(--etx-font);font-weight:600;font-size:13px;transition:all .2s ease;
}
.woocommerce-cart .cross-sells li.product a.button:hover{background:var(--etx-blue) !important;color:var(--etx-green-ink) !important;border-color:var(--etx-blue) !important}

/* ---- Empty cart ---- */
.etx-cart-empty{
  max-width:520px;margin:0 auto;padding-block:96px 40px;text-align:center;
}
.etx-cart-empty-icon{
  width:88px;height:88px;margin:0 auto 22px;border-radius:50%;background:var(--etx-tint);
  display:flex;align-items:center;justify-content:center;
}
.etx-cart-empty-icon svg{width:40px;height:40px;stroke:var(--etx-blue-700);fill:none}
.etx-cart-empty-title{font-family:var(--etx-font);font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--etx-ink);margin:0 0 10px}
.etx-cart-empty-text{font-family:var(--etx-font);font-size:15px;color:var(--etx-ink-soft);margin:0 auto 26px;max-width:42ch;line-height:1.6}
.etx-cart-empty .woocommerce-info,
.etx-cart-empty .cart-empty{background:none;border:none;padding:0;color:var(--etx-ink-faint);font-family:var(--etx-font)}
.etx-cart-empty .woocommerce-info::before,.etx-cart-empty .cart-empty::before{display:none}
.etx-cart-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.woocommerce-cart .etx-cart-empty-actions .etx-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;
  background:var(--etx-green) !important;color:var(--etx-green-ink) !important;border:none;border-radius:var(--etx-radius-btn);
  font-family:var(--etx-font);font-weight:700;font-size:15px;text-decoration:none;transition:background .2s ease,color .2s ease;
}
.woocommerce-cart .etx-cart-empty-actions .etx-btn-primary:hover{background:var(--etx-green-700) !important;color:#fff !important}
.woocommerce-cart .etx-cart-empty-actions .etx-btn-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;background:transparent;
  color:var(--etx-ink);border:1.5px solid var(--etx-gray);border-radius:var(--etx-radius-btn);font-family:var(--etx-font);
  font-weight:600;font-size:14px;text-decoration:none;transition:border-color .2s ease,color .2s ease,background .2s ease;
}
.woocommerce-cart .etx-cart-empty-actions .etx-btn-outline:hover{border-color:var(--etx-blue);color:var(--etx-blue-700);background:var(--etx-blue-tint)}
.woocommerce-cart .etx-cart-empty-actions .etx-btn-outline svg{width:16px;height:16px;stroke:currentColor;fill:none}

/* The trust strip / service ribbon reuse product-page styles; give them
   the same page gutter on the cart. */
.woocommerce-cart .etx-trust-strip{margin-block-start:56px}

/* ---- Cart responsive ---- */
@media (max-width:900px){
  .etx-cart-grid{grid-template-columns:1fr;gap:28px}
  .woocommerce-cart .cart_totals{position:static}
  .woocommerce-cart .cross-sells ul.products{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .etx-cart-head{padding-block:36px 18px}
  /* WooCommerce responsive table already stacks rows; tidy it */
  .woocommerce-cart table.cart tbody td{border-block-start:none;padding:10px 14px}
  .woocommerce-cart table.cart tbody tr{display:block;border-block-end:1px solid var(--etx-line);padding-block:8px}
  .woocommerce-cart table.cart td.actions{padding:14px}
  .woocommerce-cart table.cart td.actions .coupon{display:flex;width:100%}
  .woocommerce-cart table.cart td.actions input#coupon_code{flex:1 1 auto;min-width:0}
  .woocommerce-cart table.cart td.actions button[name="update_cart"]{float:none;width:100%;margin-block-start:10px}
  .woocommerce-cart .cross-sells ul.products{grid-template-columns:1fr;gap:14px}
  .etx-cart-empty{padding-block:56px 32px}
  .etx-cart-empty-actions .etx-btn-primary,
  .etx-cart-empty-actions .etx-btn-outline{width:100%}
}

/* =====================================================================
   CHECKOUT PAGE  (Phase 3) — scoped to body.woocommerce-checkout
   ===================================================================== */

/* Header: drop the photo banner, header in flow on charcoal + spacing. */
body.woocommerce-checkout .site-header.header-absolute{position:relative;background-color:var(--etx-charcoal)}
body.woocommerce-checkout .bugro-page-header{display:none}
body.woocommerce-checkout .bugro-content-wrap{padding-block:0 !important;background:var(--etx-ground)}
body.woocommerce-checkout #site-content{background:var(--etx-ground);padding-block-end:90px}
@media (max-width:1024px){ body.woocommerce-checkout #site-content{padding-block-start:60px} }
body.woocommerce-checkout .bugro-content-wrap.container{max-width:1200px}
body.woocommerce-checkout .woocommerce{font-family:var(--etx-font)}

/* ---- Heading ---- */
.etx-checkout-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-block:72px 24px;
}
.etx-checkout-head h1{
  font-family:var(--etx-font);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(26px,3.4vw,36px);color:var(--etx-ink);margin:0;line-height:1.1;
}
.etx-checkout-head p{margin:6px 0 0;color:var(--etx-ink-faint);font-size:14px}
.etx-checkout-back{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-family:var(--etx-font);font-weight:600;font-size:14px;color:var(--etx-blue-700);transition:color .2s ease;
}
.etx-checkout-back:hover{color:var(--etx-ink)}
.etx-checkout-back svg{width:17px;height:17px;stroke:currentColor;fill:none}

/* ---- Coupon / login toggles (slim bars above the form) ---- */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{
  background:var(--etx-tint);border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);
  color:var(--etx-ink-soft);font-family:var(--etx-font);font-size:14px;padding:14px 16px;margin:0 0 20px;
}
/* Hide WooCommerce's icon-font glyph (renders as an overlapping box). */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before{display:none}
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info{padding-inline-start:16px}
body.woocommerce-checkout .woocommerce-info a,
body.woocommerce-checkout .checkout_coupon a{color:var(--etx-blue-700)}
body.woocommerce-checkout form.checkout_coupon{
  border:1px solid var(--etx-line) !important;border-radius:var(--etx-radius-card);background:var(--etx-card);
  padding:20px;margin:0 0 24px;
}

/* ---- Two-column layout: customer details (left) | order heading + review (right) ----
   Floats so the right column stacks the heading directly above the card,
   independent of the (much taller) left column's height. */
body.woocommerce-checkout form.checkout{display:block}
body.woocommerce-checkout form.checkout::after{content:"";display:table;clear:both}
body.woocommerce-checkout #customer_details{float:left;width:calc(100% - 424px)}
body.woocommerce-checkout #order_review_heading{float:right;clear:right;width:380px;margin:0 0 16px}
body.woocommerce-checkout #order_review{float:right;clear:right;width:380px;position:sticky;top:24px}

/* stack billing + shipping/additional inside the left column */
body.woocommerce-checkout #customer_details .col2-set{display:block}
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2{width:100%;float:none;margin:0 0 28px}

/* ---- Section headings ---- */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading{
  font-family:var(--etx-font) !important;font-weight:700;letter-spacing:-.01em;
  font-size:19px !important;line-height:1.2;color:var(--etx-ink);margin:0 0 16px;
}

/* ---- Form fields ---- */
body.woocommerce-checkout .form-row label{
  font-family:var(--etx-font);font-size:13.5px;font-weight:500;color:var(--etx-ink-soft);margin-bottom:6px;display:block;
}
body.woocommerce-checkout .form-row .required{color:var(--etx-danger);border:none}
body.woocommerce-checkout .woocommerce-input-wrapper{display:block;width:100%}
body.woocommerce-checkout .input-text,
body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-container .select2-selection--single,
body.woocommerce-checkout .form-row select{
  width:100%;min-height:48px;border:1px solid var(--etx-line);border-radius:var(--etx-radius-btn);
  padding:12px 14px;background:var(--etx-card);color:var(--etx-ink);
  font-family:var(--etx-font);font-size:15px;line-height:1.4;transition:border-color .2s ease,box-shadow .2s ease;
}
body.woocommerce-checkout .form-row textarea{min-height:96px;resize:vertical}
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .form-row select:focus{
  border-color:var(--etx-blue) !important;box-shadow:0 0 0 3px rgba(47,170,196,.20);outline:none;
}
/* select2 alignment — single line centred by line-height (box has no padding) */
body.woocommerce-checkout .select2-container--default .select2-selection--single{
  height:48px !important;min-height:48px;padding:0 !important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:48px !important;height:48px;padding:0 14px;color:var(--etx-ink);
  display:block;margin:0;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px;top:1px}
body.woocommerce-checkout .form-row{margin:0 0 16px;padding:0}

/* ---- Order review card ---- */
body.woocommerce-checkout #order_review{
  background:var(--etx-card);border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);
  box-shadow:var(--etx-shadow);padding:22px 22px 24px;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  border:none;margin:0 0 4px;font-family:var(--etx-font);
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  border:none;border-block-end:1px solid var(--etx-line);padding:12px 0;font-size:14px;color:var(--etx-ink-soft);text-align:start;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th{
  font-family:var(--etx-font);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--etx-ink-faint);font-weight:600;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal td{
  text-align:end;font-family:var(--etx-font);font-weight:600;color:var(--etx-ink) !important;font-variant-numeric:tabular-nums;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name{color:var(--etx-ink);font-weight:500}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name .product-quantity{color:var(--etx-ink-faint)}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th{
  font-family:var(--etx-font);font-weight:500;color:var(--etx-ink-faint);text-align:start;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td{
  font-family:var(--etx-font);font-weight:700;font-size:17px;color:var(--etx-ink) !important;border-block-end:none;padding-block-start:14px;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table bdi{color:inherit !important}
/* Right-align every amount column consistently (incl. footer rows). */
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{text-align:end !important}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th{text-align:start !important}

/* trust badges above payment */
.etx-checkout-badges{
  list-style:none;display:flex;gap:14px;flex-wrap:wrap;margin:16px 0;padding:14px 0 0;border-block-start:1px solid var(--etx-line);
}
.etx-checkout-badges li{display:flex;align-items:center;gap:7px;font-family:var(--etx-font);font-size:12px;color:var(--etx-ink-faint)}
.etx-checkout-badges svg{width:16px;height:16px;stroke:var(--etx-blue-700);fill:none;flex:none}

/* ---- Payment box ---- */
body.woocommerce-checkout #payment{background:transparent;border-radius:0}
body.woocommerce-checkout #payment ul.payment_methods{
  border:none;padding:0;margin:0 0 8px;background:transparent;list-style:none;
}
body.woocommerce-checkout #payment ul.payment_methods li{
  border:1px solid var(--etx-line);border-radius:var(--etx-radius-btn);padding:14px 16px;margin:0 0 10px;background:var(--etx-card);
}
body.woocommerce-checkout #payment ul.payment_methods li label{
  font-family:var(--etx-font);font-size:14px;font-weight:600;color:var(--etx-ink);display:inline;
}
body.woocommerce-checkout #payment div.payment_box{
  background:var(--etx-tint);border-radius:var(--etx-radius-btn);font-family:var(--etx-font);font-size:13px;color:var(--etx-ink-soft);margin-top:10px;
}
body.woocommerce-checkout #payment div.payment_box::before{border-block-end-color:var(--etx-tint)}

/* place order button */
body.woocommerce-checkout #payment .form-row.place-order{padding:8px 0 0;margin:0}
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;
  background:var(--etx-green) !important;color:var(--etx-green-ink) !important;border:none !important;
  border-radius:var(--etx-radius-btn) !important;font-family:var(--etx-font);font-weight:700;font-size:16px;
  text-transform:none;box-shadow:none;transition:background .2s ease,color .2s ease;float:none !important;width:100%;
}
body.woocommerce-checkout #place_order:hover{background:var(--etx-green-700) !important;color:#fff !important}

/* terms */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{margin:0 0 14px;font-family:var(--etx-font);font-size:13px;color:var(--etx-ink-soft)}

/* reassurance under place order */
.etx-checkout-reassure{display:flex;justify-content:center;margin-block-start:14px;clear:both}
.etx-checkout-reassure span{display:inline-flex;align-items:center;gap:7px;font-family:var(--etx-font);font-size:12px;color:var(--etx-ink-faint)}
.etx-checkout-reassure svg{width:15px;height:15px;stroke:var(--etx-blue-700);fill:none;flex:none}

/* ---- Checkout responsive ---- */
@media (max-width:900px){
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review{float:none;width:100%}
  body.woocommerce-checkout #order_review_heading{margin-top:8px}
  body.woocommerce-checkout #order_review{position:static}
}
@media (max-width:600px){
  .etx-checkout-head{padding-block:36px 18px}
}

/* =====================================================================
   ORDER CONFIRMATION / THANK-YOU  (order-received endpoint)
   scoped to body.woocommerce-order-received
   (header/banner treatment is inherited from the .woocommerce-checkout rules)
   ===================================================================== */

/* Centered content column */
body.woocommerce-order-received .woocommerce{
  max-width:820px;margin-inline:auto;font-family:var(--etx-font);
}
body.woocommerce-order-received .woocommerce > .woocommerce-order{padding-block-start:64px}

/* Hide WooCommerce's default plain "order received" line — the hero replaces it. */
body.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received,
body.woocommerce-order-received p.woocommerce-notice--success{display:none}

/* ---- Success hero ---- */
.etx-ty-hero{text-align:center;padding-block:8px 8px}
.etx-ty-check{
  width:84px;height:84px;margin:0 auto 20px;border-radius:50%;
  background:var(--etx-tint);display:flex;align-items:center;justify-content:center;
  animation:etx-ty-pop .4s ease-out;
}
.etx-ty-check svg{width:40px;height:40px;stroke:var(--etx-green-700);fill:none}
@keyframes etx-ty-pop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.etx-ty-check{animation:none}}
.etx-ty-title{
  font-family:var(--etx-font);font-weight:700;letter-spacing:-.02em;
  font-size:clamp(26px,3.6vw,34px);color:var(--etx-ink);margin:0 0 10px;line-height:1.15;
}
.etx-ty-sub{
  font-family:var(--etx-font);font-size:16px;line-height:1.6;color:var(--etx-ink-soft);
  margin:0 auto;max-width:52ch;
}
.etx-ty-sub strong{color:var(--etx-ink);font-weight:600}

/* ---- Order overview strip ---- */
body.woocommerce-order-received ul.woocommerce-order-overview{
  list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0;
  margin:32px 0 0;padding:0;border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);
  background:var(--etx-card);box-shadow:var(--etx-shadow);overflow:hidden;
}
/* WooCommerce clearfix pseudo-elements would take grid cells — remove them. */
body.woocommerce-order-received ul.woocommerce-order-overview::before,
body.woocommerce-order-received ul.woocommerce-order-overview::after{content:none !important;display:none !important}
body.woocommerce-order-received ul.woocommerce-order-overview li{
  border:none;border-inline-end:1px solid var(--etx-line);padding:16px 18px;margin:0;
  font-family:var(--etx-font);font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--etx-ink-faint);font-weight:600;line-height:1.4;text-align:start;
}
body.woocommerce-order-received ul.woocommerce-order-overview li:last-child{border-inline-end:none}
body.woocommerce-order-received ul.woocommerce-order-overview li strong{
  display:block;margin-block-start:6px;font-family:var(--etx-font);font-weight:700;font-size:15px;
  letter-spacing:0;text-transform:none;color:var(--etx-ink);overflow-wrap:anywhere;
}
@media (max-width:600px){
  body.woocommerce-order-received ul.woocommerce-order-overview{grid-template-columns:1fr 1fr}
  body.woocommerce-order-received ul.woocommerce-order-overview li:nth-child(even){border-inline-end:none}
}

/* COD / gateway instructions line */
body.woocommerce-order-received .woocommerce-thankyou-order-received + p,
body.woocommerce-order-received .woocommerce-order > p:not(.etx-ty-sub){
  font-family:var(--etx-font);font-size:14px;color:var(--etx-ink-faint);text-align:center;margin:18px 0 0;
}

/* ---- Section headings (Order details / Billing address) ---- */
body.woocommerce-order-received .woocommerce-order-details h2,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-customer-details h2,
body.woocommerce-order-received h2.woocommerce-order-details__title{
  font-family:var(--etx-font) !important;font-weight:700;letter-spacing:-.01em;
  font-size:19px !important;line-height:1.2;color:var(--etx-ink);margin:40px 0 16px;
}

/* ---- Order details table ---- */
body.woocommerce-order-received .woocommerce-table--order-details{
  border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);overflow:hidden;
  border-collapse:separate;border-spacing:0;background:var(--etx-card);box-shadow:var(--etx-shadow);margin:0;
  font-family:var(--etx-font);
}
body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td{
  border:none;border-block-end:1px solid var(--etx-line);padding:14px 18px;font-size:14px;color:var(--etx-ink-soft);text-align:start;
}
body.woocommerce-order-received .woocommerce-table--order-details thead th{
  background:var(--etx-tint);font-family:var(--etx-font);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--etx-ink-faint);font-weight:600;
}
body.woocommerce-order-received .woocommerce-table--order-details td.product-name{color:var(--etx-ink);font-weight:500}
body.woocommerce-order-received .woocommerce-table--order-details td.product-name a{color:var(--etx-ink);text-decoration:none;font-weight:600}
body.woocommerce-order-received .woocommerce-table--order-details td.product-name a:hover{color:var(--etx-blue-700)}
body.woocommerce-order-received .woocommerce-table--order-details td.product-total,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td{
  text-align:end !important;font-family:var(--etx-font);font-weight:600;color:var(--etx-ink) !important;font-variant-numeric:tabular-nums;
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot th{
  text-align:start;font-family:var(--etx-font);font-weight:500;color:var(--etx-ink-faint);
}
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td{
  font-family:var(--etx-font);font-weight:700;font-size:16px;color:var(--etx-ink) !important;
}
/* beat theme lime on amounts */
body.woocommerce-order-received .woocommerce-table--order-details .amount,
body.woocommerce-order-received .woocommerce-table--order-details bdi{color:inherit !important}
body.woocommerce-order-received .woocommerce-table--order-details tr:last-child td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td{border-block-end:none}

/* ---- Customer / addresses ---- */
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns--addresses{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0;
}
@media (max-width:600px){
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns--addresses{grid-template-columns:1fr}
}
body.woocommerce-order-received .woocommerce-customer-details address{
  border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);background:var(--etx-card);
  padding:18px 20px;font-family:var(--etx-font);font-size:14.5px;line-height:1.7;color:var(--etx-ink-soft);
  font-style:normal;box-shadow:var(--etx-shadow);
}
body.woocommerce-order-received .woocommerce-customer-details address p{margin:0}

/* ---- What happens next ---- */
.etx-ty-next{margin:48px 0 0}
.etx-ty-next-title{
  font-family:var(--etx-font);font-weight:700;letter-spacing:-.01em;font-size:19px;color:var(--etx-ink);margin:0 0 18px;
}
.etx-ty-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;counter-reset:none}
@media (max-width:700px){.etx-ty-steps{grid-template-columns:1fr}}
.etx-ty-step{
  position:relative;background:var(--etx-card);border:1px solid var(--etx-line);border-radius:var(--etx-radius-card);
  box-shadow:var(--etx-shadow);padding:20px 18px 18px;
}
.etx-ty-step-num{
  position:absolute;inset-block-start:14px;inset-inline-end:14px;width:22px;height:22px;border-radius:50%;
  background:var(--etx-tint);color:var(--etx-blue-700);font-family:var(--etx-font);font-weight:700;font-size:12px;
  display:flex;align-items:center;justify-content:center;
}
.etx-ty-step-icon{width:40px;height:40px;border-radius:10px;background:var(--etx-tint);display:flex;align-items:center;justify-content:center;margin-block-end:12px}
.etx-ty-step-icon svg{width:20px;height:20px;stroke:var(--etx-blue-700);fill:none}
.etx-ty-step-text strong{display:block;font-family:var(--etx-font);font-size:15px;color:var(--etx-ink);margin-block-end:4px}
.etx-ty-step-text span{font-family:var(--etx-font);font-size:13.5px;color:var(--etx-ink-soft);line-height:1.5}

.etx-ty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:32px 0 8px}
body.woocommerce-order-received .etx-ty-actions .etx-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 28px;
  background:var(--etx-green) !important;color:var(--etx-green-ink) !important;border:none;border-radius:var(--etx-radius-btn);
  font-family:var(--etx-font);font-weight:700;font-size:15px;text-decoration:none;transition:background .2s ease,color .2s ease;
}
body.woocommerce-order-received .etx-ty-actions .etx-btn-primary:hover{background:var(--etx-green-700) !important;color:#fff !important}
body.woocommerce-order-received .etx-ty-actions .etx-btn-outline{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;background:transparent;
  color:var(--etx-ink);border:1.5px solid var(--etx-gray);border-radius:var(--etx-radius-btn);font-family:var(--etx-font);
  font-weight:600;font-size:14px;text-decoration:none;transition:border-color .2s ease,color .2s ease,background .2s ease;
}
body.woocommerce-order-received .etx-ty-actions .etx-btn-outline:hover{border-color:var(--etx-blue);color:var(--etx-blue-700);background:var(--etx-blue-tint)}

/* trust strip / ribbon spacing on thank-you (they render full content width;
   pull them out of the narrow centered column) */
body.woocommerce-order-received .etx-trust-strip,
body.woocommerce-order-received .etx-service-ribbon{margin-block-start:56px}

/* =====================================================================
   Neutralize the theme's animated button-sweep pseudo-elements (they fill
   with off-brand forest #1C3029 on hover and would cover our blue hover).
   Our buttons transition background colour directly instead.
   ===================================================================== */
body.single-product .etx-pdp button::before,
body.single-product .etx-pdp button::after,
body.single-product .etx-pdp .button::before,
body.single-product .etx-pdp .button::after,
body.single-product .etx-sticky-cta::before,
body.single-product .etx-sticky-cta::after,
body.woocommerce-cart .woocommerce button::before,
body.woocommerce-cart .woocommerce button::after,
body.woocommerce-cart .woocommerce .button::before,
body.woocommerce-cart .woocommerce .button::after,
body.woocommerce-cart .etx-btn-primary::before,
body.woocommerce-cart .etx-btn-primary::after,
body.woocommerce-checkout .woocommerce button::before,
body.woocommerce-checkout .woocommerce button::after,
body.woocommerce-checkout .woocommerce .button::before,
body.woocommerce-checkout .woocommerce .button::after,
body.woocommerce-order-received .etx-btn-primary::before,
body.woocommerce-order-received .etx-btn-primary::after{
  content:none !important;display:none !important;
}
