/* ============================================
   ME GUSTA CATERING — glamour theme (szablon)
   Kolory: noir deep, old gold, pearl, rose gold
   Fonty: Playfair Display (serif), Inter (body)
   ============================================ */

:root {
  --noir: #0a0a0a;
  --noir-soft: #1a1817;
  --noir-line: #2a2624;
  --gold: #d4af37;
  --gold-soft: #c9a961;
  --gold-deep: #a8862c;
  --rose: #b76e79;
  --pearl: #faf8f3;
  --cream: #f5f0e6;
  --ink: #1a1817;
  --muted: #7a6f64;

  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1280px;
  --radius: 2px;
  --shadow-gold: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--transition); }
a:hover { color: var(--gold); }

/* --- TYPOGRAFIA --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* --- CONTAINER --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--noir-line);
  transition: all 0.3s var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--pearl);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--pearl);
}
.logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }
.nav-links a { color: var(--pearl); position: relative; padding: 0.3rem 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pearl);
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-cart:hover { background: var(--gold); color: var(--noir); }
.cart-badge {
  background: var(--gold);
  color: var(--noir);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.75)),
    url("https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=1920") center/cover;
  color: var(--pearl);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 70px;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; width: 100%; }
.hero h1 { color: var(--pearl); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.25rem; color: rgba(250, 248, 243, 0.85); max-width: 640px; margin-bottom: 2.5rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--noir); }
.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--noir); }
.btn-dark { background: var(--noir); color: var(--pearl); border-color: var(--noir); }
.btn-dark:hover { background: transparent; color: var(--noir); }
.btn-full { width: 100%; }

/* --- MODE CHOICE (HOME) --- */
.mode-choice {
  padding: 6rem 0;
  background: var(--pearl);
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.mode-card {
  background: var(--noir);
  color: var(--pearl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(212, 175, 55, 0.15));
  opacity: 0;
  transition: opacity 0.4s var(--transition);
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.mode-card:hover::before { opacity: 1; }
.mode-card .num {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1;
}
.mode-card h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--pearl); }
.mode-card p { color: rgba(250, 248, 243, 0.7); margin-bottom: 2rem; }
.mode-card .arrow { font-size: 1.5rem; color: var(--gold); transition: transform 0.3s var(--transition); }
.mode-card:hover .arrow { transform: translateX(8px); }

/* --- QUICK SELECT --- */
.quick-select {
  padding: 6rem 0;
  background: var(--cream);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.quick-tile {
  aspect-ratio: 1;
  background: var(--noir);
  color: var(--pearl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  border: 1px solid var(--noir-line);
}
.quick-tile .icon { font-size: 2rem; color: var(--gold); margin-bottom: 1rem; font-family: var(--font-display); font-style: italic; }
.quick-tile h4 { font-size: 1.1rem; color: var(--pearl); margin-bottom: 0.3rem; }
.quick-tile p { font-size: 0.75rem; color: rgba(250, 248, 243, 0.6); letter-spacing: 0.1em; text-transform: uppercase; }
.quick-tile:hover { background: var(--gold); border-color: var(--gold); }
.quick-tile:hover .icon,
.quick-tile:hover h4,
.quick-tile:hover p { color: var(--noir); }

/* --- SECTIONS --- */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-dark { background: var(--noir); color: var(--pearl); }
.section-dark h2 { color: var(--pearl); }
.section-dark .lead { color: rgba(250, 248, 243, 0.7); margin: 0 auto; }
.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* --- PRODUCT GRID --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--pearl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s var(--transition);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.product-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--noir), var(--noir-soft));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img::before {
  content: "MG";
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--noir);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.product-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.product-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.product-price { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold-deep); font-weight: 500; }
.product-persons { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* --- FILTERS --- */
.filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid var(--noir-line);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--noir); color: var(--pearl); border-color: var(--noir); }

/* --- CONFIGURATOR --- */
.config-wrap {
  background: var(--noir);
  color: var(--pearl);
  padding: 5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.config-wrap::before, .config-wrap::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
}
.config-wrap::before { top: 1rem; left: 1rem; border-right: 0; border-bottom: 0; }
.config-wrap::after { bottom: 1rem; right: 1rem; border-left: 0; border-top: 0; }
.config-step { margin-bottom: 3rem; }
.config-step h3 { color: var(--pearl); margin-bottom: 1.5rem; font-size: 1.75rem; }
.config-step h3 .num {
  display: inline-block;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-align: center;
  line-height: 40px;
  margin-right: 1rem;
  font-family: var(--font-display);
  font-style: italic;
}
.input-row { display: flex; gap: 1rem; align-items: center; }
.input-group { flex: 1; }
.input-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.6);
  margin-bottom: 0.75rem;
}
.input, select.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--noir-line);
  padding: 0.8rem 0;
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color 0.3s var(--transition);
}
.input:focus { outline: none; border-color: var(--gold); }
select.input { background: var(--noir); cursor: pointer; }

.event-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.event-type {
  padding: 1.5rem 1rem;
  border: 1px solid var(--noir-line);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-type:hover, .event-type.active { background: var(--gold); color: var(--noir); border-color: var(--gold); }

/* Suwak */
.slider-group { margin-top: 2rem; }
.slider-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
.slider-opt {
  padding: 1rem 0.5rem;
  border: 1px solid var(--noir-line);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  font-size: 0.85rem;
}
.slider-opt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.slider-opt small { color: rgba(250, 248, 243, 0.6); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.slider-opt:hover, .slider-opt.active { background: var(--gold); border-color: var(--gold); }
.slider-opt.active strong, .slider-opt.active small { color: var(--noir); }

.config-result {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold);
  padding: 2rem;
  margin-top: 2rem;
}
.config-result h4 { color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }
.config-result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.95rem;
}
.config-result-item:last-of-type { border: 0; }
.config-result-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.config-result-total strong { color: var(--gold); }

/* --- CART --- */
.cart-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.cart-items { background: var(--pearl); border: 1px solid rgba(0,0,0,0.06); }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cart-item:last-child { border: 0; }
.cart-item-img {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--noir), var(--noir-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.5rem;
}
.cart-item h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.3rem; }
.cart-item p { font-size: 0.8rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--noir-line); }
.qty button {
  width: 32px; height: 32px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
}
.qty button:hover { background: var(--noir); color: var(--pearl); }
.qty span { padding: 0 0.5rem; min-width: 30px; text-align: center; }
.cart-item-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-deep); }
.cart-item-remove { color: var(--muted); cursor: pointer; padding: 0.3rem; }
.cart-item-remove:hover { color: var(--rose); }

.cart-empty { padding: 4rem 2rem; text-align: center; color: var(--muted); }
.cart-empty h3 { font-family: var(--font-display); margin-bottom: 1rem; }

.cart-sidebar {
  background: var(--noir);
  color: var(--pearl);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}
.cart-sidebar h3 { color: var(--pearl); margin-bottom: 1.5rem; font-family: var(--font-display); font-size: 1.5rem; }

/* Smart koszyk — komunikaty */
.smart-msg {
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  font-size: 0.9rem;
}
.smart-msg.warn { border-color: var(--rose); background: rgba(183, 110, 121, 0.08); }
.smart-msg.info { border-color: var(--gold); }
.smart-msg strong { display: block; color: var(--gold); margin-bottom: 0.3rem; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.smart-msg p { color: rgba(250, 248, 243, 0.85); }

.cart-totals { margin-top: 1.5rem; }
.cart-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.cart-row-total {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.cart-row-total strong { color: var(--gold); }

/* Upsell w koszyku */
.upsell { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--noir-line); }
.upsell h4 { color: var(--gold); font-family: var(--font-display); margin-bottom: 1rem; font-size: 1.1rem; }
.upsell-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--noir-line);
}
.upsell-item:last-child { border: 0; }
.upsell-add {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.upsell-add:hover { background: var(--gold); color: var(--noir); }

/* --- PRODUKT KARTA --- */
.product-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.product-gallery {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--noir), var(--noir-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 6rem;
  opacity: 0.5;
}
.product-info h1 { font-size: 3rem; margin-bottom: 1rem; }
.product-info .price { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold-deep); margin-bottom: 1.5rem; }
.product-info .persons-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gold);
  color: var(--noir);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.ingredients { margin-top: 2rem; padding: 1.5rem; background: var(--cream); border-left: 3px solid var(--gold); }
.ingredients h4 { font-family: var(--font-display); margin-bottom: 0.75rem; font-size: 1.1rem; }

/* --- CHECKOUT --- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.checkout-section { margin-bottom: 2.5rem; }
.checkout-section h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--pearl);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s var(--transition);
}
.form-input:focus { outline: none; border-color: var(--gold); }
textarea.form-input { min-height: 100px; resize: vertical; }

.delivery-zones { display: grid; gap: 0.5rem; }
.delivery-zone {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.3s var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.delivery-zone:hover, .delivery-zone.active { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.delivery-zone-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-deep); }

/* --- FOOTER --- */
.footer {
  background: var(--noir);
  color: var(--pearl);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.1rem;
}
.footer ul { list-style: none; }
.footer li { padding: 0.35rem 0; font-size: 0.9rem; color: rgba(250, 248, 243, 0.7); }
.footer li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--noir-line);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.5);
  letter-spacing: 0.1em;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--noir);
  color: var(--pearl);
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  transform: translateX(400px);
  transition: transform 0.3s var(--transition);
  z-index: 200;
  max-width: 320px;
  font-size: 0.9rem;
}
.toast.show { transform: translateX(0); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mode-grid, .products-grid, .cart-wrap, .product-detail, .checkout-grid, .footer-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .event-types, .slider-options { grid-template-columns: 1fr; }
  .config-wrap { padding: 3rem 1.5rem; }
  .hero { min-height: 80vh; }
  .form-row { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
}

/* --- UTILS --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none !important; }
