/* =============================
   RESET & BASE
   ============================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #fdf6ec;
  --brown-dark: #2c1a0e;
  --brown-mid: #6b3f1f;
  --brown-light: #c8845a;
  --gold: #d4a84b;
  --white: #ffffff;
  --gray: #f5f0ea;
  --text: #3a2410;
  --shadow: 0 8px 32px rgba(44, 26, 14, 0.12);

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

/* =============================
   HEADER
   ============================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown-dark);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
}

.logo-icon { font-size: 1.6rem; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text em {
  color: var(--gold);
  font-style: italic;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

nav a:hover { opacity: 1; color: var(--gold); }

.cart-btn {
  background: var(--gold);
  border: none;
  color: var(--brown-dark);
  padding: 9px 20px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}

.cart-btn:hover { background: var(--brown-light); transform: scale(1.04); }

.cart-count {
  background: var(--brown-dark);
  color: var(--gold);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =============================
   HERO
   ============================= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content { flex: 1; }

.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--brown-dark);
  margin-bottom: 32px;
}

.hero-content h1 em {
  color: var(--brown-light);
  font-style: italic;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow);
  border: 6px solid var(--gold);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.btn-primary {
  display: inline-block;
  background: var(--brown-dark);
  color: var(--cream);
  padding: 14px 34px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--brown-mid); transform: translateY(-2px); }

/* =============================
   ABOUT
   ============================= */
.about {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 80px 32px;
  text-align: center;
}

.about-inner { max-width: 640px; margin: 0 auto; }

.about-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about h2 em { color: var(--gold); font-style: italic; }

.about p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.about-stats span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =============================
   MENU / PRODUCTS
   ============================= */
.products {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-header {
  text-align: center;
  margin-bottom: 48px;
}

.products-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.products-header p {
  color: var(--brown-light);
  font-size: 1rem;
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 2px solid var(--brown-light);
  color: var(--brown-mid);
  padding: 7px 22px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(44, 26, 14, 0.18);
}

.card.hidden {
  display: none;
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card-img-wrap img { transform: scale(1.06); }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brown-dark);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.tag.cold { background: #1a3a5c; color: #a8d8f0; }
.tag.specialty { background: #3a1a5c; color: #d4b8f0; }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.9rem;
  color: #6b5c50;
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-mid);
  font-weight: 700;
}

.add-btn {
  background: var(--brown-dark);
  color: var(--cream);
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.add-btn:hover { background: var(--brown-light); transform: scale(1.04); }

/* =============================
   CONTACT
   ============================= */
.contact {
  background: var(--gray);
  text-align: center;
  padding: 64px 32px;
  border-top: 2px solid rgba(200,132,90,0.2);
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.contact p {
  color: var(--brown-mid);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.back-top {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.back-top:hover { opacity: 0.7; }

/* =============================
   CART MODAL
   ============================= */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 80px 24px 24px;
}

.cart-overlay.open { display: flex; }

.cart-modal {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  width: 340px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-dark);
}

.cart-modal-header button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--brown-mid);
  transition: color 0.2s;
}

.cart-modal-header button:hover { color: var(--brown-dark); }

.cart-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 16px;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.9rem;
  color: var(--text);
  gap: 10px;
}

.cart-list li .remove-item {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.cart-list li .remove-item:hover { opacity: 0.7; }

.cart-list .empty-msg {
  text-align: center;
  color: var(--brown-light);
  padding: 20px 0;
  font-style: italic;
}

.cart-total {
  font-size: 1rem;
  color: var(--brown-dark);
  text-align: right;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--brown-dark);
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-mid);
}

.checkout-btn { width: 100%; text-align: center; }

/* =============================
   TOAST
   ============================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brown-dark);
  color: var(--gold);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 48px 20px 40px; }
  .hero-img img { width: 260px; height: 260px; }
  nav { display: none; }
  .about-stats { gap: 28px; }
  footer { flex-direction: column; gap: 10px; text-align: center; }
  .cart-modal { width: 100%; }
  .cart-overlay { padding: 60px 12px 12px; justify-content: center; }
}