:root {
  --sand-50: #f6f1ea;
  --sand-100: #efe3d5;
  --sand-200: #e7d0b1;
  --stone-300: #d2b896;
  --stone-500: #9d7b5a;
  --stone-700: #5e4736;
  --forest-900: #2d352d;
  --forest-700: #3d4a3d;
  --text: #261d19;
  --muted: #6a5a52;
  --white: #ffffff;
  --panel: #f8f3ee;
  --line: #e7d9cb;
  --shadow: rgba(38, 29, 25, 0.08);
  --accent: #b47d3b;
  --danger: #b6473b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f3efe9;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-900); text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.site-logo {
  display: block;
  flex: 0 0 auto;
}
.site-logo img {
  width: 100px;
  height: 60px;
  object-fit: contain;
}
.brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--forest-900);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--forest-900);
  font-weight: 600;
}
.main-nav a.active {
  background: var(--sand-100);
}

.page-shell {
  min-height: calc(100vh - 140px);
}
.hero {
  background: linear-gradient(135deg, #f8f5f0 0%, #ead9c2 100%);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--forest-900);
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 700px;
}

.introduction-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
}
.introduction-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 22px var(--shadow);
}
.introduction-card-lead {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8f5f0 0%, #ead9c2 100%);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0;
  text-align: center;
}
.introduction-card-lead h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--forest-900);
}
.introduction-card-lead p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 700px;
}
.introduction-card h2 {
  margin: 0 0 0.75rem;
  color: var(--forest-900);
  font-size: 1.25rem;
}
.introduction-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}
.introduction-card p:last-child {
  margin-bottom: 0;
}
.introduction-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin: -0.1rem 0 1rem;
}

.section {
  padding: 2.5rem 0;
}

.contact-page h1 {
  margin-top: 0;
}
.contact-intro {
  color: var(--muted);
  max-width: 700px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 22px var(--shadow);
}
.contact-card h2,
.contact-card h3 {
  margin-top: 0;
  color: var(--forest-900);
}
.contact-card p {
  margin: 0.35rem 0;
}
.contact-card a {
  color: var(--forest-700);
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 22px var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f0e7de, #d8c4aa);
}
.product-info {
  padding: 1rem 1rem 1.25rem;
}
.product-info h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--forest-900);
}
.category {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.price {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--forest-900);
}
.price.large {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}
.button.secondary {
  background: var(--forest-900);
}
.button.subtle {
  background: var(--sand-100);
  color: var(--forest-900);
}

.product-page .product-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.product-image-box,
.checkout-form-box,
.order-summary-box,
.empty-state,
.success-state,
.cart-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 22px var(--shadow);
}
.product-image-box {
  padding: 1rem;
}
.product-image-stage {
  position: relative;
}
.product-image-box img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  background: #f8f5f2;
}
.gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}
.gallery-nav-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 53, 45, 0.85);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.gallery-nav-button:hover {
  background: rgba(45, 53, 45, 1);
}
.gallery-nav-button[data-direction="prev"] {
  order: 1;
}
.gallery-nav-button[data-direction="next"] {
  order: 2;
}
.product-details {
  padding: 1rem 0.5rem;
}
.product-details h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--forest-900);
}
.product-details p {
  color: var(--muted);
}
.purchase-form {
  margin-top: 1rem;
}
.purchase-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.quantity-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.qty-btn {
  width: 38px;
  height: 42px;
  border: 0;
  background: var(--sand-100);
  color: var(--forest-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.qty-input {
  width: 64px;
  border: 0;
  border-left: 1px solid var(--stone-300);
  border-right: 1px solid var(--stone-300);
  text-align: center;
  padding: 0.7rem 0.35rem;
  font-weight: 700;
}
.add-to-cart-btn {
  white-space: nowrap;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.add-to-cart-btn.variation-prompt {
  background: var(--forest-700);
}
.shop-sidebar {
  width: 100%;
}
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 0.75rem;
  box-shadow: 0 10px 22px var(--shadow);
}
.category-widget {
  margin-bottom: 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.category-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--white) 0%, var(--sand-50) 100%);
  border: 1px solid var(--line);
  color: var(--forest-900);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-pill:hover {
  background: var(--sand-100);
  border-color: var(--stone-300);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.05);
}
.category-pill img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}
.category-pill span {
  white-space: normal;
  line-height: 1.2;
  font-size: 0.86rem;
}
.home-layout,
.cart-layout,
.product-layout-wrap {
  display: block;
}
.home-content,
.cart-content {
  min-width: 0;
}
.product-page .product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  min-width: 0;
}
.category-widget {
  margin: -1.25rem 0 1.25rem;
  padding: 0;
}
.product-copy {
  margin-top: 1.5rem;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.variation-picker {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.variation-picker legend {
  margin-bottom: 0.55rem;
  color: var(--forest-900);
  font-weight: 700;
}
.variation-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}
.variation-option {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  text-align: center;
  cursor: pointer;
}
.variation-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}
.variation-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.variation-swatch {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.variation-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.variation-option:has(input:checked) .variation-swatch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.variation-option > span:last-child {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 600;
}
.product-gallery-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.product-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 0;
}
.product-gallery-video-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  aspect-ratio: 1;
  background: rgba(24, 31, 28, 0.04);
  color: var(--forest-900);
  font-weight: 700;
}
.product-gallery-video-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
}
.product-gallery-video-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-gallery-item:hover {
  border-color: var(--accent);
}
.product-gallery-item.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(180, 125, 59, 0.18);
}
.product-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.product-video-wrapper iframe,
.product-video-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.product-copy h3 {
  margin-bottom: 0.5rem;
  color: var(--forest-900);
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--forest-900);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.error { color: var(--danger); font-size: 0.85rem; }

.checkout-form-box,
.order-summary-box,
.empty-state,
.success-state {
  padding: 1.5rem;
}
.order-summary-box h2 {
  margin-top: 0;
  color: var(--forest-900);
}
.summary-line, .summary-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.summary-total {
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.cart-items {
  display: grid;
  gap: 1rem;
}
.cart-item {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.cart-item-images {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}
.cart-item-image {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5f2;
}
.cart-product-meta h3 {
  margin: 0 0 0.2rem;
  color: var(--forest-900);
}
.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cart-controls input {
  width: 90px;
}
.cart-summary {
  margin-top: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.cart-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cart-options legend {
  padding: 0 0.35rem;
  color: var(--forest-900);
  font-weight: 700;
}
.cart-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  cursor: pointer;
}
.cart-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--forest-700);
}
.cart-option input:disabled + span {
  color: var(--muted);
}
.empty-state,
.success-state {
  text-align: center;
}
.empty-state p,
.success-state p {
  color: var(--muted);
}

.site-footer {
  background: var(--forest-900);
  color: rgba(255,255,255,0.72);
  padding: 3rem 0 2rem;
  margin-top: 2.5rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2rem;
}
.site-footer-brand,
.site-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer-logo {
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.site-footer p {
  margin: 0.6rem 0 0;
  max-width: 260px;
}
.site-footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}
.site-footer-column h2 {
  margin: 0 0 0.75rem;
  color: var(--sand-100);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer a {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--white);
}
.site-footer-column span {
  margin-top: 0.45rem;
  line-height: 1.5;
}
.cookie-settings-link {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  text-align: left;
  cursor: pointer;
}
.cookie-settings-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.cookie-consent {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(38, 29, 25, 0.22);
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent h2 {
  margin: 0 0 0.4rem;
  color: var(--forest-900);
  font-size: 1.2rem;
}
.cookie-consent p {
  margin: 0;
  color: var(--muted);
}
.cookie-consent p a {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.cookie-consent-actions .button {
  cursor: pointer;
}

.policy-page {
  max-width: 900px;
}
.policy-page h1 {
  margin-top: 0;
}
.policy-page h2 {
  margin-top: 2.25rem;
  color: var(--forest-900);
}
.policy-page p,
.policy-page li {
  max-width: 780px;
}
.policy-page ul {
  padding-left: 1.4rem;
}
.policy-page a {
  color: var(--forest-700);
  font-weight: 600;
}

@media (max-width: 820px) {
  .site-header .container,
  .product-page .product-layout,
  .checkout-layout,
  .cart-item,
  .summary-line,
  .summary-total {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .site-header .container {
    padding: 0.75rem 0;
  }
  .site-logo img {
    width: 84px;
    height: 50px;
  }
  .main-nav {
    justify-content: flex-start;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero {
    padding: 3.2rem 0;
  }
  .introduction-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .introduction-content {
    grid-template-columns: 1fr;
  }
}
