/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:      #1a1a2e;
  --indigo-mid:  #16213e;
  --teal:        #00b4d8;
  --teal-dark:   #0096b7;
  --gold:        #f4c542;
  --gold-dark:   #d4a017;
  --bg:          #f4f5f7;
  --white:       #ffffff;
  --text:        #1a1a2e;
  --text-2:      #4a4a6a;
  --text-3:      #8888aa;
  --border:      #e2e4f0;
  --card-shadow: 0 2px 8px rgba(26,26,46,.08);
  --card-hover:  0 8px 24px rgba(26,26,46,.16);
  --radius:      6px;
  --radius-lg:   12px;
  --radius-xl:   20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }

/* HEADER */
.header { background: var(--indigo); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 28px; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.1; }
.logo-tagline { font-size: 10px; color: var(--teal); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: var(--radius); transition: all .15s; white-space: nowrap; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.header-ctas { display: flex; gap: 8px; flex-shrink: 0; }
.btn-header { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius); transition: all .15s; white-space: nowrap; }
.btn-tg { background: var(--teal); color: var(--white); }
.btn-tg:hover { background: var(--teal-dark); }
.btn-wa { background: #25d366; color: var(--white); }
.btn-wa:hover { background: #1ebe5c; }

/* HERO */
.hero { background: var(--indigo); position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero-bg-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(0,180,216,.12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(244,197,66,.08) 0%, transparent 40%), radial-gradient(circle at 60% 80%, rgba(0,180,216,.08) 0%, transparent 40%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(244,197,66,.15); border: 1px solid rgba(244,197,66,.3); color: var(--gold); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; letter-spacing: .5px; margin-bottom: 20px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 52px); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 16px; white-space: nowrap; }
.hero-gold { color: var(--gold); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-stats { display: inline-flex; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 20px 40px; gap: 32px; margin-bottom: 36px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 700; line-height: 1; font-family: 'Playfair Display', serif; color: var(--gold); }
.stat-label { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }
.btn-hero { display: inline-block; background: var(--gold); color: var(--indigo); font-size: 15px; font-weight: 700; padding: 14px 36px; border-radius: var(--radius-lg); transition: all .2s; box-shadow: 0 4px 20px rgba(244,197,66,.3); }
.btn-hero:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,197,66,.4); }

/* PAGE HERO */
.page-hero { background: var(--indigo); padding: 32px 0 28px; }
.page-title { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--white); margin-bottom: 6px; }
.page-sub { color: rgba(255,255,255,.55); font-size: 14px; }

/* CATEGORIES SECTION */
.cats-section { padding: 56px 0 48px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--indigo); }
.section-sub { font-size: 14px; color: var(--text-3); }
.see-all-link { font-size: 14px; font-weight: 600; color: var(--teal); transition: color .15s; }
.see-all-link:hover { color: var(--teal-dark); }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat-tile { background: var(--indigo); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; text-decoration: none; display: block; border: 1px solid rgba(255,255,255,.06); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.25); border-color: rgba(0,180,216,.3); }
.cat-tile-emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.cat-tile-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cat-tile-discount { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.cat-tile-count { font-size: 12px; color: rgba(255,255,255,.4); }
.cat-tile-arrow { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,.2); font-size: 18px; transition: all .2s; }
.cat-tile:hover .cat-tile-arrow { color: var(--teal); transform: translateX(4px); }

/* TOP DEALS */
.top-deals-section { padding: 0 0 56px; }

/* CATEGORY PILLS */
.categories-bar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 90; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.pill { flex-shrink: 0; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text-2); border: 1.5px solid var(--border); background: var(--white); transition: all .15s; white-space: nowrap; }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.active { background: var(--indigo); border-color: var(--indigo); color: var(--white); }

/* SORT BAR */
.sort-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; }
.sort-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.results-count { font-size: 13px; color: var(--text-3); }
.sort-options { display: flex; align-items: center; gap: 4px; }
.sort-label { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.sort-btn { padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--text-2); border: 1.5px solid transparent; border-radius: var(--radius); transition: all .15s; }
.sort-btn:hover { color: var(--teal); border-color: var(--teal); }
.sort-btn.active { color: var(--indigo); border-color: var(--indigo); background: rgba(26,26,46,.06); }

/* DEALS GRID */
.main { padding: 24px 0 48px; }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* DEAL CARD */
.deal-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; position: relative; border: 1.5px solid transparent; }
.deal-card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); border-color: rgba(0,180,216,.2); }
.deal-card.skeleton { height: 360px; background: linear-gradient(90deg, #f0f0f4 25%, #e4e4ec 50%, #f0f0f4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--indigo); color: var(--gold); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius); z-index: 1; letter-spacing: .4px; }
.card-img-wrap { aspect-ratio: 1; overflow: hidden; background: #f8f8fb; display: flex; align-items: center; justify-content: center; padding: 14px; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.deal-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-category { font-size: 10px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .6px; }
.card-name { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price { font-size: 18px; font-weight: 700; color: var(--indigo); font-family: 'Playfair Display', serif; }
.card-orig { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.card-discount { font-size: 12px; font-weight: 600; color: #1a9e4a; }
.card-rating { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.rating-star { color: #f9a825; }
.card-footer { margin-top: auto; padding-top: 10px; }
.btn-buy { display: block; width: 100%; background: var(--teal); color: var(--white); font-size: 13px; font-weight: 600; padding: 10px; border-radius: var(--radius); text-align: center; transition: background .15s; }
.btn-buy:hover { background: var(--teal-dark); }

/* LOAD MORE */
.load-more-wrap { text-align: center; margin-top: 32px; }
.btn-load-more { background: var(--white); color: var(--indigo); border: 2px solid var(--indigo); font-size: 14px; font-weight: 600; padding: 12px 48px; border-radius: var(--radius-lg); transition: all .15s; }
.btn-load-more:hover { background: var(--indigo); color: var(--white); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--indigo); }
.empty-state p { color: var(--text-3); }

/* CHANNELS CTA */
.channels-cta { background: var(--indigo); padding: 56px 0; }
.channels-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.channel-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px; display: flex; align-items: center; gap: 20px; transition: all .2s; }
.channel-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.channel-icon { font-size: 36px; flex-shrink: 0; }
.channel-text h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.channel-text p { font-size: 13px; color: rgba(255,255,255,.55); }
.btn-channel { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 10px 20px; border-radius: var(--radius); transition: all .15s; margin-left: auto; white-space: nowrap; }
.btn-tg-cta { background: var(--teal); color: var(--white); }
.btn-tg-cta:hover { background: var(--teal-dark); }
.btn-wa-cta { background: #25d366; color: var(--white); }
.btn-wa-cta:hover { background: #1ebe5c; }

/* FOOTER */
.footer { background: #0d0d1a; padding: 32px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--teal); }
.footer-note { font-size: 11px; color: rgba(255,255,255,.25); max-width: 520px; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 900px) { .channels-inner { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .nav { display: none; }
  .header-inner { height: 56px; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { padding: 16px 24px; gap: 20px; }
  .stat-num { font-size: 24px; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .channel-card { flex-direction: column; text-align: center; }
  .btn-channel { margin-left: 0; }
  .sort-inner { flex-direction: column; align-items: flex-start; }
  .deals-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
}
@media (max-width: 480px) { .cats-grid { grid-template-columns: 1fr; } .deals-grid { grid-template-columns: 1fr 1fr; } }
/* v9 */
