:root {
  --bg: #f8f2de;
  --bg-strong: #f0ddb0;
  --surface: rgba(255, 251, 244, 0.92);
  --surface-strong: #fffaf1;
  --text: #2b261d;
  --muted: #6a5f4d;
  --green: #1f6a3f;
  --green-2: #2e8448;
  --green-soft: #edf5ea;
  --gold: #e2a43a;
  --gold-deep: #c98016;
  --line: rgba(43, 38, 29, 0.12);
  --shadow: 0 26px 60px rgba(70, 53, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(226, 164, 58, 0.2), transparent 22%),
    linear-gradient(180deg, #fbf7eb 0%, var(--bg) 38%, #f7f0dc 100%);
}

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

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

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

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section-label {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0 14px;
}

.topbar .logo {
  width: clamp(230px, 24vw, 276px);
  height: auto;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(31, 106, 63, 0.09);
  color: var(--green);
}

.cart-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 64px;
  align-items: center;
  min-height: 610px;
  padding: 38px 0 48px;
}

.hero > * {
  min-width: 0;
}

.hero-copy h1,
.page-head h1,
.detail-copy h1,
.success-panel h1 {
  margin: 0 0 16px;
  font-family: "DM Serif Display", Georgia, serif;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: 4.35rem;
  line-height: 1;
}

.hero-copy > p:not(.section-label) {
  max-width: 610px;
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.hero-copy p,
.page-head p,
.detail-description,
.policy-card p,
.split-card p,
.success-copy,
.catalog-intro p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.cta-row,
.product-card-actions,
.detail-actions,
.checkout-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
}

.button.secondary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--green);
  border-color: var(--line);
}

.button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.hero-points {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--muted);
}

.hero-points li {
  position: relative;
  flex: 1 1 160px;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-points li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-card,
.stat-strip,
.spotlight,
.feature-card,
.product-card,
.panel,
.policy-card,
.split-card,
.checkout-box,
.cart-sidebar,
.success-panel,
.empty-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 32 / 21;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(70, 53, 22, 0.18);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
  margin: 18px 0 38px;
}

.stat-strip article {
  background: rgba(255, 248, 230, 0.82);
  border-radius: 20px;
  padding: 20px;
}

.stat-strip strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 8px;
  font-family: "DM Serif Display", Georgia, serif;
}

.section {
  padding: 28px 0;
}

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

.section-head h2,
.catalog-layout h2,
.panel h2,
.cart-layout h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
}

.feature-grid,
.policy-grid,
.split-grid,
.product-grid,
.detail-highlights,
.success-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.split-card,
.policy-card,
.panel {
  padding: 22px;
}

.feature-card h3,
.product-card h3,
.policy-card h3,
.split-card h3,
.panel h3 {
  margin: 0 0 10px;
  font-family: "DM Serif Display", Georgia, serif;
}

.policy-card-action {
  margin-top: 6px;
}

.spotlight {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 22px;
  margin-top: 24px;
}

.spotlight-list {
  display: grid;
  gap: 12px;
}

.spotlight-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 248, 230, 0.8);
}

.spotlight-list strong {
  color: var(--green);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  padding: 28px 0;
}

.catalog-sidebar,
.catalog-main {
  min-width: 0;
}

.catalog-sidebar .panel + .panel {
  margin-top: 18px;
}

.search-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  color: var(--green);
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

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

.product-card {
  overflow: hidden;
}

.product-card-art {
  position: relative;
  min-height: 172px;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.product-card-image,
.detail-hero-image,
.cart-item-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-art::after,
.detail-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 14, 0.36), transparent 45%, rgba(18, 28, 14, 0.42));
  pointer-events: none;
}

.product-card-art > :not(.product-card-image),
.detail-hero-art > :not(.detail-hero-image) {
  position: relative;
  z-index: 2;
}

.product-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-body {
  padding: 18px;
}

.product-card-meta,
.cart-item-meta,
.summary-row,
.summary-line-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-card-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  padding: 26px 0 20px;
}

.detail-hero-art {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-highlights {
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}

.detail-highlights article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 248, 230, 0.8);
}

.detail-highlights strong {
  display: block;
  margin-bottom: 6px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 26px 0;
}

.cart-list,
.summary-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.cart-item-art {
  position: relative;
  border-radius: 20px;
  min-height: 110px;
  overflow: hidden;
}

.cart-item-controls {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 106, 63, 0.08);
}

.qty-button,
.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.qty-button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.link-button {
  color: #b04a3a;
  font-weight: 700;
}

.cart-sidebar,
.checkout-box,
.success-panel {
  padding: 22px;
}

.summary-row.total {
  font-size: 1.18rem;
  margin-top: 10px;
}

.page-head {
  padding: 28px 0 10px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.03;
}

.checkout-flow {
  display: grid;
  gap: 18px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step-row article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 248, 230, 0.82);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field.full {
  grid-column: 1 / -1;
}

.paypal-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(242,231,201,0.88));
  border: 1px solid var(--line);
}

.paypal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 800;
  color: #003087;
}

.paypal-brand span:last-child {
  color: #009cde;
}

.status-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
}

.status-message:empty {
  display: none;
}

.status-message.success {
  background: rgba(31, 106, 63, 0.12);
  color: var(--green);
}

.status-message.error {
  background: rgba(176, 74, 58, 0.12);
  color: #9c3b2f;
}

.policy-grid {
  grid-template-columns: repeat(2, 1fr);
}

.split-grid {
  grid-template-columns: repeat(2, 1fr);
}

.success-panel {
  margin: 32px auto 44px;
  width: min(980px, calc(100% - 32px));
}

.success-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 106, 63, 0.12);
  color: var(--green);
  font-weight: 800;
  margin-bottom: 16px;
}

.success-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}

.success-grid article,
.success-list div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 248, 230, 0.8);
}

.success-grid strong {
  display: block;
  margin-bottom: 8px;
}

.success-list {
  display: grid;
  gap: 12px;
}

.success-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer {
  padding: 16px 0 38px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 18px;
}

.footer-grid h4 {
  margin: 0 0 10px;
}

.footer-grid p,
.footer-grid a {
  line-height: 1.8;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(31, 106, 63, 0.95);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-card {
  padding: 26px;
}

.empty-card.compact {
  padding: 18px;
}

.privacy-hero {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef5e9;
}

.privacy-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
  padding: 58px 0;
}

.privacy-hero h1 {
  margin: 0 0 14px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.privacy-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.privacy-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.privacy-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 106, 63, 0.18);
}

.privacy-meta dt {
  color: var(--muted);
}

.privacy-meta dd {
  margin: 0;
  font-weight: 800;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding: 46px 0 70px;
}

.privacy-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 5px;
  border-left: 3px solid var(--green);
  padding-left: 18px;
}

.privacy-toc strong {
  margin-bottom: 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
}

.privacy-toc a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.privacy-toc a:hover {
  color: var(--green);
}

.privacy-content {
  min-width: 0;
}

.privacy-content > section {
  position: relative;
  padding: 4px 0 38px 66px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.privacy-content > section + section {
  padding-top: 38px;
}

.privacy-content h2 {
  margin: 0 0 14px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2rem;
}

.privacy-content p,
.privacy-list {
  color: var(--muted);
  line-height: 1.8;
}

.privacy-content a {
  color: var(--green);
  font-weight: 700;
}

.policy-number {
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--gold-deep);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.55rem;
}

.privacy-content > section + section .policy-number {
  top: 42px;
}

.privacy-notice {
  margin-bottom: 38px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: #fff7df;
}

.privacy-notice p {
  margin: 6px 0 0;
}

.privacy-list {
  padding-left: 22px;
}

.privacy-list li + li {
  margin-top: 8px;
}

.privacy-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.privacy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.58);
}

.privacy-table th,
.privacy-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.privacy-table th {
  background: var(--green-soft);
  color: var(--green);
}

.privacy-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.privacy-contact div {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.privacy-contact span,
.privacy-contact strong,
.privacy-contact a {
  display: block;
}

.privacy-contact span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.privacy-sources {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.legal-note {
  margin-top: 22px;
  padding: 16px;
  background: rgba(43, 38, 29, 0.05);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero,
  .spotlight,
  .catalog-layout,
  .detail-layout,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .product-grid,
  .policy-grid,
  .split-grid,
  .success-grid,
  .detail-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: 3.8rem;
  }

  .privacy-hero-inner,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar,
  .section-head,
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar > a:first-child {
    width: min(276px, 100%);
  }

  .topbar .logo {
    width: 100%;
  }

  .main-nav,
  .cta-row,
  .product-card-actions,
  .detail-actions,
  .checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .main-nav a {
    min-width: 0;
    padding: 10px 12px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .cart-mini {
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field-grid,
  .feature-grid,
  .product-grid,
  .policy-grid,
  .split-grid,
  .success-grid,
  .stat-strip,
  .detail-highlights,
  .step-row {
    grid-template-columns: 1fr;
  }

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

  .cart-item-controls {
    justify-items: start;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 2.3rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hero-copy > p,
  .hero-points li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero {
    gap: 34px;
    padding: 28px 0 38px;
  }

  .hero-points {
    display: grid;
    gap: 10px;
  }

  .hero-card img {
    min-height: 240px;
  }

  .privacy-hero-inner {
    gap: 28px;
    padding: 38px 0;
  }

  .privacy-hero h1 {
    font-size: 2.6rem;
  }

  .privacy-meta div,
  .privacy-toc,
  .privacy-contact {
    grid-template-columns: 1fr;
  }

  .privacy-content > section,
  .privacy-content > section + section {
    padding: 30px 0;
  }

  .policy-number,
  .privacy-content > section + section .policy-number {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 24px);
  }

  .topbar .logo {
    width: min(248px, 100%);
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .cart-mini {
    border-radius: 20px;
  }
}
