:root {
  --bg: #fbf7ef;
  --paper: #ffffff;
  --text: #263226;
  --muted: #667064;
  --green: #2f7d50;
  --green-dark: #245f3d;
  --mint: #e8f3ea;
  --sand: #f2e3c8;
  --accent: #d98245;
  --border: #e7dccb;
  --shadow: 0 18px 45px rgba(53, 69, 53, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
body.checkout-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(251, 247, 239, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 16px; background: var(--mint); }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 9px 11px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a.active { background: var(--mint); color: var(--green-dark); }
.menu-toggle { display: none; border: 0; background: var(--paper); border-radius: 12px; padding: 9px 11px; font-size: 20px; }
.account-menu { position: relative; }
.account-toggle { white-space: nowrap; }
.account-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); z-index: 20; }
.account-menu.open .account-dropdown { display: grid; gap: 8px; }
.account-dropdown a, .account-muted { display: block; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--green-dark); font-weight: 700; }
.account-dropdown a:hover { background: var(--mint); }
.account-muted { color: var(--muted); font-weight: 600; }
.account-login-form { display: grid; gap: 10px; }
.account-login-form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.account-login-form input { min-width: 0; width: 100%; }
.cart-toggle { white-space: nowrap; }
.cart-toggle span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--green); color: white; font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 700; cursor: pointer; font-size: 15px; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-primary { background: var(--green); color: white; box-shadow: 0 10px 24px rgba(47, 125, 80, .22); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--paper); border-color: var(--border); color: var(--green-dark); }
.btn-small { padding: 9px 13px; font-size: 14px; }
.hero { padding: 78px 0 54px; position: relative; overflow: hidden; }
.hero:before { content: ""; position: absolute; inset: -120px -120px auto auto; width: 420px; height: 420px; border-radius: 50%; background: var(--mint); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; color: var(--green-dark); background: var(--mint); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13px; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .98; margin: 0 0 18px; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.03em; }
h3 { margin: 0 0 10px; font-size: 21px; }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-card { background: var(--paper); border: 1px solid var(--border); border-radius: 32px; padding: 28px; box-shadow: var(--shadow); }
.hero-card ul { padding-left: 20px; margin: 18px 0 0; }
.hero-card li { margin: 9px 0; }
.section { padding: 62px 0; }
.section-alt { background: rgba(255,255,255,.48); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; align-items: end; }
.section-head p { color: var(--muted); max-width: 740px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .product-card, .info-card { background: var(--paper); border: 1px solid var(--border); border-radius: 26px; padding: 24px; box-shadow: 0 10px 30px rgba(53,69,53,.07); }
.card p, .info-card p { color: var(--muted); }
.account-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-table th, .account-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.account-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.account-order-list { display: grid; gap: 16px; }
.account-order-card { padding: 18px; }
.account-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.account-order-head h3 { margin-bottom: 4px; }
.account-order-head p { margin: 0; }
.account-order-total { font-size: 22px; font-weight: 900; color: var(--green-dark); white-space: nowrap; }
.account-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.account-order-actions form { margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 190px; background: var(--paper); border: 1px solid var(--border); border-radius: 28px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card span { font-size: 38px; }
.category-card p { color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--border); border-radius: 24px; background: var(--paper); }
.filter-bar label { display: grid; gap: 6px; font-weight: 700; color: var(--muted); font-size: 13px; }
input, select, textarea { border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; font: inherit; background: white; min-width: 190px; }
textarea { width: 100%; min-height: 120px; resize: vertical; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-image { background: linear-gradient(135deg, var(--mint), var(--sand)); padding: 20px; min-height: 180px; display: grid; place-items: center; }
.product-image img { width: 130px; opacity: .9; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.product-body p { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--mint); color: var(--green-dark); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.product-foot b { font-size: 20px; }
.checkout-dialog[hidden], .cart-drawer[hidden] { display: none; }
.checkout-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.checkout-backdrop, .cart-backdrop { position: absolute; inset: 0; background: rgba(33, 50, 38, .46); backdrop-filter: blur(6px); }
.checkout-panel { position: relative; width: min(680px, 100%); max-height: min(86vh, 760px); overflow: auto; background: var(--paper); border: 1px solid var(--border); border-radius: 30px; box-shadow: var(--shadow); padding: 26px; }
.checkout-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); font-size: 24px; cursor: pointer; }
.checkout-product { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: #fffaf1; margin: 12px 0 18px; }
.checkout-product-image { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, var(--mint), var(--sand)); display: grid; place-items: center; flex: 0 0 auto; }
.checkout-product-image img { width: 52px; max-height: 58px; object-fit: contain; }
.checkout-product span { display: block; color: var(--muted); font-size: 14px; }
.checkout-form { display: grid; gap: 14px; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cart-drawer { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; }
.cart-panel { position: relative; width: min(460px, 100%); height: 100%; overflow: auto; background: var(--paper); border-left: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px; display: grid; align-content: start; gap: 16px; }
.cart-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cart-head h2 { margin-bottom: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--mint), var(--sand)); }
.cart-item-image img { width: 50px; max-height: 58px; object-fit: contain; }
.cart-item-body { display: grid; gap: 6px; }
.cart-item-body span { color: var(--muted); font-size: 13px; }
.cart-item-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cart-item-controls input { width: 76px; min-width: 0; padding: 8px 10px; }
.cart-item-controls strong { margin-left: auto; color: var(--green-dark); }
.cart-summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #fffaf1; }
.cart-summary b { font-size: 20px; color: var(--green-dark); }
.cart-summary span { color: var(--muted); font-size: 13px; }
.cart-form { display: grid; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { background: var(--paper); border: 1px solid var(--border); border-radius: 24px; padding: 20px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.step:before { counter-increment: step; content: counter(step); width: 42px; height: 42px; border-radius: 14px; background: var(--green); color: white; display: grid; place-items: center; font-weight: 900; }
.form-card { background: var(--paper); border: 1px solid var(--border); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 7px; font-weight: 700; color: var(--muted); font-size: 13px; }
.form-grid input, .form-grid select { width: 100%; min-width: 0; }
.form-grid .form-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.35; }
.form-grid .form-consent input { width: auto; min-width: 0; margin: .2em 0 0; flex: 0 0 auto; }
.form-note { color: var(--muted); font-size: 13px; }
.footer { background: #213226; color: white; padding: 46px 0; }
.footer a { color: white; }
.footer p { color: rgba(255,255,255,.74); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 24px; }
.muted { color: var(--muted); }
.notice { border-left: 4px solid var(--accent); background: #fff8ec; padding: 16px 18px; border-radius: 18px; color: #6d4d2f; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 74px; left: 16px; right: 16px; background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .account-menu { margin-left: auto; }
  .account-dropdown { right: 0; width: min(320px, calc(100vw - 32px)); }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .grid-3, .products-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  .hero { padding-top: 46px; }
  .grid-3, .products-grid, .category-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  h1 { font-size: 42px; }
  .btn { width: 100%; }
  .cart-toggle { width: auto; padding: 9px 12px; }
  .account-toggle { width: auto; }
  .section-head { display: block; }
  .account-order-head { display: block; }
  .account-order-total { margin-top: 8px; }
  .account-order-actions .btn { width: 100%; }
  .checkout-panel, .cart-panel { padding: 20px; }
  .checkout-actions .btn { width: 100%; }
  .cart-item { grid-template-columns: 58px 1fr; }
  .cart-item-image { width: 58px; height: 58px; }
  .cart-summary { display: grid; }
}
