:root {
  --ink: #18120b;
  --muted: #725f4f;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #ead9bb;
  --gold: #c9993d;
  --gold-dark: #8a621d;
  --rose: #9b414a;
  --green: #1f6b53;
  --shadow: 0 18px 50px rgba(53, 34, 11, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(234, 217, 187, .8);
  background: rgba(255, 250, 242, .92);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.1rem; }
.brand small { color: var(--gold-dark); letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 20px; color: var(--muted); }
nav a:hover { color: var(--gold-dark); }

.cart-button, .button, .icon-button {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  min-height: 42px;
}
.cart-button {
  background: var(--ink);
  color: white;
  padding: 0 16px;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-weight: 750;
}
.primary { background: var(--gold); color: #171006; }
.secondary { background: #f3e4c9; color: #3f2b0d; }
.ghost { border: 1px solid rgba(255,255,255,.58); color: white; background: rgba(255,255,255,.06); }
.wide { width: 100%; }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 70px);
  background:
    linear-gradient(115deg, rgba(0,0,0,.82), rgba(0,0,0,.52)),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, serif;
  font-size: clamp(2.45rem, 7vw, 6.2rem);
  line-height: .94;
  font-weight: 500;
}
.hero p { max-width: 650px; font-size: 1.1rem; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-logo {
  justify-self: center;
  width: min(100%, 430px);
  padding: 14px;
  border: 1px solid rgba(201, 153, 61, .6);
  background: rgba(0,0,0,.42);
  box-shadow: var(--shadow);
}
.hero-logo img { aspect-ratio: 1; object-fit: cover; }

.section { padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 70px); }
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: .76rem;
}
h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 500; }
h3 { margin-top: 0; }
.muted { color: var(--muted); }
.section-heading, .panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(53, 34, 11, .07);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee0c7;
}
.product-body { padding: 16px; }
.product-body h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.22rem; }
.price { color: var(--gold-dark); font-weight: 850; }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #f5ead6; color: var(--gold-dark); font-size: .78rem; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 13px;
  color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
label { color: var(--muted); font-size: .92rem; }

.checkout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  background: #fff;
  border-block: 1px solid var(--line);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(53, 34, 11, .08);
}
form.panel { display: grid; gap: 12px; }
.payment-box {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #fff7e7;
  border: 1px solid var(--line);
}
.payment-box img { width: 150px; height: 150px; background: white; border: 1px solid var(--line); }

.admin-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; margin-top: 18px; }
.login-panel { max-width: 420px; }
.login-panel img { width: 118px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 4px; border-radius: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #15100a; color: white; border-radius: 8px; padding: 16px; }
.stat strong { display: block; font-size: 1.7rem; color: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  z-index: 30;
  transform: translateX(105%);
  transition: transform .25s ease;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; }
.icon-button { width: 38px; background: #f0dfc0; }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.cart-total { margin-top: auto; display: flex; justify-content: space-between; font-size: 1.15rem; padding: 18px 0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.52);
}
.modal-panel { width: min(460px, 100%); position: relative; }
.modal-close { position: absolute; right: 12px; top: 12px; }
.privacy { font-size: .84rem; color: var(--muted); margin: 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--green);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #062213;
  font-weight: 900;
  box-shadow: var(--shadow);
}
footer {
  text-align: center;
  padding: 42px 16px;
  background: #080705;
  color: white;
}
footer img { width: 96px; height: 96px; object-fit: cover; margin: 0 auto 12px; border-radius: 50%; border: 1px solid var(--gold); }
.hidden { display: none !important; }

@media (max-width: 840px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  .hero, .intro, .checkout, .admin-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .filters { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .payment-box { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; }
  .card-actions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
