:root {
  --bg: #f6f1e8;
  --bg-soft: #fbf7f0;
  --card: rgba(255, 255, 255, 0.74);
  --card-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(64, 41, 23, 0.11);
  --stroke-strong: rgba(64, 41, 23, 0.2);
  --ink: #1f160f;
  --muted: #6a5645;
  --brand: #8a2d1b;
  --brand-strong: #6f2112;
  --brand-soft: #fde8dc;
  --accent: #1d6b57;
  --accent-soft: #ddf5ed;
  --gold: #e3a533;
  --shadow: 0 24px 60px rgba(66, 34, 14, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(227, 165, 51, 0.26), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 107, 87, 0.2), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 54%, #f1ebdf 100%);
}

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

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(16px);
  opacity: 0.65;
}

.site-shell::before {
  width: 240px;
  height: 240px;
  top: 92px;
  right: -40px;
  background: rgba(138, 45, 27, 0.08);
  border-radius: 50%;
}

.site-shell::after {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: -90px;
  background: rgba(29, 107, 87, 0.1);
  border-radius: 50%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: rgba(248, 241, 231, 0.72);
  border-bottom: 1px solid rgba(64, 41, 23, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 233, 219, 0.88));
  box-shadow: 0 12px 24px rgba(88, 52, 29, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.section-title,
.hero-title,
.page-title,
.detail-title,
.summary-total {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.brand-copy small,
.section-copy,
.hero-subtitle,
.muted,
.meta-text,
.footer-copy,
.page-copy {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  border-radius: 999px;
}

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

.nav-link,
.chip,
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-link:hover,
.chip:hover,
.mini-chip:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--stroke);
}

.cart-pill,
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cart-pill,
.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 16px 30px rgba(111, 33, 18, 0.22);
}

.cart-pill.is-active {
  box-shadow: 0 18px 34px rgba(111, 33, 18, 0.28);
}

.cart-pill span {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--stroke);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--ink);
}

.cart-pill:hover,
.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.flash {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.82);
}

.flash-success {
  border-color: rgba(29, 107, 87, 0.2);
  background: rgba(221, 245, 237, 0.82);
}

.flash-error {
  border-color: rgba(138, 45, 27, 0.18);
  background: rgba(253, 232, 220, 0.84);
}

.page,
.page-home {
  padding: 32px 0 72px;
}

.hero,
.page-hero,
.card,
.product-card,
.filter-panel,
.detail-panel,
.summary-card,
.checkout-card,
.highlight-card,
.step-card,
.empty-state {
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 38px;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 165, 51, 0.22), transparent 68%);
}

.hero-badge,
.section-eyebrow,
.badge,
.stock-badge,
.info-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(64, 41, 23, 0.12);
  color: var(--muted);
}

.hero-title,
.page-title,
.detail-title {
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.04;
}

.hero-subtitle,
.page-copy {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 62ch;
}

.hero-actions,
.hero-metrics,
.chips,
.section-actions,
.detail-actions,
.checkout-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel,
.summary-card,
.detail-panel,
.checkout-card,
.highlight-card,
.step-card,
.filter-panel,
.empty-state {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.metric-card,
.mini-stat,
.category-card,
.thumb-button {
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.74);
}

.hero-metrics,
.metrics-grid,
.category-grid,
.product-grid,
.highlight-grid,
.steps-grid,
.cart-grid,
.checkout-grid,
.detail-grid,
.gallery-thumbs {
  display: grid;
  gap: 18px;
}

.metrics-grid,
.category-grid,
.highlight-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.mini-stat,
.category-card {
  padding: 18px;
}

.metric-value,
.mini-stat strong,
.summary-total,
.product-price {
  display: block;
  font-size: 1.42rem;
  font-weight: 800;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.category-card,
.product-card,
.step-card,
.highlight-card {
  overflow: hidden;
}

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

.product-card {
  border-radius: 26px;
}

.product-media,
.gallery-main {
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(135deg, rgba(138, 45, 27, 0.1), rgba(29, 107, 87, 0.08));
}

.product-media img,
.gallery-main img,
.thumb-button img,
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media.placeholder,
.gallery-main.placeholder,
.cart-thumb.placeholder {
  display: grid;
  place-items: center;
  padding: 26px;
  color: rgba(31, 22, 15, 0.55);
  text-align: center;
  font-weight: 700;
}

.product-body {
  padding: 20px;
}

.product-meta,
.product-stats,
.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.product-name {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.product-desc {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

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

.product-actions .button,
.product-actions .button-secondary {
  flex: 1 1 0;
}

.page-hero {
  padding: 30px 32px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.field,
.textarea,
.select,
.qty-input {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 16px;
  color: var(--ink);
}

.textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.filter-group,
.checkout-form-grid {
  display: grid;
  gap: 12px;
}

.label {
  font-weight: 700;
  font-size: 0.92rem;
}

.detail-grid,
.checkout-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: start;
  margin-top: 24px;
}

.gallery-panel,
.detail-panel {
  border-radius: 28px;
  overflow: hidden;
}

.gallery-main {
  border-bottom: 1px solid var(--stroke);
}

.gallery-thumbs {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  padding: 18px;
}

.thumb-button {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.thumb-button.is-active {
  outline: 2px solid rgba(138, 45, 27, 0.46);
}

.detail-title {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.detail-copy {
  color: var(--muted);
  line-height: 1.8;
}

.variation-list,
.item-list {
  display: grid;
  gap: 14px;
}

.variation-card,
.cart-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
}

.variation-card.is-default {
  border-color: rgba(138, 45, 27, 0.28);
}

.variation-top,
.cart-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.summary-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.summary-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(64, 41, 23, 0.08);
}

.cart-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.cart-thumb {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
}

.cart-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.summary-card {
  position: sticky;
  top: 100px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(64, 41, 23, 0.12);
}

.summary-line:last-child {
  border-bottom: 0;
}

.footer {
  padding: 28px 0 38px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(64, 41, 23, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero,
  .detail-grid,
  .checkout-grid,
  .cart-grid,
  .catalog-layout,
  .metrics-grid,
  .highlight-grid,
  .steps-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--stroke);
    background: rgba(255, 250, 244, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link,
  .cart-pill {
    width: 100%;
  }

  .hero,
  .page-hero,
  .detail-panel,
  .gallery-panel,
  .summary-card,
  .checkout-card,
  .filter-panel,
  .highlight-card,
  .step-card,
  .empty-state {
    padding: 22px;
    border-radius: 24px;
  }

  .metrics-grid,
  .category-grid,
  .product-grid,
  .highlight-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100vw - 20px, 100%);
  }

  .page,
  .page-home {
    padding: 24px 0 56px;
  }

  .hero-title,
  .page-title,
  .detail-title {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .brand-copy small {
    font-size: 0.77rem;
  }

  .product-actions,
  .hero-actions,
  .detail-actions,
  .checkout-actions,
  .button-row {
    flex-direction: column;
  }

  .product-actions .button,
  .product-actions .button-secondary,
  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 100%;
    height: 220px;
  }

  .variation-top {
    grid-template-columns: 1fr;
  }
}
