:root{
  --navy:#0F172A;
  --royal:#3B82F6;
  --royal-deep:#1E40AF;
  --white:#FFFFFF;
  --bg:#F0F4F8;
  --slate:#64748B;
  --line:#E2E8F0;
  --cyan:#06B6D4;
  --radius:20px;
  --glass-bg:rgba(255,255,255,0.7);
  --glass-border:rgba(255,255,255,0.3);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter','Segoe UI',Roboto,Arial,sans-serif;
  font-weight:400;
  line-height:1.6;
  color:var(--navy);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,.display{font-family:'Poppins','Manrope','Inter','Segoe UI',sans-serif; font-weight:700; line-height:1.1; letter-spacing:-0.025em; text-transform:uppercase;}
.mono{font-family:'IBM Plex Mono','JetBrains Mono',monospace;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
img{max-width:100%;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
section{padding:96px 0;}
@media(max-width:720px){ section{padding:64px 0;} .wrap{padding:0 20px;} }

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

/* ===== header ===== */
header{
  position:sticky; top:0; z-index:50;
  background:var(--glass-bg);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--glass-border);
  box-shadow:0 8px 32px rgba(0,0,0,0.08);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1180px; margin:0 auto;}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:19px; letter-spacing:-0.01em; font-family:'Manrope','Inter','Segoe UI',sans-serif;}
.logo img{display:block; flex-shrink:0;}
.logo .sub{font-family:'IBM Plex Mono','JetBrains Mono',monospace; font-weight:500; font-size:10px; letter-spacing:0.14em; color:var(--slate); text-transform:uppercase; display:block; margin-top:1px;}
nav ul{display:flex; gap:32px; font-size:14.5px; font-weight:500;}
nav a{color:var(--navy); opacity:0.7; transition:opacity .2s, color .2s;}
nav a:hover{opacity:1; color:var(--royal);}
@media(max-width:860px){ nav{display:none;} }

/* ===== hero ===== */
.hero{
  padding:100px 0 120px;
  background:
    radial-gradient(1200px 600px at 75% -5%, rgba(59,130,246,0.12), transparent 50%),
    linear-gradient(135deg, #FFFFFF 0%, #F0F4F8 100%);
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-image:url('../assets/dna-helix.svg');
  background-repeat:no-repeat;
  background-position:center -80px;
  background-size:900px 900px;
  opacity:0.08;
  pointer-events:none;
}
@media(max-width:900px){ .hero-bg{opacity:0.05; background-size:650px 650px;} }
.hero-single{position:relative; z-index:1; max-width:720px; margin:0 auto; text-align:center;}
.hero-single .eyebrow{margin-left:auto; margin-right:auto;}
.hero-single .lede{max-width:520px; margin-left:auto; margin-right:auto;}
.hero-single .cta-row{justify-content:center;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono','JetBrains Mono',monospace; font-size:11.5px; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--royal);
  background:rgba(59,130,246,0.1); padding:8px 16px; border-radius:100px; margin-bottom:28px;
  border:1px solid rgba(59,130,246,0.2);
}
.eyebrow::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--royal);}
.hero h1{font-size:clamp(42px,6vw,72px); line-height:1.02; letter-spacing:-0.025em; font-weight:700; margin-bottom:18px; background:linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;}
.hero .tagline{font-size:20px; font-weight:600; color:var(--royal); margin-bottom:22px; letter-spacing:0.01em;}
.hero p.lede{font-size:17px; line-height:1.7; color:var(--slate); max-width:480px; margin-bottom:40px;}
.cta-row{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  padding:14px 28px; border-radius:12px; font-size:14.5px; font-weight:600;
  display:inline-flex; align-items:center; gap:8px; transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{background:linear-gradient(135deg, var(--royal) 0%, #2563EB 100%); color:var(--white); box-shadow:0 12px 30px -8px rgba(59,130,246,0.4);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 40px -8px rgba(59,130,246,0.5);}
.btn-ghost{background:var(--glass-bg); color:var(--navy); border:1px solid var(--glass-border); backdrop-filter:blur(8px);}
.btn-ghost:hover{border-color:var(--royal); color:var(--royal); background:rgba(59,130,246,0.05);}
.btn-whatsapp{background:linear-gradient(135deg, #25D366 0%, #1EBE5A 100%); color:var(--white); box-shadow:0 12px 30px -8px rgba(37,211,102,0.4);}
.btn-whatsapp:hover{transform:translateY(-2px); box-shadow:0 16px 40px -8px rgba(37,211,102,0.5);}

/* ===== COA signature panel ===== */
.coa-panel{
  background:var(--navy); color:var(--white); border-radius:18px;
  padding:0; overflow:hidden; box-shadow:0 30px 60px -25px rgba(10,37,64,0.45);
  position:relative;
}
.coa-head{display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid rgba(255,255,255,0.12);}
.coa-head .label{font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.55);}
.coa-status{display:flex; align-items:center; gap:6px; font-family:'JetBrains Mono',monospace; font-size:11px; color:#4ADE80; letter-spacing:0.05em;}
.coa-status .dot{width:6px; height:6px; border-radius:50%; background:#4ADE80; box-shadow:0 0 0 3px rgba(74,222,128,0.2);}
.coa-body{padding:26px 24px 6px;}
.coa-row{display:flex; justify-content:space-between; align-items:baseline; padding:13px 0; border-bottom:1px solid rgba(255,255,255,0.08); font-size:13.5px;}
.coa-row:last-child{border-bottom:none;}
.coa-row .k{color:rgba(255,255,255,0.5); font-weight:500;}
.coa-row .v{font-family:'JetBrains Mono',monospace; font-weight:500; color:var(--white); letter-spacing:0.01em;}
.coa-row .v.accent{color:#67E8F9;}
.coa-purity{margin:22px 24px 24px; padding:20px; border-radius:12px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);}
.coa-purity .num{font-family:'JetBrains Mono',monospace; font-size:38px; font-weight:600; letter-spacing:-0.01em;}
.coa-purity .cap{font-size:11.5px; color:rgba(255,255,255,0.5); margin-top:4px; letter-spacing:0.04em;}
.coa-bar{height:5px; border-radius:4px; background:rgba(255,255,255,0.1); margin-top:14px; overflow:hidden;}
.coa-bar-fill{height:100%; width:99.3%; background:linear-gradient(90deg,#2563EB,#67E8F9); border-radius:4px;}
.coa-foot{padding:16px 24px; background:rgba(255,255,255,0.04); font-family:'JetBrains Mono',monospace; font-size:10.5px; color:rgba(255,255,255,0.4); letter-spacing:0.03em; border-top:1px solid rgba(255,255,255,0.08);}

/* ===== trust strip ===== */
.trust-strip{border-bottom:1px solid var(--line); background:linear-gradient(135deg, #FFFFFF 0%, rgba(240,244,248,0.5) 100%); padding:40px 0;}
.trust-verified{display:flex; align-items:center; gap:24px; flex-wrap:wrap;}
.trust-verified-icon{width:54px; height:54px; border-radius:14px; background:rgba(59,130,246,0.08); border:1px solid rgba(59,130,246,0.18); display:flex; align-items:center; justify-content:center; color:var(--royal); flex-shrink:0;}
.trust-verified-body{flex:1; min-width:200px;}
.trust-verified-title{font-weight:700; font-size:16px; margin-bottom:4px;}
.trust-verified-desc{font-size:13.5px; color:var(--slate); line-height:1.5;}
.trust-coa-btn{white-space:nowrap; border-color:var(--royal); color:var(--royal); background:rgba(59,130,246,0.06); font-size:14px;}
.trust-coa-btn:hover{background:var(--royal); color:var(--white); border-color:var(--royal);}
@media(max-width:700px){ .trust-verified{flex-direction:column; align-items:flex-start;} .trust-coa-btn{width:100%; justify-content:center;} }

/* ===== section headers ===== */
.sec-head{max-width:600px; margin-bottom:52px;}
.sec-head .eyebrow-sm{font-family:'IBM Plex Mono','JetBrains Mono',monospace; font-size:11.5px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--royal); margin-bottom:14px; display:block;}
.sec-head h2{font-size:clamp(28px,3.4vw,38px); letter-spacing:-0.02em; margin-bottom:14px; line-height:1.1;}
.sec-head p{color:var(--slate); font-size:16px; line-height:1.6;}

/* ===== portfolio ===== */
.portfolio{background:linear-gradient(135deg, var(--bg) 0%, rgba(240,244,248,0.8) 100%); border-bottom:1px solid var(--line);}
.port-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; background:transparent; border:none; border-radius:16px; overflow:hidden;}
@media(max-width:860px){ .port-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .port-grid{grid-template-columns:1fr;} }
.port-card{background:var(--glass-bg); padding:0; display:flex; flex-direction:column; min-height:150px; border-radius:16px; border:1px solid var(--glass-border); backdrop-filter:blur(10px); transition:transform .2s, box-shadow .2s, border-color .2s; box-shadow:0 8px 24px rgba(0,0,0,0.06); cursor:pointer;}
.port-card:hover{transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,0.12); border-color:var(--royal);}
.port-card .img-slot{
  width:100%; aspect-ratio:4/3; background:linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.1));
  display:flex; align-items:center; justify-content:center; color:var(--slate);
  border-bottom:1px solid var(--glass-border); overflow:hidden; border-radius:16px 16px 0 0;
}
.port-card .img-slot img{width:100%; height:100%; object-fit:cover; display:block;}
.port-card .body{padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1;}
.port-card .cat{font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--slate);}
.port-card .name{font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:17px;}
.port-card .gate{margin-top:auto; font-size:12px; color:var(--royal); font-weight:600; display:flex; align-items:center; gap:6px;}
.port-note{text-align:center; margin-top:30px; font-size:13.5px; color:var(--slate);}

/* ===== cart section ===== */
.cart-section{background:linear-gradient(135deg, #FFFFFF 0%, rgba(240,244,248,0.6) 100%); border-bottom:1px solid var(--line);}
.cart-shell{display:grid; grid-template-columns:0.9fr 1.1fr; gap:48px; align-items:start;}
@media(max-width:900px){ .cart-shell{grid-template-columns:1fr;} }
.cart-panel{background:var(--glass-bg); border:1px solid var(--glass-border); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:14px; backdrop-filter:blur(10px); box-shadow:0 8px 24px rgba(0,0,0,0.06);}
.cart-empty{padding:18px; border:1px dashed var(--glass-border); border-radius:12px; color:var(--slate); background:rgba(59,130,246,0.04); font-size:14px;}
.cart-item{display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--glass-border);}
.cart-item:last-child{border-bottom:none; padding-bottom:0;}
.cart-item .meta strong{display:block; font-size:15px; margin-bottom:2px;}
.cart-item .meta span{font-size:12.5px; color:var(--slate);}
.cart-item-actions{display:flex; align-items:center; gap:10px;}
.cart-item .price{font-weight:700; color:var(--royal); white-space:nowrap;}
.cart-remove{border:none; background:transparent; color:var(--slate); cursor:pointer; font-size:12px; font-weight:600; padding:0; transition:color .2s;}
.cart-remove:hover{color:var(--royal);}
.cart-total{display:flex; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px solid var(--glass-border); font-weight:700;}
.cart-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:8px;}
.cart-btn{padding:10px 14px; border-radius:10px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--navy); cursor:pointer; font-weight:600; font-size:13px; transition:background .2s, color .2s, border-color .2s;}
.cart-btn:hover{border-color:var(--royal); background:rgba(59,130,246,0.08);}
.cart-btn.primary{background:linear-gradient(135deg, var(--royal) 0%, #2563EB 100%); color:var(--white); border-color:var(--royal); box-shadow:0 8px 20px rgba(59,130,246,0.3);}
.cart-btn.primary:hover{transform:translateY(-1px);}
.cart-btn:disabled{opacity:0.6; cursor:not-allowed;}
.port-card .add-btn{margin-top:auto; padding:10px 12px; border-radius:8px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--navy); font-size:13px; font-weight:600; cursor:pointer; transition:background .2s, color .2s, border-color .2s;}
.port-card .add-btn:hover{border-color:var(--royal); color:var(--royal); background:rgba(59,130,246,0.08);}
.quality-notice{margin-top:32px; padding:18px 20px; border-radius:12px; background:#FEF3C7; border:1px solid #FDE68A; font-size:13.5px; color:#78350F; line-height:1.6;}

/* ===== about ===== */
.about{background:linear-gradient(135deg, var(--navy) 0%, #0F172A 100%); color:var(--white);}
.about-grid{display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; align-items:center;}
@media(max-width:900px){ .about-grid{grid-template-columns:1fr;} }
.about h2{font-size:clamp(28px,3.4vw,36px); letter-spacing:-0.02em; line-height:1.15; margin-bottom:20px;}
.about p{color:rgba(255,255,255,0.7); font-size:16px; line-height:1.7; margin-bottom:16px;}
.about-stats{display:grid; grid-template-columns:1fr 1fr; gap:1px; background:rgba(255,255,255,0.08); border-radius:14px; overflow:hidden; border:1px solid rgba(59,130,246,0.2);}
.stat{background:rgba(255,255,255,0.02); backdrop-filter:blur(8px); padding:26px; transition:background .2s, border-color .2s;}
.stat:hover{background:rgba(59,130,246,0.1);}
.stat .n{font-family:'JetBrains Mono',monospace; font-size:28px; font-weight:600; color:var(--cyan);}
.stat .l{font-size:12.5px; color:rgba(255,255,255,0.6); margin-top:6px; letter-spacing:0.02em;}

/* ===== contact / access ===== */
.access{background:linear-gradient(135deg, rgba(240,244,248,0.6) 0%, var(--bg) 100%);}
.access-grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px;}
@media(max-width:900px){ .access-grid{grid-template-columns:1fr;} }
.access-side .t{font-weight:600; font-size:15px; margin-bottom:6px;}
.access-side .d{font-size:13.5px; color:var(--slate); line-height:1.6; margin-bottom:26px;}
.channel-list{display:flex; flex-direction:column; gap:16px;}
.channel{display:flex; align-items:center; gap:12px; font-size:14px; font-weight:500; transition:transform .2s;}
.channel:hover{transform:translateX(4px);}
.channel .ic{width:34px; height:34px; border-radius:9px; background:var(--glass-bg); border:1px solid var(--glass-border); display:flex; align-items:center; justify-content:center; color:var(--royal); flex-shrink:0; backdrop-filter:blur(8px);}
.form-card{background:var(--glass-bg); border:1px solid var(--glass-border); border-radius:16px; padding:36px; box-shadow:0 20px 45px -30px rgba(0,0,0,0.1); backdrop-filter:blur(10px);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
@media(max-width:560px){ .form-row{grid-template-columns:1fr;} }
.field{display:flex; flex-direction:column; gap:7px;}
.field label{font-size:12.5px; font-weight:600; color:var(--navy);}
.field input, .field select, .field textarea{
  border:1px solid var(--glass-border); border-radius:10px; padding:12px 13px; font-size:14px;
  font-family:'Inter',sans-serif; color:var(--navy); background:rgba(255,255,255,0.5);
  transition:border-color .2s, background .2s, box-shadow .2s; backdrop-filter:blur(4px);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--royal); background:rgba(255,255,255,0.9);
  box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}
.field textarea{resize:vertical; min-height:90px;}
.field.full{grid-column:1 / -1;}
.submit-row{display:flex; align-items:center; gap:16px; margin-top:6px; flex-wrap:wrap;}
.fine{font-size:12px; color:var(--slate); line-height:1.5;}
.form-msg{display:none; margin-top:18px; padding:14px 16px; border-radius:10px; background:#ECFDF5; border:1px solid #A7F3D0; color:#065F46; font-size:13.5px; font-weight:500;}
.form-msg.show{display:block; animation:slideInUp .3s ease-out;}
.form-msg-error{background:#FEF2F2; border:1px solid #FECACA; color:#991B1B;}

@keyframes slideInUp {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}

/* ===== footer ===== */
footer{background:linear-gradient(135deg, var(--navy) 0%, #0A152B 100%); color:rgba(255,255,255,0.6); padding:56px 0 32px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:44px;}
@media(max-width:700px){ .foot-grid{grid-template-columns:1fr; gap:32px;} }
.foot-logo{color:var(--white); font-weight:700; font-size:17px; margin-bottom:12px; font-family:'Space Grotesk',sans-serif;}
.foot-col h4{color:rgba(255,255,255,0.9); font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:16px; font-weight:600;}
.foot-col ul{display:flex; flex-direction:column; gap:11px;}
.foot-col a{font-size:13.5px; transition:color .2s; color:rgba(255,255,255,0.6);}
.foot-col a:hover{color:var(--cyan);}
.foot-bottom{border-top:1px solid rgba(59,130,246,0.2); padding-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:12.5px;}

::selection{background:rgba(37,99,235,0.25);}
:focus-visible{outline:2px solid var(--royal); outline-offset:2px;}

/* ===== policy pages ===== */
.policy-hero{background:linear-gradient(135deg, rgba(240,244,248,0.8) 0%, var(--bg) 100%); border-bottom:1px solid var(--line); padding:64px 0 48px;}
.policy-hero .eyebrow-sm{font-family:'IBM Plex Mono','JetBrains Mono',monospace; font-size:11.5px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--royal); margin-bottom:14px; display:block;}
.policy-hero h1{font-size:clamp(30px,4vw,42px); letter-spacing:-0.02em;}
.policy-hero .updated{font-size:13px; color:var(--slate); margin-top:10px;}
.policy-body{max-width:760px; margin:0 auto; padding:64px 32px;}
.policy-body h2{font-size:20px; margin:36px 0 12px; letter-spacing:-0.01em;}
.policy-body h2:first-child{margin-top:0;}
.policy-body p{font-size:15px; line-height:1.75; color:var(--navy); margin-bottom:14px;}
.policy-body ul{margin:0 0 14px 0; display:flex; flex-direction:column; gap:8px;}
.policy-body li{font-size:15px; line-height:1.7; color:var(--navy); padding-left:20px; position:relative;}
.policy-body li::before{content:'—'; position:absolute; left:0; color:var(--royal);}
.policy-body a.inline-link{color:var(--royal); font-weight:600;}
.policy-nav{background:linear-gradient(135deg, var(--bg) 0%, rgba(240,244,248,0.5) 100%); border-top:1px solid var(--line); padding:20px 0;}
.policy-nav .wrap{display:flex; gap:24px; flex-wrap:wrap; font-size:13.5px;}
.policy-nav a{color:var(--slate); font-weight:500; transition:color .2s;}
.policy-nav a.active, .policy-nav a:hover{color:var(--royal);}
.faq-item{border-bottom:1px solid var(--line); padding:20px 0; transition:background .2s;}
.faq-item:hover{background:rgba(59,130,246,0.04);}
.faq-item summary{font-weight:600; font-size:15.5px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+'; font-size:20px; color:var(--royal); font-weight:400; transition:transform .2s;}
.faq-item[open] summary::after{content:'–'; transform:rotate(90deg);}
.faq-item p{margin-top:12px; margin-bottom:0;}

::selection{background:rgba(59,130,246,0.25);}
:focus-visible{outline:2px solid var(--royal); outline-offset:2px;}

/* ===== product card updated elements ===== */
.port-card .img-slot{position:relative; overflow:hidden;}
.img-overlay{
  position:absolute; inset:0;
  background:rgba(0,0,0,0);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s; pointer-events:none;
}
.port-card:hover .img-overlay{background:rgba(10,20,50,0.45); pointer-events:auto;}
.view-btn{
  background:rgba(255,255,255,0.15); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.45); color:#fff;
  padding:10px 22px; border-radius:100px; font-size:13px; font-weight:600;
  cursor:pointer; opacity:0; transform:translateY(8px);
  transition:opacity .25s, transform .25s, background .2s;
}
.port-card:hover .view-btn{opacity:1; transform:translateY(0);}
.view-btn:hover{background:rgba(255,255,255,0.3);}
.desc-preview{
  font-size:12.5px; color:var(--slate); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card-footer{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:auto; padding-top:12px; border-top:1px solid var(--glass-border);
}
.price-tag{font-size:13.5px; font-weight:700; color:var(--royal); white-space:nowrap;}
.per-unit{font-weight:400; color:var(--slate); font-size:12px;}
.on-sale{display:inline-block; margin-left:8px; padding:2px 7px; background:#dcfce7; color:#16a34a; font-size:10px; font-weight:700; border-radius:20px; letter-spacing:.04em; vertical-align:middle; border:1px solid #bbf7d0;}

/* ===== product modal ===== */
.product-modal{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.product-modal.open{opacity:1; pointer-events:auto;}
.modal-overlay{position:absolute; inset:0; background:rgba(10,20,50,0.65); backdrop-filter:blur(6px);}
.modal-panel{
  position:relative; z-index:1;
  background:var(--glass-bg); border:1px solid var(--glass-border);
  border-radius:20px; box-shadow:0 40px 80px rgba(0,0,0,0.25);
  backdrop-filter:blur(20px);
  width:100%; max-width:920px; max-height:92vh; overflow-y:auto;
  display:grid; grid-template-columns:1.1fr 0.9fr;
  transform:scale(0.96) translateY(16px);
  transition:transform .3s cubic-bezier(.16,1,.3,1);
}
.product-modal.open .modal-panel{transform:scale(1) translateY(0);}
@media(max-width:700px){
  .modal-panel{grid-template-columns:1fr; max-height:96vh;}
}
.modal-close{
  position:absolute; top:14px; right:14px; z-index:10;
  width:36px; height:36px; border-radius:50%; border:1px solid var(--glass-border);
  background:var(--glass-bg); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--navy); transition:background .2s, color .2s, border-color .2s;
}
.modal-close:hover{background:var(--navy); color:#fff; border-color:var(--navy);}

/* gallery */
.modal-gallery{
  position:relative;
  border-right:1px solid var(--glass-border);
  background:linear-gradient(135deg, rgba(59,130,246,0.07), rgba(6,182,212,0.04));
  border-radius:20px 0 0 20px; overflow:hidden;
}
@media(max-width:700px){ .modal-gallery{border-right:none; border-bottom:1px solid var(--glass-border); border-radius:20px 20px 0 0;} }
.gallery-track{position:relative; aspect-ratio:1; overflow:hidden;}
.gallery-slide{display:none; width:100%; height:100%; align-items:center; justify-content:center;}
.gallery-slide.active{display:flex;}
.gallery-slide img{width:100%; height:100%; object-fit:cover;}
.gallery-slide.img-placeholder{
  background:linear-gradient(135deg, rgba(59,130,246,0.12), rgba(6,182,212,0.08));
  min-height:260px;
}
.gallery-slide.img-placeholder::after{
  content:''; display:block; width:64px; height:64px; opacity:0.25;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6' stroke-width='1.4'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5-9 9'/%3E%3C/svg%3E") no-repeat center/contain;
}
.gallery-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--glass-border); background:var(--glass-bg);
  backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--navy); z-index:2;
  transition:background .2s, color .2s, border-color .2s;
}
.gallery-arrow:hover{background:var(--royal); color:#fff; border-color:var(--royal);}
.gallery-prev{left:12px;}
.gallery-next{right:12px;}
.gallery-thumbs{display:flex; gap:8px; padding:12px 14px;}
.thumb{
  width:60px; height:60px; border-radius:8px; overflow:hidden; cursor:pointer; flex-shrink:0;
  border:2px solid transparent; transition:border-color .2s, opacity .2s;
  background:linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.08));
}
.thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.thumb.active{border-color:var(--royal);}
.thumb:not(.active){opacity:0.65;}
.thumb:not(.active):hover{opacity:1;}
.thumb.img-placeholder{background:linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));}

/* modal info panel */
.modal-info{padding:34px 32px;}
.modal-cat{
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--royal); margin-bottom:10px;
}
.modal-name{
  font-size:clamp(22px,3vw,28px); font-weight:700; letter-spacing:-0.02em;
  margin-bottom:14px; font-family:'Poppins','Manrope',sans-serif; line-height:1.15;
}
.modal-desc{font-size:14px; color:var(--slate); line-height:1.75; margin-bottom:26px;}
.modal-qty-wrap{margin-bottom:20px;}
.qty-label{
  font-size:11px; font-weight:700; color:var(--slate); margin-bottom:10px;
  letter-spacing:0.08em; text-transform:uppercase;
}
.qty-options{display:flex; flex-wrap:wrap; gap:7px;}
.qty-btn{
  min-width:40px; height:40px; padding:0 12px; border-radius:9px;
  border:1px solid var(--glass-border); background:var(--glass-bg);
  color:var(--navy); font-size:13.5px; font-weight:600; cursor:pointer;
  transition:border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.qty-btn:hover{border-color:var(--royal); color:var(--royal); background:rgba(59,130,246,0.06);}
.qty-btn.active{
  background:var(--royal); color:#fff; border-color:var(--royal);
  box-shadow:0 4px 14px rgba(59,130,246,0.35);
}
.qty-btn.qty-pack{padding:0 14px; background:rgba(59,130,246,0.05); font-size:12.5px;}
.qty-btn.qty-pack.active{background:var(--royal);}
.modal-price{display:flex; align-items:baseline; gap:10px; margin-bottom:22px;}
.mp-total{font-size:26px; font-weight:700; color:var(--navy); font-family:'Poppins',sans-serif; letter-spacing:-0.02em;}
.mp-label{font-size:13px; color:var(--slate);}
.modal-add-btn{width:100%; justify-content:center; font-size:15px; padding:15px;}

/* cart qty badge */
.cart-qty-badge{
  font-size:11.5px; font-weight:700; color:var(--slate);
  background:rgba(59,130,246,0.08); padding:3px 9px; border-radius:100px;
  border:1px solid var(--glass-border);
}
