/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --cream:       #FAF8F4;
  --warm:        #F0EDE6;
  --dark:        #1C1A17;
  --mid:         #6B6560;
  --accent:      #C4A882;
  --accent-dark: #8C6E4B;
  --white:       #FFFFFF;
  --border:      #E2DDD6;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAV ────────────────────────────────────────────────────── */
.main-nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { display: block; }

.nav-tabs {
  display: flex;
  gap: 2.5rem;
}
.nav-tab {
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 4px 0;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-tab.active {
  color: var(--white);
  font-weight: 500;
}
.nav-tab.active::after { transform: scaleX(1); }
.nav-tab:hover { color: var(--white); }

.cart-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s;
}
.cart-toggle:hover { background: var(--accent); }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--white);
  color: var(--dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.section-hero {
  background: var(--warm);
  text-align: center;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}
.section-hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.section-hero p {
  color: var(--mid);
  font-size: 16px;
  margin-top: 0.75rem;
}
.hero-line {
  width: 40px;
  height: 1px;
  background: var(--accent-dark);
  margin: 1.5rem auto 0;
}

/* ─── CATALOG ────────────────────────────────────────────────── */
.catalog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* Filter pills */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--mid);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Product card */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #EDE8E0, #DDD7CC);
}
.card-img-wrap img {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card-body {
  padding: 1rem 1rem 1.25rem;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 10px;
}
.card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
}
.btn-info {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--dark);
  color: var(--dark);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}
.btn-info:hover {
  background: var(--dark);
  color: var(--white);
}
.btn-add {
  flex: 1;
  padding: 8px 10px;
  background: var(--dark);
  color: var(--white);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: background 0.2s;
  border: none;
}
.btn-add:hover { background: var(--accent-dark); }
.btn-add.added { background: var(--accent-dark); }

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,26,23,0.65);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 4px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--mid); }

.modal-img-wrap {
  width: 100%;
  background: linear-gradient(135deg, #EDE8E0, #DDD7CC);
}
.modal-img-wrap img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.modal-body {
  padding: 1.75rem;
}
.modal-sub {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 6px;
}
.modal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-price {
  font-size: 22px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.modal-specs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
}
.modal-specs h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 1rem;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.spec-key {
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.spec-val {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

.modal-desc {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-add {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  flex: none;
}

/* ─── CART PANEL ─────────────────────────────────────────────── */
.cart-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 150;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
}
.cart-panel.open { display: flex; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
}
.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--warm);
  color: var(--dark);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cart-close:hover { background: var(--border); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem;
}
.cart-empty {
  text-align: center;
  color: var(--mid);
  font-size: 14px;
  padding: 3rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--warm);
  flex-shrink: 0;
}
.cart-thumb-placeholder {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #EDE8E0, #DDD7CC);
  border-radius: 3px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-sub {
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-item-price {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 500;
}
.cart-item-remove {
  color: var(--mid);
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.cart-item-remove:hover { background: #fee2e2; color: #dc2626; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.cart-name-field label {
  display: block;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cart-name-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.cart-name-field input:focus { border-color: var(--accent); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-total-label { font-size: 13px; color: var(--mid); }
.cart-total-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--dark);
}

.btn-whatsapp {
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-whatsapp:hover { background: #1ebe5c; }

.btn-clear {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--mid);
  border-radius: 4px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  background: transparent;
  cursor: pointer;
}
.btn-clear:hover { background: var(--warm); color: var(--dark); }

/* ─── WA FLOAT ───────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 120;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-2px);
  background: #1ebe5c;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 240px;
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.btn-map {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, color 0.2s;
}
.btn-map:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-tabs { display: none; }
  .section-hero h2 { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cart-panel { width: 100%; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .card-name { font-size: 16px; }
  .modal-overlay { padding: 0; align-items: flex-start; }
  .modal-box { max-height: 100vh; border-radius: 0; }
  .wa-float { font-size: 12px; padding: 10px 16px; }
  .specs-grid { grid-template-columns: 1fr; }
}

/* ─── COMING SOON ────────────────────────────────────────────── */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1rem;
}
.coming-soon-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--dark);
  opacity: 0.18;
}
.coming-soon-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--mid);
  letter-spacing: 0.04em;
  max-width: 380px;
}

