/* Gheeth Core front-end styles: product page conversion blocks, checkout, thank-you, WhatsApp.
   Tokens/buttons duplicated from the theme so the plugin also works without the Gheeth child theme. */

/* ---------- Tokens ---------- */
:root {
	--gh-teal-900: #08332f;
	--gh-teal-700: #0b4f4a;
	--gh-teal-600: #0f625b;
	--gh-teal-500: #13796f;
	--gh-teal-100: #d5ebe7;
	--gh-teal-50: #ecf6f4;
	--gh-sand-50: #fbf8f3;
	--gh-sand-100: #f4ede2;
	--gh-sand-200: #ece2d2;
	--gh-sand-300: #e0d1ba;
	--gh-ink: #11201e;
	--gh-ink-2: #2b3b38;
	--gh-muted: #5b6b68;
	--gh-line: #e5ddd0;
	--gh-white: #ffffff;
	--gh-saffron: #f4a62a;
	--gh-saffron-600: #e0901a;
	--gh-coral: #c8401c;
	--gh-coral-50: #fdece6;
	--gh-wa: #168a41;
	--gh-wa-600: #12733a;
	--gh-star: #e8a317;

	--gh-font-display: "Bricolage Grotesque", "Alexandria", ui-sans-serif, system-ui, sans-serif;
	--gh-font-body: "Instrument Sans", "Alexandria", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gh-font-ar: "Alexandria", "Instrument Sans", system-ui, sans-serif;

	--gh-radius-sm: 10px;
	--gh-radius: 16px;
	--gh-radius-lg: 24px;
	--gh-radius-pill: 999px;
	--gh-shadow-sm: 0 1px 2px rgba(17, 32, 30, .06), 0 1px 1px rgba(17, 32, 30, .04);
	--gh-shadow: 0 10px 30px -12px rgba(8, 51, 47, .22), 0 2px 6px rgba(17, 32, 30, .05);
	--gh-shadow-lg: 0 30px 60px -20px rgba(8, 51, 47, .35);
	--gh-ease: cubic-bezier(.2, .7, .2, 1);
	--gh-gap: clamp(16px, 3vw, 28px);
	--gh-section: clamp(48px, 8vw, 104px);
	--gh-maxw: 1240px;
	--gh-sticky-h: 0px;
}

/* ---------- Icons: safe default size everywhere ---------- */
.gh-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.gh-btn {
	--_bg: var(--gh-teal-700); --_fg: #fff; --_bd: var(--_bg);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border-radius: 14px;
	background: var(--_bg); color: var(--_fg); border: 2px solid var(--_bd);
	font: 650 16px/1 var(--gh-font-body); text-decoration: none; cursor: pointer;
	transition: transform .15s var(--gh-ease), background-color .2s, box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.gh-btn:hover { transform: translateY(-1px); box-shadow: var(--gh-shadow); color: var(--_fg); }
.gh-btn:active { transform: translateY(0); }
.gh-btn svg { width: 20px; height: 20px; flex: none; }
.gh-btn--buy { --_bg: var(--gh-saffron); --_fg: var(--gh-ink); }
.gh-btn--buy:hover { --_bg: var(--gh-saffron-600); }
.gh-btn--outline { --_bg: transparent; --_fg: var(--gh-teal-700); --_bd: var(--gh-teal-700); }
.gh-btn--light { --_bg: #fff; --_fg: var(--gh-teal-900); --_bd: #fff; }
.gh-btn--wa { --_bg: var(--gh-wa); --_fg: #fff; }
.gh-btn--wa:hover { --_bg: var(--gh-wa-600); }
.gh-btn--block { width: 100%; }
.gh-btn--lg { min-height: 58px; font-size: 17px; padding-inline: 28px; }

/* ---------- Stars ---------- */
.gh-stars { --size: 16px; display: inline-flex; gap: 2px; color: var(--gh-star); }
.gh-stars svg { width: var(--size); height: var(--size); }

/* ---------- FAQ (details/summary, no JS) ---------- */
.gh-faq { display: grid; gap: 10px; max-width: 860px; }
.gh-faq details { background: #fff; border: 1px solid var(--gh-line); border-radius: 14px; transition: border-color .2s; }
.gh-faq details[open] { border-color: var(--gh-teal-500); box-shadow: var(--gh-shadow-sm); }
.gh-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 20px; font: 650 16px/1.35 var(--gh-font-body); color: var(--gh-ink);
}
.gh-faq summary::-webkit-details-marker { display: none; }
.gh-faq summary::after {
	content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
	background: var(--gh-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f4a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .25s var(--gh-ease);
}
.gh-faq details[open] summary::after { transform: rotate(45deg); }
.gh-faq__a { padding: 0 20px 18px; color: var(--gh-muted); line-height: 1.6; }
.gh-faq__a p { margin: 0 0 8px; }

/* ==========================================================================
   Product page (markup from gheeth-core)
   ========================================================================== */
.single-product .product_title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.single-product .summary .price { font: 750 clamp(26px, 3vw, 32px)/1.1 var(--gh-font-body); color: var(--gh-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.single-product .summary .price del { font-size: .6em; color: var(--gh-muted); font-weight: 500; }
.single-product .summary .price ins { text-decoration: none; }
.gh-pp-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gh-muted); margin: 0 0 10px; }
.gh-pp-rating a { color: inherit; }
.gh-save {
	display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px;
	background: var(--gh-coral-50); color: var(--gh-coral); font: 700 14px/1 var(--gh-font-body);
	padding: 8px 12px; border-radius: 999px;
}
.gh-cod-line { display: flex; align-items: center; gap: 8px; color: var(--gh-ink-2); font-size: 14.5px; margin: 6px 0 16px; }
.gh-cod-line svg { width: 18px; height: 18px; color: var(--gh-teal-600); }
.gh-benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.gh-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--gh-ink-2); }
.gh-benefits li::before {
	content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
	background: var(--gh-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f625b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Honest urgency (real stock / real sales only) */
.gh-urgency { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gh-coral); margin: 0 0 12px; }
.gh-urgency--calm { color: var(--gh-teal-600); }
.gh-urgency__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }

/* Quantity / bundle offer */
.gh-tiers { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; flex: 1 1 100%; width: 100%; min-width: 0; container-type: inline-size; }
.gh-tiers legend { font: 700 15px/1.2 var(--gh-font-body); color: var(--gh-ink); margin: 0 0 12px; padding: 0; float: none; width: auto; }
.gh-tier { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "radio label price"; column-gap: 14px; row-gap: 6px; align-items: center; padding: 16px 18px; border: 2px solid var(--gh-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; margin: 0; font-size: 15px; line-height: 1.3; }
.gh-tier:has(.gh-tier__tag) { padding-block-start: 22px; }
.gh-tier:hover { border-color: var(--gh-teal-500); }
.gh-tier input { grid-area: radio; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gh-sand-300); margin: 0; padding: 0; display: grid; place-items: center; background: #fff; flex: none; }
.gh-tier input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gh-teal-700); transform: scale(0); transition: transform .15s; }
.gh-tier input:checked { border-color: var(--gh-teal-700); }
.gh-tier input:checked::after { transform: scale(1); }
.gh-tier:has(input:checked) { border-color: var(--gh-teal-700); background: var(--gh-teal-50); }
.gh-tier__label { grid-area: label; min-width: 0; font-weight: 650; color: var(--gh-ink); line-height: 1.3; overflow-wrap: anywhere; }
.gh-tier__label small { display: block; margin-block-start: 2px; font-weight: 500; color: var(--gh-muted); font-size: 13px; line-height: 1.35; }
.gh-tier__price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; font-weight: 750; font-size: 16px; color: var(--gh-ink); line-height: 1.2; white-space: nowrap; }
.gh-tier__price .woocommerce-Price-amount, .gh-tier__price bdi { display: block; font: inherit; color: inherit; margin: 0; padding: 0; position: static; }
.gh-tier__price del { display: block; margin: 0; font-size: 12.5px; color: var(--gh-muted); font-weight: 500; opacity: 1; text-decoration-thickness: 1px; }
.gh-tier__price del .woocommerce-Price-amount, .gh-tier__price del bdi { font-size: inherit; font-weight: inherit; color: inherit; }
.gh-tier__tag { position: absolute; inset-block-start: -11px; inset-inline-start: 48px; inset-inline-end: auto; background: var(--gh-saffron); color: var(--gh-ink); font: 700 11.5px/1 var(--gh-font-body); padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
@container (max-width: 330px) {
	.gh-tier { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "radio label" ". price"; }
	.gh-tier__price { flex-direction: row; align-items: baseline; gap: 8px; justify-content: flex-start; }
}

/* Add to cart row */
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.single-product form.cart .quantity { flex: none; }
.single-product form.cart .single_add_to_cart_button { flex: 1 1 160px; min-height: 54px; border-radius: 14px; font-weight: 700; font-size: 16px; background: #fff; color: var(--gh-teal-700); border: 2px solid var(--gh-teal-700); }
.single-product form.cart .single_add_to_cart_button:hover { background: var(--gh-teal-50); color: var(--gh-teal-900); }
.single-product form.cart .gh-buy-now { flex: 1 1 100%; }
.single-product .gh-wa-ask { flex: 1 1 100%; min-height: 48px; font-size: 15px; }
.single-product form.cart.gh-has-tiers .quantity { display: none; }

/* Delivery estimate */
.gh-delivery { display: grid; gap: 0; border: 1px solid var(--gh-line); border-radius: 14px; background: #fff; margin: 4px 0 18px; overflow: hidden; }
.gh-delivery__row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; font-size: 14.5px; line-height: 1.4; }
.gh-delivery__row + .gh-delivery__row { border-top: 1px solid var(--gh-line); }
.gh-delivery__row svg { flex: none; width: 22px; height: 22px; color: var(--gh-teal-600); }
.gh-delivery__row strong { color: var(--gh-ink); }

/* Product FAQ */
.gh-pp-faq { margin: 22px 0; }
.gh-pp-faq h2 { font-size: 22px; margin: 0 0 12px; }

/* Gallery: video first, native swipe */
.gh-gallery { position: relative; }
.gh-gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--gh-radius-lg); background: var(--gh-sand-100); scrollbar-width: none; overscroll-behavior-x: contain; }
.gh-gallery__track::-webkit-scrollbar { display: none; }
.gh-gallery__slide { scroll-snap-align: center; aspect-ratio: 1; position: relative; margin: 0; }
.gh-gallery__slide img, .gh-gallery__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-gallery__badge { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; background: rgba(17, 32, 30, .78); color: #fff; font: 600 12.5px/1 var(--gh-font-body); padding: 7px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.gh-gallery__badge svg { width: 12px; height: 12px; }
.gh-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gh-gallery__thumbs button { flex: none; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--gh-sand-100); cursor: pointer; position: relative; }
.gh-gallery__thumbs button[aria-current="true"] { border-color: var(--gh-teal-700); }
.gh-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-gallery__thumbs .gh-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 32, 30, .35); color: #fff; }
.gh-gallery__thumbs .gh-thumb-play svg { width: 22px; height: 22px; }
.gh-gallery__dots { position: absolute; inset-inline: 0; bottom: 92px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
@media (min-width: 900px) { .gh-gallery__dots { display: none; } }
.gh-gallery__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.gh-gallery__dots span.is-active { background: #fff; width: 18px; border-radius: 999px; }

/* Sticky mobile purchase bar */
.gh-sticky-buy {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; align-items: center;
	padding: 10px clamp(12px, 3vw, 20px) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--gh-line);
	box-shadow: 0 -10px 30px -18px rgba(8, 51, 47, .4);
	transform: translateY(110%); transition: transform .3s var(--gh-ease);
}
.gh-sticky-buy.is-visible { transform: translateY(0); }
.gh-sticky-buy__price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gh-sticky-buy__price strong { font: 750 18px/1.1 var(--gh-font-body); color: var(--gh-ink); white-space: nowrap; }
.gh-sticky-buy__price small { font-size: 12px; color: var(--gh-muted); white-space: nowrap; }
.gh-sticky-buy .gh-btn { min-height: 50px; }
.gh-sticky-buy .gh-btn--buy { flex: 1; }
.gh-sticky-buy .gh-btn--wa { width: 50px; padding: 0; flex: none; }
@media (min-width: 1000px) { .gh-sticky-buy { display: none; } }
body.gh-has-sticky { --gh-sticky-h: 76px; }
@media (max-width: 999px) { body.gh-has-sticky .site-footer, body.gh-has-sticky footer.ct-footer { padding-bottom: var(--gh-sticky-h); } }

/* Floating WhatsApp (non product pages) */
.gh-wa-float {
	position: fixed; z-index: 80; inset-inline-end: 16px; bottom: calc(16px + var(--gh-sticky-h) + env(safe-area-inset-bottom));
	width: 56px; height: 56px; border-radius: 50%; background: var(--gh-wa); color: #fff; display: grid; place-items: center;
	box-shadow: 0 12px 28px -8px rgba(22, 138, 65, .6); transition: transform .2s var(--gh-ease);
}
.gh-wa-float:hover { transform: scale(1.06); color: #fff; }
.gh-wa-float svg { width: 28px; height: 28px; }
body.single-product .gh-wa-float { display: none; }
/* Product pages already carry an in-page WhatsApp button (and the mobile sticky bar), so the floating one would only cover the offer prices. */

/* ==========================================================================
   Checkout (one page, classic shortcode + gheeth-core fields)
   ========================================================================== */
.gh-checkout-head { text-align: center; margin: 10px auto 22px; max-width: 640px; }
.gh-checkout-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 8px; }
.gh-checkout-head p { margin: 0; color: var(--gh-muted); }
.gh-steps-mini { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--gh-muted); flex-wrap: wrap; }
.gh-steps-mini li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .gh-steps-mini li + li::before { display: none; } .gh-steps-mini { gap: 6px 14px; } }
.gh-steps-mini li + li::before { content: ""; width: 18px; height: 1px; background: var(--gh-sand-300); }
.gh-steps-mini b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gh-teal-700); color: #fff; font-size: 12px; }
.gh-onepage form.woocommerce-checkout { display: grid; gap: 20px; }
@media (min-width: 960px) {
	.gh-onepage form.woocommerce-checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
	.gh-onepage form.woocommerce-checkout #customer_details { grid-column: 1; }
	.gh-onepage form.woocommerce-checkout #order_review_heading, .gh-onepage form.woocommerce-checkout #order_review { grid-column: 2; }
	.gh-onepage form.woocommerce-checkout #order_review_heading { grid-row: 1; margin: 0; }
	.gh-onepage form.woocommerce-checkout #order_review { grid-row: 1 / span 3; position: sticky; top: 24px; }
}
.gh-onepage .woocommerce-checkout #customer_details, .gh-onepage .woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); padding: clamp(18px, 3vw, 28px); }
.gh-onepage .woocommerce-checkout #customer_details .col-1, .gh-onepage .woocommerce-checkout #customer_details .col-2 { width: 100% !important; float: none !important; max-width: none; }
.gh-onepage .woocommerce-checkout .woocommerce-billing-fields h3, .gh-onepage .woocommerce-checkout #order_review_heading { font-size: 20px; }
.gh-onepage .woocommerce-checkout .form-row label { font-weight: 600; color: var(--gh-ink); font-size: 14px; }
.gh-onepage .woocommerce-checkout .form-row input.input-text, .gh-onepage .woocommerce-checkout .form-row select, .gh-onepage .woocommerce-checkout .form-row textarea { border-radius: 12px; min-height: 50px; font-size: 16px; }
.gh-onepage .woocommerce-checkout .gh-phone-wrap { display: flex; align-items: stretch; }
.gh-onepage .woocommerce-checkout .gh-phone-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--theme-form-field-border-initial-color, var(--gh-line)); border-inline-end: 0; border-start-start-radius: 12px; border-end-start-radius: 12px; background: var(--gh-sand-100); font-weight: 650; color: var(--gh-ink); direction: ltr; }
.gh-onepage .woocommerce-checkout .gh-phone-wrap input { border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; direction: ltr; text-align: start; }
.gh-field-hint { display: block; font-size: 12.5px; color: var(--gh-muted); margin-top: 4px; }
.gh-field-hint.is-error { color: var(--gh-coral); }
.gh-onepage .woocommerce-checkout #place_order { width: 100%; min-height: 58px; border-radius: 14px; font-size: 17px; font-weight: 750; background: var(--gh-saffron); color: var(--gh-ink); border: 0; }
.gh-onepage .woocommerce-checkout #place_order:hover { background: var(--gh-saffron-600); }
.gh-onepage .woocommerce-checkout .wc_payment_methods { border: 0 !important; padding: 0 !important; }
.gh-onepage .woocommerce-checkout .wc_payment_method { background: var(--gh-teal-50); border-radius: 12px; padding: 12px 14px !important; }
.gh-onepage .woocommerce-checkout .payment_box { background: transparent !important; padding: 6px 0 0 !important; }
.gh-checkout-assure { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--gh-ink-2); }
.gh-checkout-assure li { display: flex; gap: 8px; align-items: center; }
.gh-checkout-assure svg { width: 18px; height: 18px; color: var(--gh-teal-600); flex: none; }

/* Thank you */
.gh-thanks { text-align: center; background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); padding: clamp(24px, 5vw, 48px); margin-bottom: 24px; }
.gh-thanks__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--gh-teal-50); color: var(--gh-teal-700); }
.gh-thanks__icon svg { width: 32px; height: 32px; }
.gh-thanks h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.gh-thanks p { color: var(--gh-muted); max-width: 52ch; margin: 0 auto 18px; line-height: 1.6; }
.gh-thanks__steps { display: grid; gap: 10px; max-width: 520px; margin: 0 auto 20px; padding: 0; list-style: none; text-align: start; }
.gh-thanks__steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--gh-sand-50); border: 1px solid var(--gh-line); font-size: 15px; }
.gh-thanks__steps b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gh-teal-700); color: #fff; font-size: 13px; }

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

/* WooCommerce "N in stock" duplicates the honest urgency line. Out-of-stock stays visible. */
.single-product .summary .stock.in-stock { display: none; }
