:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #2b211c;
  --text-muted: #6b5d52;
  --accent: #a14e32;
  --accent-hover: #8a3f28;
  --accent-text: #ffffff;
  --secondary-bg: transparent;
  --secondary-border: #2b211c;
  --secondary-text: #2b211c;
  --card-bg: #ffffff;
  --card-image-bg: #efe7dc;
  --footer-bg: #f1ece3;
  --footer-text: #2b211c;
  --contact-bg: #f1ece3;
  --contact-text: #2b211c;
  --hairline: rgba(43, 33, 28, 0.12);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1200px;

  /* 4pt-based spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Fluid section rhythm: tight footer, breathing hero/contact, structured products */
  --section-sm: clamp(2rem, 4vw, 3rem);
  --section-md: clamp(3.5rem, 7vw, 5.5rem);
  --section-lg: clamp(4.5rem, 9vw, 7rem);

  /* Subtle elevation scale */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);

  /* Semantic z-index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Bengali', 'Vrinda', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  padding: var(--space-sm) 0;
}

.header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

@media (min-width: 640px) {
  .nav-links a {
    padding: 0.25rem 0.5rem;
  }
}

.nav-links a:hover {
  opacity: 0.7;
}

@media (min-width: 640px) {
  .nav {
    gap: var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
    font-size: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.15s, background-color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--secondary-bg);
  color: var(--secondary-text);
  border-color: var(--secondary-border);
}

.btn-secondary:hover {
  background-color: rgba(43, 33, 28, 0.04);
}

/* Hero — centered single column */
.hero {
  padding-block: var(--space-md);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
}

.hero-content {
  flex: none;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.hero-content h1 {
  margin-bottom: var(--space-sm);
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: var(--space-md);
  max-width: 520px;
  text-wrap: pretty;
}

.hero-content .lead {
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-image {
  flex: none;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: 36svh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 44px -16px rgba(43, 33, 28, 0.22);
}

/* Gentle first-load reveal — enhances an already-visible default */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hero-content > *,
.hero-image {
  animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.04s; }
.hero-content > *:nth-child(2) { animation-delay: 0.10s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.22s; }
.hero-image { animation-delay: 0.12s; }

/* Section header */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header .eyebrow {
  display: block;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  text-wrap: balance;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  max-width: 520px;
  text-wrap: pretty;
}

/* Highlights strip */
.highlights {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.highlights .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.highlight svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* Products */
.products {
  padding: var(--section-md) 0;
}

.products .section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.products .section-header .eyebrow {
  display: inline-block;
}

.products .section-subtitle {
  margin-inline: auto;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1 1 320px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-image {
  background-color: var(--card-image-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  aspect-ratio: 1;
}

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

.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-meta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Contact */
.contact {
  background-color: var(--contact-bg);
  color: var(--contact-text);
  padding: var(--section-md) 0 var(--section-lg);
}

.contact .section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.contact .section-header .eyebrow {
  display: inline-block;
}

.contact .section-subtitle {
  margin-inline: auto;
  color: var(--text-muted);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  transition: background-color 0.2s, border-color 0.2s;
  flex: 1 1 260px;
  min-height: 64px;
}

.contact-card:hover {
  background-color: var(--surface);
  border-color: rgba(43, 33, 28, 0.25);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon.facebook {
  background-color: #1877f2;
  color: #fff;
}

.contact-icon.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.contact-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-text span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.contact-arrow {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--section-sm) 0;
  border-top: 1px solid var(--hairline);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 60ch;
  text-wrap: pretty;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Theme utilities */
.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (min-width: 900px) {
  .hero .container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .product-card-inner {
    height: 100%;
  }
}

@media (min-width: 640px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .contact-card,
  .nav-links a,
  .product-card {
    transition: none;
  }

  .btn:active {
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

  .hero-content > *,
  .hero-image {
    animation: none;
  }
}

/* Order form */
.order { padding: var(--section-md) 0 var(--section-lg); }
.order .container { max-width: 560px; }

.order-head { margin-bottom: var(--space-lg); }
.order-head h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: var(--space-2xs);
}
.order-subtitle {
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.form { display: grid; gap: var(--space-md); }

.field { display: grid; gap: var(--space-2xs); }
.field-label { font-weight: 600; font-size: 0.95rem; }
.field-label .req { color: var(--accent); margin-left: 2px; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 78, 50, 0.18);
}

.textarea { min-height: 96px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-actions { margin-top: var(--space-xs); }
.form-actions .btn { width: 100%; }

.form-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 44px;
  padding: 0.25rem 0;
}
.back-link:hover { color: var(--text); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error { color: #b3261e; font-size: 0.9rem; min-height: 1.25em; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .input, .select, .textarea { transition: none; }
}

/* Order success */
.success { padding: var(--section-md) 0 var(--section-lg); }
.success .container { max-width: 560px; }

.success-card {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.success-check {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: var(--space-2xs);
}

.success-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--space-2xs);
}

.success-card p {
  color: var(--text-muted);
  max-width: 44ch;
}

.success-ref { font-size: 1rem; }
.success-ref strong { color: var(--text); }

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.success-actions .btn { width: 100%; }

@media (min-width: 480px) {
  .success-actions .btn { width: auto; min-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .success-check { animation: none; }
}

/* Dashboard */
.dashboard { padding: var(--section-md) 0 var(--section-lg); }
.dashboard h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

#state {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  min-height: 1.25em;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.dashboard table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background-color: var(--surface);
}

.dashboard th, .dashboard td {
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.dashboard th {
  background-color: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

.dashboard tbody tr:last-child td { border-bottom: none; }

.dashboard td.address-cell { max-width: 280px; white-space: pre-wrap; word-break: break-word; }

.status-select {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.status-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 78, 50, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .status-select { transition: none; }
}
