:root {
  --ink: #12261e;
  --ink-2: #1c3329;
  --sage: #2f6f5e;
  --copper: #c45c26;
  --copper-2: #e07a3d;
  --sand: #f4efe6;
  --paper: #fffdf8;
  --line: rgba(18,38,30,.1);
  --shadow: 0 18px 50px rgba(18,38,30,.08);
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--sand); color: var(--ink); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 9; }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); background: rgba(244,239,230,.86); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; }
.logo span { color: var(--copper); }
.nav { display: flex; gap: 18px; font-size: .92rem; font-weight: 600; }
.nav a { opacity: .78; }
.nav a:hover, .nav a.is-on { opacity: 1; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--copper); color: #fff; border-radius: 99px; font-size: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; }
.account-wrap, .search-wrap { position: relative; }
.dropdown, .mini-cart, .search-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); min-width: 240px; padding: 12px; display: none; border: 1px solid var(--line); }
.dropdown.open, .mini-cart.open, .search-panel.open { display: block; }
.search-panel { width: min(420px, 86vw); }
.search-panel input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.search-hits a { display: block; padding: 8px 4px; font-size: .9rem; }
.mobile-toggle { display: none; }

.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.04em; }
.hero p { font-size: 1.1rem; max-width: 46ch; color: #3d4d45; }
.hero-card { background: linear-gradient(145deg, #1c3329, #12261e); color: #f4efe6; border-radius: 28px; padding: 28px; min-height: 280px; box-shadow: var(--shadow); }
.hero-card strong { font-family: var(--display); font-size: 2rem; display: block; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.btn-copper { background: var(--copper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-1px); }

.section { padding: 48px 0; }
.section h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 22px; }
.cat-grid, .product-grid, .blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); transition: .25s transform, .25s box-shadow; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .28s transform, .28s box-shadow; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-cover { height: 170px; background: linear-gradient(135deg, #2f6f5e, #12261e); position: relative; }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); font-weight: 700; }
.product-body h3 { margin: 0; font-size: 1.05rem; }
.price { display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.price s { color: #8a938d; font-weight: 500; font-size: .9rem; }
.disc { background: #fde8d8; color: var(--copper); font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.meta-row { display: flex; gap: 10px; font-size: .8rem; color: #5c6b64; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { padding: 8px 12px; font-size: .82rem; }

.why, .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why article, .stat { background: var(--paper); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: 1.8rem; display: block; }
.cta { background: var(--ink); color: var(--sand); border-radius: 28px; padding: 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer { margin-top: 40px; padding: 40px 0 24px; background: var(--ink); color: #d7e0db; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #d7e0db; opacity: .85; display: block; margin: 6px 0; }
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 720px; margin: auto; background: var(--paper); padding: 16px; border-radius: 16px; box-shadow: var(--shadow); display: none; z-index: 50; }

.layout-shop { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.filters { background: var(--paper); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); height: max-content; position: sticky; top: 92px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gallery { border-radius: 28px; min-height: 360px; background: linear-gradient(145deg,#1c3329,#2f6f5e); }
.option-list { display: grid; gap: 8px; margin: 12px 0; }
.option-list label { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; justify-content: space-between; cursor: pointer; background: var(--paper); }
.option-list input { display: none; }
.option-list label:has(input:checked) { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(196,92,38,.15); }
.flash { background: #1c3329; color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; }

table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert-error { background: #fde8e0; }
.alert-success { background: #e4f3ea; }
.form { display: grid; gap: 12px; max-width: 480px; }
.form input, .form select, .form textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; }
.account-shell, .admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding: 28px 0 60px; }
.side-nav { background: var(--paper); border-radius: 20px; padding: 12px; border: 1px solid var(--line); height: max-content; position: sticky; top: 92px; }
.side-nav a { display: block; padding: 10px 12px; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.side-nav a.is-on, .side-nav a:hover { background: var(--sand); }
.panel { background: var(--paper); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mobile-cart { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 18px; justify-content: space-between; z-index: 30; font-weight: 700; }
.breadcrumbs { font-size: .85rem; opacity: .7; margin: 16px 0; }
.breadcrumbs a { text-decoration: underline; }

@media (max-width: 1024px) {
  .cat-grid, .product-grid, .why, .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product-detail, .layout-shop, .account-shell, .admin-shell, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 76px; background: var(--sand); padding: 16px; border-bottom: 1px solid var(--line); }
  .mobile-toggle { display: grid; }
  .filters { position: static; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .product-grid, .cat-grid, .stats-row, .why, .stats { grid-template-columns: 1fr; }
  .mobile-cart.show { display: flex; }
  .header-inner { min-height: 64px; }
}
