/* Damak Ilham storefront: lookbook, shop, product, bag and order pages.
   Built on the same tokens as style.css/premium.css. Content is visible without JavaScript;
   motion is added only by store.js and switched off for reduced-motion users. */

.store-main { padding-top: 5rem; }
.store-wrap { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .store-wrap { padding: 0 2.5rem; } }
.store-narrow { max-width: 46rem; }
.store-head { padding-top: 4rem; padding-bottom: 2.5rem; }
.store-title { margin-top: 1.25rem; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; }
.store-lede { margin-top: 1.5rem; max-width: 38rem; font-size: 1rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }
.store-section { font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-weight: 300; font-size: 2rem; margin: 3rem 0 1.5rem; }
.store-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 220ms var(--ease-out); }
.store-link:hover { color: hsl(var(--muted-foreground)); }
.store-cta { padding: 4rem 1.5rem 6rem; text-align: center; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.demo-tag { display: inline-block; margin-left: 0.25rem; padding: 0.1rem 0.45rem; border: 1px solid hsl(var(--border)); font-family: "DM Sans", sans-serif; font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: hsl(var(--muted-foreground)); vertical-align: middle; }

/* Buttons: same language as the site's existing buttons. */
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.875rem 2rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; border: 1px solid hsl(var(--foreground)); transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 160ms var(--ease-out), opacity 220ms var(--ease-out); cursor: pointer; }
.btn svg { transition: transform 300ms var(--ease-out); }
.btn-dark { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.btn-line { background: transparent; color: hsl(var(--foreground)); }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: transparent; color: hsl(var(--foreground)); }
  .btn-line:hover { background: hsl(var(--foreground)); color: hsl(var(--background)); }
  .btn:hover svg { transform: translateX(4px); }
}

/* ---------- Lookbook ----------
   Opens as a spread: introduction and fitting CTA beside Nora, then a compact "Jump to a look" index.
   Everything is visible without JavaScript; store.js only adds a mask reveal to photographs below the fold. */
.lb-open { max-width: 90rem; margin: 0 auto; padding: 2.25rem 1.5rem 0; display: grid; gap: 2rem; }
.lb-title { max-width: 16ch; }
.lb-open .store-lede { margin-top: 1.25rem; }
.lb-open__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.lb-browse { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 320ms var(--ease-out); }
.lb-browse svg { transition: transform 320ms var(--ease-out); }
.lb-note { margin-top: 1.25rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); max-width: 34rem; }
.lb-open__media { position: relative; display: block; overflow: hidden; background: hsl(var(--secondary)); margin: 0 -1.5rem; }
.lb-open__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%; transition: transform 900ms var(--ease-out); }
.lb-open__caption { position: absolute; left: 1.5rem; bottom: 1.25rem; right: 1.5rem; color: #f6f1e9; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 12px rgb(20 16 12 / 0.6); }
.lb-open__caption span { opacity: 0.7; margin-right: 0.35rem; }
.lb-open__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(rgb(20 16 12 / 0), rgb(20 16 12 / 0.45)); pointer-events: none; }
@media (min-width: 900px) {
  .lb-open { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: center; padding: 2.5rem 2.5rem 0; min-height: calc(100svh - 5rem); }
  .lb-open__media { margin: 0; align-self: stretch; max-height: calc(100svh - 7.5rem); }
  .lb-open__media img { height: 100%; aspect-ratio: auto; min-height: 32rem; }
  .lb-open__caption { left: 2rem; bottom: 1.75rem; }
}
@media (min-width: 1280px) { .lb-open { gap: 6rem; } }

.lb-jump { max-width: 90rem; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.lb-jump__label { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.lb-jump ol { list-style: none; margin: 0.75rem 0 0; padding: 0 0 0.25rem; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.lb-jump ol::-webkit-scrollbar { display: none; }
.lb-jump li { flex: 0 0 auto; }
.lb-jump a { display: inline-flex; align-items: baseline; gap: 0.5rem; min-height: 48px; padding: 0.75rem 0.75rem 0.75rem 0; margin-right: 1rem; white-space: nowrap; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: hsl(var(--muted-foreground)); transition: color 220ms var(--ease-out); }
.lb-jump a span { font-family: "DM Sans", sans-serif; font-size: 0.625rem; letter-spacing: 0.2em; }
.lb-jump a:hover, .lb-jump a:focus-visible { color: hsl(var(--foreground)); }
@media (min-width: 768px) { .lb-jump { padding: 0 2.5rem; margin-top: 4rem; } .lb-jump ol { flex-wrap: wrap; overflow: visible; } }

.lb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.lb-actions--center { justify-content: center; }
.lb-looks { max-width: 90rem; margin: 0 auto; }
.lb-look { display: grid; gap: 2rem; padding: 3rem 1.5rem; scroll-margin-top: 5.5rem; }
.lb-look + .lb-look { border-top: 1px solid hsl(var(--border) / 0.7); }
.lb-frame { margin: 0; overflow: hidden; background: hsl(var(--secondary)); }
.lb-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.lb-zoom:focus-visible { outline: 1px solid hsl(var(--foreground)); outline-offset: 3px; }
.lb-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; transition: transform 900ms var(--ease-out); }
.lb-frame--more { margin-top: 1rem; }
.lb-details { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.lb-details--1 { grid-template-columns: 1fr; }
.lb-details--1 > li { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1rem; align-items: end; }
.lb-details--1 .lb-detail__cap { margin-top: 0; padding-bottom: 0.25rem; }
.lb-details--2 { grid-template-columns: repeat(2, minmax(0, 13rem)); }
.lb-detail { overflow: hidden; background: hsl(var(--secondary)); }
.lb-detail img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
.lb-detail__cap::first-letter { text-transform: uppercase; }
.lb-detail__cap { display: block; margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.lb-count { font-size: 0.6875rem; letter-spacing: 0.24em; }
.lb-count span { color: hsl(var(--muted-foreground)); }
.lb-name { margin-top: 1rem; font-family: "Cormorant Garamond", serif; font-weight: 300; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; }
.lb-label { margin-top: 0.75rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.375rem; color: hsl(var(--muted-foreground)); }
.lb-desc { margin-top: 1.25rem; max-width: 30rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }
.lb-made { margin-top: 1.25rem; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.lb-share { margin-top: 1rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; cursor: pointer; padding: 0.5rem 0; min-height: 44px; transition: color 220ms var(--ease-out); }
.lb-share:hover { color: hsl(var(--foreground)); }
.lb-closing { padding-top: 5rem; padding-bottom: 7rem; text-align: center; }
.lb-closing .store-lede { margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  .lb-look { grid-template-columns: 7fr 5fr; gap: 4rem; padding: 5rem 2.5rem; align-items: center; }
  .lb-look--alt { grid-template-columns: 5fr 7fr; }
  .lb-look--alt .lb-look__media { order: 2; }
  .lb-look__copy { max-width: 32rem; }
}
@media (min-width: 1280px) { .lb-look { gap: 6rem; } .lb-look__media { max-width: 46rem; } .lb-look--alt .lb-look__media { justify-self: end; } }
@media (hover: hover) and (pointer: fine) {
  .lb-zoom:hover img { transform: scale(1.025); }
  .lb-open__media:hover img { transform: scale(1.015); }
  .lb-browse:hover { background-size: 100% 1px; }
  .lb-browse:hover svg { transform: translateX(4px); }
}

/* Mask reveal for photographs entering the view (store.js adds .lb-anim, never for reduced motion).
   Copy is never hidden, so a missed trigger can only leave a photograph un-animated, not a blank section. */
.lb-anim [data-lb-look]:not(.is-in) .lb-frame img { clip-path: inset(0 0 14% 0); transform: translateY(18px) scale(1.02); }
.lb-anim [data-lb-look] .lb-frame img { transition: clip-path 1000ms var(--ease-out), transform 1100ms var(--ease-out); }
.lb-look:target .lb-name { animation: lb-mark 1600ms var(--ease-out); }
@keyframes lb-mark { 0% { color: hsl(var(--muted-foreground)); } 100% { color: inherit; } }

/* Tap-to-enlarge viewer (store.js). */
.lb-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(20 16 12 / 0.96); color: #f6f1e9; }
.lb-viewer::backdrop { background: rgb(20 16 12 / 0.9); }
.lb-viewer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: di-fade 200ms var(--ease-out); }
.lb-viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; }
.lb-viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 1rem; touch-action: pan-y; }
.lb-viewer__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-viewer__cap { padding: 0.75rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); text-align: center; font-size: 0.875rem; line-height: 1.5; color: rgb(246 241 233 / 0.8); }
.lb-viewer button { min-width: 48px; min-height: 48px; border: 1px solid rgb(246 241 233 / 0.3); background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.6875rem; padding: 0 1rem; transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.lb-viewer button:hover { background: rgb(246 241 233 / 0.1); border-color: rgb(246 241 233 / 0.6); }
.lb-viewer button:focus-visible { outline: 1px solid #f6f1e9; outline-offset: 3px; }
.lb-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(20 16 12 / 0.5) !important; }
.lb-viewer__prev { left: 1rem; } .lb-viewer__next { right: 1rem; }
.lb-viewer__nav[hidden] { display: none; }

/* ---------- Shop ---------- */
.store-notice { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; padding: 2.5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.store-notice p { max-width: 36rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.store-notice--small { padding: 1.5rem; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.5rem; } }
.shop-card { display: block; }
.shop-card__img { overflow: hidden; aspect-ratio: 4 / 5; background: hsl(var(--secondary)); }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.shop-card h3 { margin-top: 1rem; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 300; }
.shop-card p { margin-top: 0.25rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
@media (hover: hover) and (pointer: fine) { .shop-card:hover .shop-card__img img { transform: scale(1.03); } }

/* ---------- Product ---------- */
.product { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .product { grid-template-columns: 7fr 5fr; gap: 5rem; padding-top: 4rem; } .product__info { position: sticky; top: 7rem; align-self: start; } }
.product__gallery { display: grid; gap: 1rem; }
.product__frame { overflow: hidden; background: hsl(var(--secondary)); }
.product__frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product__thumbs { display: flex; gap: 0.5rem; }
.product__thumbs button { width: 4.5rem; border: 1px solid transparent; padding: 0; opacity: 0.6; transition: opacity 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.product__thumbs button[aria-current="true"] { opacity: 1; border-color: hsl(var(--foreground)); }
.js-gallery .product__frame { display: none; }
.js-gallery .product__frame.is-active { display: block; animation: di-fade 420ms var(--ease-out); }
.product__name { margin-top: 0.75rem; }
.product__sub { margin-top: 0.75rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.375rem; color: hsl(var(--muted-foreground)); }
.product__price { margin-top: 1.5rem; font-size: 1rem; letter-spacing: 0.04em; }
.product__form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.variant-picker { border: 0; padding: 0; margin: 0; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: flex; flex-direction: column; min-width: 6rem; min-height: 48px; justify-content: center; padding: 0.5rem 1rem; border: 1px solid hsl(var(--border)); font-size: 0.875rem; cursor: pointer; transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out); }
.variant small { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); }
.variant input:checked + span { border-color: hsl(var(--foreground)); background: hsl(var(--card)); }
.variant input:focus-visible + span { outline: 1px solid currentColor; outline-offset: 3px; }
.variant.is-out span { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.qty-field { display: grid; gap: 0.5rem; max-width: 8rem; }
.qty-field input, .checkout-form input, .checkout-form select, .cart-line__qty input { width: 100%; min-height: 46px; border: 1px solid hsl(var(--input, var(--border))); background: transparent; padding: 0.5rem 0.875rem; font-size: 0.9375rem; color: hsl(var(--foreground)); }
.qty-field input:focus, .checkout-form input:focus, .checkout-form select:focus, .cart-line__qty input:focus { outline: none; border-color: hsl(var(--foreground)); }
.form-status { min-height: 1.25rem; font-size: 0.875rem; }
.form-status.is-ok { color: hsl(var(--foreground)); }
.form-status.is-err, .form-error { color: hsl(var(--destructive)); font-size: 0.875rem; }
.form-info { margin: 1rem 0; padding: 0.875rem 1rem; border-left: 2px solid hsl(var(--foreground)); background: hsl(var(--card)); font-size: 0.875rem; }
.product__note { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.product__desc { margin-top: 2rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }
.product__more { margin-top: 2rem; border-top: 1px solid hsl(var(--border)); }
.product__more details { border-bottom: 1px solid hsl(var(--border)); }
.product__more summary { display: flex; justify-content: space-between; min-height: 52px; align-items: center; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; list-style: none; }
.product__more summary::-webkit-details-marker { display: none; }
.product__more summary::after { content: "+"; font-size: 1rem; transition: transform 300ms var(--ease-out); }
.product__more details[open] summary::after { transform: rotate(45deg); }
.product__more details > div { padding-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.75; color: hsl(var(--muted-foreground)); }

/* ---------- Bag ---------- */
.cart { padding-bottom: 6rem; }
.cart__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .cart__grid { grid-template-columns: 7fr 4fr; gap: 5rem; } }
.cart__lines { list-style: none; padding: 0; border-top: 1px solid hsl(var(--border)); }
.cart-line { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid hsl(var(--border)); transition: opacity 300ms var(--ease-out); }
.cart-line.is-updating { opacity: 0.5; }
.cart-line.has-issue { background: linear-gradient(90deg, hsl(var(--destructive) / 0.05), transparent); }
.cart-line__img { display: block; aspect-ratio: 4 / 5; background: hsl(var(--secondary)); overflow: hidden; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-family: "Cormorant Garamond", serif; font-size: 1.375rem; }
.cart-line__meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.cart-line__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.8125rem; }
.cart-line__qty input { width: 4.5rem; }
.cart-line__qty button { min-height: 44px; background: none; border: 0; cursor: pointer; }
.cart-line__price { font-size: 0.9375rem; }
.cart__summary { align-self: start; padding: 2rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
@media (min-width: 1024px) { .cart__summary { position: sticky; top: 7rem; } }
.cart__summary .store-section { margin-top: 0; }
.cart__summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.9375rem; }
.cart__summary dd { text-align: right; color: hsl(var(--muted-foreground)); }
.checkout-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.checkout-form label { display: grid; gap: 0.5rem; }

/* ---------- Order status ---------- */
.order-status { padding-top: 5rem; padding-bottom: 6rem; }
.order-lines { list-style: none; padding: 0; margin-top: 2.5rem; border-top: 1px solid hsl(var(--border)); }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.9375rem; }
.order-total { font-weight: 500; }
.order-status [data-order-label] { transition: opacity 400ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .lb-anim [data-lb-look] .lb-frame img { clip-path: none !important; transform: none !important; }
}

/* Interaction feedback added by store.js */
.lb-share.is-done { color: hsl(var(--foreground)); }
.cart-line.is-busy { opacity: 0.55; transition: opacity 200ms var(--ease-out); pointer-events: none; }
[data-order-label].is-waiting { animation: di-wait 2.4s ease-in-out infinite; }
@keyframes di-wait { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { [data-order-label].is-waiting { animation: none; } }

/* The lookbook has its own WhatsApp button on every look, so the floating one would only cover copy on phones. */
@media (max-width: 1023px) { body:has([data-lb-look]) .wa-float { display: none; } }
