:root {
  --bg: #f5efe6;
  --bg-alt: #fffaf2;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --line: #e5e7eb;
  --shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.18), transparent 24%),
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.14), transparent 28%);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  min-width: 250px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
}

.hero {
  padding: 44px 0 18px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  color: #0f766e;
  font-weight: 600;
  margin: 0 0 8px;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
}

.hero-sub {
  color: var(--muted);
  margin-top: 12px;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.card-sample {
  border-radius: 18px;
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow);
}

.card-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title {
  font-size: 1.25rem;
  margin: 10px 0 16px;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
  animation: rise-in 0.5s ease both;
}

.card:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.card img {
  width: 100%;
  height: 155px;
  border-radius: 10px;
  object-fit: cover;
}

.meta {
  margin-top: 10px;
}

.small {
  color: var(--muted);
  font-size: 0.87rem;
}

.name {
  font-weight: 700;
  margin: 4px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 800;
}

.badge {
  font-size: 0.76rem;
  padding: 4px 8px;
  background: #fff2e8;
  color: var(--accent-strong);
  border-radius: 999px;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.actions .btn {
  flex: 1;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(94vw, 360px);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h3 {
  margin: 0;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 10px 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 600;
  margin: 0;
}

.qty-controls {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 14px;
  background: #fffcf8;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row.total {
  font-weight: 800;
}

.cart-actions {
  display: flex;
  gap: 8px;
}

.cart-actions .btn {
  flex: 1;
}

.empty-cart {
  color: var(--muted);
  text-align: center;
  padding: 30px 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 25;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(96vw, 520px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea.field-input {
  resize: vertical;
}

.pay-box {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 4px;
}

.pay-box legend {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0 6px;
}

.cash-only {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkout-error {
  margin: 4px 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.success-card {
  text-align: center;
}

.success-text {
  color: var(--muted);
  margin: 10px 0 16px;
}

.site-footer {
  margin-top: 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .search {
    min-width: 0;
    width: 40vw;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }

  .hero-ctas {
    flex-wrap: wrap;
  }

  .container {
    padding: 16px;
  }

  .modal-card {
    padding: 14px;
  }
}
