/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme – Dark Product Landing
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.1.0
 Text Domain:  woodmart
 GitHub Theme URI: mazaheri/aurextor
 GitHub Branch:    master
*/

/*
 * SOURCE DESIGN: template/index (1).html  (Plantify catalog)
 * Scope: every rule prefixed with  body.wdchild-dark-page
 * so nothing outside the dark landing page is touched.
 *
 * §1   PAGE SHELL & CSS VARIABLE OVERRIDES
 * §2   HERO SECTION
 * §3   PRODUCTS SECTION HEADER
 * §4   PRODUCT GRID
 * §5   PRODUCT CARD – base
 * §6   PRODUCT CARD – hover animation
 * §7   PRODUCT CARD – image area
 * §8   PRODUCT CARD – info row (title left · price right)
 * §9   PRODUCT CARD – heart / wishlist button
 * §10  PRODUCT CARD – add-to-cart button
 * §11  UTILITY: "View All" link & "no products" notice
 * §12  RESPONSIVE
 */


/* ─────────────────────────────────────────────────────────────────────────────
 * §1  PAGE SHELL & CSS VARIABLE OVERRIDES
 * Apply Woodmart dark-mode variables and base type whenever the dark landing
 * page class is present (added by functions.php when this template is active).
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page,
body.wdchild-dark-page.global-color-scheme-light {
	--wd-main-bgcolor:      #121212;
	--wd-prod-bg:           #1a1a1a;
	--wd-primary-color:     #10b981;
	--wd-secondary-color:   #059669;
	--wd-font-color:        #ffffff;
	--wd-font-color-2:      #888888;
	background-color: #121212;
	color: #ffffff;
}

#wdchild-dark-landing {
	font-family: 'Inter', sans-serif;
	background-color: #121212;
	color: #ffffff;
	min-height: 100vh;
	padding: 0 48px;
	box-sizing: border-box;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §2  HERO SECTION
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-hero {
	padding: 80px 0 64px;
	text-align: center;
}

body.wdchild-dark-page .wdchild-hero-inner {
	max-width: 640px;
	margin: 0 auto;
}

body.wdchild-dark-page .wdchild-hero-title {
	font-size: 42px;
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 16px;
	color: #ffffff;
	letter-spacing: -0.5px;
}

body.wdchild-dark-page .wdchild-hero-tagline {
	font-size: 16px;
	font-weight: 400;
	color: #888;
	margin: 0 0 32px;
	line-height: 1.6;
}

body.wdchild-dark-page .wdchild-btn-primary {
	display: inline-block;
	padding: 12px 32px;
	background-color: #10b981;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

body.wdchild-dark-page .wdchild-btn-primary:hover {
	background-color: #059669;
	transform: translateY(-1px);
	color: #ffffff;
	text-decoration: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §3  PRODUCTS SECTION HEADER
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-products-section {
	padding-bottom: 80px;
}

body.wdchild-dark-page .wdchild-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 32px;
}

body.wdchild-dark-page .wdchild-section-title {
	font-size: 28px;
	font-weight: 500;
	color: #ffffff;
	margin: 0;
}

body.wdchild-dark-page .wdchild-view-all {
	font-size: 13px;
	font-weight: 500;
	color: #10b981;
	text-decoration: none;
	letter-spacing: 0.2px;
	transition: color 0.2s ease;
}

body.wdchild-dark-page .wdchild-view-all:hover {
	color: #34d399;
	text-decoration: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §4  PRODUCT GRID
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §5  PRODUCT CARD – base
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card {
	position: relative;
	background-color: #1a1a1a;
	border-radius: 8px;
	padding: 24px;
	border: 1px solid transparent;
	display: flex;
	flex-direction: column;
	/* Transition matches §6 hover */
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §6  PRODUCT CARD – hover animation (exact values from template)
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card:hover {
	transform: rotate(-3deg) scale(1.05);
	z-index: 50;
	background-color: #222222;
	border-color: #444444;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §7  PRODUCT CARD – image area
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 256px;
	margin-bottom: 24px;
	overflow: hidden;
}

body.wdchild-dark-page .wdchild-card-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
}

body.wdchild-dark-page .wdchild-card:hover .wdchild-card-img {
	transform: scale(1.1);
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §8  PRODUCT CARD – info row (title left · price right)
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card-info {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px;
	margin-top: auto;
}

body.wdchild-dark-page .wdchild-card-title {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	margin-bottom: 4px;
	line-height: 1.3;
}

body.wdchild-dark-page .wdchild-card-title:hover {
	color: #10b981;
	text-decoration: none;
}

body.wdchild-dark-page .wdchild-card-tagline {
	font-size: 12px;
	color: #888888;
	font-style: italic;
	margin: 0;
}

body.wdchild-dark-page .wdchild-card-price {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	white-space: nowrap;
	flex-shrink: 0;
}

/* WooCommerce injects spans inside price */
body.wdchild-dark-page .wdchild-card-price .woocommerce-Price-amount,
body.wdchild-dark-page .wdchild-card-price .amount {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
}

body.wdchild-dark-page .wdchild-card-price del {
	color: #555;
	margin-right: 4px;
}

body.wdchild-dark-page .wdchild-card-price ins {
	text-decoration: none;
	color: #10b981;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §9  PRODUCT CARD – heart / wishlist button (always visible, top-right)
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card .wdchild-heart,
body.wdchild-dark-page .wdchild-card .woodmart-wishlist-btn,
body.wdchild-dark-page .wdchild-card .yith-wcwl-add-to-wishlist,
body.wdchild-dark-page .wdchild-card .add_to_wishlist {
	position: absolute;
	top: 24px;
	right: 24px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #666666;
	line-height: 1;
	transition: color 0.2s ease;
	z-index: 10;
}

body.wdchild-dark-page .wdchild-card:hover .wdchild-heart,
body.wdchild-dark-page .wdchild-card:hover .woodmart-wishlist-btn,
body.wdchild-dark-page .wdchild-card:hover .add_to_wishlist {
	color: #ffffff;
}

/* Hide YITH wishlist default markup extras */
body.wdchild-dark-page .wdchild-card .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse,
body.wdchild-dark-page .wdchild-card .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse {
	display: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §10  PRODUCT CARD – add-to-cart button (shown below info row)
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-card .add_to_cart_button,
body.wdchild-dark-page .wdchild-card .button {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 9px 0;
	background-color: transparent;
	color: #888888;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	border: 1px solid #333333;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

body.wdchild-dark-page .wdchild-card .add_to_cart_button:hover,
body.wdchild-dark-page .wdchild-card .button:hover {
	background-color: #10b981;
	border-color: #10b981;
	color: #ffffff;
	text-decoration: none;
}

body.wdchild-dark-page .wdchild-card .added_to_cart {
	display: none; /* hide "View cart" link that WC injects */
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §11  UTILITY
 * ───────────────────────────────────────────────────────────────────────────── */
body.wdchild-dark-page .wdchild-no-products {
	color: #555;
	font-size: 14px;
	padding: 48px 0;
	text-align: center;
}


/* ─────────────────────────────────────────────────────────────────────────────
 * §12  RESPONSIVE
 * ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	#wdchild-dark-landing {
		padding: 0 24px;
	}
	body.wdchild-dark-page .wdchild-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (max-width: 640px) {
	#wdchild-dark-landing {
		padding: 0 16px;
	}
	body.wdchild-dark-page .wdchild-hero-title {
		font-size: 28px;
	}
	body.wdchild-dark-page .wdchild-product-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	body.wdchild-dark-page .wdchild-section-header {
		flex-direction: column;
		gap: 8px;
	}
}
