/* DSS 3D Works storefront
   Concept: the shop is a dim sanctum; every idol sits in its own arched niche, lit by lamp-brass. */
/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: 'Mukta'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/mukta-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/mukta-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/mukta-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mukta'; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/mukta-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Yatra One'; font-weight: 400; font-display: swap; src: url(/assets/fonts/yatra-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2212; }
@font-face { font-family: 'Yatra One'; font-weight: 400; font-display: swap; src: url(/assets/fonts/yatra-one-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
:root {
  --night: #1c1830;
  --night-2: #241f3d;
  --night-3: #2f2950;
  --brass: #c9993e;
  --brass-soft: #e2bf73;
  --brass-deep: #9c7423;
  --stone: #ede6d8;
  --muted: #a8a2bd;
  --kumkum: #c4434a;
  --leaf: #6fae7f;
  --line: rgba(201, 153, 62, 0.28);
  --display: 'Yatra One', Georgia, serif;
  --body: 'Mukta', system-ui, sans-serif;
  --wrap: 1180px;
  --arch: 999px 999px 10px 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-soft); text-underline-offset: 3px; }
a:hover { color: var(--stone); }
:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(28, 24, 48, .94); backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--stone); }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--brass-soft); }
.brand span { font-size: .85rem; color: var(--muted); }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--stone); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--brass-soft); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--brass); border-radius: 999px; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--brass); color: var(--night); font-size: .8rem; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
}

/* Buttons & form controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--body); padding: 12px 24px; border-radius: 999px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--night); cursor: pointer; text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: var(--brass-soft); color: var(--night); }
.btn.ghost { background: transparent; color: var(--brass-soft); }
.btn.ghost:hover { background: rgba(201, 153, 62, .12); color: var(--stone); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
label { display: block; font-weight: 500; margin: 0 0 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--stone); background: var(--night-2);
  border: 1px solid #423a68; border-radius: 10px; padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 153, 62, .2); }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--kumkum); background: rgba(196, 67, 74, .12); margin: 0 0 16px; }
.alert.ok { border-color: var(--leaf); background: rgba(111, 174, 127, .12); }

/* Hero: the sanctum */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { max-width: 14ch; }
.hero p { color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.sanctum { position: relative; justify-self: center; width: min(380px, 80vw); }
.sanctum::before { /* lamp glow */
  content: ''; position: absolute; inset: 18% -30% -10% -30%;
  background: radial-gradient(closest-side, rgba(226, 191, 115, .32), rgba(226, 191, 115, 0) 70%);
  animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sanctum::before { animation: none; } }
.sanctum .niche { position: relative; aspect-ratio: 3 / 4; }
.sanctum figcaption { position: relative; text-align: center; margin-top: 14px; color: var(--muted); }
.sanctum figcaption a { color: var(--stone); text-decoration: none; font-weight: 500; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .sanctum { width: min(300px, 76vw); }
}

/* The niche: arched frame used for every idol */
.niche {
  border-radius: var(--arch); overflow: hidden; background: radial-gradient(120% 80% at 50% 100%, #3a3260, var(--night-2));
  outline: 1px solid var(--line); outline-offset: 6px;
}
.niche img { width: 100%; height: 100%; object-fit: cover; }
.niche .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 4rem; color: var(--brass-deep); }

/* Catalogue */
.section { padding: 56px 0; scroll-margin-top: 70px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 .95rem var(--body); padding: 7px 16px; border-radius: 999px; border: 1px solid #423a68; background: transparent; color: var(--stone); cursor: pointer; }
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed='true'] { background: var(--stone); color: var(--night); border-color: var(--stone); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 44px 30px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } .item .niche { outline-offset: 4px; } .item h3 { font-size: .98rem; } }
.item { text-decoration: none; color: var(--stone); display: block; }
.item .niche { aspect-ratio: 3 / 4; margin-bottom: 18px; transition: outline-color .2s; }
.item:hover .niche { outline-color: var(--brass); }
.item h3 { font-family: var(--body); font-weight: 500; font-size: 1.05rem; margin: 0 0 2px; }
.item .meta { color: var(--muted); font-size: .9rem; }
.price { font-weight: 700; color: var(--brass-soft); }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.tag-out { color: var(--kumkum); font-size: .9rem; font-weight: 500; }
.empty { padding: 48px 0; color: var(--muted); }

/* Custom-order band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night-2); }
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 44px; }
.band h3 { color: var(--brass-soft); }
.band p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 44px 0 64px; }
.gallery .niche { aspect-ratio: 3 / 4; max-width: 460px; }
.thumbs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 80px; padding: 0; border-radius: 32px 32px 6px 6px; overflow: hidden; border: 1px solid #423a68; background: var(--night-2); cursor: pointer; }
.thumbs button[aria-current='true'] { border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product .crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.product .crumbs a { color: var(--muted); }
.product .bigprice { font-size: 1.6rem; margin: 6px 0 4px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.buy { display: flex; gap: 12px; align-items: center; margin: 22px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid #423a68; border-radius: 999px; }
.qty button { width: 40px; height: 44px; background: none; border: 0; color: var(--stone); font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.desc { white-space: pre-line; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; gap: 32px; } .gallery .niche { margin: 0 auto; max-width: 340px; } .thumbs { justify-content: center; } }

/* Cart & checkout */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 40px 0 64px; align-items: start; }
.cart-lines { list-style: none; margin: 0 0 20px; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-lines .niche { width: 64px; height: 84px; outline-offset: 3px; }
.cart-lines .niche .placeholder { font-size: 1.6rem; }
.cart-lines .name { font-weight: 500; }
.cart-lines .remove { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; font-size: .9rem; text-decoration: underline; }
.summary { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 90px; }
.sumrow { display: flex; justify-content: space-between; padding: 4px 0; }
.sumrow.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 1.2rem; font-weight: 700; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* Order status */
.status-card { max-width: 720px; margin: 40px auto 64px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; list-style: none; padding: 0; counter-reset: s; }
.steps li { position: relative; padding-top: 30px; text-align: center; color: var(--muted); font-size: .92rem; }
.steps li::before { content: ''; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #4a4270; background: var(--night); z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #4a4270; }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--stone); }
.steps li.done::before { background: var(--brass); border-color: var(--brass); }
.steps li.done::after { background: var(--brass); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--night-3); }
.badge.good { background: rgba(111, 174, 127, .18); color: #a6dcb3; }
.badge.warn { background: rgba(201, 153, 62, .18); color: var(--brass-soft); }
.badge.bad { background: rgba(196, 67, 74, .18); color: #f0a0a5; }
.mockbox { border: 1px dashed var(--brass); border-radius: 14px; padding: 18px; margin: 18px 0; }

/* Prose pages (policies) */
.prose { max-width: 760px; padding: 40px 0 64px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 30px; color: var(--muted); font-size: .93rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-foot h4 { color: var(--stone); font-family: var(--body); font-weight: 600; margin: 0 0 8px; font-size: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 4px 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--stone); }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .site-foot .legal { white-space: normal; } }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--stone); color: var(--night); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
