:root {
  --bg: #f6f1ea;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --ink: #1b1b1b;
  --muted: #6e655e;
  --line: rgba(27, 27, 27, 0.12);
  --accent: #b48962;
  --accent-deep: #7a5b46;
  --shadow: 0 24px 60px rgba(32, 24, 17, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 137, 98, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f2eb 0%, #f6f1ea 40%, #f4ede5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.primary-link {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.secondary-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
}

.announcement {
  text-align: center;
  padding: 0.8rem 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.73rem;
  background: #1f1c19;
  color: #f6eee6;
}

.site-header,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5vw;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 241, 234, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(27, 27, 27, 0.06);
  z-index: 10;
}

.admin-header {
  background: #1c1815;
  color: #f9f2ea;
}

.brand {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  letter-spacing: 0.22em;
}

.main-nav,
.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.nav-inline {
  margin: 0;
}

.nav-button {
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
}

.main-nav a,
.admin-header a {
  font-size: 0.95rem;
}

.flash {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #f0e1d2;
  color: #503b2e;
}

.flash.error {
  background: #f3d8d2;
  color: #682b23;
}

main {
  padding-bottom: 5rem;
}

.hero,
.section-shell,
.admin-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.hero-copy,
.hero-panel,
.panel,
.auth-card,
.order-summary,
.product-card,
.category-panel,
.stat-card {
  border: 1px solid rgba(27, 27, 27, 0.08);
  background: rgba(255, 250, 244, 0.84);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.panel,
.auth-card,
.order-summary,
.stat-card {
  border-radius: 32px;
}

.hero-copy {
  padding: clamp(2rem, 4vw, 4rem);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(27, 27, 27, 0.06)),
    linear-gradient(140deg, #d7c0ab 0%, #b08a6a 45%, #5b4436 100%);
  color: #fff8f0;
}

.hero-copy h1,
.section-shell h1,
.section-shell h2,
.auth-card h1 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

.hero-copy p,
.section-shell p,
.lead,
.muted {
  color: var(--muted);
}

.hero-copy p {
  max-width: 42rem;
  color: rgba(255, 248, 240, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-panel {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 240, 232, 0.96)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(180, 137, 98, 0.04) 12px, rgba(180, 137, 98, 0.04) 24px);
}

.hero-stat,
.summary-row,
.detail-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-child,
.summary-row:last-child,
.detail-grid div:last-child {
  border-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent-deep);
  margin-bottom: 0.8rem;
}

.section-shell,
.admin-shell {
  padding-top: 1.4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-head h2,
.section-head h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.category-grid,
.product-grid,
.stat-grid,
.admin-grid {
  display: grid;
  gap: 1.2rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid {
  grid-template-columns: 0.95fr 1.05fr;
  margin: 1.2rem 0;
}

.category-panel,
.product-card {
  border-radius: 28px;
  overflow: hidden;
}

.category-panel {
  min-height: 220px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, transparent, rgba(23, 18, 15, 0.18)),
    linear-gradient(135deg, #f3e5d3 0%, #d6b79c 55%, #b18b6b 100%);
}

.category-panel strong {
  font-size: 1.4rem;
  line-height: 1.15;
  color: #2c211a;
}

.product-card {
  background: var(--surface-strong);
}

.product-visual {
  height: 290px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.78), transparent 20%),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 36%, white), color-mix(in srgb, var(--accent) 90%, black 8%));
}

.product-visual span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 244, 0.88);
  color: #2f241d;
  letter-spacing: 0.12em;
  font-size: 1.7rem;
}

.product-copy {
  padding: 1.25rem;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f1e4d4;
  color: #78553e;
}

.product-copy h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.34rem;
}

.product-meta,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.page-top {
  padding-top: 2rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.4rem;
}

.detail-copy {
  padding: 1rem 0;
}

.detail-grid {
  display: grid;
  gap: 0.2rem;
  margin: 1.3rem 0;
}

.cart-layout,
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr;
  gap: 1.25rem;
}

.order-summary,
.panel,
.auth-card {
  padding: 1.4rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 24px;
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cart-table tr:last-child td {
  border-bottom: 0;
}

.stack-form {
  display: grid;
  gap: 0.95rem;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
  color: #41352c;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.inline-form input,
.inline-form select,
.cart-table input {
  width: 100%;
  border: 1px solid rgba(27, 27, 27, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.inline-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.inline-form input {
  max-width: 100px;
}

.stat-card {
  padding: 1.2rem 1.3rem;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.auth-card {
  width: min(520px, 100%);
}

@media (max-width: 1100px) {
  .hero,
  .product-grid,
  .category-grid,
  .product-detail,
  .checkout-grid,
  .cart-layout,
  .admin-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 400px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .admin-header {
    padding: 1.2rem 1rem;
  }

  .hero,
  .section-shell,
  .admin-shell {
    width: min(100% - 1rem, 1200px);
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .auth-card,
  .order-summary,
  .product-copy {
    padding: 1.1rem;
  }

  .cart-table th,
  .cart-table td {
    padding: 0.75rem;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}
