/**
 * DR. NOUN — front-end skin (child theme, scoped).
 * Loaded only via diza-child. Every rule is namespaced to avoid breaking
 * WooCommerce/Diza core styling. EN + RTL aware.
 */

/* ------------------------------------------------------------------ *
 * Design tokens
 * ------------------------------------------------------------------ */
:root {
	--drn-green-950: #0a2f22;
	--drn-green-900: #0c3929;
	--drn-green-800: #105c3e;
	--drn-green-700: #157a50;
	--drn-gold: #b9893f;
	--drn-gold-soft: #ecdcc0;
	--drn-ink: #18241d;
	--drn-muted: #5f7065;
	--drn-bg: #ffffff;
	--drn-soft: #f3f6f3;
	--drn-line: #e5ebe5;
	--drn-radius: 14px;
	--drn-shadow: 0 20px 45px -24px rgba(12, 57, 41, 0.35);
}

/* ------------------------------------------------------------------ *
 * STAGE 2 — Global footer (DR. NOUN)
 * ------------------------------------------------------------------ */
.drn-footer {
	background: linear-gradient(180deg, var(--drn-green-900), var(--drn-green-950));
	color: #dce9df;
	margin-top: 64px;
	padding: 56px 0 24px;
}

.drn-footer .container {
	max-width: 1240px;
}

.drn-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
	gap: 40px 32px;
	align-items: start;
}

.drn-footer-brand .drn-footer-logo img {
	max-width: 200px;
	width: auto;
	height: auto;
	display: block;
	filter: brightness(0) invert(1);
}

.drn-footer-tagline {
	margin: 14px 0 0;
	max-width: 260px;
	line-height: 1.7;
	font-size: 0.95rem;
	color: #b9ccc0;
}

.drn-footer-col .drn-footer-title {
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 16px;
	position: relative;
	padding-block-end: 10px;
}

.drn-footer-col .drn-footer-title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: var(--drn-gold);
}

.drn-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.drn-footer-links li {
	margin: 0 0 10px;
}

.drn-footer-links a,
.drn-footer-faq {
	color: #c4d5ca;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.drn-footer-links a:hover,
.drn-footer-faq:hover {
	color: #fff;
}

.drn-footer-links a.is-active {
	color: var(--drn-gold-soft);
	font-weight: 600;
}

.drn-footer-faq {
	display: inline-block;
	margin-top: 10px;
}

.drn-footer-bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	color: #9db3a5;
	font-size: 0.85rem;
}

/* ------------------------------------------------------------------ *
 * STAGE 2 — Global shell polish (no Diza branding; scoped)
 * ------------------------------------------------------------------ */
.tbay-header .header-main,
.tbay-header .header-mainmenu {
	background: var(--drn-bg);
}

.tbay-header .header-mainmenu .menu > li > a,
.tbay-header .navbar-nav.menu > li > a {
	color: var(--drn-ink);
	font-weight: 600;
}

.tbay-header .header-mainmenu .menu > li > a:hover {
	color: var(--drn-green-700);
}

/* Keep Diza default top padding of main containers tidy on standard pages */
body.page:not(.home) #main-container,
body.woocommerce-archive #main-container,
body.single-product #main-container {
	padding-top: 24px;
}

/* ------------------------------------------------------------------ *
 * STAGE 3 — Homepage (drn-home)
 * ------------------------------------------------------------------ */
.drn-home #main-container,
.drn-home .main-page {
	padding: 0 !important;
	background: var(--drn-bg);
}

.drn-hero {
	background:
		radial-gradient(1200px 520px at 12% -12%, rgba(21, 122, 80, 0.12), transparent 60%),
		radial-gradient(1000px 480px at 92% 4%, rgba(185, 137, 63, 0.1), transparent 55%),
		linear-gradient(180deg, #eef4ef, #ffffff 78%);
	position: relative;
}

.drn-hero .container {
	max-width: 1240px;
	padding: 84px 24px 74px;
}

.drn-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--drn-green-700);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.78rem;
	margin: 0 0 18px;
}

.drn-hero-eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--drn-gold);
}

.drn-hero-title {
	font-size: clamp(2rem, 4.4vw, 3.6rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--drn-ink);
	margin: 0 0 18px;
	font-weight: 800;
}

.drn-hero-sub {
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.75;
	color: var(--drn-muted);
	max-width: 620px;
	margin: 0 0 30px;
}

.drn-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.drn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 30px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.22s ease;
}

.drn-btn-primary {
	background: var(--drn-green-800);
	color: #fff;
	border: 1px solid var(--drn-green-800);
}

.drn-btn-primary:hover {
	background: var(--drn-green-700);
	border-color: var(--drn-green-700);
	color: #fff;
	transform: translateY(-1px);
}

.drn-btn-ghost {
	background: transparent;
	color: var(--drn-ink);
	border: 1px solid var(--drn-line);
}

.drn-btn-ghost:hover {
	border-color: var(--drn-green-700);
	color: var(--drn-green-700);
}

.drn-section {
	padding: 56px 0 20px;
}

.drn-section .container {
	max-width: 1240px;
}

.drn-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.drn-section-head .drn-title {
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	font-weight: 800;
	color: var(--drn-ink);
	margin: 0;
	letter-spacing: -0.01em;
}

.drn-section-head .drn-more {
	color: var(--drn-green-700);
	font-weight: 700;
	text-decoration: none;
	font-size: 0.95rem;
	white-space: nowrap;
}

.drn-section-head .drn-more:hover {
	color: var(--drn-green-800);
}

/* Category tiles (product_categories shortcode) on homepage */
.drn-home .product-categories .product-cat,
body.home .product-categories .product-cat {
	margin-bottom: 22px;
}

/* Homepage product grids inherit the shared card skin (Stage 4) */
.drn-home .display-products .product-block,
.woocommerce-page .display-products .product-block {
	animation: none;
}

/* ------------------------------------------------------------------ *
 * STAGE 3 — Trust + CTA bands
 * ------------------------------------------------------------------ */
.drn-trust {
	background: var(--drn-soft);
	padding: 44px 0;
	margin-top: 20px;
}

.drn-trust .container {
	max-width: 1240px;
}

.drn-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.drn-value {
	background: var(--drn-bg);
	border: 1px solid var(--drn-line);
	border-radius: var(--drn-radius);
	padding: 26px 24px;
}

.drn-value-mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(21, 122, 80, 0.1);
	color: var(--drn-green-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	margin-bottom: 14px;
}

.drn-value h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--drn-ink);
}

.drn-value p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--drn-muted);
}

.drn-cta {
	padding: 64px 0 36px;
}

.drn-cta .container {
	max-width: 1240px;
}

.drn-cta-inner {
	background:
		radial-gradient(700px 300px at 18% 0%, rgba(21, 122, 80, 0.16), transparent 60%),
		linear-gradient(120deg, var(--drn-green-900), var(--drn-green-800));
	border-radius: 22px;
	color: #fff;
	padding: 60px 48px;
	text-align: center;
	box-shadow: var(--drn-shadow);
}

.drn-cta-title {
	font-size: clamp(1.5rem, 3vw, 2.3rem);
	font-weight: 800;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.drn-cta-sub {
	max-width: 620px;
	margin: 0 auto 26px;
	line-height: 1.75;
	color: #d3e2d8;
}

.drn-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.drn-cta-actions .drn-btn-primary {
	background: var(--drn-gold);
	border-color: var(--drn-gold);
	color: var(--drn-green-950);
}

.drn-cta-actions .drn-btn-primary:hover {
	background: #caa25c;
	border-color: #caa25c;
	color: var(--drn-green-950);
}

.drn-cta-actions .drn-btn-ghost {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.drn-cta-actions .drn-btn-ghost:hover {
	border-color: #fff;
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * STAGE 4 — Shop / product cards (scoped to loops)
 * ------------------------------------------------------------------ */
.display-products.products-grid .product-block,
.woocommerce-page .display-products .product-block {
	background: var(--drn-bg);
	border: 1px solid var(--drn-line);
	border-radius: var(--drn-radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	margin-bottom: 0;
	padding: 0;
}

.display-products .product-block:hover {
	border-color: #d4e0d6;
	box-shadow: var(--drn-shadow);
	transform: translateY(-4px);
}

/* Square, cover-cropped image */
.display-products .product-block .image {
	border-radius: 0;
}

.display-products .product-block .image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Sale badge */
.display-products .product-block .onsale,
.woocommerce .product-block .onsale {
	background: var(--drn-green-800);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	padding: 5px 14px;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
	left: auto;
	right: 14px;
	top: 14px;
	min-height: 0;
}

/* Caption margins */
.display-products .product-block .caption {
	padding: 16px 18px 20px;
}

.display-products .product-block .name {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.display-products .product-block .name a {
	color: var(--drn-ink);
	text-decoration: none;
}

.display-products .product-block .name a:hover {
	color: var(--drn-green-700);
}

/* Price hierarchy */
.display-products .product-block .price-wrapper {
	margin-top: 4px;
}

.display-products .product-block .price {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--drn-green-800);
	line-height: 1.2;
}

.display-products .product-block .price del {
	color: var(--drn-muted);
	font-weight: 500;
	font-size: 0.85rem;
	opacity: 0.7;
	margin-inline-end: 8px;
}

.display-products .product-block .price ins {
	text-decoration: none;
	font-weight: 800;
	color: var(--drn-green-800);
}

/* Ratings: hide empty presentation, never invent a rating */
.display-products .product-block .rating.no-rate,
.woocommerce .product-block .rating.no-rate {
	display: none;
}

.display-products .product-block .rating:not(.no-rate) {
	margin: 0 0 8px;
}

/* Add to cart button on cards */
.display-products .product-block .button,
.woocommerce .product-block .button {
	background: var(--drn-green-800);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 9px 16px;
	transition: background 0.2s ease, color 0.2s ease;
}

.display-products .product-block .button:hover {
	background: var(--drn-green-700);
	color: #fff;
}

.display-products .product-block .added_to_cart {
	color: var(--drn-green-700);
	font-weight: 700;
	font-size: 0.82rem;
	text-decoration: none;
}

/* Consistent archive grid gutters */
.woocommerce-page .display-products > .row {
	margin-inline: -14px;
}

.woocommerce-page .display-products > .row > * {
	padding-inline: 14px;
	margin-bottom: 26px;
}

/* ------------------------------------------------------------------ *
 * STAGE 5 — Product page (single)
 * ------------------------------------------------------------------ */
.single-product .product-main {
	padding-top: 8px;
}

.single-product .product-summary .product_title {
	font-size: clamp(1.4rem, 2.8vw, 2.05rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--drn-ink);
	line-height: 1.2;
	margin-bottom: 10px;
}

.single-product .product-summary .price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--drn-green-800);
}

.single-product .product-summary .price del {
	color: var(--drn-muted);
	font-size: 1rem;
	font-weight: 500;
	opacity: 0.75;
	margin-inline-end: 10px;
}

.single-product .product-summary .price ins {
	text-decoration: none;
}

.single-product .product-summary .rating.no-rate {
	display: none;
}

.single-product .woocommerce-product-gallery__image img {
	border-radius: var(--drn-radius);
}

.single-product .flex-control-thumbs li img {
	border-radius: 8px;
	opacity: 1;
}

.single-product .single_add_to_cart_button,
.single-product .summary .single_add_to_cart_button,
.single-product .cart .single_add_to_cart_button {
	background: var(--drn-green-800);
	border-color: var(--drn-green-800);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	padding: 14px 34px;
}

.single-product .single_add_to_cart_button:hover {
	background: var(--drn-green-700);
	border-color: var(--drn-green-700);
	color: #fff;
}

.single-product .product_meta {
	color: var(--drn-muted);
	font-size: 0.9rem;
}

.single-product .woocommerce-tabs {
	margin-top: 40px;
}

.single-product .woocommerce-tabs .tabs li a {
	font-weight: 700;
	color: var(--drn-ink);
}

.single-product .woocommerce-tabs .tabs li.active a {
	color: var(--drn-green-700);
	border-color: var(--drn-green-700);
}

/* Related / upsells re-use the card skin */
.single-product .related.products .display-products .product-block,
.single-product .upsells.products .display-products .product-block {
	border: 1px solid var(--drn-line);
	border-radius: var(--drn-radius);
}

/* ------------------------------------------------------------------ *
 * STAGE 6 — Arabic / RTL
 * ------------------------------------------------------------------ */
[dir="rtl"] .drn-hero-eyebrow::before {
	transform: none;
}

[dir="rtl"] .drn-footer-col .drn-footer-title::after {
	inset-inline-start: 0;
	inset-inline-end: auto;
}

[dir="rtl"] .drn-hero-sub,
[dir="rtl"] .drn-footer-tagline,
[dir="rtl"] .drn-cta-sub {
	text-align: start;
}

[dir="rtl"] .drn-cta-inner {
	background:
		radial-gradient(700px 300px at 82% 0%, rgba(21, 122, 80, 0.16), transparent 60%),
		linear-gradient(240deg, var(--drn-green-900), var(--drn-green-800));
}

[dir="rtl"] .display-products .product-block .onsale {
	left: 14px;
	right: auto;
}

[dir="rtl"] body.woocommerce-page .display-products .product-block .name,
[dir="rtl"] body.single-product .product-summary .product_title {
	letter-spacing: 0;
}

/* ------------------------------------------------------------------ *
 * STAGE 3 — Offers band
 * ------------------------------------------------------------------ */
.drn-offers .container {
	max-width: 1240px;
}

.drn-offers-band {
	background: var(--drn-bg);
	border: 1px solid var(--drn-line);
	border-radius: var(--drn-radius);
	padding: 34px;
	box-shadow: 0 12px 32px -22px rgba(12, 57, 41, 0.28);
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.drn-offers-head .drn-title {
	margin-bottom: 8px;
}

.drn-offers-sub {
	color: var(--drn-muted);
	margin: 0;
	max-width: 540px;
	line-height: 1.7;
}

.drn-offers .drn-offers-sale {
	width: 100%;
}

/* ------------------------------------------------------------------ *
 * STAGE 7 — Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.drn-footer-grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}

	.drn-trust-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.drn-hero .container {
		padding: 48px 20px 44px;
	}

	.drn-section {
		padding: 36px 0 12px;
	}

	.drn-section-head {
		align-items: center;
	}

	.drn-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 24px;
	}

	.drn-footer-brand {
		grid-column: 1 / -1;
	}

	.drn-footer {
		margin-top: 32px;
		padding-top: 40px;
	}

	.drn-trust {
		padding: 32px 0;
		margin-top: 8px;
	}

	.drn-cta-inner {
		padding: 40px 24px;
	}

	.drn-btn {
		width: auto;
	}

	.display-products .product-block .caption {
		padding: 12px 12px 16px;
	}

	.display-products .product-block .name {
		font-size: 0.92rem;
	}
}

@media (max-width: 480px) {
	.drn-hero-actions .drn-btn {
		width: 100%;
	}

	.drn-trust-grid {
		grid-template-columns: 1fr;
	}

	.drn-footer-grid {
		grid-template-columns: 1fr;
	}

	.drn-footer-bottom {
		font-size: 0.78rem;
	}
}
/* PHASE 10A - rebuilt native page blocks (offers, info, faqs, team, contact) */
.drn-ph10a-title { margin: 0 0 0.6rem; font-weight: 700; line-height: 1.2; }
.drn-ph10a-title.size-large { font-size: 1.9rem; }
.drn-ph10a-title.size-small { font-size: 1.25rem; }
.drn-ph10a-title.align-left { text-align: left; }
.drn-ph10a-title.align-center { text-align: center; }
.drn-ph10a-before,
.drn-ph10a-subtitle,
.drn-ph10a-after { color: #5b6770; }
.drn-ph10a-btn {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	margin: 0.15rem 0.4rem 0.15rem 0;
	border-radius: 999px;
	background: #109210;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.drn-ph10a-btn:hover { opacity: 0.88; color: #fff; }
.drn-ph10a-action { margin: 1.2rem 0; }
.drn-ph10a-contact { font-size: 1rem; line-height: 1.9; }
.drn-ph10a-contact a { color: #109210; }
.drn-ph10a-info { border: 1px solid #e4e9ec; border-radius: 12px; padding: 1rem 1.1rem; margin: 0.6rem 0; }
.drn-ph10a-team { border: 1px solid #e4e9ec; border-radius: 10px; padding: 1rem; margin: 0.7rem 0; background: #fff; }
.drn-ph10a-team-img { margin: 0 0 0.5rem; }
.drn-ph10a-team-img img { border-radius: 8px; }
.drn-ph10a-team-name { font-weight: 700; }
.drn-ph10a-team-role { color: #5b6770; font-size: 0.9rem; }
.drn-ph10a-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0; }
.drn-ph10a-gallery figure, .drn-ph10a-gallery img { width: 100%; height: auto; border-radius: 8px; }
.drn-faq { max-width: 860px; }
.drn-faq details { border-bottom: 1px solid #e4e9ec; }
.drn-faq summary { cursor: pointer; padding: 0.9rem 0.2rem; font-weight: 600; color: #162b33; }
.drn-faq summary::-webkit-details-marker { color: #109210; }
.drn-faq-body { padding: 0 0.2rem 1rem; color: #454f55; line-height: 1.75; }
[dir="rtl"] .drn-ph10a-title.align-left { text-align: right; }
[dir="rtl"] .drn-ph10a-btn { margin: 0.15rem 0 0.15rem 0.4rem; }
