/* ═══════════════════════════════════════════════════════
   VouchersHut — Main Stylesheet
   ═══════════════════════════════════════════════════════ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: .15s ease; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
input, select, textarea { font-family: inherit; outline: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* TOKENS */
:root {
  --green:       #24ce39;
  --green-d:     #1aad2d;
  --green-light: #e8faea;
  --text:        #333;
  --muted:       #666;
  --light:       #f2f2f2;
  --white:       #fff;
  --border:      #e5e5e5;
  --border2:     #d0d0d0;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --radius:      8px;
  --font:        'Roboto', sans-serif;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--light);
  line-height: 1.5;
}

.Wrp { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ─────────────────────────────────────── */
#header {
  background: #fff;
  border-bottom: 1px solid var(--green);
  position: sticky; top: 0; z-index: 200;
}
.hbar {
  display: flex; align-items: center; gap: 16px;
  height: 62px; max-width: 1240px; margin: 0 auto; padding: 0 20px;
}
.logo-text {
  font-size: 24px; font-weight: 800;
  color: var(--green-d); letter-spacing: -1px; flex-shrink: 0;
}
.logo-text span { color: #333; }
.logo-text:hover { color: var(--green-d); }

.search-wrap {
  flex: 1; max-width: 480px; margin: 0 auto; position: relative;
}
.search-wrap input {
  width: 100%; height: 40px;
  border: 1.5px solid var(--border2); border-radius: 100px;
  padding: 0 16px 0 42px; font-size: 14px; color: var(--text);
  transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--green); }
.search-wrap input::placeholder { color: #aaa; }
.search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #bbb; font-size: 15px; pointer-events: none;
}
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  z-index: 500; display: none;
}
.search-dropdown.open { display: block; }
.sd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--text);
  cursor: pointer; transition: background .1s;
}
.sd-item:hover { background: var(--green-light); }
.sd-logo {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
}

.hnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hnav a, .hnav button {
  padding: 8px 14px; border-radius: 6px; font-size: 13px;
  font-weight: 500; color: var(--muted); background: none; border: none; cursor: pointer;
}
.hnav a:hover { background: var(--light); color: var(--text); }
.btn-admin-link {
  background: var(--green) !important;
  color: #fff !important; border-radius: 6px;
}
.btn-admin-link:hover { background: var(--green-d) !important; }

/* ── HERO ────────────────────────────────────────── */
.hero-area {
  background: linear-gradient(135deg, #f0fff4, #e8faea 50%, #f5fff7);
  border-bottom: 1px solid #c8f0d0;
  padding: 52px 20px 44px; text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-h1 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 800;
  color: #111; letter-spacing: -1px; line-height: 1.15; margin-bottom: 10px;
}
.hero-h1 em { font-style: normal; color: var(--green-d); }
.hero-p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

.hero-form {
  display: flex; max-width: 500px; margin: 0 auto 28px;
  background: #fff; border: 2px solid var(--green);
  border-radius: 100px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(36,206,57,.12);
}
.hero-inp { flex: 1; border: none; padding: 0 20px; font-size: 14px; color: var(--text); }
.hero-inp::placeholder { color: #aaa; }
.hero-btn {
  padding: 0 24px; height: 48px; background: var(--green);
  color: #fff; font-size: 14px; font-weight: 700;
  flex-shrink: 0; transition: background .2s; border: none; cursor: pointer;
}
.hero-btn:hover { background: var(--green-d); }

.hero-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0;
}
.hero-logo-a {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 52px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; transition: all .2s; cursor: pointer;
}
.hero-logo-a:hover {
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(36,206,57,.15);
  transform: translateY(-1px);
}
.lg-letter {
  width: 80px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; border-radius: 6px;
}

/* ── CATEGORY STRIP ──────────────────────────────── */
.cat-strip {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 20px; display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cpill {
  flex-shrink: 0; height: 44px; padding: 0 16px;
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: all .15s; white-space: nowrap;
}
.cpill:hover { color: var(--green-d); }
.cpill.active { color: var(--green-d); border-bottom-color: var(--green); font-weight: 700; }

/* ── SECTION HEADINGS ────────────────────────────── */
.sec-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
}
.sec-title { font-size: 20px; font-weight: 800; color: #111; }
.sec-link { font-size: 13px; color: var(--green-d); font-weight: 600; cursor: pointer; }
.sec-link:hover { text-decoration: underline; }

/* ── POPULAR STORES ──────────────────────────────── */
.pop-stores-section { padding: 28px 0 0; }
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 32px;
}
.store-tile {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 10px;
  text-align: center; cursor: pointer; transition: all .2s; display: block;
}
.store-tile:hover {
  border-color: var(--green);
  box-shadow: 0 3px 14px rgba(36,206,57,.1);
  transform: translateY(-2px);
}
.st-logo {
  width: 58px; height: 38px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 16px; font-weight: 800; color: #fff;
}
.st-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.st-count { font-size: 11px; color: #aaa; }

/* ── OFFER CARDS ─────────────────────────────────── */
.offers-section { padding: 8px 0 48px; }
.offerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.offerCard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .25s;
}
.offerCard:hover {
  box-shadow: var(--shadow); border-color: #b0e8b8;
  transform: translateY(-2px);
}
.offerTop { padding: 16px; }
.logoBox { margin-bottom: 10px; }
.lb-letter {
  width: 80px; height: 50px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.metaRow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.t-tested { background: #e8faea; color: #1aad2d; border: 1px solid #b0e8b8; }
.t-sale   { background: #fdeaea; color: #c0392b; border: 1px solid #f5bfbf; }
.t-deal   { background: #e8f4fd; color: #2471a3; border: 1px solid #b8d8f5; }
.t-code   { background: #fff8e1; color: #b7770d; border: 1px solid #f5e0a0; }
.exp { font-size: 11px; color: #aaa; }
.disc-badge { font-size: 28px; font-weight: 800; color: var(--green-d); line-height: 1; margin-bottom: 6px; }
.offer-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; }

.punch {
  height: 1px; background: var(--border); margin: 12px 0; position: relative;
}
.punch::before, .punch::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; background: var(--light);
  border: 1px solid var(--border); border-radius: 50%; top: -9px;
}
.punch::before { left: -9px; }
.punch::after  { right: -9px; }

.btnRow { padding: 12px 16px; display: flex; gap: 8px; align-items: center; }
.mainBtn {
  flex: 1; height: 38px; background: var(--green); color: #fff;
  border-radius: 100px; font-size: 13px; font-weight: 700;
  transition: background .2s; display: flex; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; border: none;
}
.mainBtn:hover { background: var(--green-d); }
.storeBtn {
  height: 38px; padding: 0 14px; background: #fff;
  border: 1.5px solid var(--border2); color: var(--muted);
  border-radius: 100px; font-size: 12px; font-weight: 600;
  transition: all .2s; cursor: pointer; display: flex; align-items: center;
}
.storeBtn:hover { border-color: var(--green); color: var(--green-d); }

/* ── WHY SECTION ─────────────────────────────────── */
.why-sec {
  background: #fff; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 52px 20px;
}
.why-head { text-align: center; margin-bottom: 36px; }
.why-eyebrow {
  display: inline-block; background: var(--green-light); color: var(--green-d);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
}
.why-head h2 { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 8px; }
.why-head p  { color: var(--muted); max-width: 500px; margin: 0 auto; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 28px;
}
.why-card {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.why-icon { font-size: 26px; color: var(--green-d); margin-bottom: 10px; }
.why-card h3 { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 7px; }
.why-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-stat {
  background: var(--green-light); border: 1px solid #c8f0d0;
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.why-stat strong { display: block; font-size: 18px; font-weight: 700; color: var(--green-d); margin-bottom: 4px; }
.why-stat span  { font-size: 12px; color: #555; }

/* ── PAGE BANNER ─────────────────────────────────── */
.page-banner {
  background: #fff; padding: 24px 0; border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 4px; }
.page-banner p  { color: var(--muted); }

/* ── STORE BANNER ────────────────────────────────── */
.store-banner { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--border); }
.store-banner-inner { display: flex; align-items: center; gap: 20px; }
.store-banner-logo {
  width: 80px; height: 80px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
}
.store-banner-cat { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.store-banner-cat a { color: var(--green-d); }
.store-banner-name { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 4px; }
.store-banner-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.store-visit-btn {
  display: inline-block; padding: 8px 20px; background: var(--green);
  color: #fff; border-radius: 100px; font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.store-visit-btn:hover { background: var(--green-d); }

/* ── CAT BANNER ──────────────────────────────────── */
.cat-banner {
  background: linear-gradient(135deg, #f0fff4, #e8faea);
  border-bottom: 1px solid #c8f0d0; padding: 32px 20px; text-align: center;
}
.cat-banner-icon { font-size: 40px; margin-bottom: 10px; }
.cat-banner h1   { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 6px; }
.cat-banner p    { color: var(--muted); }

/* ── A-Z STORES ──────────────────────────────────── */
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; }
.az-btn {
  width: 32px; height: 32px; background: #fff; border: 1px solid var(--border);
  border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.az-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.az-group { margin-bottom: 28px; }
.az-letter {
  font-size: 20px; font-weight: 800; color: var(--green-d);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 7px; margin-bottom: 12px;
}
.az-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px;
}
.az-item a {
  font-size: 13px; color: var(--text); padding: 5px 8px;
  border-radius: 4px; display: block; transition: all .15s;
}
.az-item a:hover { background: var(--green-light); color: var(--green-d); }
.az-count { font-size: 11px; color: #aaa; }

/* ── CATEGORIES GRID ─────────────────────────────── */
.cat-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
  padding-bottom: 60px;
}
.cat-page-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; cursor: pointer; transition: all .2s;
  display: block;
}
.cat-page-card:hover {
  border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px);
}
.cat-page-icon  { font-size: 30px; margin-bottom: 8px; }
.cat-page-name  { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.cat-page-count { font-size: 12px; color: #aaa; }

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--green-d); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
.empty-state p  { color: var(--muted); margin-bottom: 20px; }
.btn-green {
  display: inline-block; padding: 10px 24px; background: var(--green);
  color: #fff; border-radius: 100px; font-size: 14px; font-weight: 700; transition: background .2s;
}
.btn-green:hover { background: var(--green-d); }

/* ── MODAL ───────────────────────────────────────── */
.modal-ov {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-ov.hidden { display: none; }
.modal-box {
  background: #fff; border-radius: 12px; padding: 30px;
  max-width: 400px; width: 100%; text-align: center; position: relative;
}
.modal-x {
  position: absolute; top: 12px; right: 14px;
  font-size: 22px; color: #bbb; cursor: pointer; line-height: 1; background: none; border: none;
}
.m-logo {
  width: 80px; height: 52px; border-radius: 8px;
  margin: 0 auto 14px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; font-weight: 800; color: #fff;
}
.modal-box h3 { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 6px; }
.modal-box p  { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.code-box {
  background: #f8fdf9; border: 2px dashed var(--green);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.code-val {
  font-family: monospace; font-size: 22px; font-weight: 800;
  color: var(--green-d); letter-spacing: 3px;
}
.no-code-msg { font-size: 13px; color: var(--green-d); font-weight: 600; text-align: left; }
.copy-btn {
  background: var(--green); color: #fff; border-radius: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s; flex-shrink: 0; border: none;
}
.copy-btn:hover { background: var(--green-d); }
.copy-btn.copied { background: #2196f3; }
.visit-btn {
  display: block; width: 100%; height: 42px; background: var(--green-d);
  color: #fff; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; transition: background .2s;
  border: none; display: flex; align-items: center; justify-content: center;
}
.visit-btn:hover { background: #148f22; }
.modal-note { font-size: 11px; color: #aaa; }

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 99999;
  background: #111; color: #fff; padding: 10px 18px;
  border-radius: 8px; font-size: 13px;
  transform: translateY(60px); opacity: 0;
  transition: all .3s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: #fff; border-top: 1px solid var(--green); padding: 52px 20px 24px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.foot-brand { font-size: 24px; font-weight: 800; color: var(--green-d); margin-bottom: 12px; }
.foot-about { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-badge {
  font-size: 11px; color: #555; background: var(--light);
  padding: 4px 10px; border-radius: 5px; border: 1px solid var(--border);
}
.foot-col h4 { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 14px; }
.foot-col ul { display: flex; flex-direction: column; gap: 9px; }
.foot-col li { font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; }
.foot-col li:hover, .foot-col li a:hover { color: var(--green-d); padding-left: 4px; }
.foot-col li a { color: var(--muted); display: block; }
.foot-bottom {
  padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 12px; color: #aaa; flex-wrap: wrap; gap: 8px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .why-grid    { grid-template-columns: 1fr 1fr; }
  .why-stats   { grid-template-columns: 1fr; }
  .foot-grid   { grid-template-columns: 1fr 1fr; }
  .store-banner-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .why-grid      { grid-template-columns: 1fr; }
  .foot-grid     { grid-template-columns: 1fr; }
  .offerGrid     { grid-template-columns: 1fr; }
  .stores-grid   { grid-template-columns: repeat(3, 1fr); }
  .hnav a:not(.btn-admin-link) { display: none; }
  .hero-form     { border-radius: 12px; flex-direction: column; }
  .hero-btn      { border-radius: 0 0 10px 10px; width: 100%; }
}
