:root {
  --background: #fff7f8;
  --surface: #fffdfb;
  --foreground: #2f1f24;
  --muted: #7f6670;
  --border: rgba(118, 79, 92, 0.14);
  --gold: #c58a7a;
  --gold-soft: rgba(197, 138, 122, 0.18);
  --pink: #f7dbe2;
  --pink-strong: #eab7c4;
  --rose-shadow: rgba(184, 125, 142, 0.18);
  --green: #25d366;
  --shadow: 0 24px 80px rgba(163, 119, 130, 0.12);
  --max-width: 1180px;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-body);
  background: radial-gradient(circle at top left, rgba(234, 183, 196, 0.5), transparent 24%), radial-gradient(circle at top right, rgba(197, 138, 122, 0.18), transparent 26%), linear-gradient(180deg, #fffaf8 0%, #fff1f4 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.page-shell { min-height: 100vh; }
.container { width: min(var(--max-width), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 4rem 0; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }

.card { background: rgba(255,252,251,0.92); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .95rem 1.4rem; border: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, #34242a 0%, #6d4551 100%); color: #fff; box-shadow: 0 18px 42px rgba(88,50,61,0.24); }
.button-secondary { background: rgba(255,248,249,0.84); color: var(--foreground); border: 1px solid rgba(118,79,92,0.18); }
.button-whatsapp { background: var(--green); color: #fff; box-shadow: 0 16px 36px rgba(37,211,102,0.28); }

.grid { display: grid; gap: 1.5rem; }
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill,minmax(240px,320px)); justify-content: start; }

.brand-logo-wrap { position: relative; width: 86px; height: 86px; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(250,232,237,0.95)); box-shadow: 0 14px 40px var(--rose-shadow); flex-shrink: 0; }

.soft-panel { background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,240,244,0.92)), radial-gradient(circle at top right, rgba(234,183,196,0.35), transparent 35%); }

.hero-shell { overflow: hidden; }
.hero-copy { min-width: 0; }
.hero-title { text-wrap: balance; }
.hero-actions { align-items: stretch; }
.hero-art { align-self: stretch; }
.product-detail-layout { grid-template-columns: minmax(0,1.05fr) minmax(320px,0.95fr); }
.product-info-panel, .product-media-stack { min-width: 0; }
.product-title { text-wrap: balance; }
.product-cta-stack { align-items: stretch; }

.field { display: grid; gap: .45rem; }
.field input, .field textarea, .field select { width: 100%; border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: .95rem 1rem; }
.field textarea { min-height: 140px; resize: vertical; }

.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { padding: 2rem; border-right: 1px solid var(--border); background: rgba(255,253,248,0.92); position: sticky; top: 0; height: 100vh; }
.admin-main { padding: 2rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--border); }

/* Nav toggle - hidden on desktop */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: .5rem; color: var(--foreground); min-width: 44px; min-height: 44px; line-height: 1; }
.nav-wrap { display: inline-flex; align-items: center; gap: .5rem; }
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 880px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
}

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 3rem 0; }
  .container { width: min(var(--max-width), calc(100% - 1.2rem)); }
  .product-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex !important; }
  .nav-wrap { width: 100%; }
  .site-nav { display: none !important; flex-direction: column; width: 100%; gap: 0; }
  .nav-wrap.nav-open .site-nav { display: flex !important; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid var(--border); }

  .brand-logo-wrap { width: 68px; height: 68px; border-radius: 20px; }

  header .card { flex-direction: column; }
  header .card > a { flex-shrink: 0; }

  .hero-shell { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 1.25rem !important; }
  .hero-title { font-size: clamp(2.4rem,13vw,3.5rem) !important; line-height: .92 !important; }
  .hero-copy p { max-width: none !important; font-size: 1rem !important; }
  .hero-actions { display: grid !important; grid-template-columns: 1fr; gap: .85rem !important; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero-art { order: -1; min-height: 220px !important; max-height: 260px; }

  .product-detail-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .product-info-panel { padding: 1.25rem !important; }
  .product-cta-stack { display: grid !important; grid-template-columns: 1fr; gap: .85rem !important; }
  .product-cta-stack .button { width: 100%; min-height: 58px; }

  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-form { order: 2; }
  .checkout-sidebar { order: 1; }

  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 600px; }

  .button { min-height: 48px; padding: .85rem 1.2rem; }
  .admin-main { padding: 1rem; }
  .admin-sidebar { padding: 1rem; }

  .cat-pills { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: .5rem; }
}
