@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
  --black: #3b1b06;
  --ink: #2d1607;
  --paper: #fffdf8;
  --soft: #fff8e8;
  --line: #f0dfbd;
  --gold: #f2dfb1;
  --gold-light: #fff4d7;
  --gold-soft: #fffaf0;
  --bronze: #7a3304;
  --muted: #60432b;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Playfair Display", Georgia, "Times New Roman", serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button, .button { border: 0; background: var(--bronze); color: #fff; padding: 12px 18px; border-radius: 6px; cursor: pointer; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
button:hover, .button:hover { background: var(--black); color: #fff; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }

.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; background: rgba(255,250,242,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { font-size: 20px; font-weight: 900; letter-spacing: 0; color: var(--black); }
.brand-logo { width: 142px; display: inline-flex; align-items: center; }
.brand-logo img { width: 100%; max-height: 54px; object-fit: contain; }
.search { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cart-link { justify-self: end; font-weight: 700; }
.category-nav { display: flex; gap: 10px; overflow-x: auto; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--gold-soft); }
.category-nav a, .categories-grid a, .collections a { white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; background: #fff; color: var(--black); font-weight: 900; }
.flash { margin: 14px auto; max-width: 1180px; padding: 12px 16px; border-radius: 6px; }
.flash.success { background: #edf8ef; color: #205b2c; }
.flash.error { background: #fff0f0; color: #8a1f1f; }

.hero { min-height: 70vh; position: relative; display: flex; align-items: end; padding: 28px 18px; background: var(--gold); color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .58; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(197,121,16,.18) 10%, rgba(74,35,8,.84)); }
.hero div { position: relative; z-index: 1; max-width: 760px; }
.hero p { color: var(--gold); text-transform: uppercase; font-size: 13px; font-weight: 800; }
.hero h1 { font-size: clamp(38px, 8vw, 88px); line-height: .98; margin: 0 0 16px; letter-spacing: 0; font-weight: 900; color: var(--black); }
.hero span { display: block; max-width: 580px; font-size: 18px; margin-bottom: 22px; }
.button.light { background: #fff; color: var(--black); }
.section { max-width: 1180px; margin: 0 auto; padding: 34px 18px; }
.section h1, .section h2 { margin: 0 0 18px; color: var(--black); font-weight: 900; }
.categories-grid, .collections { display: flex; gap: 12px; overflow-x: auto; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px rgba(197,121,16,.09); }
.product-card img { width: 100%; aspect-ratio: 3 / 4; background: var(--soft); }
.product-card strong, .product-card span { display: block; padding: 10px 12px; }
.product-card span { color: var(--gold); font-weight: 800; padding-top: 0; }
.product-card del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.filters { display: grid; gap: 10px; margin-bottom: 20px; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline input { width: auto; }
.product-detail { max-width: 1180px; margin: 0 auto; padding: 24px 18px; display: grid; gap: 24px; }
.gallery { display: grid; gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--soft); }
.buy-box { display: grid; align-content: start; gap: 16px; }
.price { font-size: 26px; color: var(--gold); font-weight: 800; }
.stack-form { display: grid; gap: 14px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.icon-button.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 6px; background: transparent; color: var(--bronze); }
.icon-button.password-toggle:hover { background: var(--gold-soft); color: var(--black); }
.cart-row { display: grid; grid-template-columns: 72px 1fr 86px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-row img { width: 72px; height: 92px; border-radius: 6px; background: var(--soft); }
.cart-row > span { grid-column: 2 / -1; font-weight: 800; }
.cart-total { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; padding-top: 18px; }
.checkout-grid { display: grid; gap: 22px; }
.summary { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--gold-soft); align-self: start; }
.summary p { display: flex; justify-content: space-between; gap: 12px; }
.whatsapp { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: #25d366; color: #102315; padding: 12px 16px; border-radius: 999px; font-weight: 800; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.footer { display: grid; gap: 8px; padding: 32px 18px 72px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); }
.footer-logo { width: 210px; max-width: 70vw; background: #fff; border-radius: 8px; padding: 10px; }

.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--gold-soft); padding: 18px; }
.auth-card { width: min(100%, 430px); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.auth-logo { width: 210px; max-width: 78%; margin: 0 auto 18px; }
.admin-page { display: grid; min-height: 100vh; background: var(--paper); }
.admin-sidebar { display: flex; gap: 8px; overflow-x: auto; padding: 12px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--black); }
.admin-sidebar a, .admin-sidebar button { flex: 0 0 auto; color: var(--black); background: rgba(255,255,255,.42); border: 1px solid rgba(122,51,4,.16); border-radius: 6px; padding: 10px 12px; min-height: 40px; font-weight: 900; }
.admin-sidebar .admin-logo { background: #fff; padding: 8px; }
.admin-logo img { width: 150px; max-height: 58px; object-fit: contain; }
.admin-main { padding: 18px; min-width: 0; }
.admin-panel, .stat-grid article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 18px; overflow-x: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-grid strong { display: block; font-size: 30px; }
.form-grid { display: grid; gap: 12px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }

@media (min-width: 760px) {
  .site-header { grid-template-columns: auto minmax(320px, 1fr) auto; padding: 16px 32px; }
  .search { grid-column: auto; }
  .category-nav { justify-content: center; padding-inline: 32px; }
  .hero { padding: 52px; min-height: 78vh; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .product-detail { grid-template-columns: 1.15fr .85fr; padding-top: 42px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-row { grid-template-columns: 90px 1fr 100px 120px; }
  .cart-row > span { grid-column: auto; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .admin-page { grid-template-columns: 240px minmax(0, 1fr); }
  .admin-sidebar { min-height: 100vh; flex-direction: column; overflow: visible; }
  .admin-main { padding: 28px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.admin-page {
  --admin-bg: #fffaf2;
  --admin-panel: rgba(255, 255, 255, .92);
  --admin-border: rgba(197, 121, 16, .34);
}
.admin-main {
  background:
    linear-gradient(135deg, rgba(231,173,67,.16), transparent 34%),
    var(--admin-bg);
}
.admin-sidebar {
  border-right: 1px solid rgba(255,255,255,.22);
  box-shadow: 12px 0 32px rgba(74,35,8,.08);
}
.admin-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.admin-nav a,
.admin-logout button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-nav svg,
.admin-logout svg,
.admin-action svg,
.admin-store-link svg,
.icon-text svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.admin-sidebar .admin-logo {
  border-color: rgba(255,255,255,.32);
  box-shadow: inset 0 0 0 1px rgba(197,121,16,.16);
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-topbar h1 {
  margin: 4px 0 0;
  font-size: clamp(34px, 4vw, 52px);
}
.admin-eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-store-link,
.admin-action,
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.admin-store-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  background: #fff;
  color: var(--bronze);
  font-weight: 800;
}
.admin-panel,
.stat-grid article {
  background: var(--admin-panel);
  border-color: var(--admin-border);
  box-shadow: 0 16px 36px rgba(197,121,16,.08);
}
.stat-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
}
.stat-grid article > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
}
.stat-grid strong {
  line-height: 1;
}
.stat-grid span {
  color: var(--muted);
}
.panel-header,
.action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.panel-header h2,
.action-panel h2 {
  margin: 4px 0 0;
}
.action-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}
.admin-table-panel table {
  min-width: 720px;
}
.admin-table-panel th {
  color: var(--bronze);
  font-size: 14px;
}
.admin-table-panel td {
  background: rgba(255,255,255,.54);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--bronze);
  font-size: 13px;
  font-weight: 800;
}
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.settings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.settings-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--gold-soft);
}
.settings-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.settings-summary strong {
  overflow-wrap: anywhere;
}
.button.secondary {
  background: #fff;
  color: var(--bronze);
  border: 1px solid var(--line);
}
.icon-only {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
}
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(58,28,8,.42);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  width: min(100%, 560px);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(43,19,3,.28);
  padding: 20px;
}
.modal-wide {
  width: min(100%, 880px);
}
.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-header {
  margin-bottom: 18px;
}
.modal-header h2 {
  margin: 4px 0 0;
}
.modal-actions {
  justify-content: flex-end;
  padding-top: 8px;
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 759px) {
  .admin-topbar,
  .panel-header,
  .action-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-store-link,
  .admin-action {
    justify-content: center;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .admin-nav {
    flex-direction: column;
    overflow: visible;
  }
  .admin-nav a,
  .admin-logout button {
    width: 100%;
  }
}

.storefront {
  background: #fffaf2;
}
.top-benefits {
  display: flex;
  gap: 18px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 14px;
  background: var(--gold-light);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.top-benefits span::before {
  content: "*";
  margin-right: 8px;
  color: var(--bronze);
}
.storefront .site-header {
  position: sticky;
  top: 0;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,250,242,.98);
}
.storefront .brand-logo {
  width: 168px;
}
.storefront .brand-logo img {
  max-height: 68px;
}
.storefront .search {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.storefront .search input {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.storefront .search button {
  border-radius: 999px;
  margin: 4px;
  min-height: 38px;
  padding-inline: 18px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  font-size: 14px;
  font-weight: 800;
  color: var(--bronze);
}
.storefront .cart-link {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font-weight: 900;
}
.storefront .category-nav {
  justify-content: flex-start;
  gap: 0;
  padding: 0 18px;
  background: #fff;
  border-top: 1px solid rgba(229,183,96,.55);
  border-bottom: 1px solid rgba(229,183,96,.65);
}
.storefront .category-nav a {
  border: 0;
  border-radius: 0;
  padding: 15px 14px;
  background: transparent;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.storefront .category-nav a:hover {
  background: var(--gold-soft);
}
.veggi-hero {
  min-height: 58vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,250,240,.94), rgba(242,223,177,.92)),
    var(--gold-soft);
  color: var(--black);
}
.veggi-hero img {
  opacity: .2;
}
.veggi-hero div {
  margin-inline: auto;
}
.veggi-hero p {
  color: var(--bronze);
  font-weight: 900;
}
.veggi-hero h1 {
  max-width: 900px;
  margin-inline: auto;
}
.veggi-hero span {
  margin-inline: auto;
}
.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  padding-top: 22px;
}
.category-tile {
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.28), transparent 24%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.42));
}
.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}
.category-tile span {
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
}
.category-tile small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--bronze);
}
.tile-2 { background: linear-gradient(135deg, #fffaf0, #f1dfb5); }
.tile-3 { background: linear-gradient(135deg, #fff7e6, #ead2a0); }
.tile-4 { background: linear-gradient(135deg, #fffdf8, #f2dfb1); }
.tile-5 { background: linear-gradient(135deg, #fff8e8, #ecd7aa); }
.tile-6 { background: linear-gradient(135deg, #fffaf0, #f5e7c8); }
.wide-banner {
  max-width: 1280px;
  margin: 10px auto 0;
  padding: 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}
.wide-banner span,
.section-heading span {
  display: block;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wide-banner h2 {
  max-width: 720px;
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--black);
  font-weight: 900;
}
.product-section {
  max-width: 1280px;
}
.section-heading {
  text-align: center;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--black);
  font-weight: 900;
}
.product-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.product-card a {
  display: grid;
  gap: 9px;
}
.product-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(229,183,96,.7);
  background: var(--gold-soft);
}
.product-card figure em {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.product-card img {
  transition: transform .25s ease;
}
.product-card:hover img {
  transform: scale(1.035);
}
.product-card strong,
.product-card span {
  padding: 0 2px;
}
.product-card strong {
  font-size: 16px;
  color: var(--black);
  font-weight: 900;
}
.product-price {
  color: var(--bronze);
  font-size: 17px;
  font-weight: 900;
}
.collection-strip {
  max-width: 1280px;
}
.store-footer {
  grid-template-columns: 1fr;
  gap: 24px;
}
.store-footer div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.store-footer h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

@media (max-width: 759px) {
  .wide-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .wide-banner .button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .top-benefits {
    gap: 48px;
  }
  .storefront .site-header {
    grid-template-columns: auto minmax(360px, 620px) auto;
    justify-content: center;
    padding: 14px 34px;
  }
  .storefront .search {
    grid-column: auto;
  }
  .storefront .category-nav {
    justify-content: center;
  }
  .category-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-tile {
    min-height: 190px;
  }
  .store-footer {
    grid-template-columns: 1.2fr .8fr 1fr;
    padding: 42px 52px 64px;
  }
}
