/* ═══════════════════════════════════════════════
   GOD'S TREAT — Shared Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg:       #080810;
  --bg2:      #0f0f1a;
  --bg3:      #13131f;
  --orange:   #ff6b1a;
  --orange2:  #ff9a3c;
  --gold:     #ffc547;
  --purple:   #7c3aed;
  --pink:     #f72585;
  --green:    #06d6a0;
  --blue:     #3b82f6;
  --white:    #f5f5f5;
  --muted:    #a0a0b8;
  --card:     rgba(255,255,255,0.04);
  --card2:    rgba(255,255,255,0.06);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.12);
  --glow-o:   rgba(255,107,26,0.35);
  --glow-p:   rgba(124,58,237,0.3);
  --radius:   20px;
  --radius-sm:12px;
  --radius-xs:8px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

/* ── CURSOR ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--orange); border-radius: 50%;
  position: fixed; z-index: 9999; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,107,26,.5); border-radius: 50%;
  position: fixed; z-index: 9998; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: all .12s ease-out;
}

/* ── NOISE ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4; pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,16,0.75);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: 10px 5%; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img {
  height: 52px; width: auto;
  object-fit: contain;
  filter: invert(1);
}
.nav-logo span {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .05em;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-center { display: flex; gap: 32px; list-style: none; }
.nav-center a {
  color: var(--muted); text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  transition: color .2s; position: relative;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-center a:hover, .nav-center a.active { color: var(--white); }
.nav-center a:hover::after, .nav-center a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-icon-btn {
  position: relative; width: 40px; height: 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; text-decoration: none; color: var(--white);
  transition: border-color .2s, background .2s;
}
.nav-icon-btn:hover { border-color: var(--orange); background: rgba(255,107,26,.08); }
.nav-badge {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; background: var(--orange);
  border-radius: 50%; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border: 2px solid var(--bg);
}

.btn-nav {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff; text-decoration: none;
  padding: 9px 22px; border-radius: 50px;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  box-shadow: 0 0 20px rgba(255,107,26,.25);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer; font-family: 'Space Grotesk', sans-serif;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(255,107,26,.5); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff; text-decoration: none; border: none;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  box-shadow: 0 0 30px var(--glow-o);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer; font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(255,107,26,.6); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--border2);
  color: var(--white); text-decoration: none;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  transition: border-color .25s, background .25s, transform .25s;
  cursor: pointer; font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover { border-color: var(--orange); background: rgba(255,107,26,.08); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Space Grotesk', sans-serif; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,.12); }
.form-input::placeholder { color: rgba(160,160,184,.5); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .3s;
}
.card:hover { border-color: var(--border2); }

/* ── SECTION BASE ── */
.page-wrap { padding-top: 80px; min-height: 100vh; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--orange); }

.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── BADGE ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge-orange { background: var(--orange); color: #fff; }
.badge-green  { background: rgba(6,214,160,.15); color: var(--green); border: 1px solid rgba(6,214,160,.3); }
.badge-purple { background: rgba(124,58,237,.15); color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }
.badge-pink   { background: var(--pink); color: #fff; }
.badge-gold   { background: rgba(255,197,71,.15); color: var(--gold); border: 1px solid rgba(255,197,71,.3); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 60px 5% 50px;
  background: linear-gradient(180deg, rgba(255,107,26,.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,26,.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1; letter-spacing: .02em; margin-bottom: 8px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 60px 5% 28px; position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 40px; margin-bottom: 44px;
}
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.footer-logo-img {
  height: auto; width: 170px;
  filter: invert(1);
  margin-bottom: 16px;
  display: block;
}
.footer-brand p { font-size: .875rem; color: var(--muted); line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center;
  font-size: .95rem; text-decoration: none; color: var(--white);
  transition: border-color .2s, transform .2s, background .2s;
}
.social-link:hover { border-color: var(--orange); background: rgba(255,107,26,.1); transform: translateY(-3px); }
.footer-col h4 {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.footer-bottom span { color: var(--orange); }

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: rgba(10,10,20,.97); backdrop-filter: blur(24px);
  border-left: 1px solid var(--border); z-index: 2000;
  padding: 72px 28px 40px;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: 24px; }
.mobile-nav a { color: var(--white); text-decoration: none; font-size: 1.25rem; font-weight: 600; transition: color .2s; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; color: var(--white);
}
.nav-overlay { display: none; position: fixed; inset: 0; z-index: 1999; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.nav-overlay.open { display: block; }

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 9990; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity .5s, visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: loaderPulse 1s ease infinite alternate;
}
.loader-logo-img {
  height: auto; width: 200px; max-width: 60vw;
  filter: invert(1);
  animation: loaderPulse 1s ease infinite alternate;
}
@keyframes loaderPulse { from { opacity: .4; } to { opacity: 1; } }
.loader-bar-wrap { width: 180px; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 2px; animation: loadBar 1.2s ease forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9000;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; font-weight: 500;
  transform: translateX(120%); transition: transform .35s cubic-bezier(.2,.8,.3,1);
  backdrop-filter: blur(20px); min-width: 260px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── PRODUCT CARDS ── */
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s, border-color .35s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 32px 64px rgba(0,0,0,.35), 0 0 32px var(--glow-o); border-color: rgba(255,107,26,.3); }
.product-img-wrap { position: relative; background: linear-gradient(135deg, rgba(255,107,26,.05), rgba(124,58,237,.04)); height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-wrap img { max-width: 98%; max-height: 272px; object-fit: contain; transition: transform .4s cubic-bezier(.2,.8,.3,1); filter: drop-shadow(0 14px 28px rgba(255,107,26,.25)); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product-card:hover .product-img-wrap img { transform: scale(1.1) translateY(-6px); }
.prod-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; }
.prod-wish { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all .2s; }
.prod-wish.liked { color: var(--pink); border-color: var(--pink); background: rgba(247,37,133,.12); }
.prod-wish:hover { transform: scale(1.15); border-color: var(--pink); }
.product-info { padding: 18px 20px 20px; }
.prod-cat { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.prod-name { font-size: .95rem; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.prod-name a { color: var(--white); text-decoration: none; }
.prod-name a:hover { color: var(--orange); }
.prod-weight { font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.prod-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.stars { color: var(--gold); font-size: .8rem; }
.rating-n { font-size: .73rem; color: var(--muted); }
.prod-pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.price-cur { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--white); line-height: 1; }
.price-old { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .68rem; font-weight: 700; background: rgba(6,214,160,.12); color: var(--green); padding: 2px 7px; border-radius: 50px; }
.btn-add { width: 100%; padding: 11px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .05em; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; font-family: 'Space Grotesk', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(255,107,26,.4); }
.btn-add.added { background: linear-gradient(135deg, var(--green), #00b4d8); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
