:root {
  --bg: #fff7f0;
  --card: #ffffff;
  --text: #2b1c12;
  --muted: #6f5744;
  --brand: #f76707;
  --brand-dark: #c54500;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: #1c120b;
  --card: #2a1c14;
  --text: #f7f0e8;
  --muted: #cdb7a6;
  --brand: #ff8c42;
  --brand-dark: #ff6a00;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.admin-fab {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.top-info {
  display: flex;
  gap: 18px;
  padding: 8px 24px;
  font-size: 14px;
  color: var(--muted);
  justify-content: flex-end;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 16px 120px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.brand-logo-img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.cta.full {
  width: 100%;
  text-align: center;
}

.ghost {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}

.hero-banner {
  margin: 24px auto 0;
  max-width: 1200px;
  border-radius: 32px;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1529042410759-befb1204b468?auto=format&fit=crop&w=1400&q=80") center/cover;
  min-height: 360px;
  position: relative;
}

.hero-overlay {
  position: relative;
  padding: 40px;
  color: #fff;
  background: linear-gradient(120deg, rgba(15, 11, 8, 0.9), rgba(15, 11, 8, 0.6));
  min-height: 360px;
}

.hero-overlay h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-overlay p {
  margin: 0 0 18px;
  max-width: 520px;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

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

.hero-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  font-size: 14px;
}

.hero-meta strong {
  display: block;
  margin-bottom: 4px;
}

.steps {
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.steps-grid article {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 140px;
}

.step-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(247, 103, 7, 0.15);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.content {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.categories-bar {
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(247, 103, 7, 0.12);
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--brand);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-cover {
  height: 180px;
  position: relative;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-body h3 {
  margin: 0;
}

.card-body .muted {
  color: var(--muted);
  font-size: 14px;
}

.add-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.checkout-panel {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-panel h3 {
  margin-top: 0;
}

.form-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.step-label {
  font-weight: 700;
  color: var(--brand);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

.input-row button {
  white-space: nowrap;
  border-radius: 12px;
  border: none;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.delivery-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.delivery-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.delivery-option.active {
  background: rgba(247, 103, 7, 0.15);
  border-color: var(--brand);
  color: var(--brand);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.helper {
  font-size: 13px;
  color: var(--muted);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(247, 103, 7, 0.05);
}

.cart-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
}

.cart-item footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.cart-item button {
  border: none;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
}

.cart-summary {
  display: grid;
  gap: 6px;
  font-size: 14px;
  margin-top: 10px;
}

.checkout-btn {
  border: none;
  border-radius: 18px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
  margin-top: 12px;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cashback-section,
.delivery-zones {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 24px;
}

.cashback-form {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 480px;
}

.faq-grid,
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.faq-grid article,
.zones-grid article {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pill-note {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(247, 103, 7, 0.1);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.site-footer {
  background: var(--card);
   border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  width: min(500px, 100%);
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

#product-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-list label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.product-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.product-modal-actions button {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.product-modal-actions .primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 1024px) {
  .nav {
    flex-wrap: wrap;
    padding-left: 24px;
  }

  .admin-fab {
    top: 80px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .top-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-overlay {
    padding: 24px;
  }

  .admin-fab {
    position: static;
    margin: 12px;
  }
}
