/* ============================================
   CAZACHOLLOS – MAIN STYLESHEET
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-light: #fed7aa;
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --bg4: #2e2e2e;
  --border: #333;
  --text: #f0f0f0;
  --text2: #a0a0a0;
  --text3: #666;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-hover: 0 8px 40px rgba(249,115,22,.2);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.logo {
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--brand); }

.nav-cats {
  display: flex; gap: 2px;
  overflow-x: auto; flex: 1;
  scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat {
  text-decoration: none; white-space: nowrap;
  padding: 6px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
  cursor: pointer;
}
.nav-cat:hover, .nav-cat.active {
  background: var(--brand); color: #fff;
}

.header-actions {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.search-wrap {
  position: relative;
}
.search-input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 24px; padding: 8px 16px 8px 38px;
  color: var(--text); font-size: 13px;
  width: 200px; outline: none;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--brand); width: 260px;
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); font-size: 14px;
  pointer-events: none;
}
.newsletter-btn {
  background: var(--brand); color: #fff;
  border: none; border-radius: 24px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: var(--transition);
}
.newsletter-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a0a00 0%, #0f0f0f 50%, #0a0a1a 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(249,115,22,.12), transparent);
  pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.3);
  color: var(--brand); border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -1px;
}
.highlight { color: var(--brand); }
.hero-sub {
  font-size: 1.1rem; color: var(--text2);
  margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--brand); }
.stat span { font-size: 13px; color: var(--text2); }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* ── FILTERS BAR ── */
.filters-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 90;
}
.filters-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.filters-label { font-size: 13px; color: var(--text2); font-weight: 500; white-space: nowrap; }
.sort-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.sort-btn:hover { border-color: var(--brand); color: var(--brand); }
.sort-btn.active {
  background: var(--brand); border-color: var(--brand);
  color: #fff;
}
.filter-discount {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text2);
  margin-left: auto;
}
.filter-discount input[type=range] {
  width: 120px; accent-color: var(--brand);
}
.results-count {
  font-size: 13px; color: var(--text3); white-space: nowrap;
}
.results-count span { color: var(--brand); font-weight: 700; }

/* ── SECTIONS ── */
.section { padding: 48px 0; }
.section-alt { background: var(--bg2); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--text2); }

/* ── DEALS GRID ── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ── DEAL CARD ── */
.deal-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
}
.deal-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.deal-card.featured-card {
  border-color: rgba(249,115,22,.4);
}
.deal-card.featured-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,.05), transparent);
  pointer-events: none;
}

.card-img-wrap {
  position: relative; background: #fff;
  padding: 20px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-img {
  max-width: 100%; max-height: 180px;
  object-fit: contain;
  transition: var(--transition);
}
.deal-card:hover .card-img { transform: scale(1.05); }

.discount-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  border-radius: 6px; padding: 4px 10px;
  font-size: 15px; font-weight: 800;
  line-height: 1;
}
.featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--brand); color: #fff;
  border-radius: 6px; padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.time-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.7); color: var(--yellow);
  border-radius: 6px; padding: 3px 8px;
  font-size: 11px; font-weight: 600;
}

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.card-cat {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand);
}
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text2);
}
.stars { color: var(--yellow); letter-spacing: 1px; }

.card-price-wrap {
  display: flex; align-items: flex-end; gap: 10px;
  margin-top: auto;
}
.card-price {
  font-size: 1.5rem; font-weight: 900;
  color: var(--green);
}
.card-original {
  font-size: 13px; color: var(--text3);
  text-decoration: line-through;
}
.card-saving {
  font-size: 12px; color: var(--green);
  font-weight: 600;
}

.card-btn {
  display: block; width: 100%;
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 12px; font-size: 14px; font-weight: 700;
  text-align: center; text-decoration: none;
  cursor: pointer; transition: var(--transition);
  margin-top: 8px;
}
.card-btn:hover { background: var(--brand-dark); }

/* ── NO RESULTS ── */
.no-results {
  text-align: center; padding: 64px;
  color: var(--text2);
}
.no-results span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, #1a0e00, #0f0f0f, #000a1a);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 30% 50%, rgba(249,115,22,.08), transparent);
  pointer-events: none;
}
.newsletter-card {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative;
}
.nl-badge {
  display: inline-block;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--brand); border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.newsletter-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 16px;
}
.newsletter-left p { color: var(--text2); margin-bottom: 24px; }
.nl-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nl-perks li { font-size: 14px; color: var(--text); }

.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.nl-input {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--text); font-size: 15px; outline: none;
  transition: var(--transition);
}
.nl-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.nl-submit {
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 16px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  letter-spacing: -.2px;
}
.nl-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nl-legal { font-size: 12px; color: var(--text3); }

.nl-success {
  text-align: center; padding: 32px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius);
}
.nl-success-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.nl-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.nl-success p { color: var(--text2); font-size: 14px; }

.nl-social-proof {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; font-size: 13px; color: var(--text2);
}
.nl-avatars { display: flex; }
.nl-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  border: 2px solid var(--bg);
  margin-left: -6px;
}
.nl-avatars .nl-avatar:first-child { margin-left: 0; }
.nl-social-proof strong { color: var(--text); }

/* ── FOOTER ── */
.footer { background: #080808; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand .logo-footer { font-size: 1.2rem; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 13px; color: var(--text2); max-width: 300px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13px; color: var(--text2); transition: var(--transition); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--text3); }
.update-info { color: var(--text2) !important; font-weight: 500; }
.update-info span { color: var(--brand); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .newsletter-card { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .nav-cats { display: none; }
  .search-input { width: 160px; }
  .search-input:focus { width: 180px; }
  .hero { padding: 40px 16px; }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 1.5rem; }
  .filters-inner { flex-wrap: wrap; gap: 10px; }
  .sort-btns { gap: 4px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .deals-grid, .featured-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .newsletter-btn span { display: none; }
  .deals-grid, .featured-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px; }
  .card-price { font-size: 1.2rem; }
}
