/* ArZan by Nayema — storefront */
:root {
    --ivory: #FAF6EF;
    --linen: #F1E9DC;
    --ink: #2A211C;
    --ink-soft: #5E534B;
    --bottle: #1E3B30;
    --bottle-deep: #142A22;
    --gold: #A9823F;
    --gold-text: #82622A;
    --rose: #A64D63;
    --line: #DDD1BF;
    --white: #FFFDF9;
    --display: "Bodoni Moda", "Didot", Georgia, serif;
    --body: "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
    --wrap: 1180px;
    --arch: 999px 999px 6px 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; padding-top: 56px; padding-bottom: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.hint { color: var(--ink-soft); font-size: .92rem; }
.opt { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }

/* announcement + header */
.announce { background: var(--bottle); color: #E9DFC9; text-align: center; font-size: .9rem; padding: 7px 16px; }
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a.active { border-bottom-color: var(--gold); }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: var(--bottle); color: var(--white); font-size: .78rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 6px 14px; font: inherit; border-radius: 4px; cursor: pointer; }

.flash { margin: 18px 0 0; padding: 12px 16px; background: var(--white); border-left: 3px solid var(--gold); }
.flash a { font-weight: 600; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bottle); color: var(--white); border: 1px solid var(--bottle);
    padding: 12px 26px; font: 500 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
    border-radius: 2px; transition: background .15s;
}
.btn:hover { background: var(--bottle-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: 8px 16px; font-size: .92rem; }
.btn-wide { width: 100%; padding: 15px; font-size: 1.05rem; }
.text-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-line { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; font-weight: 500; }

/* arch frame — the signature: echoes the arched backdrops in ArZan's photography */
.arch { position: relative; border-radius: var(--arch); overflow: hidden; background: var(--linen); aspect-ratio: 3 / 4; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 400; max-width: 12ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-rail { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 34px; }
.rail-bar { position: absolute; left: -12px; right: -12px; top: 12px; height: 4px; background: linear-gradient(var(--gold), #C9A766 50%, var(--gold)); border-radius: 2px; }
.rail-item { position: relative; display: block; transform-origin: top center; }
.rail-item .hook { position: absolute; top: -24px; left: 50%; width: 16px; height: 24px; margin-left: -8px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 10px 10px 0 0; }
.rail-item .arch { display: block; box-shadow: 0 18px 30px -18px rgba(42, 33, 28, .45); }
.rail-2 { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
    .rail-item { animation: hang 1.4s cubic-bezier(.2, .7, .3, 1) both; }
    .rail-2 { animation-delay: .12s; }
    .rail-3 { animation-delay: .24s; }
    @keyframes hang { 0% { transform: translateY(-14px) rotate(-2.5deg); opacity: 0; } 55% { transform: rotate(1deg); opacity: 1; } 100% { transform: none; } }
}

/* markets */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.market-panel { padding: 32px 32px 28px 0; text-decoration: none; }
.market-panel + .market-panel { padding-left: 32px; border-left: 1px solid var(--line); }
.market-panel h2 { font-size: 1.5rem; }
.market-panel p { color: var(--ink-soft); max-width: 46ch; }
.market-panel:hover h2 { color: var(--gold-text); }

/* sections + grid */
.section { padding: 64px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-link { text-decoration: none; display: block; }
.card-title { font-family: var(--body); font-weight: 500; font-size: 1.02rem; line-height: 1.35; margin: 14px 0 4px; }
.card-link:hover .card-title { color: var(--gold-text); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; margin: 0; }
.price { color: var(--gold-text); font-weight: 600; }
.price s, .product-price s { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }
.market { color: var(--ink-soft); }
.tag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--white); color: var(--ink); padding: 3px 12px; font-size: .8rem; font-weight: 600; border-radius: 12px; }
.tag-sale { background: var(--rose); color: var(--white); }
.tag-muted { background: var(--ink); color: var(--white); }

/* collections band */
.collections { background: var(--bottle); color: #EFE6D3; padding: 64px 0; }
.collections h2 { color: var(--white); }
.collection-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(239, 230, 211, .25); }
.collection-list a { display: grid; grid-template-columns: 1.1fr 2fr 96px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(239, 230, 211, .25); text-decoration: none; }
.c-name { font-family: var(--display); font-size: 1.6rem; color: var(--white); }
.c-desc { color: #CFC4AE; }
.c-count { color: #D8B878; white-space: nowrap; text-align: right; }
.collection-list a:hover .c-name { color: #E2C68E; }

/* steps — a real sequence, so numbered */
.how h2 { margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--gold); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2rem; color: var(--gold-text); display: block; line-height: 1; margin-bottom: 10px; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); }

/* shop listing */
.page-head { padding-top: 48px; padding-bottom: 12px; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 72px; padding-top: 16px; }
.filters h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; margin: 28px 0 8px; color: var(--ink-soft); }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: flex; justify-content: space-between; padding: 6px 0; text-decoration: none; }
.filters li a.on { color: var(--gold-text); font-weight: 600; }
.filters small { color: var(--ink-soft); }
.search { display: grid; gap: 8px; }
.empty { padding: 48px 0; text-align: center; }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; }
.pager .disabled { color: var(--line); }
.pager-pos { color: var(--ink-soft); }

/* product page */
.crumbs { padding-top: 24px; font-size: .92rem; color: var(--ink-soft); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 20px; padding-bottom: 40px; }
.gallery { position: sticky; top: 110px; align-self: start; }
.arch-large { max-width: 520px; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 64px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; border-radius: 32px 32px 3px 3px; overflow: hidden; aspect-ratio: 3/4; }
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.product-price { font-size: 1.45rem; color: var(--gold-text); font-weight: 600; margin-bottom: 6px; }
.facts { margin: 22px 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.buy { margin: 24px 0 12px; }
.sizes { border: 0; padding: 0; margin: 0 0 18px; }
.sizes legend { font-weight: 600; margin-bottom: 8px; }
.sizes label { display: inline-block; margin: 0 8px 8px 0; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.sizes input:checked + span { border-color: var(--bottle); background: var(--bottle); color: var(--white); }
.sizes input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 18px; }
.qty input { width: 80px; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.description { margin: 28px 0; max-width: 60ch; }
.soldout { padding: 14px 16px; background: var(--linen); }

/* forms */
.form { display: grid; gap: 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 16px; }
.form legend { font-family: var(--display); font-size: 1.45rem; margin-bottom: 12px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
input, textarea, select {
    font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid var(--line); border-radius: 2px; padding: 11px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(169, 130, 63, .18); }
input[type=radio], input[type=checkbox] { width: auto; accent-color: var(--bottle); }
.choice { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-errors { background: #FBEDEF; border-left: 3px solid var(--rose); padding: 12px 16px; }
.form-errors p { margin: 0 0 4px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 18px; }
.field-error { color: var(--rose); margin: 0; }

/* bag / checkout / order */
.bag { width: 100%; border-collapse: collapse; }
.bag th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: .9rem; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.bag td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bag td input { width: 74px; }
.bag-item { display: flex; gap: 14px; align-items: center; }
.bag-item img { width: 56px; height: 74px; object-fit: cover; object-position: top; border-radius: 28px 28px 3px 3px; }
.bag-item small, .summary small { display: block; color: var(--ink-soft); }
.bag-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 24px 0 72px; flex-wrap: wrap; }
.bag-total { text-align: right; }
.bag-total p { margin-bottom: 8px; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding-bottom: 72px; padding-top: 16px; align-items: start; }
.summary { background: var(--white); border: 1px solid var(--line); padding: 24px; position: sticky; top: 110px; }
.summary ul { list-style: none; margin: 0 0 16px; padding: 0; }
.summary li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary li img { width: 56px; height: 74px; object-fit: cover; object-position: top; border-radius: 28px 28px 3px 3px; }
.sum { display: flex; justify-content: space-between; font-size: 1.05rem; }
.thanks { font-family: var(--display); font-size: 1.6rem; color: var(--bottle); margin-bottom: 6px; }
.status { display: inline-block; padding: 4px 14px; border-radius: 14px; background: var(--linen); font-weight: 600; }
.status-confirmed, .status-processing { background: #E5EEE8; color: var(--bottle); }
.status-ready, .status-completed { background: var(--bottle); color: var(--white); }
.status-cancelled { background: #F3E1E5; color: var(--rose); }
.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding-bottom: 72px; padding-top: 16px; align-items: start; }
.thread { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.msg { background: var(--linen); padding: 12px 14px; margin: 0 40px 12px 0; border-radius: 2px 14px 14px 14px; }
.msg-me { background: #E5EEE8; margin: 0 0 12px 40px; border-radius: 14px 2px 14px 14px; }
.msg p { margin: 0; }
.who { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 2px; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 72px; padding-top: 16px; align-items: start; }
.contact-cards { display: grid; gap: 20px; }
.contact-card { border-top: 2px solid var(--gold); padding-top: 18px; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--bottle-deep); color: #D9CFBB; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--white); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #E2C68E; }
.footer-logo { width: 140px; margin-bottom: 10px; }
.footer-tag { font-family: var(--display); font-style: italic; }
.footer-base { border-top: 1px solid rgba(217, 207, 187, .2); margin-top: 40px; padding-top: 18px; font-size: .88rem; color: #A99F8B; }

/* responsive */
@media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .hero-grid, .product, .checkout, .order-layout, .contact-layout, .shop-layout { grid-template-columns: 1fr; }
    .hero { padding-top: 32px; }
    .hero-rail { order: -1; max-width: 520px; }
    .gallery, .summary { position: static; }
    .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .markets { grid-template-columns: 1fr; }
    .market-panel, .market-panel + .market-panel { padding: 24px 0; border-left: 0; }
    .market-panel + .market-panel { border-top: 1px solid var(--line); }
    .collection-list a { grid-template-columns: 1fr auto; }
    .c-desc { grid-column: 1 / -1; grid-row: 2; }
    .filters { order: 0; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .section { padding: 48px 16px; }
    .brand img { width: 120px; }
    .header-row { min-height: 70px; }
    .steps { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .bag thead { display: none; }
    .bag tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .bag td { border: 0; padding: 4px 0; }
    .bag td.bag-item { grid-column: 1 / -1; }
    .bag td[data-label]::before { content: attr(data-label) " "; color: var(--ink-soft); font-size: .85rem; display: block; }
    .bag-total { text-align: left; }
    .facts div { grid-template-columns: 110px 1fr; }
}
