/* ─── TOKENS ─── */
:root {
  --background: oklch(0.985 0.008 60);
  --foreground: oklch(0.25 0.03 350);
  --card:        oklch(1 0 0);
  --primary:     oklch(0.38 0.13 350);
  --primary-fg:  oklch(0.99 0.005 60);
  --accent:      oklch(0.85 0.06 350);
  --muted:       oklch(0.95 0.012 60);
  --muted-fg:    oklch(0.5 0.02 350);
  --border:      oklch(0.9 0.02 30);
  --blush:       oklch(0.95 0.03 20);
  --rose-soft:   oklch(0.85 0.05 350);
  --leaf:        oklch(0.45 0.08 145);
  --shadow:      0 4px 24px oklch(0.4 0.05 350 / 0.10);
  --shadow-lg:   0 12px 40px oklch(0.4 0.05 350 / 0.18);
  --radius:      0.75rem;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ─── NAV ─── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--foreground);
  font-weight: 500;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-fg);
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link--active {
  color: var(--primary);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--foreground);
  transition: border-color 0.2s;
  position: relative;
}

.cart-btn:hover { border-color: var(--primary); color: var(--primary); }

.cart-badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.985 0.008 60 / 0.92) 40%,
    oklch(0.985 0.008 60 / 0.3) 100%
  );
}

/* Fallback gradient when no image */
.hero-bg:not(:has(.hero-img[src])) .hero-overlay,
.hero-bg .hero-img[style*="display:none"] ~ .hero-overlay {
  background: linear-gradient(135deg, var(--blush) 0%, oklch(0.92 0.04 350) 100%);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: oklch(1 0 0 / 0.7);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-icon { color: var(--primary); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--foreground);
  margin-bottom: 1rem;
  max-width: 580px;
}

.hero-title-em {
  font-style: italic;
  color: var(--primary);
}

.hero-desc {
  max-width: 460px;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid oklch(0.3 0.03 350 / 0.3);
  border-radius: 2rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ─── FEATURES ─── */
.features {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-item strong {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin: 0;
}

/* ─── CATALOG ─── */
.catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.catalog-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted-fg);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--foreground);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--muted-fg);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-photo {
  padding: 1.2rem;
  background: var(--blush);
  aspect-ratio: 3/2.8;
  display: flex;
  align-items: stretch;
}

/* Polaroid frame effect */
.polaroid-frame {
  background: white;
  padding: 0.6rem 0.6rem 2.2rem;
  box-shadow: 0 4px 16px oklch(0.4 0.05 350 / 0.15);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.polaroid-frame img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: center;
  min-height: 0;
}

.polaroid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.6rem;
  background: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.polaroid-logo {
  font-size: 0.52rem;
  color: var(--muted-fg);
  white-space: nowrap;
}

.polaroid-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--foreground);
}

.polaroid-name--italic {
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0;
  font-weight: 400;
}

.polaroid-label--dark .polaroid-logo,
.polaroid-label--dark .polaroid-name {
  color: var(--foreground);
}

.product-info {
  padding: 1.2rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.83rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add:hover { opacity: 0.85; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--foreground);
  color: oklch(0.9 0.01 60);
  padding: 3rem 2rem;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.footer-logo .logo-icon { color: var(--rose-soft); }

.footer-brand p {
  font-size: 0.83rem;
  color: oklch(0.65 0.01 60);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.7 0.01 60);
  margin-bottom: 0.8rem;
}

.footer-col p {
  font-size: 0.83rem;
  color: oklch(0.55 0.01 60);
  margin-bottom: 0.3rem;
}

/* ─── CART SIDEBAR ─── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.3);
  z-index: 200;
}

.overlay.active { display: block; }

.sidebar {
  position: fixed;
  right: -420px;
  top: 0;
  height: 100vh;
  width: 400px;
  max-width: 95vw;
  background: var(--card);
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border);
}

.sidebar.active { right: 0; }

.sidebar-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 1.1rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted-fg);
  padding: 0.2rem 0.5rem;
}

.btn-close:hover { color: var(--foreground); }

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

#cart-items { margin-bottom: 1.5rem; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.cart-item-title {
  font-size: 0.85rem;
  flex: 1;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--muted); }

.item-price {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 50px;
  text-align: right;
}

/* checkout form inside cart */
.checkout-form h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted-fg);
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  resize: vertical;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.cart-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-empty {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--muted-fg);
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.btn-empty:hover { color: var(--foreground); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover { opacity: 0.9; }
.btn-whatsapp:disabled { opacity: 0.5; cursor: default; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .features-inner { gap: 1.5rem; }
  .hero { height: 520px; }
  .nav-links { gap: 0.8rem; }
  .nav-link { display: none; }
}