:root{--blue:#0077C8;--blue-dk:#005A99;--navy:#0B2540;--green:#78BE20;--green-lt:#A6DA62;--green-bg:#E2F3D2;--sky:#DCEEFB;--bg:#F0F7FF;--muted:#4A5B70;--sale:#C2261B}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--navy);background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:var(--navy);text-decoration:none}a:hover{color:var(--blue);text-decoration:underline}
img{max-width:100%}
button{font:inherit}
.sr{position:absolute;left:-9999px}
.wrap{max-width:1400px;margin:0 auto;padding-left:20px;padding-right:20px}
.beta-bar{background:var(--navy);color:#fff;font-size:13px;text-align:center;padding:7px 16px;line-height:1.4}

/* header */
.hdr{background:var(--blue);color:#fff;position:sticky;top:0;z-index:50}
.hdr-top{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding-top:10px;padding-bottom:10px}
.logo{background:#fff;border-radius:12px;padding:4px 10px;display:inline-flex;line-height:0}
.logo img{height:46px;width:auto}
.pill-btn{color:#fff;background:transparent;border:1px solid #7FB9E3;border-radius:999px;padding:10px 16px;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.pill-btn:hover{background:var(--blue-dk)}
.dept{position:relative}
.dept-menu{position:absolute;top:52px;left:0;background:#fff;color:var(--navy);border-radius:14px;box-shadow:0 12px 40px rgba(11,37,64,.25);padding:16px;display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:4px 20px;width:max-content;max-width:min(680px,92vw);z-index:60}
.dept-menu h3{grid-column:1/-1;margin:6px 0 2px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dept-menu a{padding:7px 0;font-size:14px;font-weight:600}
.search{flex:1 1 360px;display:flex;background:#fff;border-radius:999px;overflow:hidden;min-width:0}
.search input{flex:1;border:0;outline:none;padding:13px 20px;font:inherit;font-size:15px;min-width:0;color:var(--navy)}
.search button{background:var(--green);border:0;width:54px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.search button:hover{background:var(--green-lt)}
.hdr-link{color:#fff;font-size:14px;font-weight:700;display:inline-flex;flex-direction:column;line-height:1.2}
.hdr-link span{font-weight:500;font-size:12px}
.hdr-link:hover{color:#fff}
.cart-btn{color:#fff;background:transparent;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:15px;position:relative;min-height:44px;padding:0 4px}
.cart-count{position:absolute;top:0;left:18px;background:var(--green);color:var(--navy);border-radius:999px;font-size:11px;font-weight:800;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px}
.quick{background:var(--blue-dk)}
.quick-in{display:flex;flex-wrap:wrap;gap:6px 22px;padding-top:10px;padding-bottom:10px;font-size:14px;font-weight:600;align-items:center}
.quick a{color:#fff}.quick a.hl{color:var(--green-lt)}
.ship-note{margin-left:auto;color:var(--sky)}

/* sections */
main{padding-top:20px;padding-bottom:10px;outline:none;min-height:60vh}
.sec{margin-top:28px}
.sec-hd{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sec-hd h2{margin:0;font-size:24px;font-weight:800}
.sec-hd a{font-weight:600}
.card{background:#fff;border-radius:16px}

/* hero */
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}
.hero{border-radius:16px;padding:32px 36px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;min-height:380px;transition:background .3s}
.hero-txt{flex:1 1 300px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.tag{background:var(--blue);color:#fff;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:700;letter-spacing:.03em}
.hero h1{margin:0;font-size:40px;line-height:1.08;font-weight:800;letter-spacing:-.02em}
.hero p{margin:0;font-size:16px;line-height:1.5}
.hero .price{font-size:30px;font-weight:800}
.hero-img{flex:0 1 300px;height:280px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;padding:14px}
.hero-img img{max-width:100%;max-height:100%;object-fit:contain}
.hero-nav{flex:1 1 100%;display:flex;gap:8px;align-items:center}
.round{width:44px;height:44px;border-radius:999px;border:0;background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.dot{width:10px;height:10px;padding:0;border-radius:999px;border:0;background:#fff;cursor:pointer}
.dot.on{background:var(--blue)}
.side{display:grid;gap:16px}
.side a{background:#fff;border-radius:16px;padding:18px;display:flex;gap:12px;align-items:center;min-height:170px}
.side a:hover{text-decoration:none;box-shadow:0 6px 20px rgba(11,37,64,.1)}
.side .s-txt{flex:1;display:flex;flex-direction:column;gap:8px}
.side .s-tag{font-size:12px;font-weight:700}
.side .s-title{font-size:19px;font-weight:800;line-height:1.15}
.side img{width:110px;height:130px;object-fit:contain}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;border:0;border-radius:999px;padding:13px 24px;font-weight:700;cursor:pointer;min-height:44px}
.btn:hover{background:var(--blue-dk);color:#fff;text-decoration:none}
.btn.green{background:var(--green);color:var(--navy)}.btn.green:hover{background:var(--green-lt);color:var(--navy)}
.btn[disabled]{opacity:.55;cursor:not-allowed}

/* categories */
.cats{padding:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:14px;text-align:center;font-size:14px;font-weight:600}
.cats a{display:flex;flex-direction:column;align-items:center;gap:8px}
.cats .ci{width:92px;height:92px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.cats .ci img{width:72px;height:72px;object-fit:contain}

/* brands */
.brands{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.brands a{border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.brands a:hover{text-decoration:none;box-shadow:0 6px 20px rgba(11,37,64,.1)}
.brands .bi{height:130px;display:flex;align-items:center;justify-content:center;padding:10px}
.brands .bi img{max-height:110px;max-width:90%;object-fit:contain}
.brands span.bn{display:block;padding:10px 14px;font-weight:800}

/* products */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.pc{background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:8px}
.pc .pi{height:170px;border-radius:10px;display:flex;align-items:center;justify-content:center;position:relative}
.pc .pi img{max-width:100%;max-height:160px;object-fit:contain}
.badge{position:absolute;top:4px;left:4px;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:700}
.badge.sale{background:var(--sale);color:#fff}
.badge.new{background:var(--green-bg);color:#1F5A0C}
.pc .pr{font-size:20px;font-weight:800;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.was{font-size:14px;font-weight:500;color:var(--muted);text-decoration:line-through}
.pc .pn{font-size:14px;line-height:1.35}
.pc .pn:hover{text-decoration:underline}
.pc .add{margin-top:auto;width:100%;padding:11px;font-size:14px}
.oos{color:var(--muted);font-size:13px;font-weight:600;margin-top:auto;text-align:center;padding:12px}

.diet{margin-top:28px;background:var(--green-bg);border-radius:16px;padding:24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.diet h2{margin:0 12px 0 0;font-size:20px;font-weight:800}
.diet a{background:#fff;border-radius:999px;padding:10px 18px;font-weight:600}
.perks{margin-top:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.perks div{background:#fff;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--muted)}
.perks strong{color:var(--navy);font-size:16px}

/* collection page */
.crumbs{font-size:13px;color:var(--muted);margin-bottom:8px}
.coll-hd{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}
.coll-hd h1{margin:0;font-size:30px;font-weight:800}
.coll-hd select{font:inherit;padding:10px 14px;border-radius:10px;border:1px solid #BFD3E6;background:#fff;min-height:44px}
.empty{background:#fff;border-radius:16px;padding:40px;text-align:center;color:var(--muted)}
.more{display:flex;justify-content:center;margin-top:20px}

/* product page */
.pdp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;background:#fff;border-radius:16px;padding:28px}
.pdp-main{border-radius:12px;height:440px;display:flex;align-items:center;justify-content:center;background:#fff}
.pdp-main img{max-height:420px;max-width:100%;object-fit:contain}
.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.thumbs button{width:66px;height:66px;border-radius:10px;border:2px solid #E1EAF3;background:#fff;padding:4px;cursor:pointer}
.thumbs button.on{border-color:var(--blue)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.pdp h1{margin:6px 0 10px;font-size:28px;line-height:1.2;font-weight:800}
.pdp .vendor{font-weight:700;color:var(--blue)}
.pdp .pp{font-size:32px;font-weight:800;display:flex;gap:10px;align-items:baseline}
.opts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.opts button{border:2px solid #CFDDEA;background:#fff;border-radius:10px;padding:9px 14px;font-weight:600;cursor:pointer;min-height:44px}
.opts button.on{border-color:var(--blue);background:var(--sky)}
.opts button:disabled{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.qty-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}
.qty{display:inline-flex;align-items:center;border:2px solid #CFDDEA;border-radius:999px;overflow:hidden}
.qty button{width:44px;height:44px;border:0;background:#fff;font-size:20px;cursor:pointer}
.qty input{width:48px;text-align:center;border:0;font:inherit;font-weight:700;font-size:16px}
.desc{font-size:15px;line-height:1.6;color:#22384F;margin-top:10px}
.desc img{height:auto}
.pdp-perks{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted);margin-top:14px;padding-top:14px;border-top:1px solid #E1EAF3}

/* cart drawer */
.drawer-bg{position:fixed;inset:0;background:rgba(11,37,64,.45);z-index:90}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;z-index:100;display:flex;flex-direction:column;box-shadow:-10px 0 40px rgba(11,37,64,.25)}
.drawer-hd{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #E1EAF3}
.drawer-hd h2{margin:0;font-size:20px}
.x{width:44px;height:44px;border-radius:999px;border:0;background:var(--bg);font-size:18px;cursor:pointer}
.drawer-body{flex:1;overflow-y:auto;padding:8px 20px}
.ci-row{display:grid;grid-template-columns:64px 1fr auto;gap:12px;padding:12px 0;border-bottom:1px solid #EEF3F8;align-items:center}
.ci-row img{width:64px;height:64px;object-fit:contain}
.ci-t{font-size:14px;font-weight:600;line-height:1.3}
.ci-v{font-size:12px;color:var(--muted)}
.ci-row .qty button{width:34px;height:34px;font-size:16px}
.ci-row .qty input{width:34px;font-size:14px}
.ci-p{font-weight:800;text-align:right}
.rm{background:none;border:0;color:var(--muted);font-size:12px;cursor:pointer;text-decoration:underline;padding:4px 0}
.drawer-ft{padding:16px 20px;border-top:1px solid #E1EAF3;display:flex;flex-direction:column;gap:10px}
.sub{display:flex;justify-content:space-between;font-size:18px;font-weight:800}
.ship-bar{font-size:13px;color:var(--muted)}
.ship-track{height:8px;background:#E1EAF3;border-radius:999px;overflow:hidden;margin-top:6px}
.ship-track i{display:block;height:100%;background:var(--green)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(120px);background:var(--navy);color:#fff;padding:12px 20px;border-radius:999px;font-weight:600;font-size:14px;z-index:120;transition:transform .25s;max-width:90vw;text-align:center}
.toast.on{transform:translateX(-50%) translateY(0)}
.loading{padding:60px;text-align:center;color:var(--muted)}

/* footer */
.ftr{margin-top:48px;background:var(--blue-dk);color:var(--sky)}
.ftr-in{padding-top:40px;padding-bottom:24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:24px;font-size:14px}
.ftr .col{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ftr strong{color:#fff;font-size:15px}
.ftr a{color:var(--sky)}.ftr a:hover{color:#fff}
.ftr-logo{background:#fff;border-radius:10px;padding:6px 10px;height:auto;width:110px}
.ftr-copy{padding-bottom:24px;font-size:13px}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .side{grid-template-columns:1fr 1fr}
  .pdp{grid-template-columns:1fr;padding:18px}
  .pdp-main{height:320px}.pdp-main img{max-height:300px}
}
@media (max-width:640px){
  .wrap{padding-left:16px;padding-right:16px}
  .hdr{position:static}
  .hdr-top{gap:10px}
  .logo img{height:36px}
  .pill-btn{padding:8px 12px;font-size:13px}
  .cart-btn{font-size:14px}
  .quick-in{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .quick-in::-webkit-scrollbar{display:none}
  .beta-bar{font-size:12px}
  .search{order:5;flex-basis:100%}
  .hdr-link{display:none}
  .cart-btn{margin-left:auto}
  .ship-note{margin-left:0}
  .hero{padding:22px;min-height:0}
  .hero h1{font-size:30px}
  .hero-img{height:200px;flex-basis:100%}
  .side{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc .pi{height:130px}.pc .pi img{max-height:120px}
  .dept-menu{grid-template-columns:1fr 1fr;position:fixed;left:8px;right:8px;top:auto;max-width:none;width:auto;max-height:70vh;overflow:auto}
  .coll-hd h1{font-size:24px}
}
