/* Layout: Myntra-style white storefront, sticky header with tabs, full-bleed banner, card grids; admin is a sidebar console. */
:root {
  --ink: #282c3f;
  --soft: #535766;
  --muted: #7e818c;
  --line: #eaeaec;
  --paper: #f5f5f6;
  --ivory: #fcf7ee;
  --sand: #f4ead8;
  --white: #fff;
  --pink: #ff3f6c;
  --pink-dark: #e8325d;
  --pink-soft: #fff0f4;
  --green: #03a685;
  --green-soft: #e6f6f3;
  --amber: #c27803;
  --amber-soft: #fff6e5;
  --red: #d6341f;
  --red-soft: #fdecea;
  --brass: #b8892b;
  --sans: Assistant, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2280%22 viewBox=%220 0 160 80%22%3E%3Cg fill=%22none%22 stroke=%22%23b8892b%22 stroke-opacity=%22.09%22 stroke-width=%221%22%3E%3Cpath d=%22M0 40C40 8 40 72 80 40C120 8 120 72 160 40%22/%3E%3Cpath d=%22M40 24c-4-6-4-12 0-16c4 4 4 10 0 16z%22/%3E%3Cpath d=%22M40 24c-7-3-10-8-9-13c5 1 8 6 9 13z%22/%3E%3Cpath d=%22M40 24c7-3 10-8 9-13c-5 1-8 6-9 13z%22/%3E%3Cpath d=%22M120 56c-4 6-4 12 0 16c4-4 4-10 0-16z%22/%3E%3Cpath d=%22M120 56c-7 3-10 8-9 13c5-1 8-6 9-13z%22/%3E%3Cpath d=%22M120 56c7 3 10 8 9 13c-5-1-8-6-9-13z%22/%3E%3Cpath d=%22M18 34c4-6 10-7 14-5c-3 5-9 7-14 5z%22/%3E%3Cpath d=%22M98 46c4 6 10 7 14 5c-3-5-9-7-14-5z%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 120px; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0.35em 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
body.lock { overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }

/* Prototype ribbon */
.proto-ribbon {
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 6px 16px; background: var(--ink); color: #fff; font-size: 12.5px; letter-spacing: 0.03em;
}
.proto-ribbon button { border: 1px solid rgba(255,255,255,0.4); background: none; color: #fff; border-radius: 3px; padding: 1px 10px; cursor: pointer; font-size: 12px; }

/* Header */
#site-header { position: sticky; top: 0; z-index: 30; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.thoranam { position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' viewBox='0 0 32 14'%3E%3Cpath d='M0 1.5h32' stroke='%23b8892b' stroke-width='1.6'/%3E%3Cpath d='M8 2c3 2 3.6 6.5 0 11.5C4.4 8.5 5 4 8 2z' fill='%237aa35a'/%3E%3Cpath d='M8 3.5v8' stroke='%23557a3c' stroke-width='.6'/%3E%3Ccircle cx='24' cy='5' r='3.3' fill='%23f0a43a'/%3E%3Ccircle cx='24' cy='5' r='1.5' fill='%23e07b24'/%3E%3C/svg%3E") 0 0 / 32px 14px repeat-x; pointer-events: none; }
.bell { position: absolute; top: 1px; left: var(--x); width: 14px; transform-origin: 50% 0; animation: swing var(--t) ease-in-out var(--d) infinite alternate; filter: drop-shadow(0 2px 2px rgba(80, 50, 10, 0.25)); }
.bell::before { content: ""; display: block; width: 1.2px; height: var(--len); margin: 0 auto; background: #a87a2a; }
.bell svg { display: block; width: 14px; height: 25px; }
.bell-right { left: auto; right: var(--x); }
.bell-mid { margin-left: -7px; width: 12px; }
.bell-mid svg { width: 12px; height: 21px; }
@keyframes swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.header-bar { display: flex; align-items: center; gap: 28px; height: 124px; padding: 0 36px; }
.brand { display: flex; align-items: center; gap: 16px; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; border: 1.5px dashed var(--muted); display: grid; place-items: center; font-size: 9px; color: var(--muted); text-align: center; line-height: 1.1; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.has-logo { width: 104px; height: 104px; border: 0; border-radius: 50%; }
.inv-head .inv-logo { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.login .login-logo { display: block; width: 180px; margin: 0 auto 18px; border-radius: 8px; }
.brand-name { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.brand-tag { font-size: 15px; color: var(--brass); font-weight: 600; letter-spacing: 0.02em; }
.tabs { display: flex; gap: 24px; align-items: stretch; height: 100%; }
.tabs a { display: flex; align-items: center; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 4px solid transparent; padding-top: 4px; }
.tabs a:hover, .tabs a.is-on { border-bottom-color: var(--pink); }
.tabs a.admin-link { color: var(--soft); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(380px, 30vw); height: 40px; padding: 0 14px; background: var(--paper); border-radius: 4px; color: var(--muted); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { width: 100%; border: 0; background: transparent; outline: none; color: var(--ink); }
.bag-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0 4px; }
.bag-btn svg { width: 22px; height: 22px; }
.bag-btn .count { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; }
.menu-btn { display: none; border: 0; background: none; font-weight: 700; cursor: pointer; }

/* Deep temple maroon header with gold accents. */
#site-header { background: linear-gradient(180deg, #5c1a22, #3f1016); color: #fbf3e2; box-shadow: 0 6px 16px rgba(40, 8, 12, 0.35); }
#site-header .brand-name { color: #fbf3e2; }
#site-header .brand-tag { color: #e9c77b; }
#site-header .brand-mark.has-logo { box-shadow: 0 0 0 2px rgba(233, 199, 123, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35); }
#site-header .tabs a { color: #f3e6cc; }
#site-header .tabs a.admin-link { color: #d9c3a0; }
#site-header .tabs a:hover, #site-header .tabs a.is-on { color: #fff; border-bottom-color: #e9c77b; }
#site-header .search { background: #fff; color: #7a5a3a; box-shadow: inset 0 0 0 1px rgba(233, 199, 123, 0.6); }
#site-header .search:focus-within { background: #fff; box-shadow: 0 0 0 2px #e9c77b; }
#site-header .search input { color: var(--ink); }
#site-header .search input::placeholder { color: #9a8670; }
#site-header .bag-btn, #site-header .menu-btn { color: #fbf3e2; }
#site-header .bag-btn .count { background: #e9c77b; color: #3f1016; }
#site-header :focus-visible { outline: 2px solid #e9c77b; outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 26px; border: 1px solid var(--pink); border-radius: 4px; background: var(--pink); color: #fff; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13.5px; cursor: pointer; }
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-line { background: var(--white); color: var(--ink); border-color: #d4d5d9; }
.btn-line:hover { background: var(--white); border-color: var(--ink); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 12px; }
.btn-wide { width: 100%; }
.text-btn { border: 0; background: none; color: var(--pink); font-weight: 700; cursor: pointer; padding: 0; }

/* Banner carousel */
.hero { position: relative; height: 420px; background: #1f1a17; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
/* Banners drift slowly while shown; the text rises in. */
.hero-slide.is-on img { animation: drift 9s ease-out both; }
.hero-slide.is-on .hero-copy > * { animation: rise 0.7s ease both; }
.hero-slide.is-on .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-slide.is-on .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-slide.is-on .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes drift { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy { position: absolute; left: 64px; bottom: 56px; max-width: 540px; color: #fff; }
.hero-copy .kicker { color: #ffd9a8; }
.hero-copy h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.06; margin-bottom: 10px; }
.hero-copy p { font-size: 17px; margin-bottom: 18px; color: #f1ece6; }
.hero-dots { position: absolute; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; }
.hero-dots button.is-on { background: #fff; width: 22px; border-radius: 6px; }

.kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }

/* Sections */
.section { padding: 44px 36px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head a { color: var(--pink); font-weight: 700; }
.lede { color: var(--soft); max-width: 62ch; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 36px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.step { padding: 18px 18px 16px; border-right: 1px solid var(--line); background: var(--white); }
.step:last-child { border-right: 0; }
.step b { display: block; font-size: 12px; color: var(--pink); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.step span { font-weight: 700; }
.step small { display: block; color: var(--muted); margin-top: 2px; }

.occasions { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border: 1px solid #d4d5d9; border-radius: 99px; background: var(--white); font-weight: 600; cursor: pointer; font-size: 14px; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

.promo { display: grid; grid-template-columns: 1.1fr 1fr; margin: 44px 36px 0; border-radius: 6px; overflow: hidden; background: var(--pink-soft); }
.promo img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
.promo > div { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 8px; align-items: flex-start; }
.promo h2 { font-size: 28px; line-height: 1.1; }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; background: linear-gradient(110deg, #efe6d8 30%, #f8f1e5 45%, #efe6d8 60%) 0 0 / 220% 100%; overflow: hidden; border-radius: 8px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-photo .badge { position: absolute; z-index: 2; left: 8px; bottom: 8px; }

/* Product photos that open the quick view: shimmer until loaded, fade in, then lift, zoom and catch a brass sheen on hover. */
button.card-photo { cursor: zoom-in; animation: shimmer 1.4s linear infinite; }
button.card-photo:has(img.is-in) { animation: none; }
button.card-photo img { opacity: 0; transform: scale(1.03); }
button.card-photo img.is-in { opacity: 1; transform: scale(1); }
button.card-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 35%, rgba(255, 233, 180, 0.42) 50%, transparent 65%); transform: translateX(-130%); transition: transform 0.9s ease; pointer-events: none; }
button.card-photo:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.qv-cue { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
@media (hover: hover) {
  .card:hover button.card-photo { transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(70, 45, 10, 0.55); }
  .card:hover button.card-photo img.is-in { transform: scale(1.07); }
  .card:hover button.card-photo::before { transform: translateX(130%); }
  .card:hover .qv-cue, button.card-photo:focus-visible .qv-cue { opacity: 1; transform: none; }
}
@media (hover: none) {
  .qv-cue { opacity: 1; transform: none; padding: 4px 9px; font-size: 11px; }
}
@keyframes shimmer { to { background-position: -220% 0; } }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-body strong { font-size: 15.5px; }
.card-body .summary { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-size: 15px; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
.price .off { color: #ff905a; font-size: 13px; margin-left: 6px; }
.price small { color: var(--muted); font-weight: 400; }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.card-actions .btn { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 3px; font-size: 12px; font-weight: 700; background: var(--white); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--green); background: var(--green-soft); }
.badge.low { color: var(--amber); background: var(--amber-soft); }
.badge.none { color: var(--muted); background: var(--paper); }
.badge.none::before { display: none; }
.badge.plain::before { display: none; }

.card.is-out .card-photo img { filter: grayscale(0.85); opacity: 0.6; }

.stepper { display: inline-flex; align-items: center; border: 1px solid #d4d5d9; border-radius: 4px; height: 36px; }
.stepper button { width: 32px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Listing layout */
.listing { padding: 22px 36px 48px; }
.crumb { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.listing-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.listing-title h1 { font-size: 22px; }
.listing-title span { color: var(--muted); }
.listing-body { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 148px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-right: 18px; }
.filter-label { margin: 16px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.filter-label:first-child { margin-top: 0; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; padding: 3px 0; }
.filters input { accent-color: var(--pink); }
.sortbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sortbar select { height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; background: var(--white); }
.empty { color: var(--muted); padding: 30px 0; }

/* Hire window bar */
.window-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(90deg, var(--pink-soft), var(--white) 70%); margin-bottom: 22px; }
.window-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.window-bar input, .window-bar select { height: 40px; border: 1px solid #d4d5d9; border-radius: 4px; padding: 0 10px; background: var(--white); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.window-bar .window-summary { margin-left: auto; font-size: 14px; color: var(--soft); max-width: 340px; }
.window-bar .window-summary b { color: var(--ink); }

/* Gift sub-tabs */
.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.subtabs a { padding: 10px 16px; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--soft); }
.subtabs a.is-on { color: var(--ink); border-bottom-color: var(--pink); }

.combo-items { color: var(--soft); font-size: 13.5px; }

/* Build your own combo */
.builder { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick .card-photo::after { content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,0.25); }
.pick input:checked + .card .card-photo { outline: 3px solid var(--pink); outline-offset: -3px; }
.pick input:checked + .card .card-photo::after { background: var(--pink); content: "✓"; color: #fff; font-size: 14px; display: grid; place-items: center; font-weight: 800; }
.pick input:focus-visible + .card .card-photo { outline: 3px solid var(--ink); }
.combo-panel { position: sticky; top: 148px; border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.combo-panel h2 { font-size: 17px; }
.rule { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.rule.done { color: var(--green); }
.rule::before { content: "○"; font-weight: 800; }
.rule.done::before { content: "✓"; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sum-line.total { font-weight: 800; font-size: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.sum-line.save { color: var(--green); font-weight: 700; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Drawer */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(40,44,63,0.45); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%); background: var(--white); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; }
.drawer-head button { border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.group-title { margin: 16px 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.window-note { font-size: 13.5px; background: var(--paper); border-radius: 4px; padding: 8px 10px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; background: #e8dcc6; }
.line h3 { font-size: 15px; }
.line p { color: var(--soft); font-size: 13.5px; margin: 2px 0 6px; }
.line .line-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.line .warn { color: var(--red); font-weight: 700; font-size: 13px; }
.line .stepper { height: 30px; }

/* Checkout */
.checkout-wrap { padding: 26px 36px 56px; }
.progress { display: flex; gap: 0; margin-bottom: 24px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.progress span { padding-right: 14px; }
.progress span::after { content: "———"; margin-left: 14px; letter-spacing: -2px; color: var(--line); }
.progress span:last-child::after { content: none; }
.progress .is-on { color: var(--green); }
.progress .is-now { color: var(--ink); }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-card h2 { grid-column: 1 / -1; font-size: 17px; margin-top: 8px; }
.form-card .span { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--soft); }
.field input, .field select, .field textarea { border: 1px solid #d4d5d9; border-radius: 4px; padding: 10px 12px; font-weight: 400; font-size: 15px; color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field small { font-weight: 400; color: var(--muted); }
.terms { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: var(--paper); }
.terms ol { margin: 8px 0 10px; padding-left: 20px; max-height: 220px; overflow-y: auto; font-size: 13.5px; color: var(--soft); }
.terms li { margin-bottom: 6px; }
.terms li b { color: var(--ink); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.agree input { margin-top: 4px; accent-color: var(--pink); width: 17px; height: 17px; }
.summary-box { position: sticky; top: 148px; border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.summary-box h2 { font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.fine { font-size: 12.5px; color: var(--muted); }
.alert { padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.alert.error { background: var(--red-soft); color: var(--red); }
.alert.info { background: var(--amber-soft); color: #7a4b00; }
.alert.good { background: var(--green-soft); color: #006b55; }

/* Payment */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-option { border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pay-option h2 { font-size: 18px; }
.qr-box { width: 220px; height: 220px; border: 2px dashed #c9cad0; border-radius: 8px; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; background: var(--paper); align-self: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.amount { font-size: 28px; font-weight: 800; }

/* Invoice */
.invoice { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; padding: 32px; background: var(--white); }
.inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 16px; }
.inv-head h1 { font-size: 26px; letter-spacing: 0.04em; }
.inv-meta { text-align: right; font-size: 14px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; font-size: 14px; }
.inv-parties h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--ink); padding: 8px 8px; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-totals { margin-left: auto; width: min(360px, 100%); margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.inv-status { margin-top: 18px; }
.inv-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Footer */
#site-footer { margin-top: 56px; background: var(--sand); border-top: 1px solid #ead9b8; padding: 36px 36px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
#site-footer a { display: block; color: var(--soft); padding: 2px 0; }
.footer-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(40,44,63,0.5); display: grid; place-items: center; padding: 16px; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: 8px; padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 19px; }
.modal-head button { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
#toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 4px; font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* Login */
.login { max-width: 400px; margin: 56px auto; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 22px; }

/* Admin */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 110px); }
.admin-side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-side .who { padding: 0 10px 14px; font-size: 13px; color: var(--muted); }
.admin-side .who b { display: block; color: var(--ink); font-size: 15px; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 4px; font-weight: 600; color: var(--soft); }
.admin-side a.is-on { background: var(--white); color: var(--ink); box-shadow: inset 3px 0 0 var(--pink); }
.admin-side a .n { font-size: 12px; background: var(--pink); color: #fff; border-radius: 99px; padding: 0 7px; }
.admin-side a .pro { font-size: 10.5px; background: var(--brass); color: #fff; border-radius: 3px; padding: 1px 6px; letter-spacing: 0.06em; }
.admin-side .logout { margin-top: auto; }
.admin-main { padding: 26px 32px 48px; min-width: 0; }
.admin-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-title h1 { font-size: 22px; }
.admin-title p { color: var(--muted); max-width: 64ch; }
.status { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.held { background: var(--amber-soft); color: var(--amber); }
.status.confirmed { background: #e8f0fe; color: #1a56c4; }
.status.delivered { background: var(--pink-soft); color: var(--pink-dark); }
.status.returned { background: var(--green-soft); color: var(--green); }
.status.expired, .status.cancelled { background: var(--paper); color: var(--muted); }
.status.overdue { background: var(--red-soft); color: var(--red); }
.booking { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
.booking header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.booking header strong { font-size: 16px; }
.booking .meta { color: var(--soft); font-size: 13.5px; }
.booking ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.booking .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 170px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.thumb { width: 46px; height: 56px; object-fit: cover; border-radius: 3px; background: #e8dcc6; }
.stock-cell { display: flex; align-items: center; gap: 8px; }
.stock-cell .stepper { height: 30px; }
.stock-cell small { color: var(--muted); display: block; font-size: 12px; }
.row-acts { display: flex; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 760px; }
.upload-box { display: flex; gap: 14px; align-items: center; }
.upload-box .preview { width: 80px; height: 80px; border: 1.5px dashed #c9cad0; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; overflow: hidden; background: var(--paper); }
.upload-box .preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin-bottom: 10px; }
.banner-row img { width: 180px; height: 90px; object-fit: cover; border-radius: 4px; }

/* Billing dashboard */
.dash-hero { border-radius: 8px; padding: 22px 24px; background: linear-gradient(120deg, #2b2118, #5a4320); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hero h2 { font-size: 22px; }
.dash-hero p { color: #e9dcc6; max-width: 56ch; }
.dash-hero .price-tag { font-size: 30px; font-weight: 800; color: #ffd9a8; }
.dash-hero .price-tag small { font-size: 14px; color: #e9dcc6; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.tile span { font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tile b { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile small { color: var(--green); font-weight: 700; }
.tile.free { border-color: var(--green); background: var(--green-soft); }
.masked { filter: blur(5px); user-select: none; }
.reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.report { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow: hidden; min-height: 190px; }
.report h3 { font-size: 15.5px; margin-bottom: 8px; }
.report .fake { filter: blur(4px); user-select: none; font-size: 13px; }
.report .lock { position: absolute; inset: 44px 0 0; display: grid; place-items: center; }
.report .lock span { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars i { flex: 1; background: var(--pink); border-radius: 3px 3px 0 0; opacity: 0.8; }

/* Responsive */
/* ---------- quick view ---------- */
.qv-back { position: fixed; inset: 0; z-index: 50; background: rgba(28, 22, 16, 0.62); backdrop-filter: blur(3px); animation: fade 0.25s ease; }
.qv { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1020px, calc(100% - 48px)); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.qv-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); font-size: 24px; line-height: 1; cursor: pointer; }
.qv-media { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: linear-gradient(160deg, #f7efe2, #ead8b8); }
.qv-zoom { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #efe6d8; cursor: zoom-in; touch-action: manipulation; }
.qv-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; animation: fade 0.35s ease; }
.qv-zoom.is-zoomed { cursor: crosshair; }
.qv-zoom.is-zoomed img { transform: scale(2.3); }
.qv-nav { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; transition: opacity 0.2s ease; }
.qv-nav.prev { left: 10px; }
.qv-nav.next { right: 10px; }
.qv-zoom.is-zoomed .qv-nav { opacity: 0; pointer-events: none; }
.qv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.qv-thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--white); cursor: pointer; }
.qv-thumbs button.is-on { border-color: var(--pink); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-hint { margin: 0; text-align: center; font-size: 12.5px; color: var(--soft); }
.qv-info { display: flex; flex-direction: column; gap: 12px; padding: 38px 32px 30px; min-width: 0; }
.qv-info h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.qv-info .kicker { margin: 0; color: var(--brass); }
.qv-summary { margin: 0; color: var(--soft); font-size: 15.5px; }
.qv-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qv-prices div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.qv-prices span { display: block; font-size: 12px; color: var(--muted); }
.qv-prices b { font-size: 18px; }
.qv-prices .is-yours { border-color: var(--brass); background: #fbf4e6; }
.qv-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13.5px; color: var(--soft); }
.qv-price { margin: 0; font-size: 26px; font-weight: 800; }
.qv-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.qv-price s { font-size: 15px; font-weight: 600; color: var(--muted); }
.qv-price .off { font-size: 14px; color: var(--green); }
.qv-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qv-actions .qty-in { width: 84px; height: 44px; padding: 0 10px; border: 1px solid #d4d5d9; border-radius: 4px; font: inherit; }
.qv-actions .btn:not(.btn-wide) { flex: 1; }
.qv-label { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.qv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qv-tags span { padding: 3px 10px; border-radius: 99px; background: var(--paper); font-size: 12.5px; font-weight: 600; }
.qv-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qv-rel { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.qv-rel img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: transform 0.3s ease; }
.qv-rel:hover img { transform: scale(1.05); }
.qv-rel span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qv-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qv-items button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; text-align: left; cursor: pointer; }
.qv-items button:hover, .qv-items button.is-on { border-color: var(--brass); background: #fbf4e6; }
.qv-items img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.qv-items span { flex: 1; font-weight: 600; }
.qv-items small { display: block; font-weight: 400; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } }
@keyframes sheet { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 760px) {
  .qv { top: auto; left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-height: 92vh; grid-template-columns: 1fr; border-radius: 16px 16px 0 0; animation-name: sheet; }
  .qv-media { padding: 12px; }
  .qv-zoom { aspect-ratio: 1; }
  .qv-info { padding: 18px 16px 24px; }
  .qv-info h2 { font-size: 22px; }
  .qv-related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .header-bar { gap: 18px; padding: 0 20px; }
  .tabs { gap: 16px; }
  .search { width: 220px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .reports { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header-bar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px 14px; }
  .menu-btn { display: block; margin-left: auto; }
  .brand { flex: 1 1 0; min-width: 0; gap: 10px; }
  .bell-inner { display: none; }
  .brand-mark.has-logo { width: 68px; height: 68px; flex: none; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 12.5px; }
  .tabs { order: 5; width: 100%; height: auto; display: none; flex-direction: column; gap: 0; }
  .tabs.is-open { display: flex; }
  .tabs a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  #site-header .tabs a { border-bottom-color: rgba(255, 255, 255, 0.12); }
  .search { order: 4; width: 100%; margin-left: 0; }
  .section, .listing, .checkout-wrap { padding-left: 16px; padding-right: 16px; }
  .steps, .promo { margin-left: 16px; margin-right: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .hero { height: 360px; }
  .hero-copy { left: 20px; right: 20px; bottom: 44px; }
  .promo { grid-template-columns: 1fr; }
  .listing-body, .builder, .checkout { grid-template-columns: 1fr; }
  .filters { position: static; border-right: 0; padding-right: 0; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .filter-label { width: 100%; margin-top: 8px; }
  .combo-panel, .summary-box { position: static; }
  .form-card, .pay-grid, .inv-parties, .settings-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  #site-footer { padding-left: 16px; padding-right: 16px; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .admin-side .who { width: 100%; }
  .admin-side .logout { margin-top: 0; }
  .admin-main { padding: 20px 16px 40px; }
  .booking { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 1fr; }
  .banner-row img { width: 100%; height: 120px; }
  .reports, .tiles { grid-template-columns: 1fr; }
  .invoice { padding: 18px; }
  .window-bar .window-summary { margin-left: 0; }
}
@media print {
  .proto-ribbon, #site-header, #site-footer, .inv-actions, .progress { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
