:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --ink: #211a16;
  --muted: #766b63;
  --brand: #d6652d;
  --brand-dark: #9b3f1d;
  --brand-soft: #ffe2d1;
  --accent: #ffd166;
  --line: #f1dfd3;
  --shadow: 0 24px 60px rgba(62, 36, 20, 0.12);
  --radius: 24px;
}

* { 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:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.26), transparent 34rem),
    linear-gradient(180deg, var(--bg), #fff 48rem);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(241, 223, 211, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(214, 101, 45, 0.28);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #fff1e7);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.46);
  right: -70px;
  top: -70px;
}

.hero-card img {
  width: min(280px, 82%);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(62, 36, 20, 0.14));
}

.hero-card div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.stat {
  font-weight: 900;
  font-size: 20px;
}
.stat-note { color: var(--muted); }

.intro-strip, .deals-section {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 14px 40px rgba(62, 36, 20, 0.06);
  margin-bottom: 32px;
}

.intro-strip {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  align-items: start;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.intro-strip p, .section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.feature-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 16px;
}

.feature-grid h3, .product-card h3 {
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-grid p { color: var(--muted); line-height: 1.55; margin: 0; }

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.search-panel {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 20px;
}

.search-panel label {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.search-bar {
  display: flex;
  gap: 10px;
}

.search-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.search-bar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(214, 101, 45, 0.12);
}

.search-bar button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.status-message {
  color: var(--muted);
  font-weight: 700;
  margin: 12px 0 18px;
}

.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(62, 36, 20, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(62, 36, 20, 0.12);
}

.product-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff2e8, #fffaf4);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image span {
  color: var(--brand-dark);
  font-weight: 900;
  padding: 20px;
  text-align: center;
}

.product-body { padding: 16px; }
.product-category {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-price {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  margin: 0;
}

.site-footer {
  margin-top: 48px;
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}
.site-footer p { margin: 0; }

/* Admin page */
.admin-body {
  min-height: 100vh;
  background: #fffaf4;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-topbar img { width: 78px; height: 78px; object-fit: contain; }
.admin-topbar a { color: var(--brand-dark); font-weight: 900; text-decoration: none; }

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 24px;
}

.admin-card form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
}

.admin-card input,
.admin-card select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.admin-card button,
.admin-button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 900;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(62, 36, 20, 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #fff4eb;
  color: var(--brand-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; background: #fffaf4; }
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin: 3px;
  border-radius: 999px;
  background: #fff4eb;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 900;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(255, 209, 102, 0.35), transparent 30rem), linear-gradient(135deg, #fffaf4, #ffe2d1);
}

.login-container {
  width: min(420px, 100%);
  background: #fff;
  padding: 34px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
}

.login-container img { width: 170px; height: 170px; object-fit: contain; margin-bottom: 8px; }
.login-container input {
  width: 100%;
  min-height: 48px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.login-container button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.error { color: #b42318; font-weight: 800; }

@media (max-width: 1040px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-strip, .hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { min-height: 320px; }
  .admin-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { position: static; align-items: center; flex-direction: column; gap: 6px; }
  .brand img { width: 92px; height: 92px; }
  .site-nav { justify-content: center; }
  main { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(38px, 14vw, 52px); }
  .feature-grid, .products { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar button { min-height: 48px; }
  .admin-card form { grid-template-columns: 1fr; }
  .admin-topbar { flex-direction: column; text-align: center; }
}
