.store-top { display: flex; align-items: center; justify-content: center; position: relative; padding: 1.1rem 16px; border-bottom: 1px solid var(--line); }
.cart-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .4rem; color: var(--ink); }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; max-width: 1120px; margin: 0 auto; padding: 2rem 16px 4rem; }
.gallery-main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--panel); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.thumbs button[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.buy h1 { font: 600 2.1rem/1.15 var(--heading); margin: 0 0 .35rem; }
.p-price { font-size: 1.25rem; margin: 0 0 1.25rem; }
.p-price s { color: var(--muted); font-size: 1rem; }
.opt { border: 0; padding: 0; margin: 0 0 1.25rem; }
.opt legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.tiers { display: grid; gap: 8px; }
.tier { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; }
.tier[aria-checked="true"] { border-color: var(--ink); background: #FBF8EA; box-shadow: inset 0 0 0 1px var(--ink); }
.tier-name { font-weight: 700; display: block; }
.tier-sub { font-size: .85rem; color: var(--muted); display: block; }
.tier-price { font-weight: 700; white-space: nowrap; }
.scents { display: flex; flex-wrap: wrap; gap: 8px; }
.scent { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.scent[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.qty-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.bundle-hint { margin: 0; font-size: .9rem; color: var(--ok); font-weight: 700; }

.purchase { display: grid; gap: 8px; margin: .25rem 0 1.25rem; }
.ptype { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ptype.sub { border-style: dashed; border-color: #b9b49f; }
.ptype:has(input:checked) { border: 1px solid var(--ink); background: #FBF8EA; box-shadow: inset 0 0 0 1px var(--ink); }
.ptype input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.ptype-body { flex: 1; }
.ptype-title { display: block; font-weight: 700; }
.ptype-text { display: block; font-size: .85rem; color: var(--muted); }
.ptype-price { font-weight: 700; white-space: nowrap; }
.ship-note { text-align: center; font-size: .9rem; color: var(--muted); margin: .75rem 0 1.5rem; }
.desc { border-top: 1px solid var(--line); padding-top: 1rem; }
.desc summary { font: 600 1.1rem var(--heading); cursor: pointer; }
.desc p, .desc li { font-size: .95rem; }

/* Pop-up */
.modal-back { position: fixed; inset: 0; background: rgba(40, 38, 32, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); border-radius: 16px; padding: 1.25rem 1.25rem 1rem; text-align: center; }
.modal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--panel); }
.up-kicker { margin: .9rem 0 .2rem; font-size: .85rem; color: var(--muted); }
.modal h2 { margin: 0 0 .4rem; }
.up-price { margin: 0 0 .75rem; font-size: 1.15rem; }
.up-price s { color: var(--muted); }
.up-save { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--accent); font-size: .85rem; }
.modal select { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.modal .btn-pay { margin-top: .9rem; }
.link-btn { margin-top: .75rem; background: none; border: 0; text-decoration: underline; color: var(--muted); font-size: .95rem; padding: .4rem; }
.x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); font-size: 1.5rem; line-height: 1; color: var(--ink); }

/* Side cart */
.drawer-back { position: fixed; inset: 0; background: rgba(40, 38, 32, .35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 41; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 24px rgba(0, 0, 0, .08); }
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 1rem 16px .5rem; }
.drawer-head h2 { margin: 0; }
.drawer-head h2 span { font: 400 .95rem var(--body); color: var(--muted); }
.drawer-head .x { top: 10px; right: 8px; background: none; }
.ship-bar { padding: .25rem 16px 1rem; border-bottom: 1px solid var(--line); }
.ship-bar p { margin: 0 0 .45rem; font-size: .9rem; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; background: var(--sage); border-right: 0; transition: width .3s ease; width: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 0 16px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: var(--panel); flex: none; }
.cl-info { flex: 1; min-width: 0; }
.cl-name { margin: 0; font-weight: 700; }
.cl-opts { margin: .1rem 0 .4rem; font-size: .85rem; color: var(--muted); }
.cl-actions { display: flex; align-items: center; gap: .75rem; }
.cl-actions .stepper button { width: 32px; height: 32px; font-size: 1rem; }
.remove { background: none; border: 0; padding: 0; font-size: .85rem; text-decoration: underline; color: var(--muted); }
.cl-price { text-align: right; white-space: nowrap; }
.cl-price s { display: block; font-size: .85rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.look h3 { font: 600 1.1rem var(--heading); text-align: center; margin: 1.25rem 0 .75rem; }
.look-card { display: flex; gap: .85rem; align-items: center; padding: .85rem; margin-bottom: 10px; border-radius: var(--radius); background: var(--panel); }
.look-card img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.look-card .lc-info { flex: 1; min-width: 0; }
.look-card p { margin: 0; }
.lc-name { font-weight: 700; }
.lc-price { font-size: .9rem; }
.btn-outline { padding: .5rem .9rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: .9rem var(--meta); white-space: nowrap; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.drawer-foot { padding: .9rem 16px 1rem; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; margin-bottom: .6rem; color: var(--ok); }
.checkout-link { display: block; text-align: center; text-decoration: none; margin-top: 0; }
.checkout-link[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.pay-icons { text-align: center; font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1rem; }
  .buy h1 { font-size: 1.7rem; }
}
