/*
Theme Name: Sejatwa
Theme URI: https://sejatwa.com
Author: Sejatwa
Description: Doctor-formulated Ayurvedic wellness storefront for Sejatwa — a custom WooCommerce theme ported pixel-for-pixel from the Next.js design. Brand by Dr. Rujuta Dadhaniya (BAMS).
Version: 1.5.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sejatwa
Tags: e-commerce, woocommerce, custom-colors, custom-menu, featured-images
WC requires at least: 8.0
WC tested up to: 9.5
*/

/* ============================================================
   Design tokens — ported from globals.css (Sejatwa brand)
   ============================================================ */
:root {
  --background: #ffffff;
  --foreground: #1e2b22;
  --card: #ffffff;
  --card-foreground: #1e2b22;
  --primary: #2f5d3a;
  --primary-foreground: #ffffff;
  --secondary: #f1efe4;
  --secondary-foreground: #2c3a30;
  --muted: #f1efe4;
  --muted-foreground: #5e665b;
  --accent: #e8f0e2;
  --accent-foreground: #2f5d3a;
  --border: #e4e0d4;
  --ring: #2f5d3a;

  --brand: #2f5d3a;
  --brand-foreground: #ffffff;
  --brand-dark: #21412a;
  --brand-soft: #e8f0e2;
  --gold: #c39a2e;
  --gold-soft: #f6edd3;
  --sage: #8a9a5b;
  --cream: #f6f4ec;
  --ink: #1e2b22;

  --radius-card: 16px;
  --radius-pill: 30px;
  --page-max-width: 1500px;

  --font-sans: "Work Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.site-main { flex: 1 1 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Layout helpers
   ============================================================ */
.page-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.text-center { text-align: center; }
.muted { color: var(--muted-foreground); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}

/* ============================================================
   Typography — .h1..h6 ported from globals.css
   ============================================================ */
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}
.h1 { font-size: clamp(34px, 4vw, 50px); }
.h2 { font-size: clamp(26px, 3vw, 32px); }
.h3 { font-size: 24px; }
.h4 { font-size: 20px; }
.h5 { font-size: 16px; }
.h6 { font-size: 14px; }
.lead { font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }

/* ============================================================
   Buttons — .btn-pill ported from globals.css
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  background: var(--brand);
  color: var(--brand-foreground);
  border: 1px solid var(--brand);
  transition: color .25s ease, background-color .25s ease, opacity .25s ease;
  cursor: pointer;
}
.btn-pill:hover { background: var(--brand-foreground); color: var(--brand); }
.btn-pill--outline { background: var(--brand-foreground); color: var(--brand); }
.btn-pill--outline:hover { background: var(--brand); color: var(--brand-foreground); }

/* ============================================================
   Announcement bar
   ============================================================ */
.announcement-bar {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-lockup img { height: 48px; width: auto; }
.brand-lockup__name {
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--brand); line-height: 1;
}
.brand-lockup__tag {
  display: block; margin-top: 4px; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--sage);
}
.main-nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; color: #111; transition: color .2s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a, .header-actions button {
  color: #111; background: none; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; transition: color .2s ease;
}
.header-actions a:hover, .header-actions button:hover { color: var(--brand); }
.header-actions .cart-count {
  margin-left: -6px; background: var(--brand); color: #fff; font-size: 10px;
  font-weight: 700; border-radius: 999px; padding: 1px 6px;
}
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline-flex; } }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer__panel {
  position: absolute; top: 0; left: 0; height: 100%; width: 82%; max-width: 24rem;
  background: #fff; padding: 24px; overflow-y: auto; border-radius: 0 24px 24px 0;
}
.mobile-drawer__close { position: absolute; top: 16px; right: 16px; font-size: 28px; background: none; border: 0; cursor: pointer; line-height: 1; }
.mobile-nav { list-style: none; margin: 40px 0 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 14px 0; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 12px; }
.mobile-nav .sub-menu a { text-transform: none; font-weight: 400; color: var(--muted-foreground); padding: 6px 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--brand); color: #fff; }
.site-footer__grid {
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: 16px; font-weight: 600; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { font-size: 14px; color: rgba(255,255,255,.9); transition: opacity .2s; }
.site-footer a:hover { opacity: .7; }
.footer-mark { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px; }
.footer-mark img { height: 44px; width: auto; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-direction: column; gap: 24px; align-items: center;
  font-size: 14px; color: rgba(255,255,255,.85);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.pay-badge {
  background: #fff; color: #404040; border-radius: 4px; padding: 4px 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero__media { position: relative; min-height: 640px; width: 100%; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.10) 60%, transparent);
}
.hero__content { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero__inner { width: 100%; padding-bottom: 4rem; }
.hero__copy { max-width: 36rem; color: #fff; }
.hero__copy .h1 { color: #fff; }
.hero__copy p { margin-top: 12px; max-width: 28rem; color: rgba(255,255,255,.9); }

/* ============================================================
   Generic content sections
   ============================================================ */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.media-frame {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius-card); background: var(--muted);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait { aspect-ratio: 4/5; }
.media-frame--square { aspect-ratio: 1/1; }

.card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid--3 { grid-template-columns: repeat(3,1fr); } .card-grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(4,1fr); } }
.value-card {
  border: 1px solid var(--border); background: var(--accent);
  border-radius: var(--radius-card); padding: 28px; text-align: center;
  transition: box-shadow .2s ease;
}
.value-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.value-card h3 { color: var(--brand); margin: 0 0 12px; font-size: 20px; }
.value-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(47,93,58,.1); color: var(--brand);
}
.accent-panel {
  background: var(--accent); border-radius: var(--radius-card);
  padding: 56px 24px; text-align: center;
}
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Doctor cards */
.doctor-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .doctor-grid { grid-template-columns: 1fr 1fr; } }
.doctor-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius-card); transition: box-shadow .2s ease;
}
.doctor-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.doctor-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--muted); }
.doctor-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.doctor-card:hover .doctor-card__media img { transform: scale(1.03); }
.doctor-card__body { padding: 24px; }
.doctor-card__body h2 { font-size: 24px; margin: 8px 0 0; }
.doctor-card__role { font-size: 14px; font-weight: 500; color: var(--foreground); margin: 6px 0 0; }
.doctor-card__exp { font-size: 14px; color: var(--muted-foreground); margin: 0; }
.doctor-card__bio { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); margin: 16px 0 0; }

/* Promo banner */
.promo-banner img { width: 100%; height: auto; border-radius: var(--radius-card); }

/* Form */
.form-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: var(--radius-card); padding: 24px;
  box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
@media (min-width: 768px) { .form-card { padding: 32px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: #fff; padding: 12px 16px; font-size: 14px; color: var(--foreground);
  outline: none; transition: border-color .2s ease; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }

/* ============================================================
   WooCommerce — align with brand
   ============================================================ */
.woocommerce-store-notice, p.demo_store { background: var(--brand) !important; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price { color: var(--brand); font-weight: 600; }
.woocommerce span.onsale {
  background: var(--gold); color: #fff; border-radius: 999px;
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--brand); color: #fff; border-radius: var(--radius-pill);
  padding: 14px 28px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; transition: opacity .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce .button:hover { opacity: .9; }
.woocommerce ul.products li.product a img { border-radius: var(--radius-card); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--brand); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand); }
.shop-hero { background: var(--accent); border-radius: var(--radius-card); padding: 48px 24px; text-align: center; margin-bottom: 40px; }

/* ---- Page title on shop/archive ---- */
.woocommerce-products-header { text-align: center; margin-bottom: 36px; }
.woocommerce-products-header__title.page-title,
.woocommerce .woocommerce-products-header__title {
  font-size: clamp(26px, 3vw, 32px); font-weight: 600; color: var(--ink);
}
.woocommerce .term-description { text-align: center; max-width: 42rem; margin: 12px auto 0; color: var(--muted-foreground); }
.woocommerce .woocommerce-result-count { color: var(--muted-foreground); font-size: 13px; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-family: inherit; background: #fff;
}

/* ---- Product grid (override WC floats with CSS grid) ---- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 0 !important;
  padding: 0 !important;
}
/* Kill WooCommerce's clearfix pseudo-elements — in a CSS grid they become
   phantom cells and push products into empty columns (the white-space bug). */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}
@media (min-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 16px; text-align: left; transition: box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { margin-bottom: 14px; border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important; font-weight: 600; color: var(--ink); padding: 0 !important; line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  color: var(--brand); font-weight: 600; font-size: 16px; margin: 6px 0 12px;
}
.woocommerce ul.products li.product .price del { color: var(--muted-foreground); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .button { margin-top: auto !important; width: 100%; }
.woocommerce ul.products li.product .star-rating { margin: 4px 0; font-size: .8em; }

/* ---- Single product ---- */
.woocommerce div.product { overflow: hidden; } /* contain floats */
@media (min-width: 900px) {
  .woocommerce div.product .woocommerce-product-gallery { float: left; width: 46%; margin: 0 !important; }
  .woocommerce div.product .summary { float: right; width: 48%; margin: 0 !important; }
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells { clear: both; width: 100%; padding-top: 24px; }
}
.woocommerce div.product .woocommerce-product-gallery { margin: 0 0 24px !important; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--radius-card); }
.woocommerce div.product .product_title { font-size: clamp(26px,3vw,34px); font-weight: 600; color: var(--ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand); font-size: 24px; font-weight: 600; }
.woocommerce div.product form.cart { margin-top: 20px; }
.woocommerce div.product form.cart .quantity input {
  border: 1px solid var(--border); border-radius: 999px; padding: 12px; width: 72px; text-align: center;
}
.woocommerce .quantity .qty { font-family: inherit; }
.woocommerce-tabs ul.tabs::before { border-bottom-color: var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0; }
.woocommerce span.onsale {
  min-height: auto; min-width: auto; line-height: 1; padding: 6px 12px;
  font-size: 12px; font-weight: 600; top: 12px; left: 12px;
}

/* ---- Cart ---- */
.woocommerce table.shop_table {
  border: 1px solid var(--border); border-radius: var(--radius-card); border-collapse: separate;
  border-spacing: 0; overflow: hidden;
}
.woocommerce table.shop_table th { background: var(--accent); color: var(--ink); font-weight: 600; padding: 16px; }
.woocommerce table.shop_table td { padding: 16px; vertical-align: middle; }
.woocommerce .cart img { width: 72px; border-radius: 10px; }
.woocommerce a.remove {
  color: var(--brand) !important; border: 1px solid var(--border); width: 22px; height: 22px; line-height: 20px;
}
.woocommerce a.remove:hover { background: var(--brand) !important; color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals {
  border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; background: #fff;
}
.woocommerce .cart_totals h2 { font-size: 20px; margin-top: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; }
.woocommerce-cart .cart-collaterals { margin-top: 16px; }
.woocommerce .coupon input, .woocommerce form .form-row input.input-text {
  border: 1px solid var(--border) !important; border-radius: 999px; padding: 12px 16px; font-family: inherit;
}

/* ---- Checkout ---- */
.woocommerce-checkout .col2-set, .woocommerce-checkout #customer_details { margin-bottom: 24px; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 500; color: var(--ink); }
.woocommerce-checkout #payment {
  background: var(--accent) !important; border-radius: var(--radius-card); padding: 8px 4px;
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--border); }
.woocommerce-checkout-review-order table.shop_table { background: #fff; }
.woocommerce form .form-row textarea {
  border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; font-family: inherit;
}
.select2-container--default .select2-selection--single {
  border: 1px solid var(--border) !important; border-radius: 999px !important; height: 46px !important; padding: 6px 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 32px; }

/* ---- My Account ---- */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li {
  border: 1px solid var(--border); border-radius: 999px; margin-bottom: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active { background: var(--brand); border-color: var(--brand); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 18px; font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }

/* ---- Notices ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: 12px; border-top-width: 3px; background: var(--accent);
}
.woocommerce form.login, .woocommerce form.register {
  border: 1px solid var(--border) !important; border-radius: var(--radius-card); padding: 24px;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: #fff; margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(47,93,58,.1); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; transition: transform .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: var(--muted-foreground); line-height: 1.65; font-size: 15px; }

/* ============================================================
   Blog post body & lists
   ============================================================ */
.link-brand { color: var(--brand); text-decoration: underline; }
.post-body { font-size: 16px; line-height: 1.75; color: #36433a; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: 24px; font-weight: 600; color: var(--ink); margin-top: 1.6em; }
.post-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .5em; }
.post-body img { border-radius: var(--radius-card); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 24px; font-weight: 600; margin-top: 1.4em; }
.entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--brand); text-decoration: underline; }

/* ============================================================
   Mobile responsiveness refinements
   ============================================================ */
@media (max-width: 640px) {
  .page-container { padding-inline: 1.125rem; }
  .hero__media { min-height: 520px; }
  .hero__inner { padding-bottom: 2.5rem; }
  .section { padding-block: 2.75rem; }
  .accent-panel { padding: 40px 20px; }
  .btn-pill { padding: 15px 26px; font-size: 15px; }
  .cta-row { gap: 12px; }
  .cta-row .btn-pill { width: 100%; }
  .split { gap: 28px; }
  .form-card { padding: 20px; }
  .doctor-card__body { padding: 20px; }
  .footer-bottom { text-align: center; }
  .woocommerce table.shop_table thead { display: none; }
}
@media (max-width: 480px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand-lockup img { height: 40px; }
  .brand-lockup__name { font-size: 18px; }
}

/* ============================================================
   Homepage marketing sections
   ============================================================ */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Shop by concern (icon circles) */
.concern-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px 32px; }
.concern-item { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 7rem; text-align: center; }
.concern-icon {
  display: flex; align-items: center; justify-content: center; width: 96px; height: 96px;
  border-radius: 999px; border: 2px solid rgba(47,93,58,.25); background: var(--brand-soft);
  color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.concern-item:hover .concern-icon { transform: translateY(-4px); background: var(--brand); color: #fff; border-color: var(--brand); }
.concern-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.concern-item:hover .concern-label { color: var(--brand); }

/* Why Sejatwa grid */
.why-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2,1fr); gap: 40px 24px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(6,1fr); } }
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-icon {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px;
  border: 2px solid rgba(47,93,58,.3); background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.why-item:hover .why-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.why-title { margin: 16px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.why-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted-foreground); }

/* Marquee */
.marquee { display: flex; align-items: center; height: 80px; overflow: hidden; background: var(--brand); }
.marquee__track { display: flex; align-items: center; white-space: nowrap; animation: sejatwa-marquee 28s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 32px; padding: 0 32px; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.marquee__dot { color: rgba(255,255,255,.8); }
@keyframes sejatwa-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Lookbook mosaic */
.lookbook { display: grid; grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; gap: 16px; }
@media (min-width: 768px) { .lookbook { grid-template-columns: repeat(3,1fr); grid-auto-rows: 220px; gap: 24px; } }
.lookbook__cell { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--muted); }
.lookbook__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lookbook__cell:hover img { transform: scale(1.05); }
.lookbook__cell--tall { grid-row: span 2; }

/* Media-text band */
.media-text { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: var(--radius-card); background: var(--accent); }
@media (min-width: 768px) { .media-text { grid-template-columns: 1fr 1fr; } }
.media-text__img { position: relative; min-height: 280px; }
@media (min-width: 768px) { .media-text__img { min-height: 440px; } }
.media-text__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-text__body { padding: 40px 24px; }
@media (min-width: 768px) { .media-text__body { padding: 56px 48px; } }

/* Gut benefit image grid */
.benefit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(4,1fr); gap: 24px; } }
.benefit-cell { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-card); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.benefit-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.benefit-cell:hover img { transform: scale(1.05); }

/* Comparison table */
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 560px; max-width: 720px; margin: 0 auto; border-collapse: collapse; }
.compare th, .compare td { text-align: center; padding: 16px 8px; }
.compare thead th { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #111; }
.compare__label { text-align: left !important; font-size: 14px; font-weight: 500; color: #111; padding-left: 16px; }
.compare tbody tr { border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare .compare--hl { background: var(--accent); }
.compare thead .compare--hl { color: var(--brand); border-radius: 12px 12px 0 0; position: relative; }
.compare .ok { color: var(--brand); display: inline-flex; }
.compare .ok.dark { color: #111; }
.compare .no { color: var(--muted-foreground); display: inline-flex; }

/* Shop by benefits tiles */
.benefit-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 768px) { .benefit-tiles { grid-template-columns: repeat(4,1fr); gap: 24px; } }
.benefit-tile { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.benefit-tile__img { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-card); background: var(--secondary); }
.benefit-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.benefit-tile:hover .benefit-tile__img img { transform: scale(1.05); }
.benefit-tile__label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #111; transition: color .2s ease; }
.benefit-tile:hover .benefit-tile__label { color: var(--brand); }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius-card); background: var(--accent); margin: 0; }
.quote-mark { color: var(--brand); }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.quote-card blockquote { flex: 1; margin: 0; font-size: 14px; line-height: 1.7; color: #111; }
.quote-card figcaption { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #111; }

/* Our difference */
.difference-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.difference-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px;
  border: 2px solid rgba(47,93,58,.3); background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Journal cards */
.journal-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; transition: box-shadow .2s ease; }
.journal-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.journal-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--muted); display: block; }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; }
.journal-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); }
.journal-card__body { padding: 22px; }
.journal-card__body h3 a { color: var(--ink); }
.journal-card__body h3 a:hover { color: var(--brand); }

@media (max-width: 640px) {
  .marquee__item { font-size: 15px; }
  .compare { min-width: 520px; }
  .quote-card { padding: 24px; }
}

/* ============================================================
   Video testimonials
   ============================================================ */
/* Side-by-side scroller */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scroller-wrap { position: relative; }
.video-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.video-scroller .video-card {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
}
@media (max-width: 480px) { .video-scroller .video-card { width: 62vw; } }

.scroller-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: background-color .2s ease, color .2s ease;
}
.scroller-arrow:hover { background: var(--brand); color: #fff; }
.scroller-arrow--prev { left: -12px; }
.scroller-arrow--next { right: -12px; }
@media (min-width: 768px) { .scroller-arrow { display: inline-flex; } }

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--brand-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
}
.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--brand-dark);
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  cursor: pointer;
  padding-left: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, background-color .2s ease;
}
.video-card__play:hover { transform: scale(1.08); background: #fff; }
.video-card.is-playing .video-card__play { display: none; }
/* When playing, show the full frame so faces aren't cropped. */
.video-card.is-playing video { object-fit: contain; }

/* ============================================================
   Utilities
   ============================================================ */
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mx-auto { margin-inline: auto; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-xl { max-width: 36rem; }
.stack > * + * { margin-top: 20px; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--muted-foreground); }
.check-list .tick {
  margin-top: 2px; flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px;
  background: rgba(47,93,58,.1); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
