/*
 * Zaghareet child theme overrides.
 * Burgundy / gold palette layered on top of the Kadence parent theme.
 */
:root {
    --zg-burgundy: #540b0e;
    --zg-gold: #ffe6a7;
    --zg-ink: #2b1210;
    --zg-bg: #fffaf3;
}

body.zaghareet-child {
    background-color: var(--zg-bg);
    color: var(--zg-ink);
}

.zaghareet-accent {
    color: var(--zg-burgundy);
}

a.zaghareet-cta {
    display: inline-block;
    padding: 0.6em 1.4em;
    border: 1px solid var(--zg-burgundy);
    border-radius: 999px;
    background-color: var(--zg-gold);
    color: var(--zg-burgundy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.zaghareet-cta:hover,
a.zaghareet-cta:focus {
    background-color: var(--zg-burgundy);
    color: var(--zg-gold);
}

.zaghareet-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 8px;
    background-color: var(--zg-burgundy);
    color: #fff;
    cursor: pointer;
}

.zaghareet-whatsapp-btn:hover {
    opacity: 0.9;
}

.zaghareet-invitation-card {
    border: 1px solid var(--zg-gold);
    border-radius: 12px;
    padding: 1.5em;
    background: #fff;
}

/* Honeypot field: hidden from real users, present for bots to fill in. */
.zaghareet-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================================
 * PRODUCT ARCHIVE GRID — kadence-child / archive-product.php
 * Moved out of the page's inline <style> block per performance guidance.
 * Scoped under .zg-archive-wrapper so it never leaks onto other pages.
 * ================================================================== */
.zg-archive-wrapper {
	--zg-card-bg: #bc6b70;
	--zg-card-bg-hover: #a85960;
	--zg-card-price: #ffc857;
	--zg-card-cat: #fdf0d5;
	--zg-card-radius: 28px;
	--zg-card-shadow: 0 6px 18px rgba(84, 11, 14, 0.16);
	--zg-card-shadow-hover: 0 14px 32px rgba(84, 11, 14, 0.28);
	--zg-card-gap: 24px;
	--zg-card-pad: 16px;
	--zg-font-card: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Grid: 3 columns desktop, 12 products = 4 rows ---- */
.zg-archive-wrapper .zg-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--zg-card-gap);
	margin-top: 8px;
}

/* ---- Card shell ---- */
.zg-archive-wrapper .zg-product-card {
	background-color: var(--zg-card-bg);
	border-radius: var(--zg-card-radius);
	border: none;
	overflow: hidden;
	box-shadow: var(--zg-card-shadow);
	transition: transform 280ms ease, box-shadow 280ms ease;
	display: flex;
	flex-direction: column;
}
.zg-archive-wrapper .zg-product-card:hover,
.zg-archive-wrapper .zg-product-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--zg-card-shadow-hover);
}

/* ---- Image ---- */
.zg-archive-wrapper .zg-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--zg-card-radius) var(--zg-card-radius) 0 0;
}
.zg-archive-wrapper .zg-card-image-link { display: block; width: 100%; height: 100%; }
.zg-archive-wrapper .zg-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}
.zg-archive-wrapper .zg-product-card:hover .zg-card-image-wrap img { transform: scale(1.05); }

/* ---- Body: title → category → price → actions/CTA ---- */
.zg-archive-wrapper .zg-card-body {
	padding: var(--zg-card-pad);
	font-family: var(--zg-font-card);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
}

.zg-archive-wrapper .zg-card-title {
	margin: 0;
	font-family: var(--zg-font-card);
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
	letter-spacing: -0.005em;
}
.zg-archive-wrapper .zg-card-title a { color: inherit; }

.zg-archive-wrapper .zg-card-cat {
	text-transform: uppercase;
	font-size: 10.5px;
	letter-spacing: 0.09em;
	font-weight: 600;
	color: var(--zg-card-cat);
	order: 2;
}

.zg-archive-wrapper .zg-card-price {
	font-family: var(--zg-font-card);
	font-size: 19px;
	font-weight: 800;
	color: var(--zg-card-price);
	margin: 2px 0 0 0;
	order: 3;
}

.zg-archive-wrapper .zg-card-actions {
	order: 4;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	padding: 6px 0 2px 0;
}

/* Touch target: grow the clickable button area to 44x44 without touching
   the icon image itself (icon graphics stay exactly as they were). */
.zg-archive-wrapper .zg-icon-btn {
	background: none;
	border: none;
	padding: 7px;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: transform 200ms ease, background-color 200ms ease;
}
.zg-archive-wrapper .zg-icon-btn:hover { transform: scale(1.06); background-color: rgba(255,255,255,0.08); }
.zg-archive-wrapper .zg-icon-wishlist.zg-liked img { transform: scale(1.2); }

.zg-archive-wrapper .zg-cta-whatsapp {
	order: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	text-align: center;
	background-color: rgba(255, 247, 232, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	padding: 12px 0;
	font-family: var(--zg-font-card);
	font-size: 13.5px;
	font-weight: 600;
	margin-top: 4px;
	transition: background-color 200ms ease, transform 200ms ease;
}
.zg-archive-wrapper .zg-cta-whatsapp:hover {
	background-color: rgba(255, 247, 232, 0.25);
	transform: translateY(-1px);
	color: #ffffff;
}
.zg-archive-wrapper .zg-cta-whatsapp:active { transform: translateY(0) scale(0.98); }

/* =====================================================================
 * RESPONSIVE — mobile-first breakpoints for the product grid
 * ================================================================== */

/* Tablet: 768px–1024px → 2 columns */
@media (max-width: 1024px) and (min-width: 768px) {
	.zg-archive-wrapper .zg-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: <768px → 1 column, full width cards */
@media (max-width: 767px) {
	.zg-archive-wrapper .zg-product-grid { grid-template-columns: 1fr; gap: 16px; }
	.zg-archive-wrapper .zg-card-body { padding: 14px; }
	.zg-archive-wrapper .zg-card-title { font-size: 15px; }
	.zg-archive-wrapper .zg-card-price { font-size: 17px; }
	.zg-archive-wrapper .zg-icon-btn img { width: 24px; height: 24px; }
	.zg-archive-wrapper .zg-cta-whatsapp { font-size: 13px; padding: 11px 0; }
}

@media (max-width: 400px) {
	.zg-archive-wrapper .zg-product-grid { gap: 10px; }
	.zg-archive-wrapper .zg-card-cat { display: none; }
}
/* =========================================================================
 * Zaghareet — Product Archive Grid / Card Overrides
 * File: assets/css/zaghareet-child.css
 * Loaded after the archive-product.php inline <style> block, so the rules
 * below intentionally win on shared selectors (same specificity, later
 * source order). Only touches the product card + grid; nothing else on
 * the page is affected.
 * ========================================================================= */

/* ---- Card colors ---- */
.zg-product-card {
	background-color: #bc6b70;
}
.zg-product-card:hover {
	background-color: #a85a60;
}
.zg-card-price {
	color: #ffc857;
}
.zg-card-cat {
	color: #fdf0d5;
}

/* ---- Typography: clear, modern font (Inter — same as header.php) ---- */
.zg-card-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	font-weight: 700;
}
.zg-card-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.zg-card-cat {
	font-size: 10.5px;
	font-weight: 500;
	opacity: 0.85;
}

/* ---- Touch targets: icons/buttons at least 44x44px on mobile ---- */
.zg-icon-btn {
	min-width: 44px;
	min-height: 44px;
}

/* ---- Clear active/pressed state on the WhatsApp CTA button ---- */
.zg-cta-whatsapp:active {
	transform: translateY(0);
	background-color: var(--zg-cta-bg-hover);
}

@media (max-width: 768px) {
	.zg-card-title {
		font-size: 14px;
	}
}