/* =========================
   GLOBAL RESET
   ========================= */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* =========================
   COLOR SYSTEM — HOUSE PURPLE
   ========================= */

:root {
  --purple-main: #7b4bb3;
  --purple-dark: #62379a;
  --purple-border: #5e3294;

  --ink-dark: #3b2415;
  --sand-light: #fdf8f3;
}

/* =========================
   GLOBAL BASE
   ========================= */

body {
  font-family: Arial, sans-serif;
  color: var(--ink-dark);
  background-color: var(--sand-light);
  overflow-x: hidden;
  position: relative;
}

/* =========================
   BACKGROUND
   ========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/desert.jpg") center / cover no-repeat;
  opacity: 0.35;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(253,248,243,0.55);
  z-index: -1;
}

/* =========================
   HEADER
   ========================= */

header {
  background: var(--purple-main);
  color: #fff;
  padding: 48px 0;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 0 24px;
}

/* Brand */
.brand img {
  max-width: 520px;
  display: block;
  margin-bottom: 14px;
}

header h1 {
  font-size: 96px; /* 2x */
  margin: 0 0 18px;
  font-weight: 700;
}

/* =========================
   NAVIGATION — BUTTON STYLE
   ========================= */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  font-size: 32px; /* 2x */
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.35);
  transition: background .15s ease, transform .1s ease;
}

nav a:hover {
  background: #fff;
  color: var(--purple-main);
  transform: translateY(-1px);
}

/* =========================
   CART PANEL
   ========================= */

#cart {
  width: 340px;
  background: #fff7f2;
  border: 2px dashed var(--purple-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

#cart,
#cart * {
  color: var(--ink-dark) !important;
  font-family: Arial, sans-serif !important;
}

#cart h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

/* =========================
   MAIN CONTENT
   ========================= */

.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

/* =========================
   FILTER BAR
   ========================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.filter-bar button {
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--purple-border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.filter-bar button:hover,
.filter-bar button.active {
  background: var(--purple-main);
  color: #fff;
}

/* =========================
   PRODUCT GRID
   ========================= */

#product-grid {
  display: grid;
  gap: 28px;
}

/* =========================
   PRODUCT CARD — COMPACT, SIDE-BY-SIDE
   ========================= */

.product-card {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 22px;

  background: linear-gradient(180deg,#f1d6b8,#e7bf96);
  border: 3px solid #c58f63;
  border-radius: 18px;
  padding: 20px;

  box-shadow: 0 12px 26px rgba(59,36,21,.22);
  position: relative;
}

/* Image */
.product-card img {
  width: 100%;
  height: 220px; /* ~50% height reduction */
  object-fit: cover;
  border-radius: 14px;
}

/* Content */
.product-card h3 {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.product-card .description {
  font-family: "Libre Baskerville", serif;
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.product-card .price {
  font-weight: 700;
  margin-bottom: 8px;
}
/* Chili row above heat badge */
.heat-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
}

.chili-row {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
}

/* =========================
   HEAT BADGE (TEXT FOR NOW)
   ========================= */

.heat-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   QUANTITY CONTROLS
   ========================= */

.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--purple-main);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.qty-controls span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* =========================
   ADD TO CART
   ========================= */

.product-card button.add-to-cart {
  margin-top: 6px;
  padding: 10px 20px;
  background: var(--purple-main);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.product-card button.add-to-cart:hover {
  background: var(--purple-dark);
}

/* =========================
   SEASONAL RIBBON
   ========================= */

.seasonal-ribbon {
  position: absolute;
  top: 12px;
  right: -40px;
  background: var(--purple-main);
  color: #fff;
  padding: 6px 48px;
  font-size: 12px;
  transform: rotate(45deg);
}

/* =========================
   FOOTER
   ========================= */

footer {
  text-align: center;
  margin: 60px 0 40px;
  font-size: 14px;
  opacity: .85;
}

/* =========================
   RESPONSIVE — MOBILE MATCH
   ========================= */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  #cart {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}
/* Product card content wrapper */
.product-card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push controls to bottom */
.product-card .card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
