/* ── Design tokens — Burger Kat Kreations palette ──────────────────────────── */
:root {
  --ea-black:    #4A2E1A;   /* rich burger-bun brown (headings, dark buttons) */
  --ea-charcoal: #5C4433;   /* body text */
  --ea-warm:     #F7941E;   /* primary orange (the logo's signature) */
  --ea-warm-dk:  #E07A10;   /* orange hover */
  --ea-warm-lt:  #FBD38D;   /* toasted-bun gold */
  --ea-cheese:   #FFC83D;   /* cheese yellow accent */
  --ea-tomato:   #E4572E;   /* tomato red (sale) */
  --ea-lettuce:  #7FB539;   /* lettuce green (free / success) */
  --ea-cream:    #FFF6E9;   /* soft cream background */
  --ea-bg:       #FFFFFF;
  --ea-muted:    #A08C74;
  --ea-border:   #F1E4CE;
  --font-serif:  'Fredoka', 'Baloo 2', system-ui, sans-serif;   /* playful display */
  --font-sans:   'Nunito', system-ui, sans-serif;               /* friendly body */
  --radius:      14px;
  --shadow-sm:   0 3px 14px rgba(122,62,29,.08);
  --shadow-md:   0 10px 30px rgba(122,62,29,.14);
  --transition:  0.22s ease;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  color: var(--ea-charcoal);
  background: var(--ea-bg);
  font-size: 15px;
  line-height: 1.65;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 600; color: var(--ea-black); letter-spacing: -.01em; }
a { color: var(--ea-charcoal); text-decoration: none; }
a:hover { color: var(--ea-warm); }
img { max-width: 100%; height: auto; }

/* ── Announcement bar ──────────────────────────────────────────────────────── */
.announcement-bar {
  background: var(--ea-black);
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ea-border);
  z-index: 1030;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--ea-black);
}
.navbar-nav .nav-link {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1.4rem .85rem;
  color: var(--ea-charcoal);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ea-black);
  border-bottom-color: var(--ea-warm);
}
.header-icon {
  color: var(--ea-charcoal);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.header-icon:hover { color: var(--ea-warm); }
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--ea-warm);
  color: #fff;
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--ea-cream);
  padding: 80px 0;
  overflow: hidden;
}
.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
}
.hero-section p { font-size: 1.1rem; color: var(--ea-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-ea {
  background: var(--ea-black);
  color: #fff;
  border: 1.5px solid var(--ea-black);
  border-radius: var(--radius);
  padding: .7rem 2rem;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-ea:hover {
  background: transparent;
  color: var(--ea-black);
}
.btn-ea-outline {
  background: transparent;
  color: var(--ea-black);
  border: 1.5px solid var(--ea-black);
  border-radius: var(--radius);
  padding: .7rem 2rem;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-ea-outline:hover { background: var(--ea-black); color: #fff; }
.btn-warm {
  background: var(--ea-warm);
  color: #fff;
  border: 1.5px solid var(--ea-warm);
  border-radius: var(--radius);
  padding: .7rem 2rem;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-warm:hover { background: var(--ea-warm-dk); border-color: var(--ea-warm-dk); color: #fff; }

/* ── Section headers ───────────────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ea-warm);
  font-family: var(--font-sans);
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); }

/* ── Product card ──────────────────────────────────────────────────────────── */
.product-card {
  border: none;
  border-radius: 0;
  background: transparent;
  transition: var(--transition);
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ea-cream);
  aspect-ratio: 4/5;
}
.product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.04); }
.product-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ea-warm);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.product-card-badge.badge-new { background: var(--ea-black); }
.product-card-actions {
  position: absolute;
  bottom: -50px;
  left: 0; right: 0;
  padding: 12px;
  transition: bottom .25s ease;
  display: flex;
  gap: 8px;
}
.product-card:hover .product-card-actions { bottom: 0; }
.product-card-body { padding: 14px 2px 4px; }
.product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ea-black);
  margin-bottom: 4px;
}
.product-price { font-size: .9rem; color: var(--ea-muted); }
.product-price .sale-price { color: #c0392b; font-weight: 500; }
.product-price .original-price { text-decoration: line-through; margin-left: 6px; }

/* ── Category card ─────────────────────────────────────────────────────────── */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: block;
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,26,.6) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 20px;
}
.category-card-title {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ── Product detail ────────────────────────────────────────────────────────── */
.product-gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ea-cream);
  border-radius: var(--radius);
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-gallery-thumb {
  width: 72px; height: 90px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--ea-warm); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.product-detail-price { font-family: var(--font-serif); font-size: 1.7rem; }

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.cart-table { border-collapse: separate; border-spacing: 0; }
.cart-table td,
.cart-table th { vertical-align: middle; padding: 14px 8px; border-bottom: 1px solid var(--ea-border); }
.cart-item-img { width: 70px; height: 88px; object-fit: cover; border-radius: var(--radius); }
.qty-input { width: 60px; text-align: center; border: 1px solid var(--ea-border); border-radius: var(--radius); padding: 4px; }
.cart-summary { background: var(--ea-cream); border-radius: var(--radius); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.cart-summary-total { font-family: var(--font-serif); font-size: 1.3rem; border-top: 1px solid var(--ea-border); padding-top: 12px; margin-top: 4px; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--ea-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ea-warm);
  box-shadow: 0 0 0 3px rgba(201,168,130,.15);
}
.form-label { font-size: .85rem; letter-spacing: .05em; font-weight: 500; }

/* ── Account ───────────────────────────────────────────────────────────────── */
.account-nav .nav-link {
  color: var(--ea-charcoal);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
}
.account-nav .nav-link.active,
.account-nav .nav-link:hover { background: var(--ea-cream); color: var(--ea-black); }
.order-card {
  border: 1px solid var(--ea-border);
  border-radius: var(--radius);
  padding: 20px;
}
.order-status-badge {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; font-family: var(--font-sans);
}
.status-paid      { background: #d4edda; color: #155724; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-shipped   { background: #cce5ff; color: #004085; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-processing{ background: #e2e3e5; color: #383d41; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ea-cream); }
.footer-brand { font-family: var(--font-serif); font-size: 1.6rem; color: var(--ea-black); }
.footer-heading { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ea-black); margin-bottom: .75rem; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { font-size: .85rem; color: var(--ea-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--ea-warm); }
.footer-divider { border-color: var(--ea-border); }
.footer-social { color: var(--ea-muted); font-size: 1.1rem; transition: color var(--transition); }
.footer-social:hover { color: var(--ea-warm); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb-item a { color: var(--ea-muted); font-size: .85rem; }
.breadcrumb-item.active { font-size: .85rem; color: var(--ea-charcoal); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ea-muted); }

/* ── HTMX loading indicator ────────────────────────────────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.bg-cream { background: var(--ea-cream) !important; }
.text-muted { color: var(--ea-muted) !important; }
.divider-ornament {
  display: flex; align-items: center; gap: 12px; margin: 2rem 0;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--ea-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   Burger Kat Kreations — playful overrides & new components
   ══════════════════════════════════════════════════════════════════════════ */

/* Rounder, bolder buttons */
.btn-ea, .btn-ea-outline, .btn-warm {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.btn-ea:hover, .btn-warm:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Announcement bar: warm orange with a wink */
.announcement-bar {
  background: linear-gradient(90deg, var(--ea-warm), var(--ea-cheese));
  color: var(--ea-black);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  font-size: 13px;
}

/* Friendlier nav */
.navbar-nav .nav-link {
  text-transform: none;
  letter-spacing: .01em;
  font-size: 14px;
  font-weight: 600;
}
.brand-logo { height: 88px; width: auto; display: block; }
@media (max-width: 575px){ .brand-logo { height: 69px; } }

/* Hero gets a soft cheesy gradient */
.hero-section {
  background: radial-gradient(120% 120% at 100% 0%, var(--ea-warm-lt) 0%, var(--ea-cream) 55%);
}

/* Cards get rounded corners + hover lift */
.product-card-img-wrap { border-radius: var(--radius); }
.product-card-body { padding: 14px 4px 4px; }
.product-name { font-weight: 600; }
.category-card { box-shadow: var(--shadow-sm); }

/* Sale badge = tomato, featured = orange */
.product-card-badge { background: var(--ea-tomato); border-radius: 999px; font-weight: 700; }
.product-card-badge.badge-new { background: var(--ea-warm); color: var(--ea-black); }

/* Sale prices in tomato */
.product-price .sale-price { color: var(--ea-tomato); }

/* "Free" shipping highlight */
.text-success, .status-free { color: var(--ea-lettuce) !important; }

/* Section label pill */
.section-label {
  color: var(--ea-warm-dk);
  font-weight: 800;
  letter-spacing: .12em;
}

/* Value-prop icons pop */
.value-prop-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ea-cream);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ea-warm); font-size: 1.6rem; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

/* Cards / summaries rounder */
.cart-summary, .order-card, .checkout-card { border-radius: var(--radius); }
.checkout-card { border: 1px solid var(--ea-border); padding: 24px; background: #fff; box-shadow: var(--shadow-sm); }

/* Checkout method chooser */
.pay-method {
  display: block; border: 2px solid var(--ea-border); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; transition: var(--transition); background:#fff;
}
.pay-method:hover { border-color: var(--ea-warm-lt); }
.pay-method.active { border-color: var(--ea-warm); background: var(--ea-cream); }
.pay-method h6 { margin: 0; font-size: 1.05rem; }
.pay-method .pay-method-desc { color: var(--ea-muted); font-size: .85rem; margin: 2px 0 0; }

/* PO / order status badges */
.order-status-badge, .status-po_received, .status-po_approved, .status-invoiced { }
.status-po_received { background: #FCE8CC; color: #8A5A16; }
.status-po_approved { background: #E4F0D0; color: #4E6B22; }
.status-invoiced    { background: #D9ECF7; color: #1C5A80; }

/* Notices */
.bk-notice {
  border-radius: var(--radius); padding: 14px 18px; font-weight: 600;
  border: 1px solid var(--ea-border); background: var(--ea-cream); color: var(--ea-black);
}
.bk-notice.ok  { background: #EEF7E1; border-color: #CDE7A6; color: #43611C; }
.bk-notice.err { background: #FCE4DE; border-color: #F6C0B2; color: #9A3418; }

/* Fun little paw-print divider accent */
.divider-ornament span { color: var(--ea-warm-dk); font-weight: 800; }
