/* ============================================================================
   Tawfeer — UAE leaflet price-comparison front-end.
   Palette: cream #F2EFE8, green #0B6E4F, orange #E8552D, ink #15211C.
   Type: Bricolage Grotesque (display) + Hanken Grotesk (body).
   ========================================================================== */

:root {
  --bg: #F2EFE8;
  --ink: #15211C;
  --green: #0B6E4F;
  --green-d: #0A5A41;
  --green-dd: #08402F;
  --orange: #E8552D;
  --muted: #6B7A71;
  --muted-2: #9AA39C;
  --line: #E7E3DA;
  --line-2: #E4E0D6;
  --card: #ffffff;
  --soft: #FBFAF6;
  --chip-ink: #28332D;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: #D8D3C7; border-radius: 8px; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
.tnum { font-variant-numeric: tabular-nums; }

@keyframes tw-pop { from { transform: translateY(7px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.screen { animation: tw-pop .26s cubic-bezier(.2,.7,.3,1) both; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav .row { display: flex; align-items: center; gap: 22px; padding: 14px 28px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 1px; background: none; border: none; padding: 0; cursor: pointer; }
.brand .w { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--green); }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; margin-left: 3px; }
.nav .search { flex: 1; max-width: 520px; position: relative; }
.nav .search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 15px; }
.nav .search input {
  width: 100%; padding: 11px 14px 11px 38px; border: 1.5px solid #E1DCD0; border-radius: 12px;
  font-size: 14.5px; background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.nav .search input:focus { border-color: var(--green); }
.nav .right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pill-loc { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1.5px solid #E1DCD0; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #3A4A42; background: #fff; }
.pill-loc .o { color: var(--orange); }
.nav-link { background: none; border: none; font-size: 13.5px; font-weight: 600; color: #3A4A42; cursor: pointer; }
.btn-saved { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--green); border: none; cursor: pointer; }
input::placeholder { color: var(--muted-2); }

/* ---- hero ---- */
.hero { background: linear-gradient(168deg,#0B6E4F 0%,#0A5A41 55%,#08402F 100%); color: #fff; position: relative; overflow: hidden; }
.hero .b1 { position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: rgba(242,183,5,.14); }
.hero .b2 { position: absolute; right: 160px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(232,85,45,.16); }
.hero .inner { padding: 64px 28px 70px; position: relative; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 13px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.badge-live .g { width: 6px; height: 6px; border-radius: 50%; background: #46E5A0; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px,5vw,54px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 16px; max-width: 760px; }
.hero .sub { font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 32px; }
.hero-search { background: #fff; border-radius: 16px; padding: 8px; display: flex; gap: 8px; max-width: 600px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.4); }
.hero-search .f { flex: 1; position: relative; }
.hero-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 17px; }
.hero-search input { width: 100%; border: none; outline: none; padding: 15px 14px 15px 44px; font-size: 16px; color: var(--ink); background: none; font-family: inherit; }
.hero-search button { background: var(--orange); color: #fff; border: none; border-radius: 11px; padding: 0 26px; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.popular { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.popular .lab { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.chip-ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 6px 13px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.chip-ghost:hover { background: rgba(255,255,255,.22); }
.hstats { display: flex; gap: 40px; margin-top: 42px; flex-wrap: wrap; }
.hstats .n { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.hstats .l { font-size: 13px; color: rgba(255,255,255,.66); font-weight: 500; }
.hstats .sep { width: 1px; background: rgba(255,255,255,.18); }

/* ---- section headers ---- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 0; }
.sec-note { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.link-green { background: none; border: none; color: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; }

/* ---- store chips ---- */
.store-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 6px; }
.store-chip { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 8px 15px 8px 9px; border: 1.5px solid var(--line-2); border-radius: 100px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--chip-ink); transition: border-color .15s; }
.store-chip:hover { border-color: var(--green); }
.store-chip .av { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }

/* ---- cards ---- */
.tw-card { transition: transform .18s ease, box-shadow .18s ease; }
.tw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(18,40,30,.45); }

/* leaflet covers grid */
.leaflet-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.leaflet { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; padding: 0; display: flex; flex-direction: column; }
.leaflet .cover { aspect-ratio: 3/3.7; position: relative; color: #fff; overflow: hidden; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,16,12,.5), rgba(8,16,12,0) 36%); }
.cover-top { position: absolute; top: 0; left: 0; right: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leaflet .cover .mark { font-family: var(--display); font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaflet .cover .tag { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.3); padding: 4px 8px; border-radius: 6px; }
.starburst { position: absolute; bottom: 12px; right: 12px; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); transform: rotate(-8deg); }
.starburst .s { font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.starburst .n { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; }
.leaflet .meta { padding: 13px 15px 15px; }
.leaflet .meta .nm { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.leaflet .meta .ml { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.leaflet .meta .ml .d { width: 3px; height: 3px; border-radius: 50%; background: #C8CEC7; }
.deal-badge { margin-top: 9px; display: inline-flex; align-items: center; gap: 5px; background: #FBEDE7; color: #C2410C; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; }

/* trending grid */
.trend-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.trend { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; }
.trend .tile { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; }
.trend .tile .lab { font-family: var(--display); font-weight: 700; font-size: 14px; color: rgba(255,255,255,.95); text-align: center; line-height: 1.1; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.trend .save { position: absolute; top: 8px; right: 8px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 6px; border-radius: 6px; }
.trend .body { padding: 10px 11px 12px; }
.trend .nm { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.25; height: 30px; overflow: hidden; }
.price-aed { display: flex; align-items: baseline; gap: 3px; }
.price-aed .c { font-size: 10px; font-weight: 700; color: var(--muted); }
.price-aed .v { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--green); }
.trend .at { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }

/* ---- search ---- */
.kicker { font-size: 13px; color: var(--muted); font-weight: 600; }
.h-page { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.025em; margin: 0 0 4px; }
.subline { font-size: 15px; color: var(--muted); margin: 0 0 22px; font-weight: 500; }
.cat-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.cat-chip { flex: none; padding: 8px 15px; border-radius: 100px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line-2); background: #fff; color: var(--chip-ink); transition: all .15s; }
.cat-chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.items-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.tw-select {
  height: 40px; padding: 0 32px 0 13px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--chip-ink); border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer;
  appearance: none; -webkit-appearance: none; transition: border-color .15s;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B6E4F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.tw-select:hover { border-color: var(--green); }
.tw-select:focus { outline: none; border-color: var(--green); }
.results { display: flex; flex-direction: column; gap: 12px; }
.rrow { text-align: left; display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; cursor: pointer; transition: background .15s; }
.rrow:hover { background: var(--soft); }
.rtile { flex: none; width: 74px; height: 74px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 8px; position: relative; overflow: hidden; }
.rtile-badge { position: absolute; top: 4px; right: 4px; background: var(--orange); color: #fff; font-size: 9.5px; font-weight: 800; padding: 2px 5px; border-radius: 5px; }
.disc-tag { font-size: 11px; font-weight: 800; color: #C2410C; background: #FBEDE7; padding: 2px 7px; border-radius: 5px; }
.rtile .lab { font-family: var(--display); font-weight: 700; font-size: 12.5px; color: rgba(255,255,255,.96); text-align: center; line-height: 1.1; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.rmid { flex: 1; min-width: 0; }
.rtags { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.brand-tag { font-size: 11px; font-weight: 700; color: var(--green); background: #E7F2ED; padding: 2px 8px; border-radius: 5px; }
.cat-tag { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.rname { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.rmeta { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.rright { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rbig { display: flex; align-items: baseline; gap: 3px; }
.rbig .c { font-size: 12px; font-weight: 700; color: var(--muted); }
.rbig .v { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--green); letter-spacing: -.02em; }
.rat { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rat b { color: var(--ink); }
.save-pill { background: #FBEDE7; color: #C2410C; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.chev { flex: none; color: #C8CEC7; font-size: 22px; margin-left: 4px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted-2); }
.empty .big { font-size: 40px; margin-bottom: 12px; }
.empty .t { font-size: 17px; font-weight: 700; color: var(--muted); }

/* ---- compare ---- */
.back { background: none; border: none; color: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 20px; }
.cp-head { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.cp-tile { flex: none; width: 170px; height: 170px; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cp-tile .lab { font-family: var(--display); font-weight: 700; font-size: 18px; color: rgba(255,255,255,.96); text-align: center; line-height: 1.15; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.cp-info { flex: 1; min-width: 280px; }
.cp-info h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.025em; margin: 0 0 14px; line-height: 1.08; }
.cp-best { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.cp-best .lab { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.cp-best .big { display: flex; align-items: baseline; gap: 4px; }
.cp-best .big .c { font-size: 15px; font-weight: 700; color: var(--muted); }
.cp-best .big .v { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--green); letter-spacing: -.03em; }
.cp-save { background: #FBEDE7; border: 1px solid #F4D5C7; border-radius: 12px; padding: 10px 14px; }
.cp-save .a { font-family: var(--display); font-weight: 800; font-size: 20px; color: #C2410C; }
.cp-save .b { font-size: 12px; color: #C2410C; font-weight: 600; }
.btn-green { background: var(--green); color: #fff; border: none; border-radius: 11px; padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cp-table { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cp-table .head { padding: 16px 22px; border-bottom: 1px solid #EDEAE1; display: flex; align-items: center; justify-content: space-between; }
.cp-table .head h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; }
.cp-row { display: flex; align-items: center; gap: 16px; padding: 15px 22px; border-bottom: 1px solid #F1EEE6; }
.cp-row .av { flex: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.cp-row .nm { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cp-row .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.best-pill { background: var(--green); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.cp-row .was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.cp-row .pct { font-size: 11px; color: #C2410C; font-weight: 800; }
.cp-row .pr { flex: none; text-align: right; min-width: 120px; display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.cp-row .pr .c { font-size: 12px; font-weight: 700; color: var(--muted); }
.cp-row .pr .v { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }

/* ---- store ---- */
.store-banner { color: #fff; position: relative; overflow: hidden; }
.store-banner .blob { position: absolute; right: -60px; top: -70px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.07); }
.store-banner .inner { padding: 30px 28px 38px; position: relative; max-width: 1080px; margin: 0 auto; }
.btn-back-soft { background: rgba(255,255,255,.15); border: none; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 7px 13px; border-radius: 9px; margin-bottom: 24px; }
.store-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-id .av { width: 72px; height: 72px; border-radius: 18px; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.store-id h1 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.025em; margin: 0 0 4px; }
.store-id .tag { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 600; }
.btn-white { background: #fff; border: none; border-radius: 12px; padding: 13px 22px; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.deal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.deal { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; }
.deal .tile { aspect-ratio: 1.4; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; }
.deal .tile .lab { font-family: var(--display); font-weight: 700; font-size: 13px; color: rgba(255,255,255,.96); text-align: center; line-height: 1.12; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.deal .tile .save { position: absolute; top: 8px; right: 8px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }
.deal .body { padding: 10px 12px 13px; }
.deal .nm { font-size: 12.5px; font-weight: 600; line-height: 1.25; height: 32px; overflow: hidden; }

/* ---- stores browse grid ---- */
.store-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.store-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(18,40,30,.4); }
.store-card-av { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.store-card-nm { font-weight: 700; font-size: 15.5px; color: var(--ink); }
/* brand-logo avatars (logo image over a monogram fallback) */
.store-card-av, .store-id .av, .store-chip .av, .cp-row .av { position: relative; overflow: hidden; }
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 14%; border-radius: inherit; }
.store-card-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---- leaflet detail ---- */
.lf-head { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.lf-cover { flex: none; width: 230px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--soft); }
.lf-cover img { display: block; width: 100%; aspect-ratio: 3/3.7; object-fit: cover; }
.lf-info { flex: 1; min-width: 280px; }
.lf-stats { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.lf-stats b { color: var(--ink); font-weight: 700; }

/* one item per line (table-style) */
.lf-list { display: flex; flex-direction: column; gap: 10px; }
.lf-row { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; transition: background .15s; }
.lf-row:hover { background: var(--soft); }
.lf-rtile { flex: none; width: 54px; height: 54px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.lf-rtile span { font-family: var(--display); font-weight: 700; font-size: 10px; color: rgba(255,255,255,.96); text-align: center; line-height: 1.05; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.lf-rmid { flex: 1; min-width: 0; }
.lf-rname { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.lf-runit { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.lf-rprice { flex: none; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.lf-rprice .v { font-size: 20px; }
.lf-was { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.lf-rview, .cp-view { flex: none; background: var(--soft); border: 1px solid var(--line-2); color: var(--green); font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.lf-rview:hover, .cp-view:hover { border-color: var(--green); }
.cp-view { font-size: 12px; padding: 6px 10px; margin-left: 4px; }
@media (max-width: 600px) { .lf-runit { display: none; } .lf-rprice .v { font-size: 17px; } .lf-row { gap: 10px; padding: 10px 12px; } }

@media (max-width: 560px) { .lf-cover { width: 100%; } }

/* ---- viewer ---- */
.viewer { background: #1C2521; min-height: calc(100vh - 64px); }
.viewer .inner { max-width: 1180px; margin: 0 auto; padding: 20px 28px 60px; }
.vw-top { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; flex-wrap: wrap; }
.vw-top .btn { background: rgba(255,255,255,.1); border: none; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 8px 13px; border-radius: 9px; }
.vw-top .ttl { color: #fff; }
.vw-top .ttl .t { font-family: var(--display); font-weight: 700; font-size: 17px; }
.vw-top .ttl .s { font-size: 12.5px; color: rgba(255,255,255,.55); font-weight: 500; }
.vw-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vw-nav button { width: 40px; height: 40px; border-radius: 10px; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.vw-stage { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 22px; align-items: start; }
.vw-page { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); }
.vw-page img { display: block; width: 100%; height: auto; }
.vw-items { display: flex; flex-direction: column; gap: 12px; }
.vw-items h3 { color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; margin: 2px 0 4px; }
.vw-item { text-align: left; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 13px; cursor: pointer; transition: background .15s; }
.vw-item:hover { background: rgba(255,255,255,.09); }
.vw-item .nm { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.vw-item .br { color: rgba(255,255,255,.5); font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.vw-item .pr { margin-left: auto; text-align: right; flex: none; }
.vw-item .pr .v { font-family: var(--display); font-weight: 800; font-size: 17px; color: #46E5A0; }
.vw-item .pr .w { font-size: 11px; color: rgba(255,255,255,.4); text-decoration: line-through; }
.thumbs { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding-bottom: 6px; }
.thumb { flex: none; width: 70px; cursor: pointer; padding: 0; border: none; background: none; }
.thumb img { width: 100%; border-radius: 8px; border: 2.5px solid transparent; display: block; aspect-ratio: 3/3.7; object-fit: cover; opacity: .55; }
.thumb.active img { border-color: var(--orange); opacity: 1; }
.thumb .n { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; text-align: center; margin-top: 5px; }

/* ---- footer ---- */
.foot { background: var(--ink); color: #fff; padding: 46px 28px 40px; }
.foot .top { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; }
.foot .about { max-width: 320px; }
.foot .about .b { display: flex; align-items: baseline; margin-bottom: 12px; }
.foot .about .b .w { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; }
.foot .about .b .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; margin-left: 3px; }
.foot .about p { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.5; margin: 0; }
.foot .cols { display: flex; gap: 54px; flex-wrap: wrap; }
.foot .cols .h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.foot .cols .c { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: rgba(255,255,255,.78); font-weight: 500; align-items: flex-start; }
.foot .cols .c .flink { background: none; border: none; color: rgba(255,255,255,.78); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; padding: 0; text-decoration: none; }
.foot .cols .c .flink:hover { color: #fff; }
.foot .bar { max-width: var(--maxw); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- responsive ---- */
@media (max-width: 1024px) { .leaflet-grid { grid-template-columns: repeat(3,1fr); } .trend-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 860px) { .vw-stage { grid-template-columns: 1fr; } .deal-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px) {
  .nav .search { display: none; }
  .leaflet-grid { grid-template-columns: repeat(2,1fr); }
  .trend-grid { grid-template-columns: repeat(2,1fr); }
  .deal-grid { grid-template-columns: 1fr; }
  .rright { display: none; }
  .hstats { gap: 22px; }
}
