/* ============================================
   WinDeals - Premium White + Blue Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Satoshi:wght@300;400;500;700&display=swap');

:root {
  --primary: #1a56e8;
  --primary-dark: #1240b8;
  --primary-light: #e8eeff;
  --accent: #f04e23;
  --accent-light: #fff2ee;
  --gold: #f5a623;
  --white: #ffffff;
  --gray-50: #f8fafd;
  --gray-100: #f1f4f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #374151;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(26,86,232,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(26,86,232,.14), 0 4px 16px rgba(0,0,0,.08);
  --shadow-xl: 0 24px 60px rgba(26,86,232,.18), 0 8px 24px rgba(0,0,0,.1);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 68px;
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Utility ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(26,86,232,.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.header-logo span { color: var(--accent); }
.header-logo img { height: 40px; width: auto; }

.header-nav { display: flex; gap: 4px; align-items: center; }

.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.header-nav a:hover { background: var(--primary-light); color: var(--primary); }
.header-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: var(--transition);
  font-size: 1rem;
}

.btn-icon:hover { background: var(--primary-light); color: var(--primary); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Mobile Sidebar ---- */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1500;
  opacity: 0;
  transition: opacity .3s;
}

.sidebar-overlay.open { display: block; opacity: 1; }

.mobile-sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px; height: 100%;
  background: var(--white);
  z-index: 1600;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.open { left: 0; }

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
  font-size: 1.1rem;
  cursor: pointer;
}

.sidebar-nav {
  padding: 16px;
  flex: 1;
}

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-nav a:hover { background: var(--primary-light); color: var(--primary); }

.sidebar-categories { padding: 0 16px 16px; }
.sidebar-categories h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 8px 0 4px 4px;
  margin-bottom: 4px;
}

/* ---- Hero Slider ---- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  height: 480px;
}

@media (max-width: 768px) { .hero-slider { height: 320px; } }

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1a56e8 100%);
}

.slide-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .4;
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  max-width: 700px;
}

@media (max-width: 768px) { .slide-content { padding: 0 24px; } }

.slide-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.slide-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
  max-width: 480px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.slide-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active { background: #fff; width: 24px; border-radius: 4px; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover { background: rgba(255,255,255,.3); }
.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }

/* ---- Section Heading ---- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 4px; height: 28px;
  background: var(--primary);
  border-radius: 2px;
  order: -1;
}

.see-all-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}

.see-all-link:hover { gap: 8px; }

/* ---- Product Grid ---- */
.section { padding: 64px 0; }
.section:nth-child(even) { background: var(--gray-50); }

.products-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .9rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,232,.1); }

.search-box button {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  transition: var(--transition);
}

.search-box button:hover { color: var(--primary); }

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ---- Product Card ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
}

.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .card-image-wrap img { transform: scale(1.06); }

.discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .03em;
}

.hot-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #f59e0b, #f04e23);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
}

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

.card-source {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.price-sell {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-regular {
  font-size: .85rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.card-actions { display: flex; gap: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: .85rem;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  flex: 1;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover { background: var(--primary-light); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d83d15; transform: translateY(-1px); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  border: 1.5px solid var(--border);
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Product Detail ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Gallery */
.product-gallery {}

.main-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--gray-50);
  margin-bottom: 16px;
  cursor: zoom-in;
  position: relative;
}

.main-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info-panel {}

.product-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.product-source {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.product-source strong { color: var(--gray-700); }

.price-block {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.price-was { font-size: 1rem; color: var(--gray-500); text-decoration: line-through; margin-left: 8px; }

.price-save {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* Countdown */
.countdown-wrap {
  background: linear-gradient(135deg, var(--gray-900), #1e3a8a);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
}

.countdown-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-timer {
  display: flex;
  gap: 12px;
}

.countdown-unit {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 8px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.countdown-word {
  font-size: .65rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

.countdown-expired {
  text-align: center;
  opacity: .7;
  font-size: .9rem;
}

/* Buy Buttons */
.product-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.product-actions .btn { flex: 1; }

/* Short description */
.short-desc {
  
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 20px;
}

/* Full description */
.full-desc {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}


/* Related Products Slider */
.related-slider-wrap { overflow: hidden; }

.related-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.related-slider::-webkit-scrollbar { display: none; }
.related-slider .product-card { flex: 0 0 240px; scroll-snap-align: start; }

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ---- About / Static Pages ---- */
.page-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.page-hero-sub { font-size: 1.1rem; opacity: .8; position: relative; }

.page-content { max-width: 860px; margin: 64px auto; padding: 0 20px; }
.page-content h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gray-900); margin: 32px 0 14px; }
.page-content p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.8; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 8px; color: var(--gray-700); }

/* About feature grid */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 40px 0; }
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.about-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.about-card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.about-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.about-card p { font-size: .875rem; color: var(--gray-600); }

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span { color: var(--accent); }
.footer-desc { font-size: .875rem; line-height: 1.7; opacity: .7; margin-bottom: 20px; max-width: 280px; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .875rem; opacity: .7; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .875rem;
  opacity: .7;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Toast / Alert ---- */
.flash-message {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: .9rem;
  font-weight: 500;
  animation: slideIn .3s ease;
  max-width: 360px;
}

.flash-message.success { border-color: #22c55e; }
.flash-message.error { border-color: var(--accent); }

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- Empty / Loading States ---- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }

.loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.skeleton { background: var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-img { aspect-ratio: 1; background: var(--gray-200); animation: pulse 1.5s infinite; }
.skeleton-body { padding: 16px; }
.skeleton-line { height: 14px; background: var(--gray-200); border-radius: 4px; margin-bottom: 10px; animation: pulse 1.5s infinite; }
.skeleton-line.short { width: 60%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ---- No-image placeholder ---- */
.no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Always 2 cards per row on tablets & mobiles */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .product-actions {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Compact card layout */
  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .price-sell {
    font-size: 1rem;
  }

  .price-regular {
    font-size: 0.75rem;
  }

  .btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .discount-badge,
  .hot-badge {
    font-size: 0.65rem;
    padding: 3px 7px;
  }
}


  /* Responsive */

@media (max-width: 480px) {
  /* Keep 2 cards even on very small screens */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .price-sell {
    font-size: 0.95rem;
  }

  .price-regular {
    font-size: 0.7rem;
  }

  .card-source {
    font-size: 0.65rem;
  }

  .btn {
    padding: 7px 8px;
    font-size: 0.75rem;
  }

  .countdown-timer {
    gap: 8px;
  }

  .countdown-num {
    font-size: 1.4rem;
  }
}


