/* ==========================================================
   CELEBRITY SMILES — style.css
   Navy + gold brand. Mobile-first (base ~375px) -> 768px -> 1024px+
   ========================================================== */

:root {
  --navy: #0B1530;
  --navy-2: #13224A;
  --navy-3: #1D3166;
  --gold: #C9A227;
  --gold-2: #E8C15A;
  --gold-soft: #FBF5E3;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --text: #1B2033;
  --muted: #6B7287;
  --line: #E6E8EF;
  --line-2: #F0F1F5;
  --success: #12805C;
  --success-soft: #E7F6EF;
  --danger: #C4321F;
  --danger-soft: #FDECEA;
  --warn: #A86A0C;
  --warn-soft: #FFF4DE;
  --info: #2457C5;
  --info-soft: #EAF0FD;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, .06);
  --shadow: 0 6px 24px rgba(11, 21, 48, .08);
  --shadow-lg: 0 18px 48px rgba(11, 21, 48, .14);
  --header-h: 64px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 880px; }
@media (min-width: 1024px) { .container { padding: 0 28px; } h1 { font-size: 30px; } }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  background: var(--card); color: var(--text);
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 15px; height: 15px; }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 6px 18px rgba(201, 162, 39, .32); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-outline { border-color: var(--line); background: var(--card); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; }
.link { color: var(--info); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Forms */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 13.5px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 39, .15); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--line-2); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); color: var(--muted); font-size: 14px; white-space: nowrap; }
.input-group .input { border-radius: 0 var(--radius) var(--radius) 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.pin-input { letter-spacing: 14px; font-size: 22px; text-align: center; font-weight: 800; max-width: 220px; }
.select-search { margin-bottom: 8px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap.pin { max-width: 220px; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.pw-toggle:hover { background: var(--line-2); color: var(--navy); }
.pw-toggle svg { width: 19px; height: 19px; }

/* Choice cards (account type picker etc.) */
.choice-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-body {
  display: flex; gap: 14px; align-items: flex-start; height: 100%;
  padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice .choice-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); font-size: 22px; }
.choice strong { display: block; font-size: 15px; }
.choice span.desc { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice input:checked + .choice-body { border-color: var(--navy); background: #FAFBFF; box-shadow: 0 0 0 3px rgba(11, 21, 48, .08); }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 4px rgba(201, 162, 39, .3); }

/* ---------------------------------------------------------------- Alerts & pills */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; border: 1px solid transparent; margin-bottom: 16px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #BFE6D3; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #F5C6BF; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #C9D8F8; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #F3DDAE; }
.alert strong { color: inherit; }
.flash-stack { padding-top: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-gold { background: var(--gold-soft); color: #8A6A0A; }
.pill-navy { background: var(--navy); color: var(--gold-2); }

/* ---------------------------------------------------------------- Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
@media (min-width: 768px) { .card { padding: 24px; } }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty h3 { color: var(--text); }

/* ---------------------------------------------------------------- Header */
.topbar { background: var(--navy); color: #C9CFE0; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a { color: var(--gold-2); font-weight: 600; }
.topbar .topbar-links { display: none; gap: 18px; }
@media (min-width: 768px) { .topbar .topbar-links { display: flex; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: none; line-height: 1.1; }
.brand-text strong { display: block; font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.brand-text small { display: block; font-size: 10.5px; font-weight: 700; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 560px) { .brand-text { display: block; } }

.header-search { flex: 1; min-width: 0; display: none; }
.search-form { display: flex; align-items: center; width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 4px 4px 4px 16px; transition: border-color .15s, box-shadow .15s; }
.search-form:focus-within { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201, 162, 39, .14); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 8px 0; }
.search-form select { border: 0; background: transparent; outline: none; font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 8px; border-left: 1px solid var(--line); }
.search-form button { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.search-form button svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .header-search { display: block; } }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 10px; border-radius: var(--radius-pill); border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--navy); }
.icon-btn:hover { background: var(--line-2); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.icon-btn .badge { position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.icon-btn .label { display: none; }
@media (min-width: 1024px) { .icon-btn .label { display: inline; } }

.mobile-search { padding: 0 0 12px; }
@media (min-width: 900px) { .mobile-search { display: none; } }

/* Account dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 260px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu .dm-head { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown-menu .dm-head strong, .dropdown-menu .dm-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu svg { width: 18px; height: 18px; flex: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none; font-size: 14px; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); }
.dropdown-menu .dm-sep { height: 1px; background: var(--line-2); margin: 6px 0; }

/* Category strip */
.cat-strip { border-top: 1px solid var(--line-2); }
.cat-strip .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-strip .container::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; margin: 18px 0 8px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 100% 0%, var(--navy-3) 0%, var(--navy) 55%);
  color: #fff; padding: 28px 22px;
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 193, 90, .35), transparent 70%); }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 22px; align-items: center; }
.hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.03em; }
.hero h1 span { color: var(--gold-2); }
.hero p { color: #C9CFE0; font-size: 15.5px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn-outline:hover { border-color: var(--gold-2); }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 22px; color: var(--gold-2); }
.hero-stats div span { font-size: 12.5px; color: #AEB6CC; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero { padding: 48px 48px; }
  .hero h1 { font-size: 42px; }
  .hero-inner { grid-template-columns: 1.3fr .7fr; }
  .hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
.hero-tile { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(4px); }
.hero-tile .ht-icon { font-size: 26px; }
.hero-tile strong { display: block; margin-top: 6px; font-size: 14px; }
.hero-tile span { font-size: 12px; color: #AEB6CC; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 6px; }
.trust-item { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 13px; }
.trust-item .ti-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); font-size: 18px; }
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- Sections */
.section { padding-top: 22px; padding-bottom: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.section-head a { font-weight: 700; color: var(--navy); font-size: 14px; white-space: nowrap; }
.section-head a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1240px) { .product-grid.wide { grid-template-columns: repeat(5, 1fr); } }

.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #DADDE7; }
.p-card .p-img { position: relative; aspect-ratio: 1 / 1; background: var(--line-2); overflow: hidden; }
.p-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-card .p-badge { position: absolute; top: 8px; left: 8px; z-index: 1; }
.p-card .p-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.p-card .p-name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-card .p-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-card .p-price strong { font-size: 16.5px; font-weight: 800; color: var(--navy); }
.p-card .p-price s { font-size: 12.5px; color: var(--muted); }
.p-card .p-store { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); min-width: 0; }
.p-card .p-store a { position: relative; z-index: 2; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card .p-store a:hover { color: var(--gold); text-decoration: underline; }
.p-card .p-loc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Whole-card link that still lets the store link inside be clicked */
.p-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.store-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-size: 10.5px; font-weight: 800; overflow: hidden; }
.store-dot img { width: 100%; height: 100%; object-fit: cover; }
.verified { color: var(--gold); flex: none; }

/* Placeholder when a listing has no photo */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #EEF0F6, #E2E6F0); color: #9AA2B8; font-size: 42px; }

/* ---------------------------------------------------------------- Store & service cards */
.store-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.store-grid::-webkit-scrollbar { display: none; }
.store-grid > * { scroll-snap-align: start; }
.store-grid.stack { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; }
@media (min-width: 640px) { .store-grid, .store-grid.stack { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; } }
@media (min-width: 1024px) { .store-grid { grid-template-columns: repeat(4, 1fr); } }
.s-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s, border-color .2s; }
.s-card:hover { box-shadow: var(--shadow); border-color: #DADDE7; }
.s-logo { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 22px; }
.s-logo img { width: 100%; height: 100%; object-fit: cover; }
.s-card .grow strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-card .grow > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; position: relative; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card .svc-img { aspect-ratio: 16 / 10; background: var(--line-2); overflow: hidden; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .svc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-card .svc-name { font-weight: 700; font-size: 15px; }
.svc-card .svc-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.svc-card .svc-price { font-weight: 800; color: var(--navy); margin-top: auto; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- Listing pages (search, category) */
.listing-layout { display: grid; gap: 18px; padding: 18px 0 30px; }
@media (min-width: 1024px) { .listing-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 60px); } }
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.filters .filter-block + .filter-block { margin-top: 18px; }
.filter-links a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.filter-links a:hover { background: var(--line-2); }
.filter-links a.active { background: var(--navy); color: #fff; font-weight: 700; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar h1 { font-size: 20px; margin: 0; }
.results-bar .select { width: auto; min-height: 40px; padding: 8px 12px; }

.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 24px 0 8px; }
.pager-link { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-size: 14px; }
.pager-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-gap { align-self: center; color: var(--muted); }

/* ---------------------------------------------------------------- Store page */
.store-hero { position: relative; background: var(--navy); color: #fff; }
.store-banner { height: 150px; background: radial-gradient(120% 140% at 100% 0%, var(--navy-3), var(--navy) 60%) center / cover no-repeat; }
@media (min-width: 768px) { .store-banner { height: 220px; } }
.store-info { position: relative; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: -46px; padding-bottom: 20px; }
.store-info .s-logo { width: 96px; height: 96px; border-radius: 22px; border: 4px solid var(--navy); font-size: 38px; box-shadow: var(--shadow-lg); background: var(--navy-3); }
.store-info h1 { margin: 0; font-size: 24px; }
.store-info .store-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #C9CFE0; margin-top: 4px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.store-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- Product page */
.pdp { display: grid; gap: 22px; padding: 20px 0 30px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 36px; } }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 70px; height: 70px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: #fff; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-title { font-size: 24px; font-weight: 800; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.pdp-price strong { font-size: 30px; color: var(--navy); }
.pdp-price s { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 20px; font-weight: 700; }
.qty input { width: 52px; text-align: center; border: 0; outline: none; font-weight: 700; }
.seller-box { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 10px; font-size: 14px; }
.info-list li .ii { flex: none; width: 22px; text-align: center; }
.info-list li > span, .info-list li > a { min-width: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-line; line-height: 1.7; }

/* ---------------------------------------------------------------- Auth pages */
.auth-page { min-height: 100vh; display: grid; background: var(--bg); }
@media (min-width: 960px) { .auth-page { grid-template-columns: 1fr 1fr; } }
.auth-aside { display: none; position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, var(--navy-3), var(--navy) 60%); color: #fff; padding: 48px; }
@media (min-width: 960px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 193, 90, .28), transparent 70%); }
.auth-aside h2 { font-size: 34px; letter-spacing: -.03em; max-width: 440px; }
.auth-aside h2 span { color: var(--gold-2); }
.auth-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; color: #C9CFE0; }
.auth-aside li b { color: #fff; display: block; }
.auth-aside li .ai { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 28px 16px 40px; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card .brand { margin-bottom: 24px; }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- Dashboard layout */
.dash { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .dash { grid-template-columns: 264px 1fr; } }
.dash-side { display: none; background: var(--navy); color: #C9CFE0; padding: 20px 14px; }
@media (min-width: 1024px) { .dash-side { display: block; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } }
.dash-side.open { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; overflow-y: auto; }
.dash-ident { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; }
.dash-ident .s-logo { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; background: var(--navy-3); }
.dash-ident strong { display: block; color: #fff; font-size: 14.5px; }
.dash-ident strong, .dash-ident span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-ident .grow { overflow: hidden; }
.dash-ident span { font-size: 12px; }
.dash-nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #7D86A3; padding: 14px 10px 6px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: #C9CFE0; }
.dash-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dash-nav a.active { background: linear-gradient(135deg, rgba(232, 193, 90, .2), rgba(232, 193, 90, .06)); color: var(--gold-2); }
.dash-nav a .dn-icon { width: 20px; text-align: center; font-size: 15px; }
.dash-nav a .pill { margin-left: auto; }
.dash-main { padding: 20px 16px 40px; min-width: 0; }
@media (min-width: 1024px) { .dash-main { padding: 28px 32px 48px; } }
.dash-toggle { display: inline-flex; margin-bottom: 14px; }
@media (min-width: 1024px) { .dash-toggle { display: none; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .stat-value { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.stat .stat-sub { font-size: 12px; color: var(--muted); }
.stat.highlight { background: var(--navy); border-color: var(--navy); }
.stat.highlight .stat-label, .stat.highlight .stat-sub { color: #AEB6CC; }
.stat.highlight .stat-value { color: var(--gold-2); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 11px 14px; background: #FAFBFD; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--line-2); }
.table .thumb.ph { font-size: 18px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.callout { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #F0E2B0; margin-bottom: 20px; }
.callout.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.callout.navy .muted { color: #AEB6CC; }
.callout.danger { background: var(--danger-soft); border-color: #F5C6BF; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-weight: 600; }

.two-col { display: grid; gap: 16px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- Pricing */
.plans { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.plan.featured { border-color: var(--gold); box-shadow: 0 10px 30px rgba(201, 162, 39, .18); }
.plan .plan-badge { position: absolute; top: -12px; left: 22px; }
.plan h3 { margin: 0 0 6px; }
.plan .plan-price { font-size: 30px; font-weight: 800; color: var(--navy); }
.plan .plan-per { color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; font-size: 14px; }
.plan ul li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #AEB6CC; margin-top: 40px; padding: 40px 0 90px; font-size: 14px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 30px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .brand-text { display: block; }
.site-footer .brand-text strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

.pawrat-credit { color: var(--gold-2); font-weight: 700; }
.pawrat-credit:hover { text-decoration: underline; }
.auth-foot .pawrat-credit, .dash-credit .pawrat-credit { color: var(--navy); }
.dash-credit { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 899px) { .dash-credit { margin-bottom: 70px; } }

/* Mobile bottom navigation */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--navy); }
.bottom-nav a .badge { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------------------------------------------------------------- Misc */
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 16px; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 17px; font-weight: 800; }
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-weight: 800; margin-bottom: 10px; }
.step strong { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 13.5px; }
.cta-band { border-radius: var(--radius-lg); padding: 28px 22px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; }
@media (min-width: 900px) { .cta-band { padding: 36px 40px; } }
.page-hero { background: var(--navy); color: #fff; padding: 36px 0; }
.page-hero h1 { margin: 0 0 6px; }
.page-hero p { color: #C9CFE0; margin: 0; max-width: 640px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); z-index: 90; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 30px; } }
.qr-box { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-plain li:last-child { border-bottom: 0; }
@media print {
  .site-header, .topbar, .site-footer, .bottom-nav, .dash-side, .no-print { display: none !important; }
  body { background: #fff; }
  .dash { display: block; }
}
