.detail-page{background:#fff}
.detail-header{height:64px;padding:0 20px;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.96);z-index:20}
.detail-header .wordmark{text-align:center}.back-link{font-size:20px}.detail-bag{position:relative;border:0;background:none;font-size:0;padding:0;display:grid;place-items:center}.detail-bag span{position:absolute;left:50%;top:50%;width:15px;height:15px;border-radius:50%;background:#111;color:#fff;font-size:7px;display:grid;place-items:center;margin:-16px 0 0 5px}
.product-detail{display:grid;grid-template-columns:58% 42%;min-height:calc(100vh - 64px)}
.detail-gallery{background:#e4e1ef;position:sticky;top:64px;height:calc(100vh - 64px);display:grid;place-items:center;overflow:hidden}.detail-index{position:absolute;left:24px;top:22px;font-size:8px;letter-spacing:.1em}
.figure-detail{width:300px;height:390px}.figure-detail .figure-body{width:280px;height:305px;left:10px;top:52px}.figure-detail .figure-ear{width:84px;height:120px;top:4px;left:28px;transform:rotate(-18deg)}.figure-detail .figure-ear.right{left:auto;right:28px;transform:rotate(18deg) scaleX(-1)}.figure-detail .figure-eye{width:12px;height:16px;top:116px;left:81px}.figure-detail .figure-eye.right{left:auto;right:81px}.figure-detail .figure-mouth{width:19px;height:10px;left:130px;top:152px}.figure-detail .figure-foot{width:116px;height:66px;left:24px;bottom:0}.figure-detail .figure-foot.right{left:auto;right:24px}
.gallery-dots{position:absolute;bottom:22px;display:flex;gap:6px}.gallery-dots i{width:5px;height:5px;border-radius:50%;background:rgba(0,0,0,.25)}.gallery-dots i.active{background:#111}
.detail-info{padding:7vw 5vw}.detail-series{font-size:8px;letter-spacing:.13em;margin:0 0 22px}.detail-title{display:flex;justify-content:space-between;gap:20px;padding-bottom:28px;border-bottom:1px solid var(--line)}.detail-title h1{font-size:38px}.detail-title strong{font-size:11px;font-weight:500;padding-top:7px;white-space:nowrap}
.detail-description{font-size:12px;line-height:1.9;color:#666;margin:28px 0 44px;max-width:480px}.option-group{margin-bottom:30px}.option-heading{display:flex;justify-content:space-between;margin-bottom:13px;font-size:10px}.option-heading small{color:#777}
.option-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.option-buttons button{height:42px;border:1px solid var(--line);background:#fff;font-size:10px}.option-buttons button.selected{background:#111;color:#fff;border-color:#111}
.color-buttons{display:flex;gap:10px}.color-buttons button{width:28px;height:28px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}.color-buttons button.selected{box-shadow:0 0 0 1px #111}.purple-dot{background:#7866df}.cream-dot{background:#e1d7bd}.black-dot{background:#222}
.purchase-row{display:grid;grid-template-columns:112px 1fr;gap:8px;margin-top:42px}.quantity{height:50px;border:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;text-align:center;font-size:10px}.quantity button{border:0;background:none}.purchase-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail-add,.buy-now{height:50px;padding:0 14px;font-size:10px;font-weight:600}.detail-add{background:var(--cream);color:#111;border:3px solid var(--grid)}.buy-now{background:var(--blue);color:#fff;border:3px solid var(--grid);box-shadow:6px 6px 0 var(--yellow);display:flex;align-items:center;justify-content:space-between}
.detail-notes{margin-top:35px;border-top:1px solid var(--line)}.detail-notes details{border-bottom:1px solid var(--line);font-size:10px}.detail-notes summary{padding:17px 0;display:flex;justify-content:space-between;cursor:pointer;list-style:none}.detail-notes p{color:#777;line-height:1.7;margin:0;padding:0 0 18px}
.detail-toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);opacity:0;background:#111;color:#fff;padding:11px 18px;font-size:10px;z-index:50;transition:.2s}.detail-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){
  .detail-header{background:#111;color:#fff;border:0}.detail-bag span{background:#fff;color:#111}
  .product-detail{display:block}.detail-gallery{position:relative;top:0;height:104vw;max-height:500px}.figure-detail{transform:scale(.72)}
  .detail-info{padding:28px 18px 55px}.detail-title{display:block}.detail-title h1{font-size:32px}.detail-title strong{display:block;margin-top:14px}.detail-description{margin:22px 0 35px}
  .detail-info{padding-bottom:118px}
  .purchase-row{position:fixed;left:0;right:0;bottom:0;background:var(--cream);padding:10px 12px calc(10px + env(safe-area-inset-bottom));z-index:40;margin:0;grid-template-columns:82px 1fr;border-top:3px solid var(--grid);box-shadow:0 -8px 24px rgba(0,0,0,.12)}
  .purchase-buttons{gap:5px}.detail-add,.buy-now{height:50px;padding:0 9px;font-size:9px}.buy-now{box-shadow:4px 4px 0 var(--yellow)}
}

/* Composition detail */
.detail-header{height:70px;background:var(--cream);border-bottom:7px solid var(--grid);padding:0;grid-template-columns:70px 1fr 78px}
.back-link{height:70px;display:grid;place-items:center;border-right:7px solid var(--grid);font-size:24px}.detail-bag{height:70px;border-left:7px solid var(--grid);background:var(--blue);color:#fff}
.detail-gallery{top:70px;height:calc(100vh - 70px);background:#e9e6dc;border-right:7px solid var(--grid);isolation:isolate}
.detail-gallery:before,.detail-gallery:after{display:none}
.figure-detail{filter:drop-shadow(14px 16px 0 rgba(0,0,0,.16))}
.figure-detail .figure-body{background:var(--cream)}
.figure-detail .figure-ear.left{background:var(--red)}.figure-detail .figure-ear.right{background:var(--yellow)}
.figure-detail .figure-foot.left{background:var(--yellow)}.figure-detail .figure-foot.right{background:var(--blue)}
.detail-info{background:var(--cream)}
.detail-title{border-bottom:6px solid var(--grid)}.detail-title h1{font-weight:600}
.option-buttons button{border:3px solid var(--grid)}.option-buttons button.selected{background:var(--red)}
.color-buttons button{border-radius:0;width:32px;height:32px;border:3px solid var(--grid);box-shadow:none}.color-buttons button.selected{box-shadow:5px 5px 0 var(--grid);transform:translate(-2px,-2px)}
.purple-dot{background:var(--blue)}.cream-dot{background:var(--yellow)}.black-dot{background:var(--red)}
.quantity{border:3px solid var(--grid)}
.detail-notes{border-top:5px solid var(--grid)}.detail-notes details{border-color:var(--grid)}

@media(max-width:760px){
  .detail-header{height:60px;background:var(--cream);color:#111;grid-template-columns:60px 1fr 60px;border-bottom:6px solid var(--grid)}
  .back-link{height:60px;border-right:6px solid var(--grid)}.detail-bag{height:60px;border-left:6px solid var(--grid);background:var(--blue);color:#fff}
  .detail-gallery{height:108vw;max-height:520px;border-right:0;border-bottom:6px solid var(--grid)}
  .figure-detail{transform:scale(.7);filter:drop-shadow(10px 11px 0 rgba(0,0,0,.16))}
  .detail-info{padding:28px 16px 55px}.detail-title{border-bottom:5px solid var(--grid)}
}

.detail-gallery{background:#e9e6dc}
.detail-photo{display:block;width:100%;height:100%;object-fit:cover}
.detail-index{z-index:2;background:var(--cream);border:3px solid var(--grid);padding:7px 9px}
.gallery-dots{z-index:2}
.gallery-dots button{width:9px;height:9px;padding:0;border:2px solid var(--grid);border-radius:0;background:var(--cream);cursor:pointer}
.gallery-dots button.active{background:var(--red)}

.product-detail{grid-template-rows:auto minmax(0,1fr) auto}
.breadcrumbs{grid-column:1/-1;padding:18px 24px;border-bottom:5px solid var(--grid);display:flex;gap:12px;font-size:11px;background:var(--cream)}
.breadcrumbs strong{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-media{grid-column:1;grid-row:2}
.detail-gallery{grid-column:1;grid-row:2;position:relative;top:0;height:auto;aspect-ratio:1/1}
.gallery-thumbnails{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:12px;background:var(--cream);border-right:7px solid var(--grid)}
.gallery-thumbnails button{padding:0;border:3px solid transparent;background:none;aspect-ratio:1;overflow:hidden;cursor:pointer}
.gallery-thumbnails button.active{border-color:var(--grid)}
.gallery-thumbnails img{width:100%;height:100%;display:block;object-fit:cover}
.detail-info{grid-column:2;grid-row:2}
.shipping-note{font-size:11px;text-decoration:underline;color:#666;margin:-28px 0 18px}
.feature-note{font-size:12px;font-weight:600;margin:0 0 38px}
.delivery-status{margin:0 0 12px;padding:13px;border:3px solid var(--grid);background:var(--yellow)}
.delivery-status strong,.delivery-status small{display:block}.delivery-status strong{font-size:12px}.delivery-status small{margin-top:6px;font-size:8px;line-height:1.5}
.stock-note{display:inline-block;margin:0 0 12px;padding:6px 8px;border:2px solid var(--grid);background:#fff;font-size:9px;font-weight:600}
.stock-note[data-state="low"]{background:var(--yellow)}.stock-note[data-state="soldout"]{background:var(--red);color:#fff}
.detail-add:disabled,.buy-now:disabled,.quantity button:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}

@media(max-width:760px){
  .product-detail{display:block}
  .breadcrumbs{padding:14px 16px;border-bottom:0;overflow:hidden}
  .detail-media{display:block}
  .detail-gallery{width:calc(100% - 28px);height:auto;aspect-ratio:1/1;margin:0 14px;border:0;border-radius:12px;overflow:hidden}
  .detail-photo{object-position:center}
  .gallery-thumbnails{display:flex;gap:10px;padding:10px 14px 22px;border:0;overflow-x:auto}
  .gallery-thumbnails button{flex:0 0 76px;border-radius:8px}
  .detail-info{padding-top:18px}
  .detail-title h1{font-size:31px}
  .shipping-note{margin:-16px 0 14px}
  .feature-note{margin-bottom:30px}
}
.reviews-section{grid-column:1/-1;padding:55px 5vw 110px;border-top:7px solid var(--grid);background:var(--cream)}.reviews-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:5px solid #111;padding-bottom:18px}.reviews-heading p{font-size:8px;letter-spacing:.14em;margin:0 0 8px}.reviews-heading h2{font-size:28px;margin:0}.reviews-heading h2 span{font-size:12px}.reviews-heading button{height:40px;border:2px solid #111;background:var(--yellow);padding:0 15px;font-size:10px;font-weight:600}.rating-summary{display:flex;gap:18px;align-items:center;padding:25px 0;border-bottom:2px solid #111}.rating-summary>strong{font-size:42px}.rating-summary div span,.rating-summary div small{display:block}.rating-summary div span{color:var(--red);letter-spacing:3px}.rating-summary div small{font-size:8px;margin-top:6px}.review-card{padding:22px 0;border-bottom:2px solid #111}.review-card-top{display:flex;justify-content:space-between}.review-card-top strong{font-size:11px}.review-card-top span{color:var(--red);font-size:12px}.review-meta{font-size:8px;color:#777;margin:8px 0 15px}.verified{background:var(--blue);color:#fff;padding:3px 5px;margin-right:6px}.review-card p{font-size:10px;line-height:1.7;white-space:pre-wrap}.review-card>img{width:110px;height:110px;object-fit:cover;border:2px solid #111}.admin-reply{margin-top:15px;padding:13px;border-left:5px solid var(--blue);background:#fff}.admin-reply strong{font-size:9px}.admin-reply p{margin:6px 0 0}.no-reviews{text-align:center;padding:50px 0;font-size:10px;color:#777}
.review-action{text-align:right}.review-action small{display:block;max-width:155px;margin-top:6px;font-size:7px;line-height:1.4;color:#666}.reviews-heading button:disabled{background:#ddd;color:#777;cursor:not-allowed}
.review-sheet{position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:70;opacity:0;visibility:hidden}.review-sheet.open{opacity:1;visibility:visible}.review-panel{position:absolute;inset:25px 0 0;background:var(--cream);overflow:auto;border-top:6px solid #111}.review-panel-head{display:flex;justify-content:space-between;padding:16px;background:var(--yellow);border-bottom:4px solid #111}.review-panel-head small{font-size:8px}.review-panel-head h2{font-size:20px;margin:5px 0}.review-panel-head button{border:0;background:none;font-size:26px}.review-panel form{padding:20px 16px}.review-panel label{display:block;margin-bottom:17px}.review-panel label>span,.review-panel legend{display:block;font-size:9px;font-weight:600;margin-bottom:7px}.review-panel input,.review-panel textarea{width:100%;border:2px solid #111;background:#fff;padding:11px}.review-panel label small{display:block;font-size:8px;color:#777;margin-top:6px}.review-panel fieldset{border:0;padding:0;margin:0 0 17px}.star-input{display:flex}.star-input button{border:0;background:none;color:#bbb;font-size:28px;padding:0 3px}.star-input button.active{color:var(--red)}.review-photo{height:50px;border:2px dashed #111;display:grid!important;place-items:center}.review-photo input{position:absolute;opacity:0}.review-photo span{margin:0!important}.review-submit{width:100%;height:50px;border:3px solid #111;background:var(--blue);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 14px}.review-panel [role=status]{font-size:9px;text-align:center}.review-panel form img{width:80px;height:80px;object-fit:cover;border:2px solid #111;margin-bottom:15px}
@media(max-width:760px){.reviews-section{padding:40px 16px 120px}.review-panel{inset:20px 0 0}}@media(min-width:760px){.review-panel{width:520px;left:50%;right:auto;transform:translateX(-50%)}}

/* Product photo scale — layout stays original, only the photo gets calmer */
@media(min-width:761px){
  .product-detail{
    grid-template-columns:minmax(440px,52%) minmax(420px,1fr);
    align-items:start;
  }
  .detail-media{
    width:min(46vw,540px);
    justify-self:center;
    align-self:start;
    margin-top:24px;
  }
  .detail-gallery{
    width:100%;
    margin-top:0;
    border:4px solid var(--grid);
    border-bottom:0;
  }
  .gallery-thumbnails{
    width:100%;
    border-right:0;
    padding:10px;
    background:var(--cream);
    border:4px solid var(--grid);
    border-top:0;
    gap:8px;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .gallery-thumbnails button{
    border-width:2px;
  }
  .detail-info{
    grid-row:2;
  }
}
