/* ============================================================
   CRUNCHY CHICKEN — brand system (matches crunchychicken.com.ng)
   Lilita One display · Open Sans body · orange #f47a1f / brown #3c1c10
   ============================================================ */
:root {
  /* Brand (from real site) */
  --orange:        #f47a1f;
  --orange-hover:  #e06a0f;
  --orange-2:      #e86a0f;
  --orange-3:      #d65a0f;
  --dark-brown:    #3c1c10;
  --brown-soft:    #5a3320;
  --yellow:        #fcd34d;   /* yellow-300 accent */
  --cream:         #fff7ee;
  --white:         #ffffff;

  /* aliases used across components */
  --cc-orange:     #f47a1f;
  --cc-orange-deep:#d65a0f;
  --cc-red:        #f47a1f;
  --cc-red-bright: #f47a1f;
  --cc-red-deep:   #d65a0f;
  --cc-gold:       #fcd34d;
  --cc-gold-deep:  #eab308;
  --cc-teal:       #16a34a;       /* success green */
  --cc-teal-deep:  #15803d;
  --cc-cream:      #fff7ee;
  --cc-text:       #3c1c10;
  --cc-text-dim:   #6e4b36;
  --cc-text-mut:   #9b7a66;

  /* Surfaces (light) */
  --cc-bg:        #ffffff;
  --cc-bg-2:      #ffffff;
  --cc-surface:   #ffffff;
  --cc-surface-2: #fff3e7;
  --cc-surface-3: #fde7d2;
  --cc-sunken:    #f6f1ec;
  --cc-line:      #ececec;
  --cc-line-soft: #f3f1ef;
  --cc-overlay:   rgba(40, 20, 10, 0.55);
  --cc-glass:     rgba(255, 255, 255, 0.95);

  /* Type */
  --font-display: "Lilita One", system-ui, sans-serif;
  --font-head:    "Open Sans", system-ui, sans-serif;
  --font-body:    "Open Sans", system-ui, sans-serif;
  --font-accent:  "Barlow Condensed", sans-serif;
  --font-script:  "Caveat", cursive;

  /* Radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* Shadow */
  --sh-card: 0 8px 24px -14px rgba(60,28,16,.28);
  --sh-pop:  0 30px 70px -22px rgba(60,28,16,.40);
  --sh-glow: 0 10px 26px -10px rgba(244,122,31,.5);
  --sh-glow-gold: 0 12px 26px -12px rgba(252,211,77,.6);

  /* Easings (from real site) */
  --ease-crunch:  cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-dramatic:cubic-bezier(0.87, 0, 0.13, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-expo-out:cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark-brown);
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: #fff; }

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: #f1f1f1; }
*::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--orange-hover); }

.cc-app { font-family: var(--font-body); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); letter-spacing: .02em; font-weight: 400; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.accent { font-family: var(--font-accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform .3s var(--ease-smooth), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 16px 40px -12px rgba(244,122,31,.6); }
.btn-white { background: #fff; color: var(--orange); box-shadow: var(--sh-pop); }
.btn-white:hover { background: rgba(255,255,255,.92); }
.btn-gold { background: var(--yellow); color: var(--dark-brown); box-shadow: var(--sh-glow-gold); }
.btn-ghost { background: #fff; color: var(--dark-brown); border: 1.5px solid var(--cc-line); box-shadow: var(--sh-card); }
.btn-ghost:hover { background: var(--cc-surface-2); border-color: rgba(244,122,31,.4); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: var(--orange); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn-block { width: 100%; }

.iconbtn {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: none; color: var(--dark-brown);
  transition: background .25s, transform .12s;
}
.iconbtn:hover { background: #e5e7eb; }
.iconbtn:active { transform: scale(.94); }

/* ===== Tag chips ===== */
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
.tag-HOT { background: var(--orange); color: #fff; }
.tag-POPULAR { background: var(--yellow); color: var(--dark-brown); }
.tag-NEW { background: var(--cc-teal); color: #fff; }

.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); }

/* ===== Product card (light, real photo) ===== */
.pcard {
  position: relative; background: #fff; border: 1px solid var(--cc-line-soft);
  border-radius: var(--r-xl); padding: 0; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--sh-card);
  transition: transform .4s var(--ease-expo-out), box-shadow .4s var(--ease-expo-out);
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -22px rgba(60,28,16,.4); }
.pcard .pc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cc-surface-2); }
.pcard .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-expo-out); display: block; }
.pcard:hover .pc-media img { transform: scale(1.08); }
.pcard .pc-tags { position: absolute; top: 11px; left: 11px; display: flex; gap: 6px; z-index: 2; }
.pcard .pc-fav { position: absolute; top: 11px; right: 11px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px); display: grid; place-items: center; color: #9b7a66; box-shadow: 0 2px 8px -2px rgba(0,0,0,.25); transition: transform .2s var(--ease-crunch), color .2s; }
.pcard .pc-fav:hover { color: var(--orange); transform: scale(1.12); }
.pcard .pc-fav.on { color: var(--orange); }
.pcard .pc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .pc-name { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.05; color: var(--dark-brown); letter-spacing: .01em; }
.pcard .pc-desc { font-size: 13px; line-height: 1.5; color: var(--cc-text-mut); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.pcard .pc-meta { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--cc-text-dim); }
.pcard .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard .pc-price { font-family: var(--font-display); font-size: 24px; color: var(--orange); }
.pcard .pc-price small { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--cc-text-mut);
  display: block; letter-spacing: .03em; text-transform: uppercase; margin-bottom: -2px; }
.addbtn { width: 44px; height: 44px; border-radius: 13px; background: var(--orange);
  color: #fff; display: grid; place-items: center; box-shadow: var(--sh-glow); transition: transform .2s var(--ease-crunch), background .2s; flex: none; }
.addbtn:hover { background: var(--orange-hover); transform: scale(1.08); }
.addbtn:active { transform: scale(.88); }
.addbtn.added { background: var(--cc-teal); }

.spice { display: inline-flex; align-items: center; gap: 3px; color: var(--orange); }
.star { display: inline-flex; align-items: center; gap: 3px; color: #eab308; }

/* ===== misc ===== */
.divider { height: 1px; background: var(--cc-line); }
.glass { background: rgba(255,255,255,.95); backdrop-filter: blur(12px) saturate(1.3); }

/* ===== Animations (from real site) ===== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 20px rgba(244,122,31,.3); } 50% { box-shadow: 0 0 40px rgba(244,122,31,.6); } }
@keyframes slide-up { from { transform: translateY(30px); } to { transform: translateY(0); } }
@keyframes fade-in { from { transform: translateY(10px); } to { transform: translateY(0); } }
@keyframes scale-in { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes ccPop { 0% { transform: scale(.9); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes ccPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(244,122,31,.5); } 50% { box-shadow: 0 0 0 10px rgba(244,122,31,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  .animate-float { animation: float 4s ease-in-out infinite; }
  .animate-float-delayed { animation: float 4s ease-in-out infinite; animation-delay: 2s; }
  .animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
  .animate-slide-up { animation: slide-up .7s var(--ease-expo-out) both; }
  .animate-fade-in { animation: fade-in .6s var(--ease-smooth) both; }
  .animate-scale-in { animation: scale-in .5s var(--ease-crunch) both; }
  .rise { animation: slide-up .6s var(--ease-expo-out) both; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-expo-out), transform .7s var(--ease-expo-out); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
