/*
Theme Name: Devayur
Theme URI: https://devayur.com/
Author: Devayur Ayurvedic
Description: Ayurvedic e-commerce + online doctor consultation theme for WooCommerce. Shop by concern, bestsellers, combos, offers, rewards, order tracking, doctor profiles and "Consult by Vaidya" booking. Works with the Devayur Core plugin.
Version: 1.3.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devayur
Tags: e-commerce, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ---------- Base ---------- */
:root {
	--dv-primary: #1f5b3a;
	--dv-primary-dark: #154329;
	--dv-accent: #d99a1e;
	--dv-bg: #faf7ef;
	--dv-cream: #fbf8f1;
	--dv-card: #fff;
	--dv-line: #e9e2d0;
	--dv-text: #22301f;
	--dv-muted: #6b6f63;
	--dv-radius: 14px;
	--font-head: "Marcellus", Georgia, "Hind", serif;
	--font-body: "Mulish", "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--dv-text); background: var(--dv-cream); }
img { max-width: 100%; height: auto; }
a { color: var(--dv-primary); }
a:hover { color: var(--dv-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--dv-text); margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
input, select, textarea, button { font-family: inherit; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 10px; top: 10px; z-index: 999; background: #fff; padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--dv-accent); outline-offset: 2px; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }
.sec { padding: 46px 0; }
.sec--tint { background: #f3efe2; }
.dv-ico { flex-shrink: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dv-primary); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.topbar__in { position: relative; height: 36px; overflow: hidden; text-align: center; }
.topbar__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s; padding: 0 20px; }
.topbar__msg.is-active { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.hdr { background: #fff; position: sticky; top: 0; z-index: 50; transition: box-shadow .2s; }
.admin-bar .hdr { top: 32px; }
.hdr.is-stuck { box-shadow: 0 6px 20px rgba(30, 50, 30, .08); }
.hdr__in { display: flex; align-items: center; gap: 22px; height: 78px; }
.hdr__burger { display: none; background: none; border: 0; padding: 6px; color: var(--dv-text); cursor: pointer; }
.hdr__brand .custom-logo { max-height: 56px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dv-text); }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--dv-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand__text strong { display: block; font-family: var(--font-head); font-size: 24px; line-height: 1; letter-spacing: .02em; }
.brand__text small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--dv-accent); font-weight: 700; margin-top: 3px; }
.hdr__search { flex: 1; display: flex; max-width: 560px; background: var(--dv-bg); border: 1px solid var(--dv-line); border-radius: 999px; overflow: hidden; }
.hdr__search input { flex: 1; border: 0; background: transparent; padding: 12px 18px; font-size: 15px; min-width: 0; }
.hdr__search input:focus { outline: none; }
.hdr__search:focus-within { border-color: var(--dv-primary); box-shadow: 0 0 0 3px rgba(31, 91, 58, .12); }
.hdr__search button { border: 0; background: var(--dv-primary); color: #fff; padding: 0 18px; cursor: pointer; }
.hdr__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hdr__icon { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 600; color: var(--dv-text); text-decoration: none; position: relative; gap: 2px; }
.hdr__icon:hover { color: var(--dv-primary); }
.hdr .hdr__consult { background: var(--dv-accent); border-color: var(--dv-accent); color: #2a1d00 !important; }
.hdr .hdr__consult:hover { background: #c4860f; border-color: #c4860f; }
.hdr-cart { position: relative; }
.hdr-cart__count { position: absolute; top: -6px; right: -8px; background: var(--dv-accent); color: #2a1d00; min-width: 19px; height: 19px; border-radius: 10px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Nav */
.nav { background: var(--dv-bg); border-top: 1px solid var(--dv-line); border-bottom: 1px solid var(--dv-line); }
.dv-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.dv-menu > li { position: relative; }
.dv-menu > li > a { display: block; padding: 12px 16px; text-decoration: none; color: var(--dv-text); font-weight: 700; font-size: 15px; }
.dv-menu > li > a:hover, .dv-menu > li.current-menu-item > a { color: var(--dv-primary); }
.dv-menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.dv-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--dv-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 60; }
.dv-menu li:hover > .sub-menu, .dv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.dv-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--dv-text); font-size: 14.5px; }
.dv-menu .sub-menu a:hover { background: var(--dv-bg); color: var(--dv-primary); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 1; transform: translateX(-100%); transition: transform .28s; overflow-y: auto; padding: 16px; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__head button { background: none; border: 0; cursor: pointer; padding: 6px; }
.hdr__search--drawer { max-width: none; margin-bottom: 12px; }
.drawer__menu, .drawer__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__menu li { position: relative; border-bottom: 1px solid var(--dv-line); }
.drawer__menu a { display: block; padding: 13px 40px 13px 4px; text-decoration: none; color: var(--dv-text); font-weight: 700; }
.drawer__menu .sub-menu { display: none; padding-left: 12px; }
.drawer__menu .sub-menu li { border: 0; }
.drawer__menu .sub-menu a { font-weight: 500; padding: 9px 4px; }
.drawer__menu li.is-open > .sub-menu { display: block; }
.sub-toggle { position: absolute; right: 0; top: 6px; width: 34px; height: 34px; border: 1px solid var(--dv-line); border-radius: 8px; background: var(--dv-bg); font-size: 18px; cursor: pointer; }
.drawer__links { display: grid; gap: 4px; margin-top: 16px; }
.drawer__links a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; text-decoration: none; color: var(--dv-text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__track { position: relative; min-height: 460px; }
.hero__slide { position: absolute; inset: 0; background: var(--slide-bg); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero__slide::before { content: ""; position: absolute; right: -8%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: 460px; padding-top: 30px; padding-bottom: 30px; }
.hero__kicker { display: inline-block; background: rgba(31, 91, 58, .1); color: var(--dv-primary); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.hero__title { font-size: clamp(30px, 4.4vw, 52px); margin: 14px 0; max-width: 620px; }
.hero__copy p { font-size: 18px; color: #48503f; max-width: 520px; margin: 0 0 24px; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { width: min(100%, 460px); aspect-ratio: 1; object-fit: cover; border-radius: 30px; box-shadow: 0 30px 60px rgba(40, 60, 30, .18); transform: rotate(2deg); }
.hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .2); cursor: pointer; padding: 0; transition: width .25s; }
.hero__dots button.is-active { width: 28px; background: var(--dv-primary); }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--dv-line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 18px 14px; font-size: 14.5px; }
.trust__item + .trust__item { border-left: 1px solid var(--dv-line); }
.trust__item span { width: 46px; height: 46px; border-radius: 50%; background: var(--dv-bg); color: var(--dv-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Section heads */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--dv-muted); }
.sec-head__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; white-space: nowrap; }

/* Concerns */
.concern-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.concern-row .dv-concern__ring { width: 104px; height: 104px; }

/* Consult band */
.consult-band { background: linear-gradient(115deg, var(--dv-primary), #2c7550); color: #fff; position: relative; overflow: hidden; }
.consult-band::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.consult-band__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.consult-band h2 { color: #fff; margin: 12px 0 10px; }
.consult-band .hero__kicker { background: rgba(255, 255, 255, .15); color: #fff; }
.consult-band .consult-band__btn { background: var(--dv-accent); border-color: var(--dv-accent); color: #2a1d00 !important; }
.consult-band .consult-band__btn:hover { background: #c4860f; border-color: #c4860f; }
.consult-band__docs { display: grid; gap: 12px; }
.mini-doc { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--dv-text); border-radius: 16px; padding: 12px 16px; text-decoration: none; transition: transform .2s; }
.mini-doc:hover { transform: translateX(4px); color: var(--dv-text); }
.mini-doc .dv-doc-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eaf3e4; font-size: 26px; flex-shrink: 0; }
.mini-doc span:not(.dv-doc-photo) { flex: 1; display: flex; flex-direction: column; }
.mini-doc .dv-doc-initial { flex: 0 0 64px; }
.mini-doc small { color: var(--dv-primary); font-weight: 700; }
.mini-doc em { font-style: normal; color: var(--dv-muted); font-size: 13px; }

/* Why */
.why { background: #fff; }
.why__in { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.why__num { display: block; font-family: var(--font-head); font-size: 56px; line-height: 1; color: var(--dv-primary); }
.why__lead p { font-size: 18px; color: var(--dv-muted); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__grid > div { background: var(--dv-bg); border-radius: var(--dv-radius); padding: 22px; color: var(--dv-primary); }
.why__grid h4 { margin: 12px 0 4px; }
.why__grid p { margin: 0; color: var(--dv-muted); font-size: 14px; }

/* Reviews */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.review { margin: 0; background: #fff; border: 1px solid var(--dv-line); border-radius: var(--dv-radius); padding: 22px; scroll-snap-align: start; display: flex; flex-direction: column; }
.review__stars { color: var(--dv-accent); display: flex; gap: 2px; }
.review blockquote { margin: 12px 0 18px; font-size: 15.5px; flex: 1; }
.review figcaption { display: flex; gap: 12px; align-items: center; }
.review figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review small { color: var(--dv-muted); }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: var(--dv-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* Media + video */
.media { background: #fff; border-top: 1px solid var(--dv-line); border-bottom: 1px solid var(--dv-line); }
.media__in { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 34px; padding: 22px 20px; color: #8a8d80; }
.media__in b { font-family: var(--font-head); font-size: 20px; font-weight: 400; color: #6d7166; }
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--dv-radius); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--dv-line); border-radius: var(--dv-radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e6f0df, #f6ecd6); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__ph { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--dv-primary); }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--dv-muted); }
.post-card h3 { font-size: 20px; margin: 6px 0 8px; }
.post-card h3 a { color: var(--dv-text); text-decoration: none; }
.post-card p { color: var(--dv-muted); font-size: 15px; margin: 0 0 12px; }
.post-card__more { margin-top: auto; font-weight: 800; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #f6e7c4, #f3dcae); border-radius: 22px; padding: 34px 40px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #5d5032; }

/* Page hero */
.page-hero { background: linear-gradient(120deg, #eef4e7, #f7efdc); padding: 40px 0 34px; }
.page-hero h1 { margin: 6px 0 0; }
.page-hero--slim { padding: 22px 0 18px; }
.page-hero--slim h1 { font-size: 28px; }
.page-hero__desc { color: var(--dv-muted); margin-top: 8px; max-width: 760px; }
.page-hero .woocommerce-breadcrumb, .crumbs, .crumbs .woocommerce-breadcrumb { font-size: 13.5px; color: var(--dv-muted); margin: 0; }
.crumbs { padding-top: 16px; }
.crumbs a, .woocommerce-breadcrumb a { color: var(--dv-muted); text-decoration: none; }
.entry-content { font-size: 17px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.page-body { min-height: 40vh; }
.article__img img { border-radius: var(--dv-radius); margin-bottom: 22px; }
.article__cta { margin: 30px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; font-weight: 700; }
.pager { margin-top: 30px; }
.pager .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--dv-line); text-decoration: none; }
.pager .current { background: var(--dv-primary); color: #fff; border-color: var(--dv-primary); }
.notfound { text-align: center; }
.notfound__code { font-family: var(--font-head); font-size: 110px; color: var(--dv-primary); opacity: .25; line-height: 1; }
.search-form { display: flex; gap: 8px; max-width: 460px; margin: 16px auto; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 14px; border: 1px solid var(--dv-line); border-radius: 10px; }
.search-form .search-submit { background: var(--dv-primary); color: #fff; border: 0; padding: 0 18px; border-radius: 10px; cursor: pointer; }

/* ---------- Doctor profile ---------- */
.doc-profile { display: grid; grid-template-columns: 360px 1fr; gap: 34px; align-items: start; }
.doc-profile__card { background: #fff; border: 1px solid var(--dv-line); border-radius: 20px; padding: 22px; position: sticky; top: 140px; }
.doc-profile__photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: linear-gradient(160deg, #eaf3e4, #f7efdc); margin-bottom: 16px; }
.doc-profile__photo .dv-doc-photo { width: 100%; height: 100%; object-fit: cover; }
.doc-profile__photo .dv-doc-initial { font-size: 120px; }
.doc-profile__card h1 { font-size: 28px; margin: 0; }
.doc-profile__qual { color: var(--dv-muted); margin: 4px 0 6px; }
.doc-rating { margin: 0 0 12px; }
.doc-facts { list-style: none; margin: 0 0 18px; padding: 0; }
.doc-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--dv-line); font-size: 14.5px; }
.doc-facts span { color: var(--dv-muted); }
.doc-facts strong { text-align: right; }
.doc-fee { color: var(--dv-primary); font-size: 18px; }
.doc-profile__book { width: 100%; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doc-tags span { background: #e8f2e3; color: var(--dv-primary); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 20px; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--dv-line); border-radius: var(--dv-radius); padding: 0 0 14px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; text-align: left; }
.woocommerce ul.products li.product:hover { box-shadow: 0 14px 34px rgba(30, 60, 30, .1); transform: translateY(-3px); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--dv-text); }
.woocommerce ul.products li.product a img { margin: 0 0 12px !important; aspect-ratio: 1; object-fit: cover; background: var(--dv-bg); }
.woocommerce ul.products li.product .loop-cat, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .star-rating { margin-left: 14px; margin-right: 14px; }
.loop-cat { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--dv-accent); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-body); font-weight: 700; font-size: 16px !important; padding: 2px 0 6px !important; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.woocommerce ul.products li.product .price { color: var(--dv-text) !important; font-size: 17px !important; font-weight: 800; margin-top: auto; margin-bottom: 12px !important; }
.woocommerce ul.products li.product .price del { color: #9a9a8e; font-weight: 500; font-size: 14px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: 0 14px !important; border-radius: 999px; background: var(--dv-primary); color: #fff; text-align: center; font-weight: 700; padding: 11px 14px; }
.woocommerce ul.products li.product .button:hover { background: var(--dv-primary-dark); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { margin: 6px 14px 0; font-size: 13px; font-weight: 700; text-align: center; }
.woocommerce span.onsale { background: var(--dv-accent); color: #2a1d00; border-radius: 8px; min-height: 0; min-width: 0; line-height: 1; padding: 6px 9px; font-size: 12px; font-weight: 800; top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--dv-accent); }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--dv-primary); color: #fff; border-radius: 999px; font-weight: 700; padding: 12px 22px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--dv-primary-dark); color: #fff; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--dv-primary); background: #fff; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--dv-primary); }
.woocommerce-result-count { color: var(--dv-muted); }
.woocommerce .woocommerce-ordering select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--dv-line); background: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 8px; padding: 9px 14px; background: #fff; border: 1px solid var(--dv-line); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--dv-primary); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--dv-line); color: var(--dv-text); text-decoration: none; font-weight: 700; font-size: 14px; }
.chips a.chip-concern { background: #f3f8ef; }
.chips a.is-active, .chips a:hover { background: var(--dv-primary); border-color: var(--dv-primary); color: #fff; }
.shop-body { padding-top: 24px; }

/* Single product */
.woocommerce div.product { background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--dv-line); }
.woocommerce div.product div.images img { border-radius: 16px; background: var(--dv-bg); }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--dv-text); font-size: 26px; font-weight: 800; }
.woocommerce div.product p.price del { color: #9a9a8e; font-size: 18px; font-weight: 500; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.woocommerce div.product form.cart .quantity .qty { height: 48px; width: 70px; border-radius: 999px; border: 1px solid var(--dv-line); }
.woocommerce div.product form.cart .button { height: 48px; padding: 0 34px; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 2px solid var(--dv-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 6px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--dv-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 800; }
.pdp-trust { list-style: none; padding: 14px 0; margin: 10px 0; border-top: 1px solid var(--dv-line); border-bottom: 1px solid var(--dv-line); display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.pdp-trust li { display: flex; align-items: center; gap: 6px; color: var(--dv-primary); font-weight: 700; }
.pdp-consult { display: flex; align-items: center; gap: 14px; background: #f1f7ed; border: 1px solid #d6e8cc; border-radius: 14px; padding: 14px 16px; margin: 14px 0; color: var(--dv-primary); }
.pdp-consult div { flex: 1; display: flex; flex-direction: column; color: var(--dv-text); }
.pdp-consult span { font-size: 14px; color: var(--dv-muted); }
.related.products > h2, .upsells.products > h2 { margin-top: 30px; }

/* Cart / checkout / account */
.ship-bar { background: #fff; border: 1px solid var(--dv-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.ship-bar span { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--dv-primary); margin-bottom: 8px; }
.ship-bar i { display: block; height: 8px; border-radius: 8px; background: #eee; overflow: hidden; }
.ship-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--dv-accent), var(--dv-primary)); border-radius: 8px; transition: width .4s; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--dv-line); border-radius: var(--dv-radius); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 18px; text-decoration: none; color: var(--dv-text); font-weight: 700; border-bottom: 1px solid var(--dv-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--dv-bg); color: var(--dv-primary); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 11px 13px; border: 1px solid var(--dv-line); border-radius: 10px; }

/* ---------- Footer ---------- */
.ftr { background: #17331f; color: #cfd8c9; margin-top: 30px; }
.ftr a { color: #e9efe4; text-decoration: none; }
.ftr a:hover { color: var(--dv-accent); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding: 56px 20px 40px; }
.ftr .brand { color: #fff; }
.ftr .brand__mark { background: var(--dv-accent); color: #2a1d00; }
.ftr .custom-logo { max-height: 56px; width: auto; filter: brightness(0) invert(1); }
.ft-about p { font-size: 14.5px; margin: 16px 0; }
.ft-col h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.ft-links { list-style: none; margin: 0; padding: 0; }
.ft-links li { margin-bottom: 9px; font-size: 14.5px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.ft-contact { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14.5px; }
.ft-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.ft-contact .dv-ico { margin-top: 3px; color: var(--dv-accent); }
.ft-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-apps a { background: #000; border: 1px solid #444; border-radius: 10px; padding: 6px 14px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.15; }
.ft-apps small { font-size: 10px; font-weight: 400; opacity: .8; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.ftr__bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chips b { background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 3px 9px; font-size: 12px; color: #fff; }

.wa-float { position: fixed; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); z-index: 70; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--dv-line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .15); padding: 14px 18px; display: flex; align-items: center; gap: 14px; z-index: 90; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; font-size: 14px; }
.mnav { display: none; }

/* ---------- v1.2 ---------- */
.hdr__lang { display: flex; align-items: center; }
.drawer__lang { margin: 12px 0; }
.prakriti-band { background: linear-gradient(110deg, #fdf3df, #eef6e9); }
.prakriti-band__in { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.prakriti-band h2 { margin: 0 0 6px; }
.prakriti-band p { margin: 0; color: var(--dv-muted); }
.prakriti-band__doshas { display: flex; }
.prakriti-band__doshas span { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 22px var(--font-head); color: #fff; margin-left: -14px; border: 4px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.prakriti-band__doshas .d-v { background: #6c8fd6; margin-left: 0; }
.prakriti-band__doshas .d-p { background: #e0823e; }
.prakriti-band__doshas .d-k { background: #3f9c64; }
.dz-hero__hi { font-size: 20px; color: var(--dv-primary); margin: 6px 0 0; }
.dz-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.dz-main h2 { font-size: 26px; }
.dz-side { position: sticky; top: 140px; display: grid; gap: 14px; }
.dz-side__card { background: var(--dv-primary); color: #fff; border-radius: 18px; padding: 22px; }
.dz-side__card h3 { color: #fff; margin: 8px 0 6px; }
.dz-side__card .dv-btn { background: var(--dv-accent); border-color: var(--dv-accent); color: #2a1d00 !important; }
.dz-side__card--soft { background: #f3efe2; color: var(--dv-text); }
.dz-side__card--soft h3 { color: var(--dv-text); }
.dz-side__card--soft .dv-btn { background: transparent; color: var(--dv-primary) !important; border-color: var(--dv-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hdr__track span, .hdr__icon span:not(.hdr-cart__count) { display: none; }
	.ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
	.ft-about { grid-column: 1 / -1; }
	.concern-row { grid-template-columns: repeat(4, 1fr); }
	.why__in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.hdr__burger { display: block; }
	.hdr__in { height: 64px; gap: 10px; }
	.hdr__actions { gap: 16px; padding-right: 8px; }
	.hdr__search, .nav, .hdr .hdr__consult, .hdr .hdr__track { display: none; }
	.hdr__search--drawer { display: flex; }
	.brand__text strong { font-size: 20px; }
	.brand__mark { width: 36px; height: 36px; }
	.hero__track, .hero__in { min-height: 0; }
	.hero__in { grid-template-columns: 1fr; text-align: left; padding-top: 26px; padding-bottom: 50px; gap: 10px; }
	.hero__art { order: -1; }
	.hero__art img { width: 62%; border-radius: 22px; }
	.hero__copy p { font-size: 16px; }
	.trust__in { grid-template-columns: 1fr 1fr; }
	.trust__item:nth-child(3) { border-left: 0; }
	.trust__item:nth-child(n+3) { border-top: 1px solid var(--dv-line); }
	.consult-band__in, .doc-profile, .dz-layout, .prakriti-band__in { grid-template-columns: 1fr; }
	.dz-side { position: static; }
	.hdr__lang { display: none; }
	.doc-profile__card { position: static; }
	.why__grid { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.cta { flex-direction: column; align-items: flex-start; padding: 26px; }
	.mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--dv-line); z-index: 80; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
	.mnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--dv-muted); position: relative; }
	.mnav a.is-active { color: var(--dv-primary); }
	.mnav__main .dv-ico { background: var(--dv-primary); color: #fff; border-radius: 50%; padding: 8px; width: 42px; height: 42px; margin-top: -18px; box-shadow: 0 6px 14px rgba(31, 91, 58, .35); }
	.mnav .hdr-cart__count { top: -4px; right: calc(50% - 22px); }
	body { padding-bottom: 70px; }
	.wa-float { bottom: 86px; width: 50px; height: 50px; }
	.cookie { bottom: 84px; flex-direction: column; align-items: stretch; text-align: center; }
	.woocommerce div.product { padding: 16px; }
}
@media (max-width: 600px) {
	.sec { padding: 34px 0; }
	.wrap { padding: 0 14px; }
	.concern-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; padding-bottom: 6px; }
	.concern-row .dv-concern__ring { width: 80px; height: 80px; }
	.concern-row .dv-concern strong { font-size: 12.5px; }
	.post-grid { grid-template-columns: 1fr; }
	.sec-head { align-items: flex-start; flex-direction: column; gap: 6px; }
	.trust__item { font-size: 13px; padding: 12px 8px; gap: 8px; }
	.trust__item span { width: 38px; height: 38px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
	.woocommerce ul.products li.product .button { font-size: 13px; padding: 9px 8px; }
	.ftr__grid { grid-template-columns: 1fr 1fr; }
	.why__num { font-size: 44px; }
	.admin-bar .hdr { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- v1.3: mobile + installed-app (PWA) fit ---------- */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg, canvas { max-width: 100%; }
.woocommerce table.shop_table, .dv-table, table { max-width: 100%; }
.woocommerce div.product .summary, .woocommerce div.product .woocommerce-product-gallery, .wrap > *, main > * { min-width: 0; }
@media (max-width: 900px) {
	/* Stop iOS from zooming into fields (needs ≥16px). */
	input, select, textarea, .input-text { font-size: 16px !important; }
	.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
	.woocommerce div.product form.cart .button { flex: 1 1 160px; }
	.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { word-break: break-word; }
	.dv-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* Opened as installed app: no browser bars, respect notch / gesture bar. */
@media (display-mode: standalone), (display-mode: fullscreen) {
	html { -webkit-tap-highlight-color: transparent; }
	body { overscroll-behavior-y: none; }
	.hdr { padding-top: env(safe-area-inset-top); }
	.dv-install { display: none !important; }
	.drawer__panel { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 900px) {
	body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	.wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; }
	.dv-chat { bottom: calc(146px + env(safe-area-inset-bottom)) !important; right: 14px !important; }
	body.dv-install-on .wa-float, body.dv-install-on .dv-chat { display: none; }
}
.ft-contact a, .ft-contact li { overflow-wrap: anywhere; }
@media (max-width: 380px) {
	.ftr__grid { grid-template-columns: 1fr; }
	.hdr__actions { gap: 12px; }
	.brand__text strong { font-size: 18px; }
}
