/* ═══════════════════════════════════════════════════════════
   24By7Snacks — Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #141414;
  --bg-tertiary:   #1E1E1E;
  --cream:         #F5F0E8;
  --yellow:        #FFD600;
  --orange:        #FF6B2B;
  --red:           #E63329;
  --deep-brown:    #2C1810;
  --white:         #FFFFFF;
  --green:         #16A34A;
  --purple:        #7C3AED;
  --cyan:          #0891B2;
  --amber:         #D97706;

  /* ── Typography Tokens ── */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-hand:    'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
  --container-max: 1200px;

  /* Borders */
  --radius-card: 24px;
  --radius-pill: 100px;
  --radius-sm:   12px;
  --border-thick: 3px solid #0A0A0A;

  /* Shadows (Neo-Brutalist) */
  --shadow-card:  6px 6px 0px rgba(0,0,0,1);
  --shadow-hover: 10px 10px 0px rgba(0,0,0,1);
  --shadow-yellow: 6px 6px 0px rgba(255,214,0,1);
  --shadow-orange: 6px 6px 0px rgba(255,107,43,1);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s;
  --t-mid:  0.35s;
  --t-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Custom Scrollbar (hidden) ─────────────────────────── */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
html {
  scrollbar-width: none; /* Firefox */
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-fast) var(--ease-smooth);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font-body);
  outline: none;
}

/* ── Utility Classes ───────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  width: 100%;
}

.section-pad {
  padding: var(--section-pad);
}

.text-center { text-align: center; }
.text-yellow { color: var(--yellow); }
.text-orange { color: var(--orange); }
.text-cream  { color: var(--cream); }

.font-display { font-family: var(--font-display); }
.font-hand    { font-family: var(--font-hand); }

/* ── Section Tag (Permanent Marker) ───────────────────── */
.section-tag {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  color: var(--white);
  line-height: 1.05;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* ── Sticker Badge ─────────────────────────────────────── */
.sticker {
  display: inline-block;
  background: var(--yellow);
  color: #0A0A0A;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  transform: rotate(-2deg);
  border: var(--border-thick);
  box-shadow: 4px 4px 0px #0A0A0A;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-spring);
  cursor: pointer;
  border: var(--border-thick);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--yellow);
  color: #0A0A0A;
  box-shadow: 4px 4px 0px #0A0A0A;
}
.btn-primary:hover {
  transform: translateY(-4px) translateX(-2px);
  box-shadow: 8px 8px 0px #0A0A0A;
}

.btn-ghost {
  background: var(--white);
  color: #0A0A0A;
  box-shadow: 4px 4px 0px #0A0A0A;
}
.btn-ghost:hover {
  transform: translateY(-4px) translateX(-2px);
  box-shadow: 8px 8px 0px #0A0A0A;
}

.btn-dark {
  background: #0A0A0A;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0px rgba(255,255,255,0.4);
}
.btn-dark:hover {
  background: var(--orange);
  color: #0A0A0A;
  border-color: #0A0A0A;
  box-shadow: 6px 6px 0px var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* ── Product Card ──────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-thick);
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-spring);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-8px) translateX(-4px);
  box-shadow: 12px 12px 0px rgba(0,0,0,1);
}

/* ── Breadcrumbs ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .separator { opacity: 0.4; }
.breadcrumb .current { color: rgba(255,255,255,0.7); }

.product-card:hover .card-image-emoji {
  transform: translateY(-6px) scale(1.15);
}

.card-image {
  height: 220px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: var(--border-thick);
}

.card-product-img {
  width: 140px;
  max-height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease-spring);
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(4px 10px 10px rgba(0,0,0,0.15));
}

.product-card:hover .card-product-img {
  transform: translateY(-6px) scale(1.15);
}

.card-image-emoji {
  font-size: 90px;
  transition: transform 0.4s var(--ease-spring);
  animation: float 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  filter: drop-shadow(4px 10px 10px rgba(0,0,0,0.15));
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
  white-space: nowrap;
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0px #0A0A0A;
}

.card-info {
  padding: 20px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #0A0A0A;
  margin-bottom: 6px;
  line-height: 1.1;
}

.card-desc {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
  margin-bottom: 18px;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price-block {
  display: flex;
  flex-direction: column;
}

.card-mrp {
  font-size: 0.8rem;
  color: #888;
  text-decoration: line-through;
  font-weight: 800;
  font-family: var(--font-display);
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #0A0A0A;
  line-height: 1;
  margin-top: 2px;
}

.add-to-cart-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0A0A0A;
  border: 3px solid #0A0A0A;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-spring);
  flex-shrink: 0;
  box-shadow: 3px 3px 0px #0A0A0A;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 5px 5px 0px #0A0A0A;
}

.add-to-cart-btn.success {
  background: var(--green);
  color: white;
}

/* ── Keyframe Animations ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes float-delay-1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes scale-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateY(-80px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes bounce-logo {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

@keyframes gift-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-15px) rotate(5deg); }
}

@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes arc-to-cart {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  50%  { transform: translate(30vw, -30vh) scale(0.8); opacity: 0.8; }
  100% { transform: translate(45vw, -20vh) scale(0.2); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-8px); }
}

@keyframes ticker-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stagger floats (for product cards) ────────────────── */
.float-1 { animation: float 3.0s ease-in-out infinite; }
.float-2 { animation: float 3.4s ease-in-out 0.3s infinite; }
.float-3 { animation: float 2.8s ease-in-out 0.6s infinite; }
.float-4 { animation: float 3.2s ease-in-out 0.9s infinite; }
.float-5 { animation: float 3.6s ease-in-out 0.2s infinite; }
.float-6 { animation: float 2.9s ease-in-out 0.7s infinite; }
.float-7 { animation: float 3.1s ease-in-out 0.4s infinite; }
.float-8 { animation: float 3.5s ease-in-out 1.1s infinite; }

/* ── Grain Texture Overlay ─────────────────────────────── */
.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── Reveal Animations (JS-driven) ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-spring);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Responsive Utilities ──────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Cart Arc Animation Element ────────────────────────── */
.cart-arc-emoji {
  position: fixed;
  font-size: 32px;
  pointer-events: none;
  z-index: 9999;
  animation: none;
}

/* ── Toast Notification ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-secondary);
  border: 1px solid rgba(255,214,0,0.3);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10000;
  transition: transform 0.4s var(--ease-spring);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Pill Tag ──────────────────────────────────────────── */
.pill-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-smooth);
}

.pill-tag:hover,
.pill-tag.active {
  background: rgba(255,214,0,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}




