/* ============================================================
   agentx-product.css — conditionally loaded page bundle
   Migrated out of inline <style> blocks that used to live directly
   inside each template file (not cached by the browser, duplicated
   parse cost on every page load). Only enqueued on the templates
   that actually need it — see agentx_enqueue() in functions.php.
   ============================================================ */


/* ---- Sticky Mobile Add to Cart Bar ---- */
.agx-sticky-atc{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  align-items:center;justify-content:space-between;gap:.75rem;
  background:#fff;border-top:1px solid #e8eaed;
  padding:.625rem .875rem calc(.625rem + env(safe-area-inset-bottom));
  box-shadow:0 -4px 16px rgba(0,0,0,.06);
  transform:translateY(100%);
  transition:transform .25s ease;
}
.agx-sticky-atc.is-visible{transform:translateY(0);}
.agx-sticky-atc__info{display:flex;align-items:center;gap:.625rem;min-width:0;}
.agx-sticky-atc__info img{width:40px;height:40px;object-fit:cover;border-radius:.375rem;flex-shrink:0;}
.agx-sticky-atc__name{font-size:.75rem;font-weight:600;color:#1a1f2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;margin:0;}
.agx-sticky-atc__price{font-size:.875rem;font-weight:700;color:#5cb85c;margin:0;}
.agx-sticky-atc__btn{flex-shrink:0;border:none;border-radius:9999px;background:#5cb85c;color:#fff;font-weight:700;font-size:.8125rem;padding:0 1.25rem;height:44px;cursor:pointer;font-family:inherit;transition:background .2s,transform .12s ease;}
.agx-sticky-atc__btn:active{transform:scale(0.96);}
.agx-sticky-atc__btn:hover{background:#449d44;}
@media (max-width:767px){
  .agx-sticky-atc{display:flex;}
}
@media (prefers-reduced-motion: reduce){
  .agx-sticky-atc{transition:none;}
  .agx-sticky-atc__btn:active{transform:none;}
}
#agx-pd*,#agx-pd*::before,#agx-pd*::after{box-sizing:border-box;margin:0;padding:0;}
#agx-pd{font-family:'Inter',ui-sans-serif,system-ui,sans-serif;color:#1a1f2e;line-height:1.5;}
#agx-pd .bc{position:relative;border-bottom:1px solid #e8eaed;background:linear-gradient(to right,rgba(92,184,92,.08),transparent);overflow:hidden;}
#agx-pd .bc::before{content:'';position:absolute;inset:0;background:radial-gradient(400px 120px at 10% 50%,rgba(92,184,92,.25),transparent 70%);pointer-events:none;opacity:.6;}
#agx-pd .bc-in{max-width:1280px;margin:0 auto;padding:1.25rem 1rem;position:relative;}
#agx-pd .bc-nav{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.25rem;flex-wrap:nowrap;overflow:hidden;}
#agx-pd .bc-nav a{color:#6b7280;text-decoration:none;}
#agx-pd .bc-nav a:hover{color:#5cb85c;}
#agx-pd .bc-h1{font-size:1.125rem;font-weight:900;color:#1a1f2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80vw;}
#agx-pd .wrap{max-width:1280px;margin:0 auto;padding:2rem 1rem 3rem;}
/* product grid */
#agx-pd .pgrid{display:grid;gap:2rem;grid-template-columns:1fr;}
@media(min-width:1024px){#agx-pd .pgrid{grid-template-columns:1fr 1fr;align-items:start;}}
/* gallery */
#agx-pd .gallery{display:grid;grid-template-columns:80px minmax(0,1fr);gap:1rem;}
#agx-pd .thumbs{display:flex;flex-direction:column;gap:.75rem;}
#agx-pd .thumb{aspect-ratio:1/1;border-radius:.75rem;overflow:hidden;border:2px solid #e8eaed;cursor:pointer;background:#f7f8fa;transition:border-color .2s,transform .2s;}
#agx-pd .thumb.active{border-color:#5cb85c;transform:scale(1.02);box-shadow:0 4px 12px rgba(0,0,0,.1);}
#agx-pd .thumb:hover{border-color:rgba(92,184,92,.5);}
#agx-pd .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
#agx-pd .main-img{position:relative;aspect-ratio:1/1;border-radius:1rem;overflow:hidden;background:#f7f8fa;cursor:zoom-in;}
#agx-pd .main-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s ease;}
#agx-pd .main-img:hover img{transform:scale(1.1);}
#agx-pd .mbadge{position:absolute;top:1rem;left:1rem;z-index:10;border-radius:.375rem;background:#5cb85c;color:#fff;padding:.375rem .75rem;font-size:.75rem;font-weight:700;line-height:1;}
#agx-pd .expand-btn{position:absolute;top:1rem;right:1rem;z-index:10;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);backdrop-filter:blur(4px);border:1px solid #e8eaed;cursor:pointer;opacity:0;transition:opacity .2s;color:#1a1f2e;}
#agx-pd .main-img:hover .expand-btn{opacity:1;}
/* info */
#agx-pd .brand{font-size:.75rem;font-weight:700;text-transform:uppercase;color:#449d44;letter-spacing:.2em;}
#agx-pd .ptitle{margin-top:.5rem;font-size:1.5rem;font-weight:900;line-height:1.2;color:#1a1f2e;}
@media(min-width:768px){#agx-pd .ptitle{font-size:2rem;}}
#agx-pd .meta{margin-top:.75rem;display:flex;align-items:center;gap:.75rem;font-size:.875rem;flex-wrap:wrap;}
#agx-pd .stars{color:#f59e0b;letter-spacing:1px;}
#agx-pd .rev-count{color:#6b7280;}
#agx-pd .sep{color:#d1d5db;}
#agx-pd .in-stock{color:#449d44;font-weight:600;display:flex;align-items:center;gap:.25rem;}
#agx-pd .prices{margin-top:1.25rem;display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap;}
#agx-pd .pnow{font-size:2.5rem;font-weight:900;color:#dc2626;}
#agx-pd .pold{font-size:1.125rem;color:#9ca3af;text-decoration:line-through;}
#agx-pd .psave{border-radius:9999px;background:rgba(92,184,92,.1);color:#449d44;font-size:.75rem;font-weight:700;padding:.25rem .75rem;white-space:nowrap;}
#agx-pd .pdesc{margin-top:1rem;font-size:.875rem;color:#6b7280;line-height:1.7;}
/* colors */
#agx-pd .color-section{margin-top:1.5rem;}
#agx-pd .color-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#1a1f2e;display:block;margin-bottom:.5rem;}
#agx-pd .swatches{display:flex;gap:.5rem;}
#agx-pd .sw{width:32px;height:32px;border-radius:50%;border:2px solid #e8eaed;cursor:pointer;transition:transform .2s;}
#agx-pd .sw:hover{transform:scale(1.1);}
#agx-pd .sw.on{border-color:#5cb85c;}
/* actions */
#agx-pd .actions{margin-top:1.5rem;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;}
#agx-pd .qty{display:inline-flex;align-items:center;border-radius:9999px;border:1px solid #e8eaed;height:48px;}
#agx-pd .qty button{display:grid;place-items:center;width:48px;height:48px;border:none;background:none;cursor:pointer;color:#1a1f2e;transition:color .2s;}
#agx-pd .qty button:hover{color:#5cb85c;}
#agx-pd .qty-n{width:40px;text-align:center;font-weight:700;font-size:1rem;}
#agx-pd .btn-add{display:inline-flex;align-items:center;gap:.5rem;height:48px;border-radius:9999px;background:#5cb85c;color:#fff;padding:0 1.5rem;font-weight:700;font-size:.875rem;border:none;cursor:pointer;font-family:inherit;transition:background .2s,transform .2s,box-shadow .2s;}
#agx-pd .btn-add:hover{background:#449d44;transform:scale(1.02);box-shadow:0 8px 24px -8px rgba(92,184,92,.5);}
#agx-pd .btn-add:active{transform:scale(.98);}
#agx-pd .btn-buy{display:inline-flex;align-items:center;height:48px;border-radius:9999px;background:#1a1f2e;color:#fff;padding:0 1.5rem;font-weight:700;font-size:.875rem;text-decoration:none;font-family:inherit;transition:opacity .2s;}
#agx-pd .btn-buy:hover{opacity:.9;}
#agx-pd .icon-btn{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid #e8eaed;background:none;cursor:pointer;color:#1a1f2e;transition:border-color .2s,color .2s;}
#agx-pd .icon-btn:hover{border-color:#5cb85c;color:#5cb85c;}

/* guarantees */
#agx-pd .glist{margin-top:1.5rem;display:grid;gap:.75rem;grid-template-columns:1fr;}
@media(min-width:640px){#agx-pd .glist{grid-template-columns:repeat(3,1fr);}}
#agx-pd .g{display:flex;align-items:center;gap:.75rem;border-radius:.5rem;border:1px solid #e8eaed;padding:.75rem;transition:border-color .2s,background .2s;}
#agx-pd .g:hover{border-color:#5cb85c;background:rgba(92,184,92,.05);}
#agx-pd .g-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(92,184,92,.1);color:#5cb85c;flex-shrink:0;}
#agx-pd .g-tit{font-size:.75rem;font-weight:700;color:#1a1f2e;}
#agx-pd .g-sub{font-size:.6875rem;color:#6b7280;}
#agx-pd .pmeta{margin-top:1.5rem;border-top:1px solid #e8eaed;padding-top:1rem;font-size:.75rem;color:#6b7280;display:flex;flex-direction:column;gap:.25rem;}
#agx-pd .pmeta b{color:#1a1f2e;font-weight:600;}
/* tabs */
#agx-pd .tabs{margin-top:3.5rem;}
#agx-pd .tabs-nav{display:flex;align-items:center;gap:2rem;border-bottom:1px solid #e8eaed;flex-wrap:wrap;}
#agx-pd .tb{padding-bottom:.75rem;font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:none;border:none;cursor:pointer;color:#9ca3af;font-family:inherit;white-space:nowrap;transition:color .2s;}
#agx-pd .tb.on{color:#1a1f2e;border-bottom:2px solid #5cb85c;margin-bottom:-1px;}
#agx-pd .tp{padding:1.5rem 0;font-size:.875rem;color:#6b7280;line-height:1.7;max-width:720px;display:none;}
#agx-pd .tp.on{display:block;}
#agx-pd .tp ul{list-style:disc;padding-left:1.25rem;display:flex;flex-direction:column;gap:.25rem;margin-top:.75rem;}
#agx-pd .tp table{width:100%;border-collapse:collapse;font-size:.875rem;}
#agx-pd .tp table tr{border-bottom:1px solid #e8eaed;}
#agx-pd .tp table td{padding:.625rem 0;color:#6b7280;}
#agx-pd .tp table td:first-child{font-weight:600;color:#1a1f2e;width:160px;}
#agx-pd .rv{border-radius:.75rem;border:1px solid #e8eaed;padding:1rem;margin-bottom:1rem;}
#agx-pd .rv-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;}
#agx-pd .rv-av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(92,184,92,.1);color:#5cb85c;font-weight:700;font-size:.875rem;flex-shrink:0;}
#agx-pd .rv-name{font-size:.875rem;font-weight:700;color:#1a1f2e;}
#agx-pd .rv-stars{color:#f59e0b;font-size:.75rem;}
#agx-pd .rv-summary{display:flex;align-items:center;gap:2rem;background:#f7f8fa;border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:1.5rem;flex-wrap:wrap;}
#agx-pd .rv-avg{text-align:center;}
#agx-pd .rv-avg__num{font-size:3rem;font-weight:900;color:#1a1f2e;line-height:1;}
#agx-pd .rv-avg__stars{margin:.25rem 0;}
#agx-pd .rv-avg__count{font-size:.75rem;color:#6b7280;}
#agx-pd .rv-bars{flex:1;min-width:200px;}
#agx-pd .rv-bar-row{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.375rem;}
#agx-pd .rv-bar-fill{flex:1;height:6px;background:#e8eaed;border-radius:9999px;overflow:hidden;}
#agx-pd .rv-bar-fill div{height:100%;background:#f59e0b;border-radius:9999px;}
#agx-pd .rv-card{border-radius:.75rem;border:1px solid #e8eaed;padding:1.25rem;margin-bottom:1rem;}
#agx-pd .rv-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;}
#agx-pd .rv-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#f7f8fa;flex-shrink:0;}
#agx-pd .rv-name{font-weight:700;font-size:.9375rem;color:#1a1f2e;}
#agx-pd .rv-date{font-size:.75rem;color:#9ca3af;}
#agx-pd .rv-verified{font-size:.6875rem;background:rgba(92,184,92,.1);color:#449d44;font-weight:600;padding:.125rem .5rem;border-radius:9999px;}
#agx-pd .rv-form{background:#f7f8fa;border-radius:.75rem;padding:1.5rem;margin-top:1.5rem;}
#agx-pd .rv-form h3{font-size:1rem;font-weight:700;margin-bottom:1rem;}
#agx-pd .star-picker{display:flex;gap:.25rem;margin-bottom:1rem;}
#agx-pd .star-picker button{background:none;border:none;cursor:pointer;font-size:1.5rem;padding:0;transition:transform .15s;}
#agx-pd .star-picker button:hover{transform:scale(1.2);}
#agx-pd .rv-input{width:100%;border-radius:.5rem;border:1px solid #e8eaed;padding:.625rem .75rem;font-size:.875rem;font-family:inherit;outline:none;margin-bottom:.875rem;background:#fff;transition:border-color .2s;}
#agx-pd .rv-input:focus{border-color:#5cb85c;}
#agx-pd .rv-textarea{width:100%;border-radius:.5rem;border:1px solid #e8eaed;padding:.625rem .75rem;font-size:.875rem;font-family:inherit;outline:none;background:#fff;min-height:100px;resize:vertical;transition:border-color .2s;}
#agx-pd .rv-textarea:focus{border-color:#5cb85c;}
#agx-pd .btn-rv-submit{border-radius:9999px;background:#5cb85c;color:#fff;padding:0 1.5rem;height:44px;font-weight:700;font-size:.875rem;border:none;cursor:pointer;font-family:inherit;transition:background .2s;}
#agx-pd .btn-rv-submit:hover{background:#449d44;}
#agx-pd .rv-msg{font-size:.8125rem;padding:.625rem .875rem;border-radius:.375rem;}
#agx-pd .rv-msg.ok{background:rgba(92,184,92,.1);color:#449d44;}
#agx-pd .rv-msg.err{background:rgba(239,68,68,.1);color:#dc2626;}
#agx-pd .btn-write-review{display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #5cb85c;background:#fff;color:#5cb85c;padding:0 1.5rem;height:44px;font-weight:700;font-size:.875rem;cursor:pointer;font-family:inherit;transition:background .2s,color .2s;}
#agx-pd .btn-write-review:hover{background:#5cb85c;color:#fff;}
/* related */
#agx-pd .related{margin-top:3.5rem;}
#agx-pd .rh{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eaed;padding-bottom:.75rem;margin-bottom:1.25rem;}
#agx-pd .rh-title{font-size:1.125rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#1a1f2e;}
#agx-pd .rh-link{font-size:.75rem;font-weight:700;color:#449d44;text-decoration:none;}
#agx-pd .rh-link:hover{text-decoration:underline;}
#agx-pd .rgrid{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr);}
@media(min-width:640px){#agx-pd .rgrid{grid-template-columns:repeat(3,1fr);}}
@media(min-width:1024px){#agx-pd .rgrid{grid-template-columns:repeat(5,1fr);}}
#agx-pd .rc{position:relative;display:flex;flex-direction:column;border-radius:1rem;border:1px solid #e8eaed;background:#fff;padding:.75rem;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .3s;}
#agx-pd .rc:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(92,184,92,.45);border-color:rgba(92,184,92,.5);}
#agx-pd .rc .rcbadge{position:absolute;top:.75rem;left:.75rem;border-radius:.375rem;background:#5cb85c;color:#fff;padding:.25rem .5rem;font-size:.625rem;font-weight:700;line-height:1.2;}
#agx-pd .rc .rcimg{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:.75rem;background:#f7f8fa;text-decoration:none;}
#agx-pd .rc .rcimg img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s;}
#agx-pd .rc:hover .rcimg img{transform:scale(1.1);}
#agx-pd .rc .rcbody{margin-top:.75rem;display:flex;flex-direction:column;gap:.25rem;}
#agx-pd .rc .rcrat{font-size:.6875rem;color:#f59e0b;}
#agx-pd .rc .rcrat span{color:#6b7280;}
#agx-pd .rc .rcname{font-size:.875rem;font-weight:500;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.45rem;color:#1a1f2e;text-decoration:none;}
#agx-pd .rc .rcname:hover{color:#5cb85c;}
#agx-pd .rc .rcprice{font-size:1rem;font-weight:900;color:#dc2626;margin-top:.25rem;}
/* lightbox */
#agx-lb{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;padding:1rem;}
#agx-lb .lb-img{max-width:100%;max-height:80vh;object-fit:contain;border-radius:.5rem;display:block;}
#agx-lb .lb-close{position:absolute;top:1rem;right:1rem;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.1);border:none;cursor:pointer;color:#fff;}
#agx-lb .lb-prev{position:absolute;left:1rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.1);border:none;cursor:pointer;color:#fff;}
#agx-lb .lb-next{position:absolute;right:1rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.1);border:none;cursor:pointer;color:#fff;}


/* ---- Single Product — Variable (woocommerce/single-product-variable.php) ---- */
#agx-pd *,#agx-pd *::before,#agx-pd *::after{box-sizing:border-box;margin:0;padding:0;}
#agx-pd{font-family:'Inter',sans-serif;color:#1a1f2e;line-height:1.5;}
#agx-pd .bc{position:relative;border-bottom:1px solid #e8eaed;background:linear-gradient(to right,rgba(92,184,92,.08),transparent);overflow:hidden;}
#agx-pd .bc::before{content:'';position:absolute;inset:0;background:radial-gradient(400px 120px at 10% 50%,rgba(92,184,92,.25),transparent 70%);pointer-events:none;opacity:.6;}
#agx-pd .bc-in{max-width:1280px;margin:0 auto;padding:1.25rem 1rem;position:relative;}
#agx-pd .bc-nav{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.25rem;}
#agx-pd .bc-nav a{color:#6b7280;text-decoration:none;}
#agx-pd .bc-nav a:hover{color:#5cb85c;}
#agx-pd .bc-h1{font-size:1.125rem;font-weight:900;color:#1a1f2e;overflow:hidden;text-overflow:ellipsis;}
#agx-pd .wrap{max-width:1280px;margin:0 auto;padding:2rem 1rem 3rem;}
#agx-pd .pgrid{display:grid;gap:2rem;grid-template-columns:1fr;}
@media(min-width:1024px){#agx-pd .pgrid{grid-template-columns:1fr 1fr;align-items:start;}}
#agx-pd .gallery{display:grid;grid-template-columns:80px minmax(0,1fr);gap:1rem;}
#agx-pd .thumbs{display:flex;flex-direction:column;gap:.75rem;}
#agx-pd .thumb{aspect-ratio:1;border-radius:.75rem;overflow:hidden;border:2px solid #e8eaed;cursor:pointer;background:#f7f8fa;transition:border-color .2s,transform .2s;}
#agx-pd .thumb.active{border-color:#5cb85c;transform:scale(1.02);}
#agx-pd .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
#agx-pd .main-img{position:relative;aspect-ratio:1;border-radius:1rem;overflow:hidden;background:#f7f8fa;cursor:zoom-in;}
#agx-pd .main-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s;}
#agx-pd .main-img:hover img{transform:scale(1.08);}
/* Variation selectors */
#agx-pd .var-section{margin-top:1.5rem;}
#agx-pd .var-label{font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#1a1f2e;margin-bottom:.625rem;display:flex;align-items:center;gap:.5rem;}
#agx-pd .var-label span{font-weight:400;color:#6b7280;text-transform:none;letter-spacing:0;}
#agx-pd .var-options{display:flex;flex-wrap:wrap;gap:.5rem;}
#agx-pd .var-opt{padding:.375rem .875rem;border-radius:.375rem;border:1.5px solid #e8eaed;font-size:.875rem;font-weight:500;cursor:pointer;transition:border-color .2s,background .2s,color .2s;background:#fff;color:#1a1f2e;}
#agx-pd .var-opt:hover{border-color:#5cb85c;color:#5cb85c;}
#agx-pd .var-opt.selected{border-color:#5cb85c;background:#5cb85c;color:#fff;}
#agx-pd .var-opt.unavailable{opacity:.4;cursor:not-allowed;text-decoration:line-through;}
#agx-pd .brand{font-size:.75rem;font-weight:700;text-transform:uppercase;color:#449d44;letter-spacing:.2em;}
#agx-pd .ptitle{margin-top:.5rem;font-size:1.5rem;font-weight:900;line-height:1.2;color:#1a1f2e;}
@media(min-width:768px){#agx-pd .ptitle{font-size:2rem;}}
#agx-pd .meta{margin-top:.75rem;display:flex;align-items:center;gap:.75rem;font-size:.875rem;flex-wrap:wrap;}
#agx-pd .stars-row svg{display:inline;}
#agx-pd .prices{margin-top:1.25rem;display:flex;align-items:baseline;gap:.75rem;flex-wrap:wrap;min-height:3rem;}
#agx-pd .pnow{font-size:2.5rem;font-weight:900;color:#dc2626;}
#agx-pd .pold{font-size:1.125rem;color:#9ca3af;text-decoration:line-through;}
#agx-pd .pdesc{margin-top:1rem;font-size:.875rem;color:#6b7280;line-height:1.7;}
#agx-pd .actions{margin-top:1.5rem;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;}
#agx-pd .qty{display:inline-flex;align-items:center;border-radius:9999px;border:1px solid #e8eaed;height:48px;}
#agx-pd .qty button{display:grid;place-items:center;width:48px;height:48px;border:none;background:none;cursor:pointer;color:#1a1f2e;transition:color .2s;}
#agx-pd .qty button:hover{color:#5cb85c;}
#agx-pd .qty-n{width:40px;text-align:center;font-weight:700;}
#agx-pd .btn-add{display:inline-flex;align-items:center;gap:.5rem;height:48px;border-radius:9999px;background:#5cb85c;color:#fff;padding:0 1.5rem;font-weight:700;font-size:.875rem;border:none;cursor:pointer;font-family:inherit;transition:background .2s,transform .2s;}
#agx-pd .btn-add:hover{background:#449d44;transform:scale(1.02);}
#agx-pd .btn-add:disabled{opacity:.5;cursor:not-allowed;transform:none;}
#agx-pd .btn-buy{display:inline-flex;align-items:center;height:48px;border-radius:9999px;background:#1a1f2e;color:#fff;padding:0 1.5rem;font-weight:700;font-size:.875rem;text-decoration:none;font-family:inherit;}
#agx-pd .icon-btn{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid #e8eaed;background:none;cursor:pointer;color:#1a1f2e;transition:border-color .2s,color .2s;}
#agx-pd .icon-btn:hover{border-color:#5cb85c;color:#5cb85c;}
#agx-pd .glist{margin-top:1.5rem;display:grid;gap:.75rem;grid-template-columns:1fr;}
@media(min-width:640px){#agx-pd .glist{grid-template-columns:repeat(3,1fr);}}
#agx-pd .g{display:flex;align-items:center;gap:.75rem;border-radius:.5rem;border:1px solid #e8eaed;padding:.75rem;transition:border-color .2s,background .2s;}
#agx-pd .g:hover{border-color:#5cb85c;background:rgba(92,184,92,.05);}
#agx-pd .g-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(92,184,92,.1);color:#5cb85c;flex-shrink:0;}
#agx-pd .g-tit{font-size:.75rem;font-weight:700;color:#1a1f2e;}
#agx-pd .g-sub{font-size:.6875rem;color:#6b7280;}
#agx-pd .pmeta{margin-top:1.5rem;border-top:1px solid #e8eaed;padding-top:1rem;font-size:.75rem;color:#6b7280;display:flex;flex-direction:column;gap:.25rem;}
#agx-pd .pmeta b{color:#1a1f2e;font-weight:600;}
#agx-pd .pmeta a{color:#5cb85c;text-decoration:none;}
#agx-pd .pmeta a:hover{text-decoration:underline;}
/* Tabs */
#agx-pd .tabs{margin-top:3.5rem;}
#agx-pd .tabs-nav{display:flex;align-items:center;gap:2rem;border-bottom:1px solid #e8eaed;flex-wrap:wrap;}
#agx-pd .tb{padding-bottom:.75rem;font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:none;border:none;cursor:pointer;color:#9ca3af;font-family:inherit;}
#agx-pd .tb.on{color:#1a1f2e;border-bottom:2px solid #5cb85c;margin-bottom:-1px;}
#agx-pd .tp{padding:1.5rem 0;font-size:.875rem;color:#6b7280;line-height:1.7;max-width:720px;display:none;}
#agx-pd .tp.on{display:block;}
#agx-pd .info-table{width:100%;border-collapse:collapse;}
#agx-pd .info-table tr{border-bottom:1px solid #e8eaed;}
#agx-pd .info-table td{padding:.625rem 0;}
#agx-pd .info-table td:first-child{font-weight:600;color:#1a1f2e;width:160px;}
/* Reviews */
#agx-pd .rv-summary{display:flex;align-items:center;gap:2rem;background:#f7f8fa;border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:1.5rem;flex-wrap:wrap;}
#agx-pd .rv-avg{text-align:center;}
#agx-pd .rv-avg__num{font-size:3rem;font-weight:900;color:#1a1f2e;line-height:1;}
#agx-pd .rv-avg__stars{margin:.25rem 0;}
#agx-pd .rv-avg__count{font-size:.75rem;color:#6b7280;}
#agx-pd .rv-bars{flex:1;min-width:200px;}
#agx-pd .rv-bar-row{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.375rem;}
#agx-pd .rv-bar-fill{flex:1;height:6px;background:#e8eaed;border-radius:9999px;overflow:hidden;}
#agx-pd .rv-bar-fill div{height:100%;background:#f59e0b;border-radius:9999px;}
#agx-pd .rv-card{border-radius:.75rem;border:1px solid #e8eaed;padding:1.25rem;margin-bottom:1rem;}
#agx-pd .rv-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;}
#agx-pd .rv-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#f7f8fa;flex-shrink:0;}
#agx-pd .rv-name{font-weight:700;font-size:.9375rem;color:#1a1f2e;}
#agx-pd .rv-date{font-size:.75rem;color:#9ca3af;}
#agx-pd .rv-verified{font-size:.6875rem;background:rgba(92,184,92,.1);color:#449d44;font-weight:600;padding:.125rem .5rem;border-radius:9999px;}
#agx-pd .rv-form{background:#f7f8fa;border-radius:.75rem;padding:1.5rem;margin-top:1.5rem;}
#agx-pd .rv-form h3{font-size:1rem;font-weight:700;margin-bottom:1rem;}
#agx-pd .star-picker{display:flex;gap:.25rem;margin-bottom:1rem;}
#agx-pd .star-picker button{background:none;border:none;cursor:pointer;font-size:1.5rem;padding:0;transition:transform .15s;}
#agx-pd .star-picker button:hover{transform:scale(1.2);}
#agx-pd .rv-input{width:100%;border-radius:.5rem;border:1px solid #e8eaed;padding:.625rem .75rem;font-size:.875rem;font-family:inherit;outline:none;margin-bottom:.875rem;background:#fff;transition:border-color .2s;}
#agx-pd .rv-input:focus{border-color:#5cb85c;}
#agx-pd .rv-textarea{width:100%;border-radius:.5rem;border:1px solid #e8eaed;padding:.625rem .75rem;font-size:.875rem;font-family:inherit;outline:none;background:#fff;min-height:100px;resize:vertical;transition:border-color .2s;}
#agx-pd .rv-textarea:focus{border-color:#5cb85c;}
#agx-pd .btn-rv-submit{border-radius:9999px;background:#5cb85c;color:#fff;padding:0 1.5rem;height:44px;font-weight:700;font-size:.875rem;border:none;cursor:pointer;font-family:inherit;transition:background .2s;}
#agx-pd .btn-rv-submit:hover{background:#449d44;}
#agx-pd .rv-msg{font-size:.8125rem;padding:.625rem .875rem;border-radius:.375rem;}
#agx-pd .rv-msg.ok{background:rgba(92,184,92,.1);color:#449d44;}
#agx-pd .rv-msg.err{background:rgba(239,68,68,.1);color:#dc2626;}
#agx-pd .btn-write-review{display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #5cb85c;background:#fff;color:#5cb85c;padding:0 1.5rem;height:44px;font-weight:700;font-size:.875rem;cursor:pointer;font-family:inherit;transition:background .2s,color .2s;}
#agx-pd .btn-write-review:hover{background:#5cb85c;color:#fff;}
/* Related */
#agx-pd .related{margin-top:3.5rem;}
#agx-pd .rh{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eaed;padding-bottom:.75rem;margin-bottom:1.25rem;}
#agx-pd .rh-title{font-size:1.125rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:#1a1f2e;}
#agx-pd .rh-link{font-size:.75rem;font-weight:700;color:#449d44;text-decoration:none;}
#agx-pd .rgrid{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr);}
@media(min-width:640px){#agx-pd .rgrid{grid-template-columns:repeat(3,1fr);}}
@media(min-width:1024px){#agx-pd .rgrid{grid-template-columns:repeat(5,1fr);}}
#agx-pd .rc{position:relative;display:flex;flex-direction:column;border-radius:1rem;border:1px solid #e8eaed;background:#fff;padding:.75rem;transition:transform .35s,box-shadow .35s,border-color .3s;}
#agx-pd .rc:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(92,184,92,.45);border-color:rgba(92,184,92,.5);}
#agx-pd .rc img{aspect-ratio:1;width:100%;object-fit:cover;border-radius:.75rem;}
#agx-pd .rc a{text-decoration:none;color:#1a1f2e;}
#agx-pd .rc a:hover{color:#5cb85c;}
#agx-pd .rc .rcprice{font-size:1rem;font-weight:900;color:#dc2626;margin-top:.375rem;}


/* ---- Single Product — Grouped (woocommerce/single-product-grouped.php) ---- */
#agx-grp *,#agx-grp *::before,#agx-grp *::after{box-sizing:border-box;margin:0;padding:0;}
#agx-grp{font-family:'Inter',sans-serif;color:#1a1f2e;line-height:1.5;}
#agx-grp .bc{position:relative;border-bottom:1px solid #e8eaed;background:linear-gradient(to right,rgba(92,184,92,.08),transparent);overflow:hidden;padding:1.25rem 0;}
#agx-grp .bc::before{content:'';position:absolute;inset:0;background:radial-gradient(400px 120px at 10% 50%,rgba(92,184,92,.25),transparent 70%);pointer-events:none;opacity:.6;}
#agx-grp .wrap{max-width:1280px;margin:0 auto;padding:0 1rem;}
#agx-grp .bc-nav{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-bottom:.25rem;position:relative;}
#agx-grp .bc-nav a{color:#6b7280;text-decoration:none;}
#agx-grp .bc-h1{font-size:1.125rem;font-weight:900;color:#1a1f2e;position:relative;}
#agx-grp .main-wrap{display:grid;gap:2rem;padding:2rem 0;grid-template-columns:1fr;}
@media(min-width:1024px){#agx-grp .main-wrap{grid-template-columns:380px minmax(0,1fr);}}
#agx-grp .group-img{position:relative;aspect-ratio:1;border-radius:1rem;overflow:hidden;background:#f7f8fa;}
#agx-grp .group-img img{width:100%;height:100%;object-fit:cover;display:block;}
#agx-grp .group-info__title{font-size:1.75rem;font-weight:900;line-height:1.2;margin-bottom:.75rem;}
#agx-grp .group-info__desc{font-size:.875rem;color:#6b7280;line-height:1.7;margin-bottom:1.5rem;}
#agx-grp .group-info__meta{font-size:.75rem;color:#6b7280;display:flex;flex-direction:column;gap:.25rem;margin-bottom:1.5rem;}
#agx-grp .group-info__meta b{color:#1a1f2e;font-weight:600;}
#agx-grp .group-info__meta a{color:#5cb85c;text-decoration:none;}
/* Products table */
#agx-grp .products-section h2{font-size:1.125rem;font-weight:900;text-transform:uppercase;letter-spacing:.02em;margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:2px solid #5cb85c;}
#agx-grp .gp-table{width:100%;border-collapse:collapse;background:#fff;border-radius:1rem;overflow:hidden;border:1px solid #e8eaed;}
#agx-grp .gp-table th{padding:.75rem 1rem;text-align:left;background:#f7f8fa;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;}
#agx-grp .gp-table td{padding:1rem;border-top:1px solid #e8eaed;vertical-align:middle;}
#agx-grp .gp-product{display:flex;align-items:center;gap:.875rem;}
#agx-grp .gp-product img{width:64px;height:64px;border-radius:.5rem;object-fit:cover;flex-shrink:0;}
#agx-grp .gp-product__name{font-weight:600;font-size:.9375rem;color:#1a1f2e;text-decoration:none;display:block;transition:color .2s;}
#agx-grp .gp-product__name:hover{color:#5cb85c;}
#agx-grp .gp-product__sku{font-size:.75rem;color:#9ca3af;}
#agx-grp .gp-price{font-size:1rem;font-weight:900;color:#dc2626;white-space:nowrap;}
#agx-grp .gp-stock span.instock{color:#449d44;font-weight:600;font-size:.8125rem;}
#agx-grp .gp-stock span.outstock{color:#ef4444;font-weight:600;font-size:.8125rem;}
#agx-grp .gp-qty{display:inline-flex;align-items:center;border-radius:9999px;border:1px solid #e8eaed;height:36px;}
#agx-grp .gp-qty button{display:grid;place-items:center;width:36px;height:36px;border:none;background:none;cursor:pointer;color:#1a1f2e;font-size:1rem;transition:color .2s;}
#agx-grp .gp-qty button:hover{color:#5cb85c;}
#agx-grp .gp-qty input{width:40px;height:36px;text-align:center;border:none;outline:none;font-size:.875rem;font-weight:600;font-family:inherit;background:transparent;}
#agx-grp .gp-atc{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#5cb85c;color:#fff;border:none;cursor:pointer;transition:background .2s,transform .2s;}
#agx-grp .gp-atc:hover{background:#449d44;transform:scale(1.1);}
#agx-grp .gp-atc:disabled{opacity:.5;cursor:not-allowed;transform:none;}
/* Add all button */
#agx-grp .add-all-bar{background:linear-gradient(to right,rgba(92,184,92,.08),transparent);border:1px solid rgba(92,184,92,.25);border-radius:.75rem;padding:1.25rem 1.5rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-top:1.25rem;}
#agx-grp .add-all-bar__total{font-size:1.5rem;font-weight:900;color:#5cb85c;}
#agx-grp .add-all-bar__label{font-size:.8125rem;color:#6b7280;}
#agx-grp .btn-add-all{display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;background:#5cb85c;color:#fff;padding:0 1.75rem;height:52px;font-weight:700;font-size:1rem;border:none;cursor:pointer;font-family:inherit;transition:background .2s,transform .2s;}
#agx-grp .btn-add-all:hover{background:#449d44;transform:translateY(-1px);}
/* Related */
#agx-grp .rel-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr);}
@media(min-width:640px){#agx-grp .rel-grid{grid-template-columns:repeat(4,1fr);}}
#agx-grp .rc{border-radius:1rem;border:1px solid #e8eaed;background:#fff;padding:.75rem;transition:transform .35s,box-shadow .35s,border-color .3s;}
#agx-grp .rc:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(92,184,92,.45);border-color:rgba(92,184,92,.5);}
#agx-grp .rc img{aspect-ratio:1;width:100%;object-fit:cover;border-radius:.75rem;display:block;}
#agx-grp .rc a{text-decoration:none;color:#1a1f2e;}
#agx-grp .rc .price{font-size:.9375rem;font-weight:900;color:#dc2626;margin-top:.5rem;}
