/* =====================================================================
   Entotox — store page + shared product card + product-page redesign layer
   (inc/woocommerce-store.php, woocommerce/archive-product.php,
    woocommerce/content-product.php, inc/woocommerce-product.php)

   Follows the site's own system: Montserrat (Tajawal in RTL),
   brand green #3AAE2A, beige #F6F5F0 bands, the pale-green eyebrow tag,
   10px buttons. Logical properties throughout, so Arabic is a dir switch.
   ===================================================================== */

:root{
  --etx-green:#3aae2a;        /* primary: buttons, links, accents */
  --etx-hover:#2eaac4;        /* hover for every interactive element */
  --etx-green-700:#3aae2a;    /* legacy alias of the primary */
  --etx-green-tint:#eef6e6;
  --etx-blue:#2eaac4;
  --etx-blue-700:#1a7d92;
  --etx-ink:#2b292a;
  --etx-ink-soft:#4a4849;
  --etx-ink-faint:#767476;
  --etx-beige:#f6f5f0;
  --etx-line:#e6e4dc;           /* warm line, matches the beige family */
  --etx-card:#ffffff;
  --etx-wa:#25d366;
  --etx-wa-700:#1da851;
  --etx-shadow-sm:0 1px 2px rgba(60,52,30,.06);
  --etx-shadow-lg:0 2px 4px rgba(60,52,30,.05),0 18px 40px -12px rgba(60,52,30,.18);
  --etx-r-sm:10px;
  --etx-r-md:14px;
  --etx-r-lg:20px;
  --etx-font:"Montserrat",sans-serif;
  --etx-ease:cubic-bezier(.2,.7,.2,1);
}
.rtl{--etx-font:"Tajawal","Montserrat","IBM Plex Sans Arabic",-apple-system,"Segoe UI",sans-serif}

/* ---------------------------------------------------------------------
   Shared bits
   --------------------------------------------------------------------- */
.etx-eyebrow-tag{
  display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;
  padding:6px 12px;border-radius:6px;background:var(--etx-green-tint);
  font-family:var(--etx-font);font-size:12px;font-weight:500;line-height:1.2;
  letter-spacing:1.5px;text-transform:uppercase;color:var(--etx-green-700);
}
.rtl .etx-eyebrow-tag{letter-spacing:0;font-size:13px}
.etx-eyebrow-tag svg{width:14px;height:14px;fill:var(--etx-green)}

.etx-store-wrap{max-width:1240px;margin-inline:auto;padding-inline:28px}

.etx-link-arrow{
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  font-family:var(--etx-font);font-size:14px;font-weight:600;color:var(--etx-green-700);
  text-decoration:none;transition:gap .2s var(--etx-ease),color .2s ease;
}
.etx-link-arrow::after{content:"→";transition:transform .2s var(--etx-ease)}
.rtl .etx-link-arrow::after{content:"←"}
.etx-link-arrow:hover{color:var(--etx-hover)}
.etx-link-arrow:hover::after{transform:translateX(3px)}
.rtl .etx-link-arrow:hover::after{transform:translateX(-3px)}

.etx-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:50px;padding:0 26px;border-radius:var(--etx-r-sm);border:1.5px solid transparent;
  font-family:var(--etx-font);font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .1s ease;
}
.etx-btn:active{transform:translateY(1px)}
.etx-btn--primary{background:var(--etx-green);color:#fff}
.etx-btn--primary:hover{background:var(--etx-hover);color:#fff}
.etx-btn--wa{background:#fff;color:var(--etx-green);border-color:var(--etx-green)}
.etx-btn--wa:hover{background:var(--etx-hover);color:#fff}
.etx-btn svg{width:19px;height:19px}

/* ---------------------------------------------------------------------
   Product card (shop grid, category pages, related products)
   Image, title, quote button. WhatsApp + view icons live in the image frame.
   --------------------------------------------------------------------- */
.etx-grid{
  display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 24px;
  list-style:none;margin:0 !important;padding:0 !important;
}
.etx-grid::before,.etx-grid::after,
.related.products ul.products::before,.related.products ul.products::after{content:none !important;display:none !important}

li.product.etx-card{
  position:relative;display:flex;flex-direction:column;
  width:auto !important;margin:0 !important;padding:0 !important;float:none !important;
  background:none;text-align:start;
}
li.product.etx-card[hidden]{display:none !important}
/* Store page: three per row (related products on product pages keep four) */
body.etx-store .etx-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;max-width:1080px;margin-inline:auto !important}

.etx-card-media{
  position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:var(--etx-r-lg);background:var(--etx-beige);
  transition:transform .35s var(--etx-ease),box-shadow .35s var(--etx-ease);
}
/* Hover: the image frame lifts a little onto a soft shadow and the title picks
   up the hover colour. The photo itself is never scaled: resampling it on hover
   is what softened the printed label text. */
li.product.etx-card:hover .etx-card-media{transform:translateY(-4px);box-shadow:0 14px 28px -14px rgba(60,52,30,.28)}
li.product.etx-card:hover .etx-card-title a{color:var(--etx-hover)}
.etx-card-image{display:block;width:100%;height:100%}
.etx-card-image img{
  width:100% !important;height:100% !important;margin:0 !important;object-fit:cover;border-radius:0 !important;
  /* White studio backgrounds melt into the beige so the grid reads as one set. */
  mix-blend-mode:multiply;
}

/* Icons inside the frame, top corner */
.etx-card-icons{
  position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:2;
  display:flex;flex-direction:column;gap:8px;
}
.etx-card-icon{
  width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;background:#fff;color:var(--etx-ink);box-shadow:var(--etx-shadow-sm);
  transition:background .2s ease,color .2s ease,transform .2s var(--etx-ease),opacity .2s ease;
}
.etx-card-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.etx-card-icon--wa{color:var(--etx-green)}
.etx-card-icon--wa svg{fill:currentColor;stroke:none;width:21px;height:21px}
.etx-card-icon:hover{background:var(--etx-hover);color:#fff}
.etx-card-icon--wa:hover{background:var(--etx-hover);color:#fff}
.etx-card-icon:focus-visible{outline:2px solid var(--etx-green);outline-offset:2px}

.etx-card-body{display:flex;flex-direction:column;flex:1 1 auto;padding:16px 2px 0}
.etx-card-title{
  margin:0 0 14px !important;padding:0 !important;
  font-family:var(--etx-font) !important;font-size:16px !important;font-weight:500 !important;
  line-height:1.35 !important;letter-spacing:-.01em;text-transform:none !important;color:var(--etx-ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.etx-card-title a{color:inherit;text-decoration:none;transition:color .2s ease}
.etx-card-title a:hover{color:var(--etx-hover)}
.etx-card-title a:focus-visible{outline:2px solid var(--etx-green);outline-offset:2px;border-radius:4px}
/* Button pinned to the bottom so a row of cards lines up */
.etx-card-quote{
  margin-top:auto;display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;
  border-radius:var(--etx-r-sm);border:1.5px solid var(--etx-green);background:transparent;color:var(--etx-green) !important;
  font-family:var(--etx-font);font-size:14px;font-weight:600;text-decoration:none;text-align:center;line-height:1.2;
  transition:background .2s ease,color .2s ease,transform .1s ease;
}
.etx-card-quote:hover{background:var(--etx-hover);border-color:var(--etx-hover);color:#fff !important}
.etx-card-quote:active{transform:translateY(1px)}
.etx-card-quote:focus-visible{outline:2px solid var(--etx-green);outline-offset:2px}

/* ---------------------------------------------------------------------
   Store page
   --------------------------------------------------------------------- */
body.etx-store #site-content{background:#fff;padding:0}

.etx-store-header{padding-block:64px 32px;text-align:center}
.etx-store-title{
  margin:0 auto 14px;max-width:22ch;
  font-family:var(--etx-font);font-weight:700;font-size:clamp(30px,4vw,46px);
  line-height:1.12;letter-spacing:-.03em;color:var(--etx-ink);text-wrap:balance;
}
.rtl .etx-store-title{letter-spacing:0;line-height:1.35}
.etx-store-intro{
  margin:0 auto;max-width:60ch;font-family:var(--etx-font);font-size:16px;line-height:1.7;color:var(--etx-ink-faint);text-wrap:pretty;
}

/* Category filter */
.etx-chip.is-active:hover{background:var(--etx-hover);border-color:var(--etx-hover);color:#fff}
.etx-store-filter .etx-chips{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0;padding:0 0 40px;list-style:none;
}
.etx-chip{
  display:inline-flex;align-items:center;white-space:nowrap;min-height:40px;padding:0 18px;
  border-radius:99px;border:1.5px solid var(--etx-line);background:#fff;
  font-family:var(--etx-font);font-size:14px;font-weight:500;color:var(--etx-ink-soft);text-decoration:none;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.etx-chip:hover{border-color:var(--etx-hover);color:var(--etx-hover)}
.etx-chip.is-active{background:var(--etx-green);border-color:var(--etx-green);color:#fff}
.etx-chip:focus-visible{outline:2px solid var(--etx-green);outline-offset:2px}

.etx-store-products{padding-block:0 24px}
.etx-store-empty{font-family:var(--etx-font);color:var(--etx-ink-faint);padding:40px 0;text-align:center}
.etx-store-main .woocommerce-pagination{margin-top:32px}

/* Help band */
.etx-store-cta{padding-block:72px 96px;background:#fff}
.etx-store-cta-card{
  position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.4fr) auto;align-items:center;gap:32px;
  padding:44px 48px;border-radius:24px;background:var(--etx-beige);
}
.etx-store-cta-card::after{
  content:"";position:absolute;inset-block-end:-160px;inset-inline-start:-100px;width:380px;height:380px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(47,170,196,.12),rgba(47,170,196,0));pointer-events:none;
}
.etx-store-cta-text,.etx-store-cta-actions{position:relative;z-index:1}
.etx-store-cta h2{
  margin:0 0 10px;font-family:var(--etx-font);font-weight:700;font-size:clamp(24px,2.6vw,34px);
  line-height:1.15;letter-spacing:-.025em;color:var(--etx-ink);text-wrap:balance;
}
.rtl .etx-store-cta h2{letter-spacing:0;line-height:1.35}
.etx-store-cta h2 span{color:var(--etx-green)}
.etx-store-cta p{margin:0;max-width:58ch;font-family:var(--etx-font);font-size:15.5px;line-height:1.7;color:var(--etx-ink-soft)}
.etx-store-cta-actions{display:flex;flex-direction:column;gap:10px;min-width:260px}

/* ---------------------------------------------------------------------
   Product page — redesign layer (on top of entotox-shop.css)
   --------------------------------------------------------------------- */
body.single-product .bugro-content-wrap,
body.single-product #site-content{background:#fff}

/* Breathing room under the header: scales from 40px on phones to 88px on wide screens. */
.single-product div.product.etx-pdp{max-width:1240px;padding-top:clamp(40px,6vw,88px)}
.etx-pdp .etx-pdp-main{gap:56px}

/* Gallery: soft beige stage instead of a bordered box */
.etx-pdp .woocommerce-product-gallery__image{
  border:0 !important;border-radius:var(--etx-r-lg) !important;background:var(--etx-beige) !important;
}
.etx-pdp .flex-control-thumbs{gap:10px;margin-top:14px}
.etx-pdp .flex-control-thumbs li{width:76px !important}
.etx-pdp .flex-control-thumbs img{
  border:2px solid transparent !important;border-radius:var(--etx-r-sm) !important;padding:0 !important;
  background:var(--etx-beige) !important;mix-blend-mode:multiply;opacity:.75;
}
.etx-pdp .flex-control-thumbs img.flex-active,
.etx-pdp .flex-control-thumbs img.flex-active{border-color:var(--etx-green) !important;opacity:1}
.etx-pdp .flex-control-thumbs img:hover{border-color:var(--etx-hover) !important;opacity:1}
.etx-pdp .woocommerce-product-gallery__trigger{z-index:3}

/* Summary */
.etx-pdp .summary.entry-summary{position:sticky;top:24px}
.etx-pdp .etx-eyebrow-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.etx-pdp .etx-eyebrow-row .etx-eyebrow{
  margin:0;font-weight:500 !important;letter-spacing:1.5px !important;color:var(--etx-green-700) !important;
}
.rtl .etx-pdp .etx-eyebrow-row .etx-eyebrow{letter-spacing:0 !important;font-size:13px}
.single-product .etx-pdp .product_title.entry-title{
  font-size:clamp(28px,3.4vw,42px) !important;line-height:1.1 !important;letter-spacing:-.03em !important;
  margin:0 0 18px !important;
}
.rtl.single-product .etx-pdp .product_title.entry-title{letter-spacing:0 !important;line-height:1.35 !important}
.etx-pdp .woocommerce-product-details__short-description{
  padding:18px 20px;border-radius:var(--etx-r-md);background:var(--etx-beige);font-size:14.5px;
}
.etx-pdp .woocommerce-product-details__short-description ul li:last-child{margin-bottom:0}
.etx-pdp .woocommerce-product-details__short-description ul li::before{background-color:#fff}
.etx-pdp .etx-stock{margin:4px 0 16px}
.single-product .etx-pdp .etx-quote-cta .etx-btn-outline,
.etx-pdp .etx-btn-whatsapp{min-height:52px;border-radius:var(--etx-r-sm) !important;font-size:15px}
.single-product .etx-pdp .etx-quote-cta .etx-btn-outline:active,
.etx-pdp .etx-btn-whatsapp:active{transform:translateY(1px)}
.etx-pdp .etx-trust-row{gap:10px 18px;border-top-color:var(--etx-line)}
.etx-pdp .etx-trust-row svg{stroke:var(--etx-green-700) !important}
.etx-pdp .etx-trust-row a.etx-trust-item:hover{color:var(--etx-hover) !important}

/* Trust strip: light, on-palette (was a lone charcoal band) */
.etx-trust-strip{background:transparent !important;margin-block-start:28px !important}
.etx-trust-strip .etx-trust-strip-inner{
  max-width:1240px !important;padding:0 28px !important;gap:16px !important;
}
.etx-trust-strip .etx-ts-item{
  padding:18px;border-radius:var(--etx-r-md);border:1px solid var(--etx-line);background:#fff;
  color:var(--etx-ink-faint) !important;font-family:var(--etx-font) !important;font-size:13px !important;
}
.etx-trust-strip .etx-ts-item strong{color:var(--etx-ink) !important;font-size:14px;margin-bottom:2px}
.etx-trust-strip svg{
  width:40px !important;height:40px !important;padding:9px;border-radius:10px;
  background:var(--etx-green-tint);stroke:var(--etx-green-700) !important;
}

/* Related products */
.single-product .related.products{max-width:1240px !important;margin-top:72px}
.single-product .related.products > h2{
  font-family:var(--etx-font) !important;font-weight:700 !important;font-size:clamp(24px,2.4vw,30px) !important;
  letter-spacing:-.025em !important;text-transform:none !important;margin:0 0 24px !important;
}
.rtl.single-product .related.products > h2{letter-spacing:0 !important}
.single-product .related.products ul.products{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:22px !important}

/* Services band — beige, like the store help band (no lone dark section) */
.etx-service-ribbon{max-width:1240px !important;margin-top:72px !important}
.etx-service-ribbon .etx-sr-inner{
  position:relative;overflow:hidden;padding:34px 40px !important;border:0 !important;border-radius:24px !important;
  background:var(--etx-beige) !important;
}
.etx-service-ribbon .etx-sr-inner::after{
  content:"";position:absolute;inset-block-start:-140px;inset-inline-end:-80px;width:360px;height:360px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(58,174,42,.16),rgba(58,174,42,0));pointer-events:none;
}
.etx-service-ribbon .etx-sr-text,.etx-service-ribbon a.etx-btn-outline{position:relative;z-index:1}
.etx-service-ribbon .etx-sr-text strong{color:var(--etx-ink) !important;font-size:clamp(20px,2vw,24px) !important;letter-spacing:-.02em;margin-bottom:6px !important}
.etx-service-ribbon .etx-sr-text span{color:var(--etx-ink-soft) !important;font-size:15px !important}
.etx-service-ribbon a.etx-btn-outline{
  min-height:50px;border:0 !important;border-radius:var(--etx-r-sm) !important;background:var(--etx-green) !important;color:#fff !important;
  padding:0 26px !important;font-size:15px !important;
}
.etx-service-ribbon a.etx-btn-outline:hover{background:var(--etx-hover) !important;color:#fff !important}

/* Sticky bar buttons follow the 10px radius */
.etx-sticky-bar .etx-sticky-cta{border-radius:var(--etx-r-sm) !important}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width:1100px){
  .etx-grid,.single-product .related.products ul.products{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (max-width:900px){
  .etx-pdp .summary.entry-summary{position:static}
  .etx-store-cta-card{grid-template-columns:1fr;padding:36px 30px}
  .etx-store-cta-actions{min-width:0;flex-direction:row;flex-wrap:wrap}
}
@media (max-width:760px){
  .etx-store-wrap{padding-inline:18px}
  .etx-grid,.single-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  .etx-store-cta{padding-block:48px 64px}
  .etx-store-cta-actions .etx-btn{flex:1 1 100%}
  .etx-trust-strip .etx-trust-strip-inner{padding:0 18px !important}
  .etx-service-ribbon .etx-sr-inner{padding:28px 24px !important}
  .single-product .related.products{margin-top:48px}
  .etx-grid,.single-product .related.products ul.products{gap:22px 12px !important}
  .etx-store-header{padding-block:40px 24px}
  .etx-store-intro{font-size:15px}
  .etx-store-filter .etx-chips{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-18px;padding:0 18px 28px}
  .etx-store-filter .etx-chips::-webkit-scrollbar{display:none}
  .etx-card-title{font-size:14.5px !important;margin-bottom:10px !important}
  .etx-card-quote{min-height:42px;font-size:13px;padding:0 8px}
  .etx-card-icons{inset-block-start:8px;inset-inline-end:8px;gap:6px}
  .etx-card-icon{width:34px;height:34px}
  .etx-card-icon svg{width:16px;height:16px}
  .etx-card-icon--wa svg{width:18px;height:18px}
}

@media (prefers-reduced-motion:reduce){
  .etx-card-media,.etx-card-icon,.etx-link-arrow::after{transition:none}
  li.product.etx-card:hover .etx-card-media{transform:none}
}

/* ---------------------------------------------------------------------
   Theme fixes on product pages
   --------------------------------------------------------------------- */
/* bugro/woo-styles.css widens every .container on product pages to 1490px,
   which pushes the footer past the viewport edge. Restore the site width. */
@media (min-width:1400px){
  body.single-product .site-footer .container{max-width:1300px}
}
/* The theme draws a green frame round each gallery thumbnail <li>. */
.etx-pdp .flex-control-thumbs li{border:0 !important;padding:0 !important;background:none !important}
/* ...and a green border round the whole gallery block. */
.etx-pdp .woocommerce-product-gallery{border:0 !important;background:none !important}  /* keep the theme's padding: it reserves room for the thumbnails */
/* On small screens the theme pins the thumbnail strip absolutely over the
   bottom of the main image; keep it in flow beneath the image. */
.etx-pdp .flex-control-thumbs{position:static !important;inset:auto !important;transform:none !important}

/* ---------------------------------------------------------------------
   Button labels: regular weight (400) on every shop/product button
   --------------------------------------------------------------------- */
.etx-card-quote,
.etx-btn,
.single-product .etx-pdp .etx-btn-outline,
.etx-btn-whatsapp,
.etx-service-ribbon a.etx-btn-outline,
.etx-sticky-bar .etx-sticky-cta,
.etx-quote-body .forminator-button-submit{font-weight:400 !important}

/* ---------------------------------------------------------------------
   Keep labels readable when a button holds focus
   The theme's inline "a:focus, a:active { color: #3AAE2A }" outranks a
   single-class colour, so a green button that gets focus back (e.g. after
   the quote popup closes) turned its label green-on-green.
   --------------------------------------------------------------------- */
a.etx-btn--primary:focus,a.etx-btn--primary:active,
.single-product .etx-pdp .etx-quote-cta a.etx-btn-outline:focus,
.single-product .etx-pdp .etx-quote-cta a.etx-btn-outline:active,
.etx-sticky-bar a.etx-sticky-cta:focus,.etx-sticky-bar a.etx-sticky-cta:active,
.etx-service-ribbon a.etx-btn-outline:focus,.etx-service-ribbon a.etx-btn-outline:active{color:#fff !important}
a.etx-card-quote:focus:not(:hover),a.etx-btn--wa:focus:not(:hover),a.etx-btn-whatsapp:focus:not(:hover){color:var(--etx-green) !important}

/* ---------------------------------------------------------------------
   Product gallery — hover zoom (entotox-shop.js)
   The lens is a layer inside the image frame painted from the full-size
   photo, so nothing outside the frame moves and the photo is never
   upscaled from the smaller display image.
   --------------------------------------------------------------------- */
.etx-pdp .woocommerce-product-gallery__image > a{position:relative;display:block;overflow:hidden;border-radius:inherit}
.etx-zoom-lens{
  position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;
  background-color:var(--etx-beige);background-repeat:no-repeat;
  /* Same white-to-beige melt as the photo underneath, without blending into it. */
  background-blend-mode:multiply;
  transition:opacity .2s ease;
}
.etx-pdp .woocommerce-product-gallery__image.is-zooming .etx-zoom-lens{opacity:1}
@media (hover:hover) and (pointer:fine){
  .etx-pdp .woocommerce-product-gallery__image.has-zoom > a{cursor:zoom-in}
}
@media (prefers-reduced-motion:reduce){.etx-zoom-lens{transition:none}}

/* Visible attributes (glue board sizes) */
.etx-pdp .etx-pdp-attr{margin:0 0 20px}
.etx-pdp .etx-pdp-attr-label{
  display:block;margin:0 0 8px;font-family:var(--etx-font);font-size:13px;font-weight:500;color:var(--etx-ink-faint);
}
.etx-pdp .etx-pdp-attr ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.etx-pdp .etx-pdp-attr li{
  margin:0;padding:6px 12px;border:1px solid var(--etx-line);border-radius:8px;background:#fff;
  font-family:var(--etx-font);font-size:13.5px;font-weight:500;color:var(--etx-ink);font-variant-numeric:tabular-nums;
}
.etx-pdp .etx-pdp-attr li::before{display:none}
