:root {
  --bg: #F7F5F2;
  --bg-alt: #FFFFFF;
  --sand: #C6B8A3;
  --text: #212121;
  --muted: #605E5C;
  --line: rgba(33, 33, 33, .12);
  --btn: #212121;
  --btn-text: #F7F5F2;
  --accent: #E9D7D3;
  --ok: #2f6b3c;
  --err: #a33a3a;
  --heading: "EB Garamond", Georgia, serif;
  --body: Questrial, system-ui, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--body); letter-spacing: .04em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; letter-spacing: .02em; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 750px) { .wrap { padding: 0 40px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 30px; background: var(--btn); color: var(--btn-text);
  border: 1px solid var(--btn); font: inherit; letter-spacing: .1em; cursor: pointer; transition: opacity .2s; text-decoration: none !important; }
.btn:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
input, textarea, select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid rgba(33,33,33,.45); background: transparent; color: var(--text); border-radius: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--text); outline-offset: -1px; }
label { display: block; font-size: 13px; margin: 0 0 6px; color: var(--muted); }
.field { margin-bottom: 16px; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.flash { padding: 12px 16px; margin: 20px 0 0; border: 1px solid; }
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-err { border-color: var(--err); color: var(--err); }

/* Header */
.announce { background: var(--text); color: var(--bg); text-align: center; font-size: 13px; padding: 8px 16px; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; }
.logo { font-family: var(--heading); font-size: clamp(24px, 3.2vw, 34px); letter-spacing: .06em; text-align: center; text-decoration: none !important; }
.socials { display: flex; gap: 14px; }
.socials a { opacity: .85; }
.header-icons { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); position: relative; display: inline-flex; }
.cart-count { position: absolute; bottom: 2px; right: 0; background: var(--text); color: var(--bg); border-radius: 50%; font-size: 10px; width: 17px; height: 17px; display: grid; place-items: center; letter-spacing: 0; }
.menu-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; display: flex; justify-content: center; gap: 4px; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px 16px; color: var(--muted); }
.main-nav > ul > li > a:hover { color: var(--text); }
.has-drop { position: relative; }
.drop { display: none !important; position: absolute; top: 100%; left: 0; background: var(--bg-alt); border: 1px solid var(--line); min-width: 200px; flex-direction: column; padding: 12px 0 !important; z-index: 30; }
.drop a { display: block; padding: 6px 20px; color: var(--muted); }
.has-drop:hover .drop, .has-drop:focus-within .drop { display: flex !important; }
.show-sm { display: none; }
.search-bar { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.search-bar.open { display: block; }
.search-bar .wrap { display: flex; gap: 10px; }
@media (max-width: 989px) {
  .menu-toggle { display: inline-flex; }
  .socials:not(.footer-socials) { display: none; }
  .header-inner > div:first-of-type { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav > ul > li > a { padding: 10px 0; font-size: 17px; color: var(--text); }
  .drop { display: flex !important; position: static; border: 0; background: none; padding: 0 0 0 14px !important; }
  .show-sm { display: block; }
  .hide-sm { display: none; }
}

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 750px) { .section { padding: 72px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-underline { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.hero-img { min-height: 360px; background-size: cover; background-position: center; }
.hero-text { padding: 48px 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text p { color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; min-height: 560px; }
  .hero-text { padding: 60px 8%; }
}

/* Product grid */
.grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 750px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; text-decoration: none !important; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--accent); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card-img .hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img img { transform: scale(1.03); }
.card:hover .card-img .hover { opacity: 1; }
.badge { position: absolute; left: 10px; bottom: 10px; background: var(--bg); color: var(--text); font-size: 12px; padding: 2px 12px; border-radius: 20px; border: 1px solid var(--text); }
.card-title { font-family: var(--body); font-size: 15px; margin: 14px 0 4px; letter-spacing: .05em; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.price { font-size: 15px; display: flex; gap: 10px; }
.price s { color: var(--muted); }

/* Category tiles */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.cat-tile { display: block; text-decoration: none !important; background: var(--bg-alt); }
.cat-tile .card-img { aspect-ratio: 1; }
.cat-tile span { display: flex; justify-content: space-between; padding: 14px 16px; font-family: var(--heading); font-size: 20px; }
.cat-tile:hover span { text-decoration: underline; }

/* Newsletter */
.newsletter { background: var(--sand); text-align: center; }
.newsletter p { max-width: 620px; margin: 0 auto 14px; }
.nl-form { display: flex; max-width: 440px; margin: 22px auto 0; border: 1px solid var(--text); }
.nl-form input { border: 0; background: transparent; }
.nl-form button { background: none; border: 0; padding: 0 16px; cursor: pointer; color: var(--text); }

/* Journal */
.posts { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-card { display: block; text-decoration: none !important; background: var(--bg-alt); }
.post-card .card-img { aspect-ratio: 16 / 10; }
.post-card .post-body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 24px; }
.post-card:hover h3 { text-decoration: underline; }
.post-meta { font-size: 13px; color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; }
.article .card-img { aspect-ratio: 16 / 9; margin: 28px 0; }
.article-body { font-size: 16px; }

/* Product page */
.pdp { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 60px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.gallery-main { aspect-ratio: 4 / 5; background: var(--accent); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 76px; aspect-ratio: 1; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumbs button.active { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .vendor { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.pdp-info .price { font-size: 19px; margin: 6px 0 4px; }
.qty { display: inline-flex; border: 1px solid var(--text); margin: 18px 0; }
.qty button { width: 44px; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--text); }
.qty input { width: 54px; text-align: center; border: 0; }
.details { border-top: 1px solid var(--line); margin-top: 26px; }
.details summary { padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; }
.details[open] summary::after { content: "–"; }
.details ul { padding-left: 18px; color: var(--muted); }

/* Cart / checkout tables */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-table td { padding: 20px 8px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; gap: 16px; align-items: center; }
.cart-prod img { width: 90px; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-table .qty { margin: 0; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; font-size: 13px; padding: 0; margin-top: 6px; }
.summary { margin-left: auto; max-width: 380px; padding-top: 24px; }
.summary .line { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { font-size: 19px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
@media (max-width: 649px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td.c-total { display: none; }
}
.checkout { display: grid; gap: 40px; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 60px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.3fr 1fr; } }
.box { background: var(--bg-alt); padding: 24px; }
.mini-item { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.mini-item img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; }
.mini-item .grow { flex: 1; font-size: 14px; }
.pay-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; cursor: pointer; color: var(--text); font-size: 15px; }
.pay-opt input { width: auto; }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { padding: 10px; }
.coupon-form .btn { padding: 10px 18px; }

/* Pages */
.page-head { padding: 48px 0 8px; text-align: center; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.narrow { max-width: 460px; margin: 0 auto; padding: 48px 0 70px; }
.tabs-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.tabs-filter a { border: 1px solid var(--line); padding: 6px 16px; border-radius: 20px; font-size: 14px; }
.tabs-filter a.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.empty { text-align: center; padding: 60px 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; color: var(--muted); font-size: 14px; }
.toolbar select { width: auto; padding: 8px 12px; }
.orders td, .orders th { padding: 10px 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 20px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { font-family: var(--body); font-size: 15px; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer li a, .site-footer p { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; font-size: 12px; color: var(--muted); }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 40; }

/* Toast */
.toast { position: fixed; top: 90px; right: 16px; left: 16px; max-width: 360px; margin-left: auto; background: var(--bg-alt); border: 1px solid var(--line); padding: 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 50; }
.pdp > *, .checkout > * { min-width: 0; }
h1, h2, .card-title { overflow-wrap: anywhere; }
body { overflow-x: hidden; }

/* v2: editable sections & content */
.announce { background: var(--announce, var(--text)); color: var(--btn-text, var(--bg)); }
.logo img { max-height: 56px; width: auto; margin: 6px auto; }
.hero-text .muted p { max-width: 520px; }
.banner { min-height: 440px; background-size: cover; background-position: center; display: grid; place-items: center; padding: 48px 16px; }
.banner-box { background: var(--bg); max-width: 560px; padding: 36px 32px; text-align: center; }
.banner-box .hero-actions { justify-content: center; }
.image-text { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.image-text .card-img { aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .image-text { grid-template-columns: 1fr 1fr; gap: 56px; } .image-text.img-right > .card-img { order: 2; } }
.text-block { text-align: center; }
.text-block .wrap { max-width: 760px; }
.text-block .hero-actions { justify-content: center; }
.newsletter p { max-width: 620px; margin-left: auto; margin-right: auto; }
.prose img { height: auto; margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 3px solid var(--sand); margin: 1.2em 0; padding: .2em 0 .2em 1.2em; font-family: var(--heading); font-size: 20px; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.footer-text p { color: var(--muted); }
