/* ==========================================================================
   Landa Pegue e Monte — Catálogo / Configurador de Festa
   Paleta: vinho, rosé, nude, bege, dourado, branco
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --wine:        #7B2D42;
  --wine-dark:   #5C1E30;
  --wine-light:  #A3405A;
  --rose:        #C4768D;
  --rose-light:  #E8B4C0;
  --rose-pale:   #F7E8ED;
  --nude:        #E8D5C4;
  --nude-light:  #F5EDE4;
  --beige:       #FAF6F0;
  --beige-mid:   #F0E8DC;
  --gold:        #B8922A;
  --gold-light:  #D4AF5A;
  --gold-shine:  #F0D080;
  --white:       #FFFFFF;
  --text-dark:   #2C1A20;
  --text-mid:    #5C3D48;
  --text-muted:  #9A7A85;
  --border:      #E2CDD5;
  --whatsapp:    #25D366;
  --whatsapp-dk: #1AA34A;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow-sm:   0 2px 8px rgba(123,45,66,0.08);
  --shadow-md:   0 6px 24px rgba(123,45,66,0.12);
  --shadow-lg:   0 16px 48px rgba(123,45,66,0.16);
  --transition:  all 0.25s cubic-bezier(0.4,0,0.2,1);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 100px; /* space for fixed bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Header ---------- */
.cat-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
}
.cat-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cat-back-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wine);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--rose-pale);
  transition: var(--transition);
  white-space: nowrap;
}
.cat-back-btn:hover { background: var(--rose-light); color: var(--wine-dark); }
.cat-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.cat-logo-icon { font-size: 1.3rem; }
.cat-logo-text span { color: var(--wine); }
.cat-logo-text-main {
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--wine), #d4af37, var(--wine), var(--rose), var(--wine));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cat-logo-shine 5s linear infinite;
}

@keyframes cat-logo-shine {
  to {
    background-position: 300% center;
  }
}

@media (max-width: 480px) {
  .cat-logo-text-main {
    font-size: 0.9rem;
  }
}
.cat-header-spacer { flex: 1; }

/* ---------- Main Container ---------- */
.cat-main { padding: 2rem 1.25rem 3rem; }
.cat-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }

/* ---------- Theme Selector (festas dentro do tema) ---------- */
.theme-selector-section { display: none; }
.theme-selector {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.theme-selector-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.theme-selector-label i { color: var(--gold); margin-right: 0.4rem; }
.theme-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.theme-pill {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--beige);
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}
.theme-pill:hover {
  border-color: var(--rose-light);
  background: var(--rose-pale);
  color: var(--wine);
}
.theme-pill.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(123,45,66,0.3);
}

/* ---------- Montagem (pacotes com montagem extra) ---------- */
.montagem-section { display: none; }
.montagem-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.montagem-toggle {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  padding: 0.75rem 0;
}
.montagem-toggle input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--wine);
  cursor: pointer;
  flex-shrink: 0;
}
.montagem-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.montagem-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.montagem-title i { color: var(--gold); margin-right: 0.4rem; }
.montagem-desc { font-size: 0.82rem; color: var(--text-muted); }
.montagem-price {
  font-weight: 700;
  color: var(--wine);
  white-space: nowrap;
  font-size: 0.95rem;
}
.summary-montagem {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
.summary-montagem .summary-item-price { color: var(--wine); }

/* ---------- Seletor de Cor (pacotes com opção de cor) ---------- */
.color-section { display: none; }
.color-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.color-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.color-title i { color: var(--gold); }
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.color-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--beige);
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}
.color-pill:hover {
  border-color: var(--rose-light);
  background: var(--rose-pale);
}
.color-pill.active {
  border-color: var(--wine);
  background: var(--rose-pale);
  color: var(--wine);
}
.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* ---------- Entrega e Retirada ---------- */
.entrega-section { display: none; }
.entrega-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.entrega-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.entrega-title i { color: var(--gold); }

/* Estado inicial: botão recolhido "Adicionar entrega" */
.entrega-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border);
  background: var(--beige);
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}
.entrega-add-btn:hover {
  border-color: var(--wine);
  background: var(--rose-pale);
}

/* Lista compacta de bairros */
.entrega-list-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.entrega-bairros-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.bairro-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--beige);
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}
.bairro-pill:hover {
  border-color: var(--rose-light);
  background: var(--rose-pale);
  color: var(--wine);
}
.bairro-pill.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(123,45,66,0.3);
}
.entrega-none-btn {
  display: block;
  margin: 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}
.entrega-none-btn:hover { color: var(--wine); }

/* Estado selecionado: "Entrega: Tijuca (+ R$35,00)" */
.entrega-selected {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--rose-pale);
  border: 1.5px solid var(--rose-light);
}
.entrega-selected-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.entrega-selected-bairro {
  font-weight: 700;
  color: var(--text-dark);
}
.entrega-selected-price {
  font-weight: 700;
  color: var(--wine);
  margin-left: auto;
}
.entrega-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--rose-light);
  background: var(--white);
  color: var(--wine);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}
.entrega-remove-btn:hover {
  background: var(--rose-pale);
  border-color: var(--wine);
}
.summary-entrega {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
.summary-entrega .summary-item-price { color: var(--gold); }
#summaryDeco { border-bottom: 1px dashed var(--border); padding-bottom: 0.6rem; }
.summary-footer .summary-item { margin-bottom: 0.35rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.removed { background: var(--wine); }
.toast.restored { background: var(--whatsapp-dk); }

/* ---------- Decoration Hero ---------- */
.decoration-hero { display: flex; flex-direction: column; gap: 0; }

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  background: var(--nude);
}
.hero-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.4s ease;
  display: block;
}
.hero-img-wrapper:hover img { transform: none; }
.hero-img-zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
}

.hero-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
  background: var(--rose-pale);
  border: 1px solid var(--rose-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xl);
  margin-bottom: 0.85rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-price-block {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.hero-price-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.hero-price-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
  transition: var(--transition);
}
.hero-price-value.animate {
  animation: priceChange 0.35s ease;
}
@keyframes priceChange {
  0%   { transform: scale(1);    opacity: 1; }
  30%  { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1);    opacity: 1; }
}
.hero-includes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: auto;
  padding: 0.4rem 0.85rem;
  background: var(--nude-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--nude);
}
.hero-includes i { color: var(--gold); }

/* Discount pill */
.hero-discount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--wine);
  font-weight: 500;
  margin-top: 0.5rem;
  width: 100%;
  min-height: 1.4rem;
  transition: var(--transition);
}
.hero-discount i { font-size: 0.75rem; }

/* ---------- Items Section ---------- */
.items-section-header { margin-bottom: 1.5rem; }
.items-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.items-section-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Item Card */
.item-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--rose));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.item-card:not(.removed):hover {
  border-color: var(--rose-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.item-card:not(.removed):hover::before { opacity: 1; }

/* Removed state */
.item-card.removed {
  opacity: 0.5;
  background: var(--beige-mid);
  border-color: var(--border);
  transform: none;
}
.item-card.removed::before { display: none; }

.item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.item-qty-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.item-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wine);
  transition: var(--transition);
}
.item-qty-display {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--nude-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--nude);
}

/* Controls */
.item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.item-qty-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--wine);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: 1.5px solid var(--rose-light);
}
.item-qty-btn:hover:not(:disabled) {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}
.item-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.item-qty-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 28px;
  text-align: center;
}

.item-removed-badge {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
  background: var(--rose-pale);
  border: 1px solid var(--rose-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
}

.item-restore-btn {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: var(--transition);
  font-family: var(--font-body);
}
.item-restore-btn:hover { color: var(--wine-dark); }

.item-card.removed .item-qty-btn.minus { display: none; }
.item-card.removed .item-qty-number { display: none; }
.item-card.removed .item-removed-badge { display: inline-flex; }
.item-card.removed .item-restore-btn { display: inline-block; }

/* ---------- Summary Section ---------- */
.summary-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.summary-header {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  padding: 1.5rem 2rem;
  color: var(--white);
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.summary-title i { opacity: 0.8; font-size: 1rem; }
.summary-subtitle {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.summary-body { padding: 1.5rem 2rem; }

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  gap: 0.5rem;
}
.summary-item-name {
  color: var(--text-mid);
  flex: 1;
}
.summary-item-qty {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--beige);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-xl);
  margin: 0 0.5rem;
  white-space: nowrap;
}
.summary-item-price {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.summary-includes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--nude-light);
  border: 1px solid var(--nude);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
}
.summary-includes i { color: var(--gold); font-size: 0.9rem; }

.summary-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.summary-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.summary-total-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
  transition: var(--transition);
}
.summary-total-value.animate { animation: priceChange 0.35s ease; }

.summary-discount {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  min-height: 1.4rem;
}
.summary-discount strong { color: var(--wine); }

/* ---------- CTA Section ---------- */
.cta-section { text-align: center; }
.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  font-family: var(--font-body);
  width: 100%;
  max-width: 480px;
  justify-content: center;
}
.btn-whatsapp-cta:hover {
  background: var(--whatsapp-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.btn-whatsapp-cta i { font-size: 1.4rem; }
.cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Fixed Bottom Bar ---------- */
.fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -4px 20px rgba(123,45,66,0.12);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fixed-bar-total { display: flex; flex-direction: column; }
.fixed-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.fixed-bar-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wine);
  transition: var(--transition);
}
.fixed-bar-value.animate { animation: priceChange 0.35s ease; }

.fixed-bar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.fixed-bar-btn:hover { background: var(--whatsapp-dk); }
.fixed-bar-btn i { font-size: 1.1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
}
.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--text-mid);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.modal-close-btn:hover { background: var(--rose-pale); color: var(--wine); }

.modal-header { text-align: center; margin-bottom: 1.75rem; }
.modal-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.modal-subtitle { font-size: 0.88rem; color: var(--text-muted); }

.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}
.required { color: var(--wine); }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--beige);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--wine);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123,45,66,0.1);
}
.form-input.error, .form-textarea.error { border-color: #e03; }
.form-error {
  font-size: 0.78rem;
  color: #e03;
  display: none;
}
.form-error.show { display: block; }

.modal-summary {
  background: var(--beige);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.modal-summary-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.modal-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border);
}
.modal-summary-item:last-child { border-bottom: none; }
.modal-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  color: var(--wine);
}

.btn-modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  margin-top: 0.25rem;
}
.btn-modal-submit:hover { background: var(--whatsapp-dk); transform: translateY(-1px); }
.btn-modal-submit i { font-size: 1.2rem; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .hero-img-wrapper img { height: 540px; }
  .modal-overlay { align-items: center; padding: 2rem; }
  .modal-box { border-radius: var(--radius-xl); }
}

@media (min-width: 900px) {
  .cat-main { padding: 2.5rem 2rem 4rem; }
  .hero-img-wrapper img { height: 600px; }
  .items-grid { grid-template-columns: repeat(3, 1fr); }
  .fixed-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-price-value { font-size: 2rem; }
  .hero-info { padding: 1.4rem 1.25rem; }
  .summary-body { padding: 1.25rem; }
  .summary-header { padding: 1.25rem; }
  .items-grid { grid-template-columns: 1fr; }
}
