/*
Theme Name: BotanyOfLeaf
Theme URI: https://botanyofleaf.com/
Author: BotanyOfLeaf
Description: Custom theme for BotanyOfLeaf: vapes, pod kits and hash with a WhatsApp cart. Edit products under Products, page text in Pages, and site-wide text under Appearance > Customize > BotanyOfLeaf settings.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: botanyofleaf
*/
:root {
  --bg: #12100e;
  --bg-2: #1a1715;
  --charcoal: #221f1c;
  --charcoal-2: #2c2825;
  --line-d: rgba(214, 204, 226, 0.12);
  --text-d: #f1ebe6;
  --muted-d: #b0a79f;

  --paper: #f6f3ee;
  --white: #ffffff;
  --ink: #1d1a17;
  --ink-2: #5d5650;
  --line: #e5ded5;

  --sage: #b9acc9;
  --sage-2: #d3c9df;
  --sage-deep: #6f6187;
  --sage-ink: #4f4366;
  --cream: #f6f0e6;
  --wa: #25d366;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --wrap: min(1280px, 100% - 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 2px solid var(--sage); background: var(--sage); color: #17141a; font-weight: 800; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--sage-2); border-color: var(--sage-2); transform: translateY(-2px); }
.btn-ink { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn-ink:hover { background: var(--sage-ink); border-color: var(--sage-ink); }
.btn-dark { background: var(--bg); border-color: var(--bg); color: var(--text-d); }
.btn-dark:hover { background: var(--charcoal-2); border-color: var(--charcoal-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn-outline, .btn-outline.light { color: var(--text-d); border-color: rgba(241,235,230,.4); }
.on-dark .btn-outline:hover, .btn-outline.light:hover { background: var(--text-d); color: var(--bg); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #0b1f12; }
.btn-wa:hover { background: #3be07a; border-color: #3be07a; }
.btn-wa svg { width: 20px; height: 20px; }
.btn-sm { padding: 10px 16px; font-size: .78rem; }
.btn-block { width: 100%; }

/* ---------- Top bars ---------- */
.warning-bar { background: #000; color: #fff; text-align: center; font-weight: 800; font-size: .95rem; padding: 10px 16px; line-height: 1.3; }
.announce { background: var(--sage); color: #17141a; text-align: center; font-weight: 700; font-size: .9rem; padding: 9px 16px; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); color: var(--text-d); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line-d); }
.header-main { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; border-radius: 12px; }
.logo span { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; }
.logo em { font-style: normal; color: var(--sage); }
.search { flex: 1; max-width: 620px; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 5px 5px 5px 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .98rem; color: var(--ink); padding: 8px 0; }
.search input:focus { outline: none; }
.search input::placeholder { color: #8a837c; }
.search button { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--sage-deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search button svg { width: 18px; height: 18px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-wa { padding: 11px 18px; font-size: .8rem; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-d); cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text-d); transition: transform .25s, top .25s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }

.nav-bar { background: var(--charcoal); border-top: 1px solid var(--line-d); }
.main-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--muted-d); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; padding: 15px 14px; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--text-d); }
.main-nav a[aria-current="page"] { color: var(--text-d); border-color: var(--sage); }

/* ---------- Hero (big headline over photo) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg) center right / cover no-repeat; background-image: var(--hero); color: var(--text-d); display: flex; align-items: center; min-height: 480px; padding: 80px 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(18,16,14,.95) 0%, rgba(18,16,14,.78) 38%, rgba(18,16,14,.15) 72%, rgba(18,16,14,0) 100%); }
.hero .wrap { position: relative; z-index: 5; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 800; text-transform: uppercase; line-height: .95; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted-d); margin-bottom: 30px; max-width: 34ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Animated home hero */
.hero--home { min-height: min(720px, calc(100vh - 160px)); }
.hero--live { background-image: none; }
.hero--live::before { display: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transform-origin: 78% 55%; animation: hero-zoom 26s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,16,14,.97) 0%, rgba(18,16,14,.82) 34%, rgba(18,16,14,.18) 68%, rgba(18,16,14,0) 100%); }
.smoke { position: absolute; z-index: 2; pointer-events: none; mix-blend-mode: screen; will-change: transform; }
.smoke--a { width: min(52vw, 820px); right: -16vw; top: -22%; opacity: .6; animation: smoke-spin 70s linear infinite; }
.smoke--b { width: min(44vw, 680px); right: -18vw; bottom: -42%; opacity: .38; animation: smoke-spin 95s linear infinite reverse; }
.smoke--c { width: min(40vw, 620px); left: -18vw; bottom: -30%; opacity: .3; animation: smoke-spin 85s linear infinite; }
.hero-bud { position: absolute; z-index: 3; width: clamp(150px, 16vw, 250px); right: 36%; bottom: 9%; filter: drop-shadow(0 30px 35px rgba(0,0,0,.65)); animation: bud-float 8s ease-in-out infinite; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12) translateX(-1.5%); } }
@keyframes smoke-spin { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes bud-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--bg); color: var(--text-d); }
.section-dark p { color: var(--muted-d); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2, .h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; }
.section-head p { color: var(--ink-2); margin-top: 8px; }
.section-dark .section-head p { color: var(--muted-d); }

/* ---------- Category icon row ---------- */
.cats { background: var(--white); border-bottom: 1px solid var(--line); padding: 34px 0; }
.cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 800; font-size: .95rem; }
.cat-img { width: 120px; height: 120px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); overflow: hidden; display: grid; place-items: center; transition: border-color .25s, transform .25s, box-shadow .25s; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img { border-color: var(--sage-deep); transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(79,67,102,.6); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product:hover { transform: translateY(-4px); border-color: #d3c8bc; box-shadow: 0 22px 40px -26px rgba(29,26,23,.45); }
.product-img { display: block; background: #fff; overflow: hidden; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .5s; }
.product-img.cream { background: var(--cream); }
.product-img.cream img { object-fit: cover; }
.product:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.product h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.product h3 a:hover { color: var(--sage-deep); }
.product-body > p { color: var(--ink-2); font-size: .9rem; }
.price { font-family: var(--display); font-size: 1.45rem; font-weight: 800; margin-top: 8px; }
.product .btn { margin-top: 12px; }

/* ---------- Tabbed bestsellers (CSS only) ---------- */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; gap: 8px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tab-labels::-webkit-scrollbar { display: none; }
.tab-labels label { padding: 11px 22px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 800; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.tab-labels label:hover { border-color: var(--sage-deep); }
.tab-panels > .product-grid { display: none; }
#tab-1:checked ~ .tab-labels label[for="tab-1"], #tab-2:checked ~ .tab-labels label[for="tab-2"], #tab-3:checked ~ .tab-labels label[for="tab-3"], #tab-4:checked ~ .tab-labels label[for="tab-4"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#tab-1:checked ~ .tab-panels .panel-1, #tab-2:checked ~ .tab-panels .panel-2, #tab-3:checked ~ .tab-panels .panel-3, #tab-4:checked ~ .tab-panels .panel-4 { display: grid; }
#tab-1:focus-visible ~ .tab-labels label[for="tab-1"], #tab-2:focus-visible ~ .tab-labels label[for="tab-2"], #tab-3:focus-visible ~ .tab-labels label[for="tab-3"], #tab-4:focus-visible ~ .tab-labels label[for="tab-4"] { outline: 3px solid var(--sage); outline-offset: 2px; }

/* ---------- Promo tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: var(--text-d); background: var(--bg); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .8s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,16,14,.92) 0%, rgba(18,16,14,.55) 45%, rgba(18,16,14,0) 80%); }
.tile-body { position: relative; z-index: 1; padding: 36px; }
.tile h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.tile p { color: var(--muted-d); margin-bottom: 20px; }

/* ---------- USP strip ---------- */
.usp { background: var(--white); border-block: 1px solid var(--line); }
.usp-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-right: 1px solid var(--line); }
.usp-item:last-child { border-right: 0; }
.usp-item svg { width: 34px; height: 34px; color: var(--sage-deep); flex-shrink: 0; }
.usp-item strong { display: block; font-weight: 800; }
.usp-item span { color: var(--ink-2); font-size: .9rem; }

/* ---------- Stats ---------- */
.stats { background: var(--bg); color: var(--text-d); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 16px; text-align: center; border-right: 1px solid var(--line-d); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted-d); font-weight: 700; }

/* ---------- 3D service icons (dark cards) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; overflow: hidden; background: var(--charcoal); color: var(--text-d); border-radius: var(--radius); padding: 32px 28px; transition: transform .35s, box-shadow .35s; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-d); transition: box-shadow .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(111,97,135,.6); }
.feature:hover::after { box-shadow: inset 0 0 0 1px rgba(185,172,201,.5); }
.feature-icon { width: 140px; height: 140px; border-radius: 30px; margin-bottom: 24px; overflow: hidden; background: radial-gradient(circle at 50% 58%, rgba(185,172,201,.32) 0%, rgba(127,114,147,.12) 45%, rgba(10,9,8,0) 72%), #0b0a09; box-shadow: inset 0 0 0 1px rgba(214,204,226,.1); }
.feature-icon img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; animation: icon-bob 6s ease-in-out infinite; transition: transform .5s; }
.feature:nth-child(2) .feature-icon img { animation-delay: -1.5s; }
.feature:nth-child(3) .feature-icon img { animation-delay: -3s; }
.feature:nth-child(4) .feature-icon img { animation-delay: -4.5s; }
.feature:nth-child(5) .feature-icon img { animation-delay: -2.2s; }
.feature:nth-child(6) .feature-icon img { animation-delay: -3.8s; }
.feature:hover .feature-icon img { transform: scale(1.1) rotate(-4deg); }
.feature h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted-d); }
@keyframes icon-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 70px; }
.split-img { border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.split-text > p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 24px; max-width: 42ch; }
.section-dark .split-text > p { color: var(--muted-d); }
.split--flip .split-img { order: 2; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.checks li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--sage-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: #e2a400; letter-spacing: 3px; font-size: 1.1rem; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.review figcaption { margin-top: auto; font-weight: 800; color: var(--ink-2); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 140px; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 24px; display: grid; gap: 10px; }
.post h2 { font-size: 1.4rem; font-weight: 800; }
.post p { color: var(--ink-2); }
.post a, .faq-item a { color: var(--sage-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px; }
.faq-item[open] { border-color: var(--sage-deep); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { font-family: var(--body); font-size: 1.15rem; font-weight: 800; letter-spacing: 0; }
.faq-item summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; color: var(--sage-deep); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); font-size: 1.05rem; padding-bottom: 22px; margin-top: -4px; }

/* ---------- Product page ---------- */
.pdp { padding: 50px 0 80px; background: var(--white); }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pdp-img { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pdp-img.cream { background: var(--cream); }
.pdp-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pdp-img.cream img { object-fit: cover; }
.pdp-brand { font-weight: 800; color: var(--sage-deep); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pdp-info h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.pdp-line { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 16px; }
.pdp-price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; margin-bottom: 22px; }
.pdp-info .btn-wa { margin-bottom: 28px; }
.pdp-desc { color: var(--ink-2); max-width: 46ch; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 8px; transition: border-color .25s, transform .25s; }
.contact-card:hover { border-color: var(--sage-deep); transform: translateY(-3px); }
.contact-card h2 { font-size: 1.5rem; font-weight: 800; }
.contact-card p { color: var(--ink-2); }
.contact-card strong { color: var(--sage-deep); font-size: 1.1rem; }
.visit { display: grid; gap: 20px; }
.visit div { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.visit h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.visit p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta { background: var(--sage); color: #17141a; padding: 80px 0; text-align: center; }
.cta h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.cta p { font-size: 1.15rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--text-d); padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line-d); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted-d); font-weight: 700; }
.footer-nav a:hover { color: var(--text-d); }
.footer-legal { padding-top: 22px; color: var(--muted-d); font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-row { grid-template-columns: repeat(6, 120px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
  .usp-row { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(2) { border-right: 0; }
  .usp-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .header-wa span { display: none; }
  .header-wa { padding: 11px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .warning-bar { font-size: .78rem; padding: 8px 12px; }
  .announce { font-size: .8rem; padding: 7px 12px; }
  .header-main { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .logo img { width: 40px; height: 40px; }
  .logo span { font-size: 1.25rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .burger { display: block; }
  .nav-bar { display: none; }
  .menu-toggle:checked ~ .nav-bar { display: block; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line-d); font-size: 1rem; }
  .main-nav a[aria-current="page"] { color: var(--sage); border-color: var(--line-d); }
  .site-header:has(.menu-toggle:checked) .burger span:first-child { top: 22px; transform: rotate(45deg); }
  .site-header:has(.menu-toggle:checked) .burger span:last-child { top: 22px; transform: rotate(-45deg); }

  .hero { min-height: 440px; padding: 60px 0 44px; align-items: flex-end; background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(18,16,14,.4) 0%, rgba(18,16,14,.62) 40%, rgba(18,16,14,.95) 80%); }
  .hero--home { min-height: 560px; }
  .hero-shade { background: linear-gradient(180deg, rgba(18,16,14,.35) 0%, rgba(18,16,14,.55) 40%, rgba(18,16,14,.96) 78%); }
  .hero-photo { object-position: 72% center; }
  .smoke--a { width: 110vw; right: -50vw; top: -12%; }
  .smoke--b { width: 90vw; right: -30vw; bottom: auto; top: 22%; }
  .smoke--c { display: none; }
  .hero-bud { width: 30vw; right: 6vw; bottom: auto; top: 6%; }
  .hero-ctas .btn { flex: 1 1 auto; }

  .section { padding: 56px 0; }
  .cats { padding: 24px 0; }
  .cat-row { grid-template-columns: repeat(6, 92px); gap: 14px; }
  .cat-img { width: 92px; height: 92px; }
  .cat { font-size: .85rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product h3 { font-size: .95rem; }
  .product-body > p { font-size: .82rem; }
  .price { font-size: 1.2rem; }
  .product .btn { padding: 10px 8px; font-size: .74rem; }
  .tiles, .split, .pdp-grid, .features, .reviews, .posts, .contact-cards { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .split--flip .split-img { order: 0; }
  .tile { min-height: 300px; }
  .tile-body { padding: 26px; }
  .usp-item { padding: 16px 10px; gap: 10px; }
  .usp-item svg { width: 28px; height: 28px; }
  .usp-item span { font-size: .8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 10px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .feature-icon { width: 120px; height: 120px; border-radius: 26px; }
  .pdp { padding: 24px 0 56px; }
  .pdp-grid { gap: 24px; }
  .pdp-info .btn-wa { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Cart
   ========================================================= */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-d); color: var(--text-d); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; transition: border-color .2s; }
.cart-link:hover { border-color: var(--sage); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sage); color: #17141a; font-size: .75rem; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }

/* Card + product page buttons */
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; margin: 0; }
.wa-mini { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; transition: transform .2s, background .2s; }
.wa-mini:hover { background: #1fbb59; transform: scale(1.06); }
.wa-mini svg { width: 22px; height: 22px; }
[data-add].is-added { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.pdp-actions .btn { min-width: 200px; }
.pdp-info .pdp-actions .btn-wa { margin-bottom: 0; }

/* Drawer */
.cart-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(12,10,9,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-scrim.is-open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(430px, 100%); background: var(--white); color: var(--ink); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); }
.cart-drawer.is-open { transform: none; visibility: visible; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; background: var(--bg); color: var(--text-d); }
.cart-drawer-head h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.cart-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); background: none; color: var(--text-d); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; -webkit-overflow-scrolling: touch; }
.cart-drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-drawer-foot[hidden] { display: none; }
html.cart-locked, html.cart-locked body { overflow: hidden; }

/* Cart lines (drawer + page) */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-weight: 800; line-height: 1.3; display: block; }
.cart-name:hover { color: var(--sage-deep); }
.cart-each { color: var(--ink-2); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 50%; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.cart-right { display: grid; justify-items: end; gap: 6px; }
.cart-right strong { font-family: var(--display); font-size: 1.15rem; }
.cart-remove, .link-btn { background: none; border: 0; padding: 4px 0; color: var(--ink-2); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-remove:hover, .link-btn:hover { color: var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { font-weight: 700; color: var(--ink-2); }
.cart-total strong { font-family: var(--display); font-size: 1.8rem; }
.cart-empty { text-align: center; padding: 50px 10px; display: grid; gap: 12px; justify-items: center; }
.cart-empty p { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }

/* Toast */
.cart-toast { position: fixed; left: 50%; bottom: 96px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.cart-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Cart page */
.cart-page { background: var(--paper); padding: 50px 0 90px; min-height: 60vh; }
.cart-page-head { margin-bottom: 30px; }
.cart-page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.cart-page-head p { color: var(--ink-2); font-size: 1.15rem; }
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.cart-page.is-empty .cart-layout { grid-template-columns: 1fr; }
.cart-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; }
.cart-items .cart-line { grid-template-columns: 96px 1fr auto; }
.cart-items .cart-thumb { width: 96px; height: 96px; }
.cart-items .cart-line:last-child { border-bottom: 0; }
.cart-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 150px; display: grid; gap: 16px; }
.cart-summary[hidden] { display: none; }
.cart-summary h2 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; }
.checkout { display: grid; gap: 14px; }
.checkout label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.checkout input[type=text], .checkout textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--sage-deep); background: #fff; }
.checkout textarea { resize: vertical; }
.checkout label[hidden] { display: none; }
.method { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.method-opt { position: relative; }
.method-opt input { position: absolute; opacity: 0; }
.method-opt span { display: block; text-align: center; padding: 13px; border: 2px solid var(--line); border-radius: 12px; font-weight: 800; cursor: pointer; transition: border-color .2s, background .2s; }
.method-opt input:checked + span { border-color: var(--sage-deep); background: rgba(111,97,135,.1); }
.method-opt input:focus-visible + span { outline: 3px solid var(--sage); outline-offset: 2px; }
.checkout .age-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.age-check input { width: 20px; height: 20px; accent-color: var(--sage-deep); flex-shrink: 0; }
.checkout-fine { color: var(--ink-2); font-size: .85rem; text-align: center; }
.checkout-status { font-weight: 700; min-height: 1.2em; }
.checkout-status.is-ok { color: #1c7a43; }
.checkout-status.is-err { color: #b3261e; }

@media (max-width: 1080px) {
  .cart-link .cart-label { display: none; }
  .cart-link { padding: 10px 12px; }
}
@media (max-width: 820px) {
  .cart-link { padding: 9px 10px; border-color: transparent; }
  .header-actions { gap: 8px; }
  .card-actions .btn { padding: 10px 6px; font-size: .72rem; }
  .wa-mini { width: 38px; height: 38px; }
  .wa-mini svg { width: 20px; height: 20px; }
  .pdp-actions { display: grid; grid-template-columns: 1fr; }
  .pdp-actions .btn { width: 100%; min-width: 0; }
  .cart-page { padding: 28px 0 70px; }
  .cart-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-items { padding: 4px 14px; }
  .cart-items .cart-line, .cart-line { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .cart-items .cart-thumb, .cart-thumb { width: 64px; height: 64px; }
  .cart-summary { position: static; padding: 20px; }
  .cart-toast { bottom: 84px; }
}

/* Cart: phone fixes */
.cart-each { display: block; }
@media (max-width: 820px) {
  .header-wa { display: none; }
  .header-actions { gap: 6px; }
}

/* Review invite (until real reviews are added) */
.review-invite { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); font-size: 1.05rem; }

/* =========================================================
   WordPress additions
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Content written in the editor */
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content p { color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; }
.entry-content h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.entry-content h3 { font-size: 1.5rem; font-weight: 800; }
.entry-content p a, .entry-content li a { color: var(--sage-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul:not(.checks), .entry-content ol { padding-left: 1.3em; color: var(--ink-2); font-size: 1.05rem; }
.entry-content ul.checks { padding: 0; margin: 18px 0 26px; }
.entry-content .wp-block-columns { display: flex; gap: 56px; align-items: center; margin-bottom: 0; }
.entry-content .wp-block-columns + .wp-block-columns { margin-top: 70px; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.entry-content .wp-block-column > * + * { margin-top: 1em; }
.entry-content .wp-block-image { margin: 0; }
.entry-content .wp-block-image img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; background: var(--sage-deep); color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
.entry-content .wp-block-button__link:hover { background: var(--sage-ink); transform: translateY(-2px); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.entry-content .wp-block-quote { border-left: 4px solid var(--sage); padding-left: 18px; font-size: 1.15rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-intro { margin-bottom: 30px; }
.article-body { max-width: 780px; }
.article-body p { max-width: none; font-size: 1.15rem; line-height: 1.75; }
.split-text.entry-content > * + * { margin-top: .8em; }
.split-text.entry-content .btn { margin-top: 18px; }

/* FAQ written with "Details" blocks */
.faq.entry-content > * + * { margin-top: 12px; }
.faq details, .entry-content details.wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 26px; }
.faq details[open] { border-color: var(--sage-deep); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; color: var(--sage-deep); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin-top: -4px; }

/* Blog list */
.post h2 a { color: inherit; text-decoration: none; font-weight: inherit; }
.post h2 a:hover { color: var(--sage-deep); }
.post .read-more { font-weight: 800; color: var(--sage-deep); text-decoration: none; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid-empty { color: var(--ink-2); text-align: center; padding: 30px 0; }
.pdp-desc p { color: var(--ink-2); }

@media (max-width: 820px) {
  .entry-content .wp-block-columns { flex-direction: column; gap: 24px; }
  .entry-content .wp-block-columns + .wp-block-columns { margin-top: 44px; }
  .entry-content .wp-block-column { flex-basis: auto; width: 100%; }
  .faq details, .entry-content details.wp-block-details { padding: 0 18px; }
}

/* Delivery & returns */
.policy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.policy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.policy-card h3 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.policy-card p { color: var(--ink-2); font-size: 1.05rem; }
.pdp-policy { list-style: none; padding: 16px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.pdp-policy strong { color: var(--ink); }
.pdp-policy a { color: var(--sage-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .policy-cards { grid-template-columns: 1fr; } }

/* Age check (21+) */
.age-gate { display: none; }
html.age-gate-on, html.age-gate-on body { overflow: hidden; }
html.age-gate-on .age-gate { display: flex; }
.age-gate { position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(18, 16, 14, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow-y: auto; }
.age-card { width: min(440px, 100%); background: var(--charcoal); color: var(--text-d); border: 1px solid var(--line-d); border-radius: 24px; padding: 40px 30px 32px; text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); animation: age-in .45s cubic-bezier(.2, .7, .2, 1); }
.age-card img { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px; }
.age-card h2 { font-size: clamp(1.9rem, 7vw, 2.5rem); font-weight: 800; text-transform: uppercase; }
.age-card p { color: var(--muted-d); font-size: 1.05rem; margin: 12px 0 28px; }
.age-actions { display: grid; gap: 12px; }
.age-actions[hidden] { display: none; }
.age-actions .btn { width: 100%; padding: 17px 28px; }
.btn-age-no { background: transparent; color: var(--text-d); border-color: rgba(241, 235, 230, .28); }
.btn-age-no:hover { background: rgba(241, 235, 230, .08); border-color: rgba(241, 235, 230, .5); }
@keyframes age-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .age-card { animation: none; } }
