:root{
  --bg:#F4F1EA; --surface:#FFFFFF; --surface-2:#EAE5D9;
  --ink:#1C1A17; --carbon:#3A352D; --stone:#8A8478; --line:rgba(28,26,23,.14);
  --red:#C0272D; --red-press:#9C1F24;
  --navy:#1E3A63; --navy-deep:#12233D; --sky:#5B8FD6;
  --on-navy:#F4F1EA;
  --radius-s:10px; --radius-m:18px; --radius-l:28px;
  --shadow-md:0 12px 32px -12px rgba(28,26,23,.22);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#131210; --surface:#1D1B17; --surface-2:#262319;
    --ink:#F4F1EA; --carbon:#D8D2C4; --stone:#9C9587; --line:rgba(244,241,234,.14);
    --red:#E1474C; --red-press:#F0666A;
    --navy:#2E5390; --navy-deep:#0E1B31; --sky:#82ACE8;
    --shadow-md:0 12px 32px -12px rgba(0,0,0,.55);
    color-scheme:dark;
  }
}
@font-face{font-family:'CDInter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/CDInter.woff2) format('woff2')}
@font-face{font-family:'CDGrotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/fonts/CDGrotesk.woff2) format('woff2')}
@font-face{font-family:'CDUnbounded';font-style:normal;font-weight:600 800;font-display:swap;src:url(/fonts/CDUnbounded.woff2) format('woff2')}
*{box-sizing:border-box;}
[hidden]{display:none !important;}
body{margin:0; background:var(--bg); color:var(--ink); font-family:'CDInter',-apple-system,BlinkMacSystemFont,sans-serif; line-height:1.5;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:900px; margin:0 auto; padding:0 20px;}

header.site{padding:16px 0; border-bottom:1px solid var(--line);}
header.site .wrap{display:flex; align-items:center; justify-content:space-between;}
.head-actions{display:flex; align-items:center; gap:.7rem;}
.shop-link{font-size:.9rem; font-family:'CDGrotesk',sans-serif; font-weight:600;}

/* --- brand (matches home exactly) --- */
.brand{display:flex; align-items:center; gap:.6rem;}
.brand-mark{width:32px; height:32px; border-radius:9px; background:var(--red); border:1.5px solid var(--navy-deep); box-sizing:border-box; position:relative; flex:none; overflow:hidden;}
.brand-mark i{position:absolute; left:13%; top:10%; width:46%; height:46%; border-radius:50%; background:var(--sky); border:2px solid var(--navy); box-sizing:border-box; display:block;}
.brand-mark i::after{content:""; position:absolute; left:20%; top:16%; width:28%; height:28%; border-radius:50%; background:rgba(255,255,255,.75);}
.brand-mark::after{content:""; position:absolute; left:0; right:0; top:57%; height:1.5px; background:rgba(0,0,0,.3);}
.brand-word{font-family:'CDGrotesk',sans-serif; font-weight:700; font-size:1.18rem; letter-spacing:-.01em; color:var(--ink);}
.brand-word span{color:var(--red);}

/* --- icon button + cart badge (matches home) --- */
.icon-btn{position:relative; width:40px; height:40px; display:grid; place-items:center; border-radius:999px; border:1.5px solid var(--line); flex:none; background:none; cursor:pointer; color:var(--ink); padding:0; line-height:0;}
.icon-btn:hover{border-color:var(--ink);}
.icon-btn svg{width:18px; height:18px; display:block; margin:0 auto; transform:translateX(1px);}
.cart-count{position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--red); color:#fff; font-size:.65rem; font-weight:700; display:grid; place-items:center; font-family:'CDGrotesk',sans-serif;}

/* --- cart drawer (same behavior as home, embedded so it opens without leaving the product page) --- */
.backdrop{position:fixed; inset:0; background:rgba(15,14,12,.5); z-index:80; opacity:0; pointer-events:none; transition:opacity .25s ease;}
.backdrop.open{opacity:1; pointer-events:auto;}
.drawer{position:fixed; top:0; right:0; bottom:0; width:min(420px,100%); background:var(--bg); z-index:90; box-shadow:-16px 0 40px rgba(0,0,0,.25); display:flex; flex-direction:column; translate:105% 0; transition:translate .3s cubic-bezier(.22,.61,.36,1);}
.drawer.open{translate:0 0;}
.drawer-head{display:flex; align-items:center; justify-content:space-between; padding:1.2rem 1.4rem; border-bottom:1px solid var(--line);}
.drawer-head h3{font-family:'CDGrotesk',sans-serif; font-size:1.05rem; font-weight:700;}
.drawer-list{flex:1; overflow-y:auto; padding:1rem 1.4rem; display:flex; flex-direction:column; gap:1rem;}
.drawer-empty{color:var(--stone); font-size:.92rem; text-align:center; padding:3rem 1rem;}
.line-item{display:flex; gap:.8rem; align-items:center;}
.li-art{width:52px; height:52px; border-radius:10px; flex:none; position:relative; overflow:hidden; background:var(--surface-2);}
.li-info{flex:1; min-width:0;}
.li-info h4{font-family:'CDGrotesk',sans-serif; font-weight:600; font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0;}
.li-info .set{font-size:.76rem; color:var(--stone);}
.li-qty{display:flex; align-items:center; gap:.5rem;}
.li-qty button{width:22px; height:22px; border-radius:6px; border:1px solid var(--line); display:grid; place-items:center; font-size:.85rem; background:var(--surface); cursor:pointer;}
.li-qty span{font-family:'CDGrotesk',sans-serif; font-weight:600; font-size:.85rem; min-width:14px; text-align:center;}
.li-price{font-family:'CDUnbounded',sans-serif; font-weight:700; font-size:.86rem; color:var(--red); white-space:nowrap;}
.drawer-foot{border-top:1px solid var(--line); padding:1.2rem 1.4rem 1.5rem; display:flex; flex-direction:column; gap:.9rem;}
.subtotal-row{display:flex; justify-content:space-between; align-items:baseline;}
.subtotal-row .label{font-family:'CDGrotesk',sans-serif; font-weight:600; font-size:.9rem;}
.subtotal-row .amount{font-family:'CDUnbounded',sans-serif; font-weight:700; font-size:1.4rem; color:var(--red);}
.hint{font-size:.78rem; color:var(--stone); line-height:1.5;}
.checkout-actions{display:flex; gap:.6rem;}
.checkout-actions .btn{flex:1; padding-inline:.7rem; font-size:.88rem; white-space:nowrap;}
.checkout-actions .btn svg{width:15px; height:15px; flex:none;}
.checkout-actions .btn.copied{background:var(--sky-soft,rgba(91,143,214,.16)); color:var(--navy); border-color:transparent;}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.85rem 1.5rem; border-radius:999px; font-family:'CDGrotesk',sans-serif; font-weight:600; font-size:.95rem; border:none; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; white-space:nowrap;}
.btn:active{transform:translateY(1px);}
.btn-primary{background:var(--red); color:#fff;}
.btn-primary:hover{background:var(--red-press);}
.btn-ghost{background:transparent; color:var(--ink); border:1.5px solid var(--line);}
.btn-ghost:hover{border-color:var(--ink);}

.crumbs{font-size:.85rem; color:var(--stone); margin:24px 0 8px;}
.crumbs a:hover{color:var(--navy);}
main{padding-bottom:60px;}
.product{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:2.5rem; margin-top:1rem;}
@media (max-width:760px){.product{grid-template-columns:minmax(0,1fr);}}
.gallery{display:flex; flex-direction:column; gap:10px; min-width:0;}
.gallery img{width:100%; border-radius:var(--radius-m); background:var(--surface-2); box-shadow:var(--shadow-md); object-fit:cover; aspect-ratio:4/5;}
.gallery-main{position:relative;}
.gallery-main img{display:block;}
.gallery-main img.contain{object-fit:contain;}
.gallery-nav{position:absolute; top:50%; translate:0 -50%; width:38px; height:38px; border-radius:50%; border:none; background:rgba(20,20,20,.55); color:#fff; font-size:1.3rem; line-height:1; display:grid; place-items:center; cursor:pointer; backdrop-filter:blur(2px);}
.gallery-nav:hover{background:rgba(20,20,20,.8);}
.gallery-nav.prev{left:12px;}
.gallery-nav.next{right:12px;}
.gallery .thumbs{display:flex; gap:8px; flex-wrap:wrap;}
.gallery .thumbs img{width:72px; height:72px; aspect-ratio:auto; border-radius:var(--radius-s); cursor:pointer; opacity:.7;}
.gallery .thumbs img.active{opacity:1; outline:2px solid var(--navy);}
.info h1{font-family:'CDUnbounded',sans-serif; font-size:clamp(1.6rem,3vw,2.2rem); line-height:1.15; margin:.2rem 0;}
.info .set{color:var(--stone); font-size:.95rem;}
.badge{display:inline-block; padding:3px 11px; border-radius:20px; font-size:.78rem; font-weight:600; margin:.8rem 0;}
.badge.navy{background:rgba(30,58,99,.12); color:var(--navy);}
.badge.red{background:rgba(192,39,45,.12); color:var(--red);}
.badge.gray{background:var(--surface-2); color:var(--stone);}
.price{font-family:'CDUnbounded',sans-serif; font-size:2rem; color:var(--ink); margin:1rem 0 .3rem;}
.price small{display:block; font-family:'CDInter',sans-serif; font-size:.75rem; color:var(--stone); font-weight:400;}
.stock{font-size:.9rem; color:var(--stone); margin-bottom:1.2rem;}
.stock.in{color:#1a9d5c;}
.stock.out{color:var(--red);}

/* --- quantity stepper --- */
.buy-row{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.qty-stepper{display:flex; align-items:center; border:1.5px solid var(--line); border-radius:999px; overflow:hidden;}
.qty-stepper button{width:38px; height:44px; border:none; background:var(--surface); color:var(--ink); font-size:1.1rem; cursor:pointer;}
.qty-stepper button:hover{background:var(--surface-2);}
.qty-stepper button:disabled{opacity:.35; cursor:not-allowed;}
.qty-stepper span{width:34px; text-align:center; font-family:'CDGrotesk',sans-serif; font-weight:700;}
.cta{display:inline-flex; align-items:center; gap:8px; background:var(--navy); color:var(--on-navy); padding:14px 26px; border:none; border-radius:999px; font-weight:600; font-size:.95rem; font-family:'CDInter',sans-serif; box-shadow:var(--shadow-md); cursor:pointer;}
.cta:hover{background:var(--navy-deep);}
.cta.disabled{background:var(--surface-2); color:var(--stone); pointer-events:none; box-shadow:none;}

.contents{margin-top:1.6rem; padding-top:1.4rem; border-top:1px solid var(--line);}
.contents h2{font-family:'CDGrotesk',sans-serif; font-size:1rem; margin:0 0 .6rem;}
.contents ul{margin:0; padding-left:1.2rem; font-size:.92rem; color:var(--carbon);}
.contents li{margin-bottom:.3rem;}

.trust{margin-top:1.4rem; padding-top:1.2rem; border-top:1px solid var(--line); font-size:.88rem; color:var(--stone);}
.trust ul{margin:.5rem 0 0; padding-left:1.1rem;}
.back-shop{display:inline-block; margin-top:2rem; font-size:.9rem; color:var(--navy); font-weight:600;}
footer.site{border-top:1px solid var(--line); padding:24px 0; text-align:center; color:var(--stone); font-size:.85rem;}

.wa-fab{position:fixed; right:22px; bottom:22px; width:56px; height:56px; border-radius:50%; background:#25D366; display:grid; place-items:center; box-shadow:0 8px 24px rgba(0,0,0,.3); z-index:60; transition:transform .2s ease;}
.wa-fab:hover{transform:scale(1.06);}
.wa-fab svg{width:26px; height:26px;}

.toast{position:fixed; left:50%; bottom:26px; transform:translate(-50%,140%); background:var(--navy-deep); color:#fff; padding:12px 22px; border-radius:999px; font-size:.9rem; font-family:'CDGrotesk',sans-serif; font-weight:600; box-shadow:var(--shadow-md); transition:transform .3s ease; z-index:50;}
.toast.show{transform:translate(-50%,0);}

.cd-lightbox{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:rgba(10,9,8,.86); backdrop-filter:blur(3px); padding:5vh 5vw;
  opacity:0; pointer-events:none; transition:opacity .22s ease;
}
.cd-lightbox.open{opacity:1; pointer-events:auto;}
.cd-lightbox-figure{margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; max-width:100%; max-height:100%;}
.cd-lightbox-img{
  max-width:min(86vw,560px); max-height:78vh; width:auto; height:auto; object-fit:contain;
  border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.55);
  background:var(--surface-2);
  transform:scale(.96); transition:transform .22s ease;
}
.cd-lightbox.open .cd-lightbox-img{transform:scale(1);}
.cd-lightbox-caption{color:#f2efe9; font-size:.9rem; text-align:center; max-width:70ch;}
.cd-lightbox-close{
  position:absolute; top:18px; right:18px; width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.2);
  display:grid; place-items:center; cursor:pointer; transition:background .18s ease;
}
.cd-lightbox-close:hover{background:rgba(255,255,255,.22);}
.cd-lightbox-close svg{width:20px; height:20px;}
body.cd-lightbox-lock{overflow:hidden;}
.hits-row img:focus-visible{outline:2px solid var(--red); outline-offset:2px;}
