/*
Theme Name: DealsGood
Theme URI: https://dealsgood.in
Author: DealsGood
Description: A lightweight, SEO-optimized deals & coupon theme. Clean black & white design.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: dealsgood
*/

/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
  /* Black & White Palette */
  --black:        #0a0a0a;
  --black-soft:   #111111;
  --gray-900:     #1a1a1a;
  --gray-800:     #2c2c2c;
  --gray-700:     #444444;
  --gray-600:     #666666;
  --gray-500:     #888888;
  --gray-400:     #aaaaaa;
  --gray-300:     #cccccc;
  --gray-200:     #e0e0e0;
  --gray-100:     #f0f0f0;
  --gray-50:      #f7f7f7;
  --white:        #ffffff;

  /* Accent - single red for CTAs only */
  --red:          #e00;
  --red-dark:     #c00;
  --red-light:    #ff2222;
  --red-bg:       #fff5f5;

  /* Green for verified/success */
  --green:        #0a7c4b;
  --green-bg:     #f0faf5;

  /* Semantic */
  --bg:           #f5f5f5;
  --surface:      #ffffff;
  --border:       #e0e0e0;
  --border-dark:  #cccccc;
  --text:         #111111;
  --text-md:      #444444;
  --text-lt:      #888888;
  --text-xlt:     #aaaaaa;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp1:  4px;  --sp2:  8px;  --sp3:  12px; --sp4:  16px;
  --sp5:  20px; --sp6:  24px; --sp8:  32px; --sp10: 40px;
  --sp12: 48px; --sp16: 64px;

  /* Layout */
  --container: 1280px;
  --sidebar:   300px;

  /* Border radius */
  --r2: 2px;  --r4: 4px;  --r6: 6px;  --r8: 8px;
  --r12: 12px; --r16: 16px; --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --shadow-card: 0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 24px rgba(0,0,0,.14);

  --transition: 0.18s ease;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--text); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
/* Full-width override for homepage */
body.home .site-main { width: 100%; }

.site-content-wrap {
  display: flex;
  gap: var(--sp8);
  padding: var(--sp8) 0;
  align-items: flex-start;
}
.content-area { flex: 1; min-width: 0; }
.widget-area  { width: var(--sidebar); flex-shrink: 0; }

/* Homepage full width - no sidebar */
.homepage-main { width: 100%; padding: 0; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--black); color: var(--white);
  padding: 8px 18px; z-index: 9999; font-weight: 600; font-size: 14px;
  border-radius: 0 0 var(--r6) 0;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ══════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════ */
.top-bar {
  background: var(--black);
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  padding: 7px 0;
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp4); }
.top-bar-left { display: flex; align-items: center; gap: var(--sp4); }
.top-bar-right { display: flex; align-items: center; gap: var(--sp4); }
.top-bar a { color: rgba(255,255,255,.55); }
.top-bar a:hover { color: var(--white); }
.topbar-badge {
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .5px;
}

/* ══════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--sp5); padding: 14px 0;
}

/* Branding */
.site-branding { display: flex; align-items: center; gap: var(--sp3); flex-shrink: 0; }
.site-branding .custom-logo { height: 44px; width: auto; }
.site-title { font-size: 22px; font-weight: 800; color: var(--black); line-height: 1; letter-spacing: -.5px; }
.site-title a { color: inherit; }
.site-title .brand-dot { color: var(--red); }
.site-tagline { font-size: 11px; color: var(--text-lt); margin-top: 2px; }

/* Header Search */
.header-search { flex: 1; max-width: 500px; }
.header-search-form {
  display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: var(--r-full);
  background: var(--gray-50); overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-form:focus-within {
  border-color: var(--black); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.header-search-form input {
  flex: 1; border: none; outline: none;
  padding: 10px 18px; font-size: 14px;
  background: transparent; color: var(--text);
}
.header-search-form input::placeholder { color: var(--text-lt); }
.header-search-form button {
  background: var(--black); border: none; color: var(--white);
  padding: 0 20px; height: 42px; font-size: 14px;
  transition: background var(--transition); flex-shrink: 0;
}
.header-search-form button:hover { background: var(--gray-800); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: var(--sp3); flex-shrink: 0; }
.btn-tg-header {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--white);
  padding: 9px 18px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all var(--transition);
}
.btn-tg-header:hover { background: var(--gray-800); color: var(--white); }

/* ══════════════════════════════════════════════
   PRIMARY NAV
══════════════════════════════════════════════ */
.main-navigation {
  background: var(--gray-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative; z-index: 100;
}
.nav-inner { position: relative; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.75);
  padding: 13px 16px; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; transition: color var(--transition);
  position: relative;
}
.nav-menu > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--white); transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { color: var(--white); }
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.nav-menu > li.menu-item-has-children > a::before {
  content: '\25be'; margin-left: 4px; font-size: 10px; opacity: .5;
}

/* Dropdown */
.sub-menu {
  display: none; position: absolute; top: calc(100% + 2px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r8); box-shadow: var(--shadow-lg);
  min-width: 220px; z-index: 300; padding: 6px 0;
}
.nav-menu li:hover > .sub-menu { display: block; animation: fdDown .15s ease; }
@keyframes fdDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.sub-menu li a {
  display: block; padding: 9px 18px;
  font-size: 13.5px; color: var(--text-md);
  transition: all var(--transition);
}
.sub-menu li a:hover { background: var(--gray-50); color: var(--black); padding-left: 24px; }

/* Mobile toggle */
.menu-toggle {
  display: none; background: none; border: none;
  color: rgba(255,255,255,.85); font-size: 20px; padding: 13px 0; line-height: 1;
}

/* ══════════════════════════════════════════════
   STORE SECTION — 12 per row, black theme
══════════════════════════════════════════════ */
.store-section {
  background: var(--gray-900);
  padding: 18px 0; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.store-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: var(--sp4);
}
.store-section-label {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
}
.store-section-label::before {
  content: ''; display: inline-block; width: 20px; height: 2px;
  background: rgba(255,255,255,.3);
}
.store-section-viewall {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15); padding: 5px 14px;
  border-radius: var(--r-full); transition: all var(--transition); white-space: nowrap;
}
.store-section-viewall:hover {
  color: var(--white); border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
}
.store-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
}
.store-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 10px 6px; min-height: 74px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r8); text-decoration: none;
  transition: all var(--transition); cursor: pointer;
}
.store-tile:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.store-tile-logo {
  width: 40px; height: 26px; object-fit: contain; border-radius: var(--r4);
  filter: brightness(0) invert(1); opacity: .7;
  transition: opacity var(--transition), filter var(--transition);
}
.store-tile:hover .store-tile-logo { opacity: 1; filter: none; }
.store-tile-icon { font-size: 22px; opacity: .6; }
.store-tile-name {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.store-tile:hover .store-tile-name { color: var(--white); }
.store-tile-offer { font-size: 9px; font-weight: 700; color: var(--red-light); text-align: center; }

/* ══════════════════════════════════════════════
   TELEGRAM BANNER
══════════════════════════════════════════════ */
.telegram-banner {
  background: var(--black); border-bottom: 1px solid var(--gray-800);
  padding: 11px 0; position: relative; overflow: hidden;
}
.tg-inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp4); flex-wrap: wrap; text-align: center; position: relative;
}
.tg-icon { font-size: 20px; }
.tg-text strong { font-size: 13.5px; font-weight: 700; color: var(--white); display: block; }
.tg-text span { font-size: 12px; color: rgba(255,255,255,.55); }
.tg-btn {
  background: var(--white); color: var(--black);
  padding: 7px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: 12.5px; transition: all var(--transition); white-space: nowrap;
}
.tg-btn:hover { background: var(--gray-100); color: var(--black); }
.tg-dismiss {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.35);
  font-size: 17px; padding: 4px 6px; transition: color var(--transition);
}
.tg-dismiss:hover { color: var(--white); }

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb-wrap {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 8px 0; font-size: 12.5px;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--text-lt); }
.breadcrumb a { color: var(--text-md); }
.breadcrumb a:hover { color: var(--black); }
.bc-sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.home-hero {
  background: var(--black);
  padding: var(--sp12) 0;
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 480px;
  gap: var(--sp12); align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: 11px; font-weight: 600;
  padding: 5px 14px; border-radius: var(--r-full); margin-bottom: var(--sp4);
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero-title {
  font-size: clamp(26px, 3.5vw, 48px); font-weight: 800;
  color: var(--white); line-height: 1.1; margin-bottom: var(--sp4); letter-spacing: -.5px;
}
.hero-title .highlight { color: var(--red); }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: var(--sp6); line-height: 1.7; }
.hero-actions { display: flex; gap: var(--sp3); flex-wrap: wrap; align-items: center; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 13px 28px; border-radius: var(--r-full);
  font-weight: 700; font-size: 15px; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(238,0,0,.35);
}
.btn-hero-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(238,0,0,.4); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); padding: 12px 22px;
  border-radius: var(--r-full); font-weight: 600; font-size: 14px;
  transition: all var(--transition);
}
.btn-hero-secondary:hover { color: var(--white); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.hero-stats { display: flex; gap: var(--sp6); margin-top: var(--sp8); padding-top: var(--sp6); border-top: 1px solid rgba(255,255,255,.08); }
.hero-stat-num { font-size: 22px; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Hero card (right side) */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r16); overflow: hidden;
}
.hero-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.hero-card-placeholder {
  width: 100%; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); font-size: 56px;
}
.hero-card-body { padding: var(--sp5); }
.hero-card-badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-full); margin-bottom: var(--sp2); text-transform: uppercase;
}
.hero-card-title { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: var(--sp2); line-height: 1.3; }
.hero-card-desc { color: rgba(255,255,255,.5); font-size: 12.5px; margin-bottom: var(--sp4); }
.hero-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--black);
  padding: 8px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 700;
  transition: all var(--transition);
}
.hero-card-cta:hover { background: var(--gray-100); color: var(--black); }
.hero-new-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--red); color: var(--white); padding: 4px 14px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(238,0,0,.4);
}

/* ══════════════════════════════════════════════
   HOMEPAGE CATEGORY SECTIONS
══════════════════════════════════════════════ */
.category-sections { padding: var(--sp10) 0 var(--sp4); }
.category-block { margin-bottom: var(--sp12); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp5); gap: var(--sp4);
  padding-bottom: var(--sp4); border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 48px; height: 2px; background: var(--black);
}
.section-head-left { display: flex; align-items: center; gap: var(--sp3); }
.section-icon {
  width: 38px; height: 38px; background: var(--black); color: var(--white);
  border-radius: var(--r8); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.section-title-text { font-size: 18px; font-weight: 700; color: var(--black); }
.section-subtitle { font-size: 12px; color: var(--text-lt); margin-top: 1px; }
.section-viewall {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--black);
  border: 1.5px solid var(--gray-300); padding: 6px 16px;
  border-radius: var(--r-full); transition: all var(--transition); white-space: nowrap; flex-shrink: 0;
}
.section-viewall:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ══════════════════════════════════════════════
   DEAL CARDS GRID
══════════════════════════════════════════════ */
.posts-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.posts-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

.deal-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r12); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--transition); position: relative;
  box-shadow: var(--shadow-card);
}
.deal-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
  border-color: var(--gray-300);
}
.deal-card-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--gray-100); position: relative; flex-shrink: 0;
}
.deal-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.deal-card:hover .deal-card-thumb img { transform: scale(1.05); }
.deal-card-thumb .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--gray-100);
}
.deal-card-cat {
  position: absolute; top: 9px; left: 9px;
  background: var(--black); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .5px;
}
.deal-card-body {
  padding: 14px; flex: 1; display: flex; flex-direction: column; gap: var(--sp2);
}
.deal-card-title {
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-card-title a { color: inherit; }
.deal-card-title a:hover { color: var(--black); text-decoration: underline; }
.deal-card-meta { display: flex; align-items: center; gap: var(--sp3); font-size: 11.5px; color: var(--text-lt); }
.deal-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp2); margin-top: auto; padding-top: var(--sp3);
  border-top: 1px solid var(--border);
}
.btn-deal {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--black); color: var(--white);
  padding: 7px 16px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; transition: all var(--transition); white-space: nowrap;
}
.btn-deal:hover { background: var(--red); color: var(--white); }

/* ══════════════════════════════════════════════
   COUPON CARDS
══════════════════════════════════════════════ */
.coupon-list { display: flex; flex-direction: column; gap: 14px; }
.coupon-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r12); overflow: hidden;
  display: flex; transition: all var(--transition); position: relative;
  box-shadow: var(--shadow-card);
}
.coupon-card:hover { box-shadow: var(--shadow-hover); border-color: var(--gray-300); }
.coupon-card.coupon-expired { opacity: .65; }
.coupon-card-store {
  width: 82px; min-height: 100px; background: var(--gray-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: var(--sp3); flex-shrink: 0; border-right: 1px dashed var(--border);
}
.coupon-card-store img { width: 50px; height: 34px; object-fit: contain; border-radius: var(--r4); }
.coupon-store-icon { font-size: 26px; }
.coupon-card-store-name { font-size: 9.5px; font-weight: 700; color: var(--text-md); text-align: center; }
.coupon-card-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coupon-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cbadge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .3px;
}
.cbadge-code     { background: var(--black); color: var(--white); }
.cbadge-deal     { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--border); }
.cbadge-ship     { background: var(--green-bg); color: var(--green); border: 1px solid #b6dfce; }
.cbadge-verified { background: var(--green-bg); color: var(--green); }
.cbadge-expired  { background: var(--red-bg); color: var(--red); }
.coupon-card-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.coupon-discount { font-size: 14px; font-weight: 700; color: var(--red); }
.coupon-card-desc { font-size: 12.5px; color: var(--text-md); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coupon-card-row { display: flex; align-items: center; gap: var(--sp3); flex-wrap: wrap; margin-top: auto; }
.coupon-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1.5px dashed var(--gray-400);
  border-radius: var(--r8); padding: 6px 14px; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--black);
  letter-spacing: 1.5px; transition: all var(--transition); user-select: none;
}
.coupon-chip:hover { background: var(--black); color: var(--white); border-style: solid; border-color: var(--black); }
.copy-icon { font-size: 11px; opacity: .6; }
.no-code-msg { font-size: 12.5px; color: var(--text-lt); font-style: italic; }
.coupon-expiry { font-size: 11.5px; color: var(--text-lt); display: flex; align-items: center; gap: 3px; }
.coupon-expiry.expiring { color: #b45309; }
.coupon-expiry.expired { color: var(--red); }
.coupon-card-action {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; border-left: 1px solid var(--border); flex-shrink: 0;
}
.btn-get-deal {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--black); color: var(--white);
  padding: 10px 18px; border-radius: var(--r8);
  font-size: 13px; font-weight: 700; text-align: center; white-space: nowrap;
  transition: all var(--transition); text-decoration: none;
}
.btn-get-deal:hover { background: var(--red); color: var(--white); }
.btn-get-deal small { font-size: 10px; font-weight: 400; opacity: .7; }

/* Coupon filter */
.coupon-filter-bar {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r12);
  padding: 14px 18px; display: flex; gap: var(--sp2); flex-wrap: wrap; align-items: center;
  margin-bottom: var(--sp5);
}
.coupon-filter-btn {
  padding: 6px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-full); font-size: 13px; font-weight: 500;
  background: var(--white); color: var(--text-md); cursor: pointer; transition: all var(--transition);
}
.coupon-filter-btn:hover,
.coupon-filter-btn.active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ══════════════════════════════════════════════
   ARCHIVE HEADER
══════════════════════════════════════════════ */
.archive-header {
  background: var(--black); padding: var(--sp10) 0;
  position: relative; overflow: hidden;
}
.archive-title { color: var(--white); font-size: clamp(22px,4vw,34px); }
.archive-desc { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 6px; }

/* ══════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════ */
.entry-header { margin-bottom: var(--sp6); }
.entry-title { font-size: clamp(20px,3.5vw,32px); line-height: 1.22; margin-bottom: var(--sp4); }
.entry-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp4);
  font-size: 13px; color: var(--text-lt);
  padding: var(--sp4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.entry-meta span { display: flex; align-items: center; gap: 5px; }
.entry-meta a { color: var(--text-md); }
.entry-meta a:hover { color: var(--black); }
.entry-thumbnail { border-radius: var(--r12); overflow: hidden; margin-bottom: var(--sp6); border: 1px solid var(--border); }
.entry-content { font-size: 15px; line-height: 1.78; }
.entry-content h2,.entry-content h3,.entry-content h4 { margin: 28px 0 12px; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.entry-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.entry-content table { width:100%; border-collapse:collapse; margin:20px 0; font-size:14px; }
.entry-content th,.entry-content td { padding:10px 14px; border:1px solid var(--border); }
.entry-content th { background: var(--gray-50); font-weight: 600; }
.entry-content blockquote { border-left: 4px solid var(--black); background: var(--gray-50); padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--r8) var(--r8) 0; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content img { border-radius: var(--r8); }
.deal-cta-box {
  background: var(--gray-50); border: 2px solid var(--border); border-radius: var(--r16);
  padding: var(--sp8); margin: var(--sp6) 0; text-align: center;
}
.deal-store-name { font-size: 13px; font-weight: 700; color: var(--text-md); margin-bottom: var(--sp2); }
.deal-cta-price { font-size: 36px; font-weight: 800; color: var(--black); }
.deal-cta-original { font-size: 14px; color: var(--text-lt); text-decoration: line-through; }
.deal-cta-badge { display: inline-block; background: var(--green-bg); color: var(--green); padding: 3px 14px; border-radius: var(--r-full); font-weight: 700; font-size: 14px; margin: var(--sp2) 0 var(--sp4); }
.btn-cta-buy { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white); padding: 14px 36px; border-radius: var(--r-full); font-weight: 700; font-size: 16px; transition: all var(--transition); }
.btn-cta-buy:hover { background: var(--red-dark); color: var(--white); transform: scale(1.02); }
.deal-disclaimer { font-size: 11px; color: var(--text-lt); margin-top: var(--sp3); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp4); margin: var(--sp8) 0; padding: var(--sp5) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nav-label { display: block; font-size: 11px; color: var(--text-lt); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.nav-next { text-align: right; }
.post-navigation a { font-size: 13.5px; font-weight: 600; color: var(--text); }
.post-navigation a:hover { color: var(--black); }

/* ══════════════════════════════════════════════
   SIDEBAR & WIDGETS
══════════════════════════════════════════════ */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r12); padding: var(--sp5); margin-bottom: var(--sp5); }
.widget-title { font-size: 14px; font-weight: 700; color: var(--black); padding-bottom: var(--sp3); margin-bottom: var(--sp4); border-bottom: 2px solid var(--black); display: flex; align-items: center; gap: 7px; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-md); }
.widget ul li a:hover { color: var(--black); }
.pp-item { display: flex; gap: var(--sp3); padding: 8px 0; border-bottom: 1px solid var(--border); }
.pp-item:last-child { border-bottom: none; }
.pp-thumb { width: 64px; height: 46px; border-radius: var(--r6); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-title a { color: inherit; }
.pp-title a:hover { color: var(--black); }
.pp-date { font-size: 11px; color: var(--text-lt); margin-top: 3px; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; justify-content: center; margin: var(--sp10) 0; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1.5px solid var(--border); border-radius: var(--r8);
  font-size: 13.5px; font-weight: 500; color: var(--text-md);
  background: var(--white); transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--black); border-color: var(--black); color: var(--white); }
.pagination .prev,.pagination .next { padding: 0 16px; font-size: 13px; }

/* ══════════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════════ */
.comments-area { margin-top: var(--sp10); padding-top: var(--sp8); border-top: 2px solid var(--border); }
.comments-title { font-size: 20px; margin-bottom: var(--sp6); }
.comment { padding: var(--sp5) 0; border-bottom: 1px solid var(--border); }
.comment .children { padding-left: var(--sp10); }
.comment-meta { display: flex; align-items: center; gap: var(--sp3); margin-bottom: var(--sp2); }
.comment-author-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-author-name { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-lt); }
.comment-content { font-size: 14px; line-height: 1.7; }
.reply a { font-size: 12px; color: var(--black); font-weight: 600; }
.comment-reply-title { font-size: 18px; margin-bottom: var(--sp5); }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-md); }
.comment-form input,.comment-form textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r8);
  padding: 10px 14px; font-size: 14px; margin-bottom: var(--sp4);
  transition: border-color var(--transition); background: var(--gray-50);
}
.comment-form input:focus,.comment-form textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit { background: var(--black); color: var(--white); border: none; padding: 11px 28px; border-radius: var(--r-full); font-weight: 700; font-size: 14px; cursor: pointer; transition: background var(--transition); }
.comment-form .submit:hover { background: var(--red); }

/* ══════════════════════════════════════════════
   BUTTONS GLOBAL
══════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(238,0,0,.3); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }

/* ══════════════════════════════════════════════
   404 & SEARCH
══════════════════════════════════════════════ */
.error-404 { text-align: center; padding: var(--sp16) 0; }
.error-code { font-size: 120px; font-weight: 900; color: var(--black); opacity: .06; line-height: 1; }
.error-404 h1 { font-size: 28px; margin: -40px 0 var(--sp3); position: relative; }
.no-results { text-align: center; padding: var(--sp16) 0; }

/* ══════════════════════════════════════════════
   STORES PAGE
══════════════════════════════════════════════ */
.all-stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: var(--sp4); }
.store-page-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r12); padding: var(--sp5) var(--sp4); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp2);
  transition: all var(--transition); cursor: pointer; box-shadow: var(--shadow-card);
}
.store-page-card:hover { border-color: var(--black); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.store-page-card img { width: 64px; height: 42px; object-fit: contain; border-radius: var(--r4); }
.store-page-card-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.store-page-card-offer { font-size: 11px; color: var(--red); font-weight: 600; }
.btn-shop-now { font-size: 11px; background: var(--black); color: var(--white); padding: 5px 14px; border-radius: var(--r-full); font-weight: 700; margin-top: 4px; transition: all var(--transition); display: inline-block; }
.btn-shop-now:hover { background: var(--red); color: var(--white); }

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp12); padding: var(--sp12) 0; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-md); }
.contact-form input,.contact-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--r8); padding: 11px 16px; font-size: 14px; margin-bottom: var(--sp4); background: var(--gray-50); transition: border-color var(--transition); }
.contact-form input:focus,.contact-form textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
.contact-form textarea { height: 140px; resize: vertical; }
.btn-send { width: 100%; background: var(--black); color: var(--white); border: none; padding: 13px; border-radius: var(--r8); font-weight: 700; font-size: 15px; cursor: pointer; transition: background var(--transition); }
.btn-send:hover { background: var(--red); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: var(--black); color: rgba(255,255,255,.55); margin-top: var(--sp16); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp10); padding: var(--sp12) 0 var(--sp8); border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand-name { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: var(--sp4); display: block; letter-spacing: -.3px; }
.footer-logo { height: 42px; width: auto; margin-bottom: var(--sp4); filter: brightness(0) invert(1); }
.footer-about { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.45); margin-bottom: var(--sp5); }
.footer-col-title { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: var(--sp4); padding-bottom: var(--sp3); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links li { margin-bottom: var(--sp2); }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.45); transition: all var(--transition); display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp4); }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  font-size: 14px; transition: all var(--transition); text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
}
.social-btn:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.footer-bottom { padding: var(--sp4) 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp3); font-size: 12.5px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.3); }
.footer-legal-links { display: flex; gap: var(--sp4); flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,.35); }
.footer-legal-links a:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.about-hero { background: var(--black); padding: var(--sp16) 0; text-align: center; }
.about-hero h1 { color: var(--white); font-size: 38px; margin-bottom: var(--sp3); }
.about-hero p { color: rgba(255,255,255,.5); font-size: 16px; max-width: 600px; margin: 0 auto; }
.about-features { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp6); margin: var(--sp10) 0; }
.about-feat { background: var(--white); border: 1px solid var(--border); border-radius: var(--r12); padding: var(--sp8) var(--sp6); text-align: center; transition: all var(--transition); box-shadow: var(--shadow-card); }
.about-feat:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.about-feat-icon { font-size: 40px; margin-bottom: var(--sp4); }
.about-feat h3 { font-size: 16px; margin-bottom: var(--sp2); }
.about-feat p { font-size: 13.5px; color: var(--text-md); margin: 0; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .store-grid-12  { grid-template-columns: repeat(8,1fr); }
  .posts-grid-4   { grid-template-columns: repeat(3,1fr); }
  .footer-top     { grid-template-columns: 1fr 1fr; gap: var(--sp8); }
  .hero-inner     { gap: var(--sp8); }
}
@media (max-width: 1024px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .hero-visual         { display: none; }
  .posts-grid-4        { grid-template-columns: repeat(2,1fr); }
  .store-grid-12       { grid-template-columns: repeat(6,1fr); }
  .about-features      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-content-wrap   { flex-direction: column; }
  .widget-area         { width: 100%; }
  .header-inner        { flex-wrap: wrap; gap: var(--sp3); }
  .header-search       { order: 3; flex-basis: 100%; max-width: 100%; }
  .btn-tg-header       { display: none; }
  .nav-menu            { display: none; flex-direction: column; background: var(--gray-900); }
  .nav-menu.is-open    { display: flex; }
  .nav-menu > li > a::after { display: none; }
  .nav-menu > li > a   { border-bottom: 1px solid rgba(255,255,255,.06); }
  .sub-menu            { position: static; display: none; box-shadow: none; border: none; background: rgba(0,0,0,.2); border-radius: 0; padding: 0; }
  .nav-menu li.is-open > .sub-menu { display: block; }
  .menu-toggle         { display: block; }
  .posts-grid-4,.posts-grid-3 { grid-template-columns: repeat(2,1fr); }
  .store-grid-12       { grid-template-columns: repeat(4,1fr); }
  .footer-top          { grid-template-columns: 1fr; gap: var(--sp6); }
  .contact-grid        { grid-template-columns: 1fr; }
  .about-features      { grid-template-columns: 1fr; }
  .post-navigation     { grid-template-columns: 1fr; }
  .nav-next            { text-align: left; }
  .coupon-card         { flex-direction: column; }
  .coupon-card-store   { width: 100%; min-height: auto; flex-direction: row; border-right: none; border-bottom: 1px dashed var(--border); }
  .coupon-card-action  { border-left: none; border-top: 1px solid var(--border); justify-content: flex-start; }
  .hero-stats          { gap: var(--sp4); }
}
@media (max-width: 480px) {
  .posts-grid-4,.posts-grid-3 { grid-template-columns: 1fr; }
  .store-grid-12 { grid-template-columns: repeat(3,1fr); }
  .top-bar-right { display: none; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .container     { padding: 0 16px; }
}
@media print {
  .site-header,.main-navigation,.store-section,.telegram-banner,.site-footer,.widget-area { display: none; }
  .site-content-wrap { display: block; }
}
