/* ============================================================
   ROCK N' POTATO — Main Stylesheet
   Palette: Coal Black, Ember Orange, Cream, Asphalt Grey
   Fonts: Bebas Neue (display), Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Permanent+Marker&display=swap');

/* ── CSS Variables ── */
:root {
  --coal: #1a1a1a;
  --ember: #ffde00;
  --ember-dark: #ccb200;
  --ember-glow: rgba(255, 222, 0, 0.15);
  --cream: #f5f0e8;
  --cream-dark: #ede5d4;
  --asphalt: #2e2e2e;
  --asphalt-light: #3d3d3d;
  --text-light: #c8c0b0;
  --white: #ffffff;
  --success: #4caf50;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(255, 222, 0, 0.25);
  --transition: all 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--coal);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; line-height: 1; }
.marker  { font-family: 'Permanent Marker', cursive; }

h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: 0.02em; line-height: 1; }
h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.03em; }
h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.04em; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-primary {
  background: var(--ember);
  color: var(--coal);
}
.btn-primary:hover {
  background: var(--ember-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  border: 2px solid var(--ember);
  color: var(--ember);
}
.btn-outline:hover {
  background: var(--ember);
  color: var(--coal);
  transform: translateY(-2px);
}
.btn-cream {
  background: var(--cream);
  color: var(--coal);
}
.btn-cream:hover {
  background: var(--cream-dark);
  transform: translateY(-2px);
}

/* ── Ember Accent / Badge ── */
.badge {
  display: inline-block;
  background: var(--ember);
  color: var(--coal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--ember);
  color: var(--ember);
}

/* ── Section Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { margin-bottom: 48px; }
.section-title .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 8px;
}
.section-title h2 { color: var(--cream); }
.section-title p  { margin-top: 12px; max-width: 500px; }

/* ── Divider ── */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--ember) 0%, transparent 80%);
  border: none;
  margin: 0;
}

/* ── Flame Decoration ── */
.flame-accent {
  display: inline-block;
  color: var(--ember);
  margin: 0 4px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 222, 0, 0.15);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.1;
}
.nav-logo-text span { color: var(--ember); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--ember);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cream);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 16px; padding: 10px 22px !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}

/* ── FOOTER ── */
footer {
  background: #111;
  border-top: 1px solid rgba(255, 222, 0, 0.2);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { margin-top: 12px; font-size: 0.85rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-contact p, .footer-contact a {
  font-size: 0.88rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--ember); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(200,192,176,0.4);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  border-color: var(--ember);
  color: var(--ember);
}

/* ── TOAST NOTIFICATION ── */
#toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--asphalt);
  border-left: 4px solid var(--ember);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translateY(0); }

/* ── CART SYSTEM UI ── */
#floating-cart-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--ember);
  color: var(--coal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 900;
  transition: var(--transition);
}
#floating-cart-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-hover);
}
#cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4747;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--coal);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--coal);
  border-left: 1px solid rgba(255, 222, 0, 0.15);
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open {
  right: 0;
}
.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 222, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--cream);
}
#close-cart-btn {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
}
#close-cart-btn:hover {
  color: var(--ember);
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  background: var(--asphalt);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-info h4 {
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cart-item-price {
  color: var(--ember);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.2);
  padding: 6px 12px;
  border-radius: 20px;
}
.cart-item-controls button {
  color: var(--text-light);
  font-size: 0.8rem;
}
.cart-item-controls button:hover {
  color: var(--ember);
}
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  margin: auto 0;
}
.cart-footer {
  padding: 24px;
  background: var(--asphalt);
  border-top: 1px solid rgba(255, 222, 0, 0.1);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}
#cart-subtotal {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--ember);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── CHECKOUT MODAL ── */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.checkout-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal-inner {
  background: var(--asphalt);
  border: 1px solid rgba(255, 222, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.checkout-modal.open .checkout-modal-inner {
  transform: translateY(0);
}
.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
}
.close-modal-btn:hover {
  color: var(--ember);
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-light);
}
.form-group input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(0,0,0,0.4);
}

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(255, 222, 0,0.15);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── STORIES TICKER BAR ── */
#stories-bar {
  background: var(--ember);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 999;
  margin-top: 68px;
}
.stories-track {
  display: flex;
  gap: 64px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.stories-track span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coal);
  flex-shrink: 0;
}
.stories-track span::before {
  content: 'LATEST •';
  margin-right: 8px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--coal) 60%, rgba(255, 222, 0,0.05) 100%);
  border-bottom: 1px solid rgba(255, 222, 0,0.15);
  text-align: center;
}
.page-hero h1 { margin: 8px 0 16px; }
.page-hero p { margin: 0 auto; max-width: 540px; font-size: 1rem; }

/* ── Utility ── */
.text-ember { color: var(--ember); }
.text-cream  { color: var(--cream); }
.text-muted  { color: var(--text-light); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.gap-row { display: flex; flex-wrap: wrap; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }