/* ============================================================
   Imagine Karo — Ultra Minimalist Premium Theme
   Design Concept: Apple-like Clean UI with specific Logo Accents
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* User Logo Colors */
  --brand: #fe8c01;       /* Logo Orange */
  --brand-dark: #d67600;
  --brand-light: #fff5e6;
  --accent: #d82f2a;      /* Logo Red */
  --cyan: #08979f;        /* Logo Teal */
  
  /* Core UI Colors - Strictly Neutral */
  --bg-body: #f8fafc;     /* Clean slate-white */
  --bg-card: #ffffff;     /* Pure white cards */
  --text-main: #0f172a;   /* Slate 900 */
  --text-muted: #64748b;  /* Slate 500 */
  --border: rgba(0,0,0,0.05);
  --border-strong: rgba(0,0,0,0.1);
  
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Refined, completely neutral shadows. NO MUDDY COLORED GLOWS */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.08);
  
  --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  /* REMOVED ALL RADIAL GRADIENTS. Pure, clean background. */
  background-image: none;
  min-height: 100vh;
  font-family: 'Outfit', -apple-system, sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Poppins', -apple-system, sans-serif;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- Clean Cards (Replaces heavy Glassmorphism) ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.glass-card-strong {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* ---- Buttons (Solid, Flat, Minimal) ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
  /* Removed the colored box-shadow to keep it clean */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-accent:hover {
  transform: translateY(-2px);
  background: #b91c1c;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ---- Product Card ---- */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
/* Removed the noisy animated gradient border hover effect completely */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.product-card .product-image-wrapper {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f8fafc;
  margin: 0; /* Flush to edges for a cleaner look */
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 1px solid var(--border);
}
.product-card .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}
.product-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px; /* Squarer, cleaner badges */
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-brand { background: var(--brand-light); color: var(--brand-dark); border: none; }
.badge-accent { background: #fef2f2; color: var(--accent); border: none; }
.badge-hot { background: var(--accent); color: white; border: none; }
.badge-cyan { background: #f0fdfa; color: var(--cyan); border: none; }

.discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--text-main); /* Black badges are extremely premium/Apple style */
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  z-index: 20;
}

/* ---- Section Headings ---- */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem); /* Slightly smaller, more refined */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-main);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ---- Dynamic Banners (Removed Gradients) ---- */
.banner-gradient-glow {
  /* Replaced ugly gradient with solid slate for contrast */
  background: var(--text-main);
  color: white;
}
.banner-split {
  background: white;
  border: 1px solid var(--border);
}
.banner-glass {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.text-outline {
  color: var(--text-main); /* Removed text-stroke as it looks cheap */
}

/* ---- Footer ---- */
.footer-compact {
  padding-top: 4rem;
  padding-bottom: 2rem;
  background: white;
  border-top: 1px solid var(--border);
}
.footer-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--text-main); /* Black hover is cleaner than colored */
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  color: var(--text-muted);
  transition: var(--transition);
  border: 1px solid transparent;
}
.social-icon:hover {
  background: var(--text-main);
  color: white;
}

/* ---- Hero Section & Marquee ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 1rem 4rem;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Deal Category Cards ---- */
.deal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

/* ---- Skeleton & Loader ---- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
  border-radius: 0;
}
@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  will-change: transform, opacity;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--text-main);
  color: white;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}
.cta-banner .section-title { color: white; }

/* ---- Misc Utilities ---- */
mark { background: var(--brand-light); color: var(--brand-dark); border-radius: 2px; padding: 0 4px; font-weight: 600; }

.gradient-text {
  /* Removed gradient text completely. Pure slate text is more elegant. */
  color: var(--text-main);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
}

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* ---- Filter Pills ---- */
.filter-pill {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: white;
}

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--text-main);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Admin Styles ---- */
.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  min-height: 100vh;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  transition: var(--transition);
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: #f1f5f9;
  color: var(--text-main);
}
.admin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.form-input, .form-select {
  width: 100%;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* ============================================================
   Affiliate CTA Strip 
   ============================================================ */
.affiliate-cta-strip {
  /* Minimal solid black banner, vastly superior to aggressive gradients */
  background: var(--text-main);
  padding: 0.75rem 0;
  box-shadow: none;
}

.affiliate-cta-strip-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
}

.affiliate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.affiliate-cta-btn:hover {
  background: var(--bg-body);
}

.cta-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e; /* Green for "Live/Active" */
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
}

.card-affiliate-hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.product-detail-affiliate-hint {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--text-main);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}
