@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Sora:wght@400;500;600;700&display=swap');

*{box-sizing:border-box;margin:0;padding:0;}
:root{
  --display:'Sora',sans-serif;
  --body:'DM Sans',sans-serif;
  --brand:#283592;
  --brand-dark:#1a2470;
  --white:#ffffff;
  --off-white:#F5F7FF;
  --light-bg:#EEF1FB;
  --border:#D0D5EE;
  --muted:#7680B0;
  --text:#1C2340;
}
body,html{background:var(--off-white);color:var(--text);font-family:var(--body);scroll-behavior:smooth;}

/* ── NAV ── */
nav{display:flex;align-items:center;justify-content:flex-start;gap:2rem;padding:1rem 2rem;border-bottom:1px solid var(--border);background:rgba(255,255,255,0.97);backdrop-filter:blur(8px);position:sticky;top:0;z-index:100;}
.nav-logo{font-family:var(--display);font-size:15px;font-weight:400;color:var(--brand);text-decoration:none;}
.nav-logo b{font-weight:700;}
.nav-logo span{color:var(--muted);font-weight:400;}
.nav-links{display:flex;gap:2rem;margin-left:3rem;}
.nav-links a{font-size:13px;color:var(--muted);text-decoration:none;font-weight:400;transition:color .2s;}
.nav-links a:hover{color:var(--brand);}
.nav-dropdown{position:relative;display:flex;align-items:center;}
.nav-dropdown-trigger{font-size:13px;color:var(--muted);text-decoration:none;font-weight:400;transition:color .2s;cursor:pointer;}
.nav-dropdown:hover .nav-dropdown-trigger{color:var(--brand);}
.nav-dropdown-menu{display:flex;position:absolute;top:100%;left:0;transform:none;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px rgba(40,53,146,.10);padding:1.25rem 1.5rem;margin-top:12px;gap:2rem;z-index:200;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;}
.nav-dropdown-menu::before{content:'';position:absolute;top:-12px;left:0;right:0;height:12px;}
.nav-dropdown:hover .nav-dropdown-menu{opacity:1;pointer-events:auto;}
.nav-dropdown-col{display:flex;flex-direction:column;gap:.4rem;min-width:160px;}
.nav-dropdown-heading{font-size:11px;font-weight:600;color:var(--brand);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.35rem;}
.nav-dropdown-menu a{font-size:15px;color:var(--text);text-decoration:none;padding:4px 0;transition:color .15s;}
.nav-dropdown-menu a:hover{color:var(--brand);}
.cart-btn{font-family:var(--body);font-size:13px;font-weight:500;background:var(--brand);border:none;color:#fff;padding:8px 20px;cursor:pointer;transition:background .2s;border-radius:6px;text-decoration:none;display:inline-block;margin-left:auto;}
.cart-btn:hover{background:var(--brand-dark);}

/* ── FOOTER ── */
footer{background:var(--brand);padding:2rem;text-align:center;font-size:12px;color:rgba(255,255,255,.4);letter-spacing:.04em;}

/* ── TOAST ── */
.toast{position:fixed;bottom:2rem;right:2rem;background:var(--brand);color:#fff;font-family:var(--body);font-size:13px;font-weight:500;padding:12px 20px;border-radius:6px;transform:translateY(80px);opacity:0;transition:all .3s;z-index:9999;pointer-events:none;}
.toast.show{transform:translateY(0);opacity:1;}

/* ── TIER SELECTOR ── */
.tier-label{font-family:var(--display);font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.6rem;}
.tier-options{display:flex;gap:.65rem;margin-bottom:1.25rem;}
.tier-btn{flex:1;border:1.5px solid var(--border);border-radius:8px;padding:.65rem .5rem;cursor:pointer;background:white;text-align:center;transition:border-color .15s,background .15s;}
.tier-btn:hover:not(.active){border-color:#a0a8d8;}
.tier-btn.active{border-color:var(--brand);background:var(--light-bg);}
.tier-vol{font-family:var(--display);font-size:13px;font-weight:600;color:var(--text);}
.tier-price{font-size:12px;color:var(--muted);margin-top:2px;}
.tier-btn.active .tier-price{color:var(--brand);}

/* ── CATEGORIES ── */
.categories-wrap{background:var(--light-bg);padding:3rem 2rem;}
.categories-inner{max-width:1100px;margin:0 auto;}
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:1.5rem;}
.cat-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s;text-align:left;}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(40,53,146,.12);}
.cat-img{height:180px;overflow:hidden;display:flex;}
.cat-img svg{width:100%;height:100%;display:block;}
.cat-body{padding:1.1rem 1.4rem 1.25rem;}
.cat-name{font-family:var(--display);font-size:1.15rem;font-weight:700;color:var(--text);margin-bottom:.25rem;}
.cat-meta{font-size:13px;color:var(--muted);margin-bottom:.75rem;}
.cat-cta{font-size:13px;font-weight:500;color:var(--brand);}

/* ── PRODUCT GRID ── */
.section{padding:4rem 2rem;max-width:1100px;margin:0 auto;}
.section-header{display:flex;align-items:baseline;gap:1rem;margin-bottom:2.5rem;border-bottom:1px solid var(--border);padding-bottom:1rem;}
.section-title{font-family:var(--display);font-size:14px;font-weight:600;color:var(--brand);letter-spacing:.04em;text-transform:uppercase;}
.section-count{font-size:12px;color:var(--muted);}
.filter-reset{font-family:var(--body);font-size:12px;font-weight:500;color:var(--brand);background:none;border:1px solid var(--border);border-radius:4px;padding:2px 10px;cursor:pointer;transition:background .15s;}
.filter-reset:hover{background:var(--light-bg);}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);}
.product-card{background:var(--white);cursor:pointer;transition:background .2s;position:relative;overflow:hidden;display:flex;flex-direction:column;}
.product-card:hover{background:var(--off-white);}
.product-card::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .25s;}
.product-card:hover::after{transform:scaleX(1);}
.prod-img-wrap{width:100%;aspect-ratio:4/3;background:var(--light-bg);overflow:hidden;position:relative;border-bottom:1px solid var(--border);flex-shrink:0;}
.prod-img-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.prod-img-dual{position:relative;width:100%;height:100%;}
.prod-img-dual .img-primary,.prod-img-dual .img-secondary{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:opacity 0.4s;}
.prod-img-dual .img-primary{opacity:1;z-index:1;}
.prod-img-dual .img-secondary{opacity:0;z-index:2;}
.prod-img-wrap:hover .prod-img-dual .img-secondary{opacity:1;}
.prod-img-wrap:hover .prod-img-dual .img-primary{opacity:0;}
.prod-img-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;position:absolute;inset:0;}
.prod-img-placeholder svg{width:72px;height:54px;}
.prod-img-placeholder span{font-size:10px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-weight:500;}
.prod-body{padding:1.25rem;display:flex;flex-direction:column;flex:1;}
.prod-badge{font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:.5rem;opacity:.65;}
.prod-name{font-family:var(--display);font-size:14px;font-weight:600;color:var(--text);margin-bottom:.4rem;line-height:1.3;}
.prod-spec{font-size:12px;font-weight:300;color:var(--muted);line-height:1.7;margin-bottom:1rem;flex:1;}
.prod-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;}
.prod-price{font-family:var(--display);font-size:17px;font-weight:600;color:var(--brand);}
.prod-price span{font-size:11px;font-weight:400;color:var(--muted);}
.add-btn{font-family:var(--body);font-size:12px;font-weight:500;background:transparent;border:1px solid var(--border);color:var(--muted);padding:7px 14px;cursor:pointer;transition:all .2s;border-radius:5px;}
.add-btn:hover{border-color:var(--brand);color:var(--brand);}
.add-btn.added{border-color:var(--brand);color:var(--brand);background:var(--light-bg);}
.specs-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);margin-top:4rem;border:1px solid var(--border);border-radius:8px;overflow:hidden;}
.spec-item{background:var(--off-white);padding:1.5rem;text-align:center;}
.spec-val{font-family:var(--display);font-size:1.5rem;font-weight:700;color:var(--brand);margin-bottom:.25rem;letter-spacing:-.02em;}
.spec-label{font-size:11px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;}

/* ── HERO ── */
.hero{background:var(--brand);padding:3.3rem 2rem 3rem;}
.hero-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1.4fr;align-items:center;gap:2rem;}
.hero-eyebrow{font-size:11px;font-weight:500;color:rgba(255,255,255,.55);letter-spacing:.18em;text-transform:uppercase;margin-bottom:.85rem;display:flex;align-items:center;gap:10px;}
.hero-eyebrow::before{content:'';display:inline-block;width:20px;height:1px;background:rgba(255,255,255,.35);}
.hero-title{font-family:var(--display);font-size:1.85rem;font-weight:700;line-height:1.08;color:#fff;margin-bottom:.85rem;letter-spacing:-.02em;}
.hero-title em{font-style:normal;color:#fff;}
.hero-sub{font-size:15px;font-weight:300;color:rgba(255,255,255,.65);line-height:1.7;max-width:380px;margin-bottom:1.5rem;}
.hero-cta{display:inline-flex;align-items:center;gap:10px;font-family:var(--body);font-size:14px;font-weight:500;background:#fff;color:var(--brand);padding:13px 26px;border:none;cursor:pointer;transition:opacity .2s;border-radius:6px;}
.hero-cta:hover{opacity:.9;}
.hero-visual{display:flex;align-items:center;justify-content:center;position:relative;min-height:175px;}
.hero-grid-bg{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:32px 32px;border-radius:4px;}
.hero-device{position:relative;z-index:1;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:1.75rem;width:230px;backdrop-filter:blur(4px);}
.device-screen{background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:1rem;margin-bottom:1rem;font-family:var(--body);font-size:11px;color:#fff;line-height:1.9;}
.device-screen .dim{color:rgba(255,255,255,.3);}
.device-screen .hi{color:#90C4FF;}
.device-led{width:7px;height:7px;border-radius:50%;background:#5BF0A5;box-shadow:0 0 7px #5BF0A5;display:inline-block;margin-right:8px;animation:blink 1.8s ease-in-out infinite;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.3;}}
.device-label{font-size:10px;font-weight:500;color:rgba(255,255,255,.35);letter-spacing:.12em;text-transform:uppercase;}

/* ── CHECKOUT SHARED ── */
.checkout-wrap{max-width:960px;margin:0 auto;padding:2.5rem 2rem;}
.checkout-title{font-family:var(--display);font-size:1.4rem;font-weight:700;color:var(--text);margin-bottom:.25rem;letter-spacing:-.02em;}
.checkout-sub{font-size:13px;color:var(--muted);margin-bottom:2rem;}
.steps{display:flex;align-items:center;margin-bottom:2.5rem;}
.step{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;}
.step-num{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;}
.step.done .step-num,.step.active .step-num{background:var(--brand);color:#fff;}
.step.inactive .step-num{background:var(--border);color:var(--muted);}
.step.done .step-label{color:var(--brand);}
.step.active .step-label{color:var(--text);}
.step.inactive .step-label{color:var(--muted);}
.step-line{flex:1;height:1px;background:var(--border);margin:0 8px;}
.step-line.done{background:var(--brand);}
.checkout-layout{display:grid;grid-template-columns:1fr 300px;gap:1.5rem;align-items:start;}
.form-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.5rem;}
.form-section{font-family:var(--display);font-size:12px;font-weight:600;color:var(--text);text-transform:uppercase;letter-spacing:.08em;margin-bottom:1.25rem;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.field{margin-bottom:1.1rem;}
.field label{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-bottom:5px;}
.field input,.field select{width:100%;font-family:var(--body);font-size:13px;padding:9px 12px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--text);outline:none;transition:border-color .2s;}
.field input:focus,.field select:focus{border-color:var(--brand);}
.hr{border:none;border-top:1px solid var(--border);margin:1.25rem 0;}
.next-btn{width:100%;padding:13px;font-family:var(--display);font-size:14px;font-weight:600;background:var(--brand);color:#fff;border:none;border-radius:7px;cursor:pointer;transition:background .2s;margin-top:1.25rem;letter-spacing:.01em;}
.next-btn:hover{background:var(--brand-dark);}
.back-link{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);cursor:pointer;border:none;background:none;font-family:var(--body);margin-top:.85rem;transition:color .2s;text-decoration:none;}
.back-link:hover{color:var(--brand);}

/* ── SHIPPING ── */
.shipping-opts{display:flex;flex-direction:column;gap:8px;}
.ship-opt{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid var(--border);border-radius:7px;cursor:pointer;transition:all .15s;}
.ship-opt:hover{border-color:var(--brand);}
.ship-opt.selected{border-color:var(--brand);background:var(--light-bg);}
.ship-opt-left{display:flex;align-items:center;gap:10px;}
.ship-radio{width:16px;height:16px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ship-opt.selected .ship-radio{border-color:var(--brand);}
.ship-radio-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);display:none;}
.ship-opt.selected .ship-radio-dot{display:block;}
.ship-name{font-size:13px;font-weight:500;color:var(--text);}
.ship-eta{font-size:11px;color:var(--muted);}
.ship-price{font-family:var(--display);font-size:13px;font-weight:600;color:var(--brand);}

/* ── MINI ORDER ── */
.mini-order{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.25rem;position:sticky;top:80px;}
.mini-title{font-family:var(--display);font-size:13px;font-weight:600;color:var(--text);margin-bottom:1rem;padding-bottom:.85rem;border-bottom:1px solid var(--border);}
.mini-item{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:.6rem;}
.mini-item-name{color:var(--text);}
.mini-item-price{color:var(--brand);font-weight:500;font-family:var(--display);}
.mini-divider{border:none;border-top:1px solid var(--border);margin:.85rem 0;}
.mini-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:.5rem;}
.mini-total{display:flex;justify-content:space-between;font-family:var(--display);font-size:15px;font-weight:700;color:var(--text);margin-top:.5rem;}
.mini-total span:last-child{color:var(--brand);}

/* ── CART PAGE ── */
.cart-wrap{max-width:1000px;margin:0 auto;padding:2.5rem 2rem;}
.cart-layout{display:grid;grid-template-columns:1fr 320px;gap:1.5rem;align-items:start;}
.cart-items-card{background:var(--white);border:1px solid var(--border);border-radius:10px;overflow:hidden;}
.cart-header-row{display:grid;grid-template-columns:1fr 80px 110px 36px;gap:1rem;padding:.85rem 1.5rem;background:var(--off-white);border-bottom:1px solid var(--border);font-size:11px;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;}
.cart-item{display:grid;grid-template-columns:1fr 80px 110px 36px;gap:1rem;align-items:center;padding:1.1rem 1.5rem;border-bottom:1px solid var(--border);}
.cart-item:last-child{border-bottom:none;}
.item-info{display:flex;align-items:center;gap:12px;}
.item-thumb{width:48px;height:48px;border-radius:7px;overflow:hidden;background:var(--light-bg);flex-shrink:0;border:1px solid var(--border);position:relative;}
.item-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.item-thumb-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:absolute;inset:0;}
.item-thumb-placeholder svg{width:28px;height:21px;}
.item-name{font-family:var(--display);font-size:13px;font-weight:600;color:var(--text);}
.item-cat{font-size:10px;color:var(--muted);}
.item-unit-price{font-family:var(--display);font-size:14px;font-weight:600;color:var(--brand);}
.qty-ctrl{display:flex;align-items:center;gap:6px;}
.qty-btn{width:26px;height:26px;border-radius:5px;border:1px solid var(--border);background:var(--white);color:var(--text);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;}
.qty-btn:hover{border-color:var(--brand);color:var(--brand);}
.qty-val{font-size:13px;font-weight:500;min-width:18px;text-align:center;}
.rm-btn{background:none;border:none;cursor:pointer;color:var(--muted);font-size:15px;padding:4px;border-radius:4px;transition:color .15s;}
.rm-btn:hover{color:#c0392b;}
.summary-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.5rem;position:sticky;top:80px;}
.summary-title{font-family:var(--display);font-size:14px;font-weight:600;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--border);}
.s-row{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:.7rem;}
.s-total{display:flex;justify-content:space-between;font-family:var(--display);font-size:16px;font-weight:700;border-top:1px solid var(--border);padding-top:1rem;margin-top:.25rem;}
.s-total span:last-child{color:var(--brand);}
.coupon-row{display:flex;gap:8px;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border);}
.coupon-row input{flex:1;font-family:var(--body);font-size:13px;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--text);outline:none;}
.coupon-row input:focus{border-color:var(--brand);}
.coupon-btn{font-family:var(--body);font-size:12px;font-weight:500;background:var(--light-bg);color:var(--brand);border:1px solid var(--border);padding:8px 14px;border-radius:6px;cursor:pointer;white-space:nowrap;transition:all .2s;}
.coupon-btn:hover{background:var(--brand);color:#fff;border-color:var(--brand);}

/* ── PAYMENT ── */
.card-visual{background:var(--brand);border-radius:12px;padding:1.5rem;color:#fff;margin-bottom:1.5rem;position:relative;overflow:hidden;}
.card-visual::before{content:'';position:absolute;top:-30px;right:-30px;width:130px;height:130px;border-radius:50%;background:rgba(255,255,255,.06);}
.card-visual::after{content:'';position:absolute;bottom:-20px;left:20px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.04);}
.card-chip{width:36px;height:28px;background:rgba(255,255,255,.25);border-radius:5px;margin-bottom:1.25rem;}
.card-number{font-family:var(--display);font-size:16px;font-weight:500;letter-spacing:.2em;margin-bottom:1.25rem;position:relative;z-index:1;}
.card-bottom{display:flex;justify-content:space-between;font-size:11px;position:relative;z-index:1;}
.card-bottom-label{color:rgba(255,255,255,.5);margin-bottom:2px;}
.card-bottom-val{font-weight:500;}
.pay-methods{display:flex;gap:8px;margin-bottom:1.5rem;}
.pay-method{padding:7px 14px;border:1px solid var(--border);border-radius:5px;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s;background:var(--white);color:var(--muted);}
.pay-method.active{border-color:var(--brand);color:var(--brand);background:var(--light-bg);}

/* ── CONFIRMATION ── */
.confirm-wrap{max-width:580px;margin:0 auto;padding:4rem 2rem;text-align:center;}
.confirm-icon{width:72px;height:72px;background:var(--light-bg);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;}
.confirm-icon svg{width:32px;height:32px;stroke:var(--brand);}
.confirm-title{font-family:var(--display);font-size:1.75rem;font-weight:700;color:var(--text);margin-bottom:.5rem;letter-spacing:-.02em;}
.confirm-sub{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:2rem;}
.confirm-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.5rem;text-align:left;margin-bottom:1.5rem;}
.confirm-row{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;border-bottom:1px solid var(--border);}
.confirm-row:last-child{border-bottom:none;}
.confirm-row span:first-child{color:var(--muted);}
.confirm-row span:last-child{font-weight:500;color:var(--text);}
.confirm-btn{font-family:var(--display);font-size:14px;font-weight:600;background:var(--brand);color:#fff;border:none;border-radius:7px;padding:13px 32px;cursor:pointer;transition:background .2s;text-decoration:none;display:inline-block;}
.confirm-btn:hover{background:var(--brand-dark);}

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{display:none;}
  .product-grid{grid-template-columns:1fr 1fr;}
  .specs-bar{grid-template-columns:1fr 1fr;}
  .checkout-layout{grid-template-columns:1fr;}
  .cart-layout{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
}
@media(max-width:480px){
  .product-grid{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:1fr;}
  nav{padding:1rem;}
  .hero{padding:2rem 1rem;}
  .hero-title{font-size:1.35rem;}
}

/* ── PRODUCT PAGE ── */
.prod-img-link,.prod-name-link{text-decoration:none;display:block;}
.prod-name-link .prod-name{transition:color .2s;}
.prod-name-link:hover .prod-name{color:var(--brand);}

.product-page{max-width:1100px;margin:0 auto;padding:2.5rem 2rem;}
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:2rem;}
.breadcrumb a{color:var(--muted);text-decoration:none;transition:color .2s;}
.breadcrumb a:hover{color:var(--brand);}
.breadcrumb-sep{color:var(--border);}

.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;margin-bottom:4rem;}
.product-img-main{width:100%;aspect-ratio:4/3;background:var(--light-bg);border-radius:10px;overflow:hidden;border:1px solid var(--border);position:relative;}
.product-img-main img{width:100%;height:100%;object-fit:cover;display:block;}
.product-img-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;position:absolute;inset:0;}
.product-img-placeholder svg{width:120px;height:90px;}
.product-img-placeholder span{font-size:11px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-weight:500;}

.product-info{}
.product-badge{font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:.75rem;opacity:.7;}
.product-title{font-family:var(--display);font-size:1.9rem;font-weight:700;color:var(--text);margin-bottom:1rem;letter-spacing:-.02em;line-height:1.15;}
.product-description{font-size:14px;color:var(--muted);line-height:1.75;margin-bottom:1.75rem;}
.product-price-row{display:flex;align-items:baseline;gap:8px;margin-bottom:1.75rem;}
.product-price{font-family:var(--display);font-size:2rem;font-weight:700;color:var(--brand);}
.product-price-unit{font-size:13px;color:var(--muted);}

.product-actions{display:flex;gap:10px;margin-bottom:2rem;}
.btn-primary{flex:1;padding:14px;font-family:var(--display);font-size:14px;font-weight:600;background:var(--brand);color:#fff;border:none;border-radius:7px;cursor:pointer;transition:background .2s;letter-spacing:.01em;}
.btn-primary:hover{background:var(--brand-dark);}
.btn-primary.added{background:#2a7a5a;}
.btn-secondary{padding:14px 20px;font-family:var(--body);font-size:14px;font-weight:500;background:transparent;color:var(--brand);border:1px solid var(--border);border-radius:7px;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-flex;align-items:center;}
.btn-secondary:hover{border-color:var(--brand);background:var(--light-bg);}

.product-meta{display:flex;flex-direction:column;gap:8px;padding:1.25rem;background:var(--off-white);border-radius:8px;border:1px solid var(--border);}
.meta-row{display:flex;align-items:center;gap:8px;font-size:13px;}
.meta-icon{width:16px;height:16px;stroke:var(--brand);flex-shrink:0;}
.meta-row span{color:var(--muted);}
.meta-row strong{color:var(--text);font-weight:500;}

.specs-section{margin-bottom:4rem;}
.specs-section-title{font-family:var(--display);font-size:14px;font-weight:600;color:var(--brand);letter-spacing:.04em;text-transform:uppercase;margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--border);}
.specs-table{width:100%;border-collapse:collapse;background:var(--white);border:1px solid var(--border);border-radius:10px;overflow:hidden;}
.specs-table tr{border-bottom:1px solid var(--border);}
.specs-table tr:last-child{border-bottom:none;}
.specs-table tr:nth-child(even){background:var(--off-white);}
.specs-table td{padding:12px 16px;font-size:13px;}
.specs-table td:first-child{color:var(--muted);font-weight:500;width:40%;border-right:1px solid var(--border);}
.specs-table td:last-child{color:var(--text);}

.related-section{}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);}

@media(max-width:768px){
  .product-layout{grid-template-columns:1fr;}
  .related-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .related-grid{grid-template-columns:1fr;}
}

/* ── Field validation ── */
.field input.input-error,
.field select.input-error {
  border-color: #C0392B;
  background: #FEF5F5;
}
.field input.input-error:focus,
.field select.input-error:focus {
  border-color: #C0392B;
  outline: none;
}

/* ── State search dropdown ── */
.state-search-wrap{position:relative;}
.state-search-wrap input[type="text"]{width:100%;font-family:var(--body);font-size:13px;padding:9px 12px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--text);outline:none;transition:border-color .2s;}
.state-search-wrap input[type="text"]:focus{border-color:var(--brand);}
.state-dropdown{display:none;position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--white);border:1px solid var(--border);border-radius:6px;max-height:200px;overflow-y:auto;z-index:200;box-shadow:0 4px 16px rgba(0,0,0,0.08);}
.state-dropdown.open{display:block;}
.state-opt{padding:9px 12px;font-size:13px;color:var(--text);cursor:pointer;transition:background .12s;}
.state-opt:hover,.state-opt.highlighted{background:var(--light-bg);color:var(--brand);}
.state-empty{color:var(--muted);cursor:default;}
.state-dropdown::-webkit-scrollbar{width:4px;}
.state-dropdown::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px;}

/* ── Mapbox Address Autofill ── */
mapbox-address-autofill{display:block;width:100%;}
mapbox-address-autofill input{width:100%;font-family:var(--body);font-size:13px;padding:9px 12px;border:1px solid var(--border);border-radius:6px;background:var(--white);color:var(--text);outline:none;transition:border-color .2s;box-sizing:border-box;}
mapbox-address-autofill input:focus{border-color:var(--brand);}

/* ════════════════════════════════════════
   AMAZON-STYLE PRODUCT PAGE
════════════════════════════════════════ */

/* ── Layout ── */
.amz-page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 4rem; }

/* ── Breadcrumb ── */
.amz-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.amz-breadcrumb a { color: var(--brand); text-decoration: none; }
.amz-breadcrumb a:hover { text-decoration: underline; }
.amz-breadcrumb span { color: var(--muted); }

/* ── Main 3-col grid ── */
.amz-grid { display: grid; grid-template-columns: 420px 1fr 260px; gap: 2rem; align-items: start; margin-bottom: 3rem; overflow: visible; }

/* ── Gallery ── */
.amz-gallery { position: static; }
.amz-main-img { width: 100%; aspect-ratio: 1/1; background: var(--light-bg); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; position: relative; margin-bottom: 10px; }
.amz-main-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 1.5rem; }
.amz-main-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: absolute; inset: 0; }
.amz-main-placeholder svg { width: 140px; height: 105px; }
.amz-main-placeholder span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.amz-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.amz-thumb { width: 60px; height: 60px; border-radius: 6px; border: 2px solid var(--border); overflow: hidden; cursor: pointer; background: var(--light-bg); transition: border-color .15s; flex-shrink: 0; }
.amz-thumb:hover { border-color: var(--brand); }
.amz-thumb.active { border-color: var(--brand); }
.amz-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.amz-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.amz-thumb-placeholder svg { width: 32px; height: 24px; }

/* ── Info column ── */
.amz-info { min-width: 0; }
.amz-badge { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); opacity: .7; margin-bottom: .5rem; }
.amz-title { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: .75rem; letter-spacing: -.02em; }
.amz-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.amz-stars { display: flex; gap: 2px; }
.amz-star { width: 16px; height: 16px; fill: #F4A300; }
.amz-star.half { fill: url(#half-grad); }
.amz-star.empty { fill: var(--border); }
.amz-rating-num { font-size: 13px; font-weight: 600; color: var(--brand); }
.amz-review-count { font-size: 13px; color: var(--muted); }
.amz-review-count a { color: var(--brand); text-decoration: none; }
.amz-review-count a:hover { text-decoration: underline; }

.amz-price-block { margin-bottom: 1.25rem; }
.amz-price-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.amz-price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.amz-price sup { font-size: 1rem; vertical-align: super; }
.amz-price-unit { font-size: 13px; color: var(--muted); margin-left: 4px; }
.amz-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #1a7a3f; margin-bottom: 1.25rem; }
.amz-stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a7a3f; flex-shrink: 0; }

.amz-highlights { margin-bottom: 1.5rem; }
.amz-highlights-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: .6rem; }
.amz-highlight-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: .45rem; line-height: 1.5; }
.amz-highlight-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 6px; }

.amz-specs-preview { background: var(--off-white); border-radius: 8px; border: 1px solid var(--border); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.amz-specs-preview-title { font-size: 12px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.amz-spec-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.amz-spec-row:last-child { border-bottom: none; }
.amz-spec-row span:first-child { color: var(--muted); }
.amz-spec-row span:last-child { font-weight: 500; color: var(--text); text-align: right; }

/* ── Buy box ── */
.amz-buybox { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; position: sticky; top: 80px; align-self: start; }
.amz-buybox-price { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; letter-spacing: -.02em; }
.amz-buybox-price sup { font-size: .9rem; vertical-align: super; }
.amz-buybox-shipping { font-size: 12px; color: var(--muted); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.amz-buybox-shipping strong { color: var(--text); }
.amz-buybox-stock { font-size: 13px; font-weight: 500; color: #1a7a3f; margin-bottom: 1rem; }

.amz-qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.amz-qty-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.amz-qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.amz-qty-btn { width: 30px; height: 30px; background: var(--off-white); border: none; font-size: 16px; cursor: pointer; color: var(--text); transition: background .15s; display: flex; align-items: center; justify-content: center; }
.amz-qty-btn:hover { background: var(--light-bg); }
.amz-qty-val { width: 36px; text-align: center; font-size: 13px; font-weight: 500; border: none; background: var(--white); color: var(--text); }

.amz-btn-cart { width: 100%; padding: 11px; font-family: var(--display); font-size: 14px; font-weight: 600; background: var(--brand); color: #fff; border: none; border-radius: 22px; cursor: pointer; transition: background .2s; margin-bottom: 8px; letter-spacing: .01em; }
.amz-btn-cart:hover { background: var(--brand-dark); }
.amz-btn-cart.added { background: #1a6640; }

.amz-buybox-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 1rem; border-top: 1px solid var(--border); }
.amz-buybox-meta-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }
.amz-buybox-meta-row svg { width: 14px; height: 14px; stroke: var(--muted); flex-shrink: 0; margin-top: 1px; }
.amz-buybox-meta-row strong { color: var(--text); font-weight: 500; }

/* ── Description ── */
.amz-section { margin-bottom: 3rem; }
.amz-section-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--brand); display: inline-block; }
.amz-description { font-size: 14px; color: var(--text); line-height: 1.8; max-width: 800px; }

/* ── Full specs table ── */
.amz-specs-table { width: 100%; max-width: 700px; border-collapse: collapse; font-size: 13px; }
.amz-specs-table tr { border-bottom: 1px solid var(--border); }
.amz-specs-table tr:nth-child(odd) { background: var(--off-white); }
.amz-specs-table tr:last-child { border-bottom: none; }
.amz-specs-table td { padding: 10px 14px; }
.amz-specs-table td:first-child { color: var(--muted); font-weight: 500; width: 38%; }
.amz-specs-table td:last-child { color: var(--text); }

/* ── Reviews ── */
.amz-reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.amz-big-score { text-align: center; }
.amz-big-num { font-family: var(--display); font-size: 3.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.amz-big-stars { display: flex; justify-content: center; gap: 3px; margin: 6px 0; }
.amz-big-star { width: 18px; height: 18px; fill: #F4A300; }
.amz-big-total { font-size: 12px; color: var(--muted); }
.amz-bars { display: flex; flex-direction: column; gap: 6px; }
.amz-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.amz-bar-label { color: var(--brand); text-decoration: underline; cursor: pointer; width: 40px; flex-shrink: 0; }
.amz-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.amz-bar-fill { height: 100%; background: #F4A300; border-radius: 5px; }
.amz-bar-pct { color: var(--muted); width: 32px; text-align: right; flex-shrink: 0; }

.amz-review-card { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.amz-review-card:last-child { border-bottom: none; }
.amz-reviewer { display: flex; align-items: center; gap: 10px; margin-bottom: .5rem; }
.amz-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--light-bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--brand); flex-shrink: 0; }
.amz-reviewer-name { font-size: 13px; font-weight: 600; color: var(--text); }
.amz-review-stars { display: flex; gap: 2px; margin-bottom: .3rem; }
.amz-review-star { width: 13px; height: 13px; fill: #F4A300; }
.amz-review-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.amz-review-date { font-size: 11px; color: var(--muted); margin-bottom: .5rem; }
.amz-review-body { font-size: 13px; color: var(--text); line-height: 1.6; }
.amz-review-helpful { font-size: 11px; color: var(--muted); margin-top: .5rem; }

/* ── Related (horizontal scroll) ── */
.amz-related-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

/* ── Responsive ── */
@media(max-width:960px) {
  .amz-grid { grid-template-columns: 1fr 1fr; }
  .amz-buybox { grid-column: 1 / -1; position: static; }
  .amz-related-scroll { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px) {
  .amz-grid { grid-template-columns: 1fr; }
  .amz-gallery { position: static; }
  .amz-related-scroll { grid-template-columns: 1fr; }
  .amz-reviews-summary { grid-template-columns: 1fr; }
}

/* ── Buy box subtotal ── */
.amz-subtotal-row{display:flex;align-items:baseline;justify-content:space-between;padding:.75rem 0;margin-bottom:.75rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.amz-subtotal-label{font-size:13px;color:var(--muted);}
.amz-subtotal-val{font-family:var(--display);font-size:1.3rem;font-weight:700;color:var(--text);}

/* ── Grid sticky containment ── */
.amz-grid-wrap { position: relative; }
.amz-grid-wrap .amz-buybox { position: sticky; top: 80px; align-self: start; }
