/* ==========================================================================
   Youdh Single Product + Reviews
   ========================================================================== */

.youdh-pdp-root,
.youdh-reviews {
	--navy: #1a1f3a;	--navy-2: #11152a;
	--gold: #c9933a;
	--gold-2: #b9832a;
	--gold-soft: #efe2c8;
	--cream: #faf7f2;
	--cream-2: #f3ede2;
	--charcoal: #2c2c2a;
	--grey: #888780;
	--grey-2: #b6b3aa;
	--line: #e8e2d4;
	--green: #3f7d4a;
	--radius: 6px;
	--serif: 'Playfair Display', Georgia, serif;

	color: var(--charcoal);
	font-size: 14px;
	line-height: 1.55;
}

.youdh-pdp-root *,
.youdh-reviews * { box-sizing: border-box; }

/* Full-bleed: force viewport width even inside a centered flex column
   (width:100vw beats flex shrink; translateX re-centres to the viewport).
   Inner .youdh-wrap re-centres the actual content. */
.youdh-pdp-root,
.youdh-reviews {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	align-self: stretch;
}

/* Sale price (<ins>) must never be underlined; was-price (<del>) always struck. */
.youdh-pdp-root ins,
.youdh-reviews ins { text-decoration: none !important; }
.youdh-pdp-root del,
.youdh-reviews del { text-decoration: line-through !important; }

.youdh-pdp-root h1, .youdh-pdp-root h2, .youdh-pdp-root h3, .youdh-pdp-root h4,
.youdh-reviews h2 {
	font-family: var(--serif);
	font-weight: 700;
	color: var(--charcoal);
	letter-spacing: -.005em;
}

.youdh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.youdh-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); font-weight: 500; }

/* Inline partial-fill stars (shared) */
.youdh-stars-inline {
	display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1;
	background: linear-gradient(90deg, var(--gold) var(--pct, 0%), var(--grey-2) var(--pct, 0%));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.youdh-stars-inline--sm { font-size: 11px; }

.youdh-pill-lg {
	display: inline-block; padding: 6px 12px; border-radius: 999px;
	background: var(--gold-soft); color: var(--charcoal); font-size: 12px; font-weight: 500;
}

/* Ornament */
.youdh-ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 20px; }
.youdh-ornament span { width: 40px; height: 1px; background: var(--gold-soft); }
.youdh-ornament i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Purchase zone ---------- */
.youdh-pdp { padding: 36px 0 64px; background: #fff; }
.youdh-pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: flex-start; }

.youdh-gallery { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.youdh-hero-img { aspect-ratio: 1/1; border-radius: var(--radius); background: var(--cream); overflow: hidden; border: 1px solid var(--line); }
.youdh-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.youdh-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.youdh-thumb { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--cream); padding: 0; }
.youdh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.youdh-thumb:hover { border-color: var(--gold); }
.youdh-thumb.active { border: 2px solid var(--gold); }

.youdh-buy { display: flex; flex-direction: column; gap: 22px; }
.youdh-pdp-title { font-size: 30px; line-height: 1.18; margin: 0; }
.youdh-rating-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); margin-top: -8px; }
.youdh-rating-row a { color: var(--grey); text-decoration: underline; text-decoration-color: var(--line); }
.youdh-rating-row a:hover { color: var(--gold); }
.youdh-rating-row .dot { color: var(--grey-2); }

.youdh-scent-block { display: flex; flex-direction: column; gap: 10px; }
.youdh-scent-block .youdh-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.youdh-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.youdh-price-row .price,
.youdh-price-row .woocommerce-Price-amount { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--gold); line-height: 1; }
.youdh-price-row del { text-decoration: line-through; }
.youdh-price-row del .woocommerce-Price-amount { font-size: 16px; color: var(--grey); font-weight: 400; }
.youdh-price-row ins { text-decoration: none; }
.youdh-save-line { flex-basis: 100%; font-size: 13px; color: var(--green); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.youdh-sale-tag { background: #eaf3ec; color: var(--green); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }

.youdh-desc { font-size: 14px; line-height: 1.65; max-width: 54ch; }
.youdh-desc p { margin: 0 0 8px; }
.youdh-desc-link { display: inline-block; margin-top: 6px; color: var(--gold); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--gold-soft); }
.youdh-desc-link:hover { border-color: var(--gold); }

.youdh-delivery { background: var(--cream); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 4px 4px 0; font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.youdh-delivery svg { flex-shrink: 0; color: var(--gold); }
.youdh-delivery strong { color: var(--charcoal); font-weight: 500; }

/* WooCommerce add-to-cart form, restyled */
.youdh-addcart form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 0; }
.youdh-addcart .quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; height: 52px; overflow: hidden; }
.youdh-addcart .quantity input.qty { width: 56px; height: 100%; text-align: center; border: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--navy); }
.youdh-addcart button.single_add_to_cart_button,
.youdh-pdp-root .youdh-addcart button.single_add_to_cart_button {
	flex: 1; min-width: 200px; height: 52px; border-radius: 6px;
	background: var(--gold) !important; color: var(--navy) !important;
	font-weight: 600; font-size: 15px; letter-spacing: .02em; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s;
}
.youdh-addcart button.single_add_to_cart_button:hover,
.youdh-pdp-root .youdh-addcart button.single_add_to_cart_button:hover { background: var(--gold-2) !important; color: var(--navy) !important; }
.youdh-addcart .variations { margin-bottom: 14px; }
.youdh-addcart .variations td, .youdh-addcart .variations th { padding: 6px 0; }

.youdh-upsell { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--gold-soft); border-radius: 8px; background: var(--cream); text-decoration: none; color: var(--charcoal); }
.youdh-upsell:hover { border-color: var(--gold); }
.youdh-upsell-copy { font-size: 13px; font-weight: 500; line-height: 1.4; }
.youdh-upsell-copy small { display: block; color: var(--grey); font-weight: 400; margin-top: 3px; }
.youdh-upsell .arr { color: var(--gold); font-size: 18px; margin-left: auto; }

.youdh-trust-mini { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--grey); align-items: center; }
.youdh-trust-mini .it { display: inline-flex; align-items: center; gap: 6px; }
.youdh-trust-mini svg { color: var(--gold); }

.youdh-pull-quote { border-left: 3px solid var(--gold); padding: 12px 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.youdh-pull-quote q { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--charcoal); }
.youdh-pull-quote .who { font-size: 12px; color: var(--grey); }
.youdh-pull-quote .who strong { color: var(--charcoal); font-weight: 500; }

/* Placeholder tiles */
.youdh-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--cream) 0%, #f1ead8 100%); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--gold); font-size: 28px; }
.youdh-ph.youdh-video-ph { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.youdh-video-ph .play { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; color: var(--navy); box-shadow: 0 8px 30px rgba(201,147,58,.35); }

/* ---------- Sticky bar ---------- */
.youdh-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--navy); display: none; align-items: center; z-index: 90; box-shadow: 0 -8px 24px rgba(26,31,58,.06); }
.youdh-sticky-bar.visible { display: flex; }
.youdh-sticky-bar .row { width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; }
.youdh-sticky-bar .name { font-size: 14px; color: var(--charcoal); font-weight: 500; }
.youdh-sticky-bar .price .woocommerce-Price-amount { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--gold); }
.youdh-sticky-bar .price del { text-decoration: line-through !important; margin-right: 6px; }
.youdh-sticky-bar .price del .woocommerce-Price-amount { color: var(--grey); font-weight: 400; font-size: 16px; }
.youdh-sticky-bar .price ins { text-decoration: none !important; }
.youdh-btn-primary { display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 44px; border-radius: 6px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.youdh-btn-primary:hover { background: var(--gold-2); }

/* We-accept payment badges */
.youdh-pay-row { display: flex; flex-direction: column; gap: 8px; }
.youdh-pay-label { font-size: 11px; color: var(--grey); letter-spacing: .12em; text-transform: uppercase; }
.youdh-pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.youdh-pay-badge { border: 1px solid var(--line); background: #fff; height: 30px; padding: 0 10px; border-radius: 4px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: var(--charcoal); letter-spacing: .02em; }
.youdh-pay-badge.brand-visa { color: #1A1F71; }
.youdh-pay-badge.brand-mc .d1 { color: #EB001B; margin-right: -3px; }
.youdh-pay-badge.brand-mc .d2 { color: #F79E1B; }
.youdh-pay-badge.brand-amex { color: #006FCF; }

/* ---------- How to apply ---------- */
.youdh-how { padding: 80px 0; background: #fff; }
.youdh-section-head { text-align: center; margin-bottom: 36px; }
.youdh-section-head h2 { font-size: 30px; margin: 0 0 8px; }
.youdh-section-head p { color: var(--grey); font-size: 14px; margin: 0; }
.youdh-video-panel { background: var(--cream); border-radius: 10px; padding: 32px; }
.youdh-video-frame { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.youdh-video-frame iframe { width: 100%; height: 100%; border: 0; }
.youdh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.youdh-step-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.youdh-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.youdh-step-card h4 { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.youdh-step-card p { font-size: 13px; color: var(--grey); margin: 0; line-height: 1.5; }

/* ---------- Tabs ---------- */
.youdh-tabs-section { padding: 64px 0; background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.youdh-tabs-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.youdh-tabs-bar { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.youdh-tab { padding: 20px 32px; font-size: 14px; color: var(--grey); font-weight: 500; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; background: transparent; cursor: pointer; }
.youdh-tab:hover { color: var(--charcoal); }
.youdh-tab.active { color: var(--charcoal); font-weight: 600; border-bottom-color: var(--gold); }

/* Override theme accent (e.g. pink) bleeding onto active/hover/focus tab buttons */
.youdh-pdp-root .youdh-tabs-bar .youdh-tab,
.youdh-pdp-root .youdh-tabs-bar .youdh-tab:hover,
.youdh-pdp-root .youdh-tabs-bar .youdh-tab:focus,
.youdh-pdp-root .youdh-tabs-bar .youdh-tab:focus-visible,
.youdh-pdp-root .youdh-tabs-bar .youdh-tab.active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	outline: none !important;
}
.youdh-pdp-root .youdh-tabs-bar .youdh-tab.active {
	color: var(--charcoal) !important;
	border-bottom: 2px solid var(--gold) !important;
}
.youdh-tab-panel { display: none; padding: 40px; }
.youdh-tab-panel.active { display: block; }
.youdh-tab-panel h3 { font-size: 22px; margin: 0 0 14px; }
.youdh-tab-panel p { color: var(--charcoal); max-width: 72ch; line-height: 1.7; margin: 0 0 14px; }
.youdh-attr-grid, .youdh-ing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.youdh-attr { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 22px; text-align: center; }
.youdh-attr .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); font-weight: 500; }
.youdh-attr .val { font-family: var(--serif); font-size: 22px; margin-top: 6px; }
.youdh-ing-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--cream); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.youdh-ing-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.youdh-ing-card h4 { font-family: var(--serif); font-size: 18px; margin: 0; }
.youdh-ing-card p { font-size: 13px; color: var(--grey); margin: 0; line-height: 1.55; }
.youdh-safety-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.youdh-safety-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.youdh-safety-list .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.youdh-reviews-grid-tab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.youdh-review-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.youdh-review-card .hdr { display: flex; justify-content: space-between; align-items: center; }
.youdh-review-card q { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--charcoal); line-height: 1.55; }
.youdh-review-card .meta { font-size: 12px; color: var(--grey); }
.youdh-review-card .meta strong { color: var(--charcoal); font-weight: 500; }
.youdh-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--green); background: #eaf3ec; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.youdh-muted { color: var(--grey); }

/* ---------- Related ---------- */
.youdh-related { padding: 80px 0; background: #fff; }
.youdh-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.youdh-prod-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.youdh-prod-card:hover { border-color: var(--gold-soft); box-shadow: 0 18px 40px -28px rgba(26,31,58,.4); }
.youdh-prod-card .img { aspect-ratio: 1/1; background: var(--cream); display: block; overflow: hidden; }
.youdh-prod-card .img img { width: 100%; height: 100%; object-fit: cover; }
.youdh-prod-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.youdh-prod-card .pills { display: flex; flex-wrap: wrap; gap: 5px; }
.youdh-prod-card .pills .youdh-pill-lg { padding: 3px 9px; font-size: 10.5px; }
.youdh-prod-card h3 { font-family: var(--serif); font-size: 18px; margin: 0; }
.youdh-prod-card h3 a { color: var(--charcoal); text-decoration: none; }
.youdh-prod-card .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--grey); }
.youdh-prod-card .price-block { margin-top: auto; }
.youdh-prod-card .price-block .woocommerce-Price-amount { font-family: var(--serif); font-size: 20px; color: var(--gold); font-weight: 700; }
.youdh-prod-card .price-block del .woocommerce-Price-amount { font-size: 13px; color: var(--grey); font-weight: 400; }
.youdh-prod-card .youdh-cta .button { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; background: var(--gold); color: var(--navy); border: 0; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 6px; }
.youdh-prod-card .youdh-cta .button:hover { background: var(--gold-2); }
.youdh-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; color: #fff; }
.youdh-badge--gold { background: var(--gold); color: var(--navy); }
.youdh-badge--dark { background: var(--navy); color: var(--gold); }
.youdh-badge--green { background: var(--green); }
.youdh-badge--sale { background: var(--gold-2); }

/* ---------- Reviews carousel section ---------- */
.youdh-reviews { padding: 80px 0; background: var(--cream-2); }
.youdh-reviews-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 36px; text-align: center; }
.youdh-reviews-head h2 { font-size: 30px; margin: 0; }
.youdh-reviews-aggregate { font-size: 14px; color: var(--grey); }
.youdh-reviews-aggregate strong { color: var(--charcoal); font-weight: 600; }
.youdh-reviews-cta { text-align: center; margin-top: 32px; }
.youdh-btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 500; border-radius: 6px; background: #fff; font-size: 14px; text-decoration: none; }
.youdh-btn-outline:hover { background: var(--gold); color: #fff; }

/* --- RBC carousel restyle (scoped; must out-specific RBC's !important) --- */
.youdh-reviews .eplfg-rc__card {
	background: #fff !important;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
}
.youdh-reviews .eplfg-rc__card::before { color: rgba(201,147,58,.18) !important; }
.youdh-reviews .eplfg-rc__star { color: var(--gold) !important; }
.youdh-reviews .eplfg-rc__quote { color: var(--charcoal) !important; font-family: var(--serif) !important; font-style: italic !important; }
.youdh-reviews .eplfg-rc__divider { border-color: var(--line) !important; background: var(--line) !important; }
.youdh-reviews .eplfg-rc__name { color: var(--charcoal) !important; }
.youdh-reviews .eplfg-rc__subtitle { color: var(--grey) !important; }
.youdh-reviews .eplfg-rc__btn {
	background: #fff !important;
	border: 1px solid var(--gold) !important;
	color: var(--gold) !important;
}
.youdh-reviews .eplfg-rc__btn:hover { background: var(--gold) !important; color: #fff !important; }
.youdh-reviews .eplfg-rc__progress { background: var(--gold-soft) !important; }
.youdh-reviews .eplfg-rc__progress-bar { background: var(--gold) !important; }

/* ---------- Email ---------- */
.youdh-email-cap { padding: 80px 0; background: var(--cream); text-align: center; }
.youdh-email-cap h2 { font-size: 32px; margin: 0 0 12px; }
.youdh-email-cap p { color: var(--grey); font-size: 14px; max-width: 520px; margin: 0 auto 24px; }
.youdh-email-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.youdh-email-form input { flex: 1; border: 0; padding: 0 14px; font-family: inherit; font-size: 14px; background: transparent; outline: none; }
.youdh-email-form button { background: var(--gold); color: var(--navy); font-weight: 600; font-size: 13px; border: 0; border-radius: 5px; padding: 14px 22px; cursor: pointer; }
.youdh-email-form button:hover { background: var(--gold-2); }
.youdh-email-cap small { display: block; margin-top: 14px; font-size: 12px; color: var(--grey); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.youdh-pdp-grid { grid-template-columns: 1fr; gap: 36px; }
	.youdh-gallery { position: static; }
	.youdh-steps, .youdh-attr-grid, .youdh-ing-grid, .youdh-reviews-grid-tab, .youdh-prod-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.youdh-wrap { padding: 0 16px; }
	.youdh-pdp-title { font-size: 24px; }
	.youdh-steps, .youdh-attr-grid, .youdh-ing-grid, .youdh-reviews-grid-tab, .youdh-prod-grid { grid-template-columns: 1fr; }
	.youdh-tabs-bar { overflow-x: visible; }
	.youdh-tab { flex: 1; padding: 14px 4px; font-size: 12px; text-align: center; }
	.youdh-tab-panel { padding: 22px 18px; }
	.youdh-video-panel { padding: 16px; }
	.youdh-sticky-bar { display: none !important; }
	.youdh-how, .youdh-related, .youdh-reviews, .youdh-email-cap { padding: 48px 0; }
	.youdh-tabs-section { padding: 36px 0; }
}
