:root {
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e7e7e7;
    --bg: #ffffff;
    --bg-soft: #f7f6f3;
    --accent: #c0392b;
    --gold: #b8923f;
    --sans: 'Jost', system-ui, -apple-system, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    font-weight: 400;
    letter-spacing: .2px;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); }

h1, h2, h3, .serif { font-family: var(--serif); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Announcement bar ---------- */
.announce {
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .55rem 1rem;
    text-align: center;
}
.announce a { color: var(--gold); text-decoration: underline; }

/* ---------- Header ---------- */
.store-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.store-header .brand {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .5px;
}
.store-nav a {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 1.2px;
    font-weight: 500;
    padding: .4rem .1rem;
    position: relative;
}
.store-nav a.active::after,
.store-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--ink);
}
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: #fff; border: 1px solid #ececec; box-shadow: 0 12px 34px rgba(0,0,0,.10);
    padding: .4rem 0; display: none; z-index: 1000;
}
.nav-group:hover .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block; padding: .55rem 1.1rem; text-transform: none; letter-spacing: normal;
    font-size: .9rem; font-weight: 400; white-space: nowrap;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover { background: #f6f3ef; }
.icon-btn {
    background: none; border: 0; font-size: 1.15rem; color: var(--ink);
    position: relative; padding: .25rem .4rem;
}
.cart-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--accent); color: #fff;
    font-size: .62rem; font-weight: 600;
    border-radius: 999px; min-width: 16px; height: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
}
.hero-inner { position: relative; z-index: 2; max-width: 560px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.btn-ink {
    background: var(--ink); color: #fff; border: 0;
    text-transform: uppercase; letter-spacing: 1.5px;
    font-size: .78rem; font-weight: 600;
    padding: .8rem 2rem; border-radius: 0;
}
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-outline-ink {
    background: transparent; color: var(--ink); border: 1px solid var(--ink);
    text-transform: uppercase; letter-spacing: 1.5px;
    font-size: .78rem; font-weight: 600; padding: .8rem 2rem; border-radius: 0;
}
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Section headings ---------- */
.section { padding: 3.5rem 0; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.9rem; margin: .2rem 0 0; }

/* ---------- Collection chips ---------- */
.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.chip {
    border: 1px solid var(--ink); padding: .5rem 1.2rem;
    text-transform: uppercase; font-size: .74rem; letter-spacing: 1px; font-weight: 500;
}
.chip:hover, .chip.active, .chip.chip-active { background: var(--ink); color: #fff; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 991px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card { position: relative; }
.product-card .media {
    position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg-soft);
}
.product-card .media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity .4s ease, transform .6s ease;
}
.product-card .media img.hover {
    position: absolute; inset: 0; opacity: 0;
}
.product-card:hover .media img.hover { opacity: 1; }
.product-card:hover .media img.base { transform: scale(1.03); }
.discount-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600;
    padding: .2rem .5rem; letter-spacing: .5px;
}
.product-card .title { font-size: .92rem; font-weight: 500; margin: .7rem 0 .25rem; }
.price-sale { color: var(--accent); font-weight: 600; }
.price-mrp { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-left: .4rem; }
.choose-btn {
    width: 100%; border: 1px solid var(--ink); background: #fff; color: var(--ink);
    text-transform: uppercase; font-size: .74rem; letter-spacing: 1px; font-weight: 500;
    padding: .55rem; margin-top: .5rem; transition: .2s;
}
.choose-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Feature banner ---------- */
.feature-banner {
    background-size: cover; background-position: center; min-height: 360px;
    display: flex; align-items: center;
}
.feature-card {
    background: rgba(255,255,255,.94); padding: 2.2rem; max-width: 460px;
}

/* ---------- Trust badges ---------- */
.trust { background: var(--bg-soft); }
.trust .item { text-align: center; padding: 1.4rem .5rem; }
.trust .item i { font-size: 1.6rem; color: var(--gold); }
.trust .item h6 { margin: .5rem 0 .15rem; font-weight: 600; font-size: .92rem; }
.trust .item p { color: var(--muted); font-size: .8rem; margin: 0; }

/* ---------- Footer ---------- */
.store-footer { background: #111; color: #cfcfcf; padding: 3rem 0 1.4rem; }
.store-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; margin-bottom: 1rem; }
.store-footer a { color: #cfcfcf; font-size: .88rem; }
.store-footer a:hover { color: #fff; }
.store-footer .copyright { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; color: #8a8a8a; }

/* ---------- Product detail ---------- */
.size-pill {
    border: 1px solid var(--line); background: #fff; padding: .5rem 1rem; min-width: 52px;
    font-weight: 500; cursor: pointer;
}
.size-pill.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-pill:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.thumb { width: 64px; height: 80px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.thumb.active { border-color: var(--ink); }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; background: #15171c; color: #cdd1d8; flex-shrink: 0; padding: 1.2rem 0;
    display: flex; flex-direction: column;
}
.admin-sidebar .logo { font-family: var(--serif); color: #fff; font-size: 1.2rem; padding: 0 1.4rem 1.2rem; }
.admin-sidebar a {
    display: flex; align-items: center; gap: .7rem; color: #cdd1d8;
    padding: .7rem 1.4rem; font-size: .9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #22252c; color: #fff; }
.admin-main { flex: 1; background: #f4f5f7; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .9rem 1.6rem; }
.admin-content { padding: 1.6rem; }
.stat-card { background: #fff; border-radius: 10px; padding: 1.2rem 1.4rem; border: 1px solid var(--line); }
.stat-card .num { font-size: 1.7rem; font-weight: 700; }
.stat-card .lbl { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }

.badge-status { font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; font-weight: 600; }
.s-Pending { background: #fff3cd; color: #8a6d00; }
.s-Confirmed { background: #cfe2ff; color: #084298; }
.s-Shipped { background: #e2d9f3; color: #4a2d80; }
.s-Delivered { background: #d1e7dd; color: #0f5132; }
.s-Cancelled { background: #f8d7da; color: #842029; }

.modal-backdrop-soft {
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1040;
}
.confirm-box {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: #fff; border-radius: 10px; padding: 1.4rem 1.6rem; z-index: 1050;
    width: min(420px, 92vw); box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ---------- Auth ---------- */
.auth-wrap { max-width: 420px; margin: 4rem auto; padding: 0 1rem; }
.auth-card { border: 1px solid var(--line); padding: 2.2rem; }
