/*
Theme Name: Vaarahi Fashion
Theme URI: https://example.com/
Author: Vaarahi Fashion
Description: A custom WordPress theme for Vaarahi Fashion built with Bootstrap 5 and WooCommerce readiness.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.2
Text Domain: vaarahi-fashion
*/

:root {
	--vaarahi-primary: #8b6b3d;
	--vaarahi-primary-dark: #6e5430;
	--vaarahi-accent: #c8a96a;
	--vaarahi-bg: #fffdf7;
	--vaarahi-section-bg: #f7f2e9;
	--vaarahi-surface: #ffffff;
	--vaarahi-text: #222222;
	--vaarahi-muted: #7a6c5c;
	--vaarahi-border: #e6ddcd;
	--vaarahi-header-border: #efe6d7;
	--vaarahi-button-bg: #111111;
	--vaarahi-button-hover: #8b6b3d;

	--vaarahi-font-hero: 42px;
	--vaarahi-font-section: 36px;
	--vaarahi-font-card-title: 22px;
	--vaarahi-font-body: 16px;
	--vaarahi-font-label: 12px;
}

body {
	background: var(--vaarahi-bg);
	color: var(--vaarahi-text);
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: var(--vaarahi-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
	font-family: 'Playfair Display', Georgia, serif;
	letter-spacing: 0.01em;
}

.hero-section h1 {
	font-size: clamp(1.75rem, 4vw, var(--vaarahi-font-hero));
	line-height: 1.1;
}

.section-heading__title {
	font-size: clamp(1.7rem, 4vw, var(--vaarahi-font-section));
}

.section-heading__label,
.small-label {
	font-size: var(--vaarahi-font-label);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
}

/* Bootstrap's .container tops out at 1320px (xxl); the brand spec calls for 1400px. */
@media (min-width: 1200px) {
	.container {
		max-width: 1400px;
	}
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--vaarahi-primary);
}

.site-header,
.site-footer {
	background: var(--vaarahi-surface);
}

.site-branding .custom-logo {
	height: auto;
	max-width: 180px;
}

.hero-section {
	background: linear-gradient(135deg, #fff 0%, #f1e8db 100%);
	border-bottom: 1px solid var(--vaarahi-border);
	padding: 0 0;
}

.hero-badge {
	background: rgba(17, 17, 17, 0.05);
	color: var(--vaarahi-text);
}

.content-wrap {
	padding: 3rem 0;
}

.entry-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: var(--vaarahi-surface);
	border: 1px solid var(--vaarahi-border);
	border-radius: 1rem;
	overflow: hidden;
}

.entry-card .card-body {
	padding: 1.5rem;
}

.entry-meta,
.post-navigation,
.comment-metadata {
	color: var(--vaarahi-muted);
}

.page-links,
.pagination {
	margin-top: 2rem;
}

.site-footer {
	border-top: 1px solid var(--vaarahi-border);
}

.footer-widgets,
.footer-bottom {
	padding: 2rem 0;
}

.search-form .search-submit,
.btn-vaarahi,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--vaarahi-button-bg);
	border-color: var(--vaarahi-button-bg);
	color: #fff;
	border-radius: 999px;
	padding: 0.75rem 1.5rem;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-form .search-submit:hover,
.btn-vaarahi:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--vaarahi-button-hover);
	border-color: var(--vaarahi-button-hover);
	color: #fff;
}

.btn-primary-dark {
	background: var(--vaarahi-button-bg);
	border-color: var(--vaarahi-button-bg);
	color: #fff;
}

.btn-primary-dark:hover {
	background: var(--vaarahi-button-hover);
	border-color: var(--vaarahi-button-hover);
	color: #fff;
}

.product-grid {
	--bs-gutter-x: 32px;
	row-gap: 32px;
}

.btn-secondary-outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.8);
	color: #fff;
}

.btn-secondary-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.site-main img {
	height: auto;
	max-width: 100%;
}

/* Bootstrap ships ratio-1x1/4x3/16x9/21x9 presets only; 4:5 (height = 125% of width) is custom. */
.ratio-4x5 {
	--bs-aspect-ratio: 125%;
}

.product-card {
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.product-card__media,
.product-card__media .ratio {
	border-radius: 18px;
	overflow: hidden;
}

.product-card__media .ratio {
	background: linear-gradient(135deg, var(--vaarahi-surface) 0%, var(--vaarahi-border) 100%);
}

.product-card__image {
	position: absolute;
	inset: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover zoom: the primary image always scales up; a secondary gallery image (if any)
 * simply fades in on top of it, so products without a second photo never go blank. */
.product-card:hover .product-card__image--primary {
	transform: scale(1.06);
}

.product-card__image--secondary {
	opacity: 0;
}

.product-card:hover .product-card__image--secondary {
	opacity: 1;
}

.product-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
	font-size: var(--vaarahi-font-card-title);
}

.product-card__price del {
	color: var(--vaarahi-muted);
	text-decoration: line-through;
	font-weight: 400;
	margin-right: 0.5em;
}

.product-card__price ins {
	color: var(--vaarahi-text);
	text-decoration: none;
	font-weight: 700;
}

.product-card__price {
	font-weight: 700;
	color: var(--vaarahi-text);
}

.product-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	background: rgba(255, 255, 255, 0.94);
	color: var(--vaarahi-text);
	box-shadow: 0 0.35rem 0.8rem rgba(17, 17, 17, 0.08);
}

.product-card__badge--sale {
	background: #b42318;
	color: #fff;
}

.product-card__badge--instock {
	background: #edf7ee;
	color: #156f2f;
}

.product-card__badge--backorder {
	background: #fff5e8;
	color: #9a5b00;
}

.product-card__badge--outofstock {
	background: #f9e9e7;
	color: #a1261a;
}

.product-card__icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--vaarahi-primary);
	box-shadow: 0 0.35rem 0.8rem rgba(17, 17, 17, 0.08);
}

.product-card__icon-button .header-action__icon {
	width: 1.1rem;
	height: 1.1rem;
}

.product-card__quick-view-wrap {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.92);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.product-card:hover .product-card__quick-view-wrap {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

.product-card__quick-view {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.45rem 0.9rem;
	box-shadow: 0 0.35rem 0.8rem rgba(17, 17, 17, 0.15);
	white-space: nowrap;
}

.product-card__rating .star-rating {
	float: none;
	margin: 0;
}

.vaarahi-whatsapp-order-button {
	margin: 0;
}

.woocommerce .vaarahi-whatsapp-order-button .button.alt,
.woocommerce .vaarahi-whatsapp-order-button .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 100%;
	min-height: 3.5rem;
	text-align: center;
	background-color: #1f8b4c;
	border-color: #1f8b4c;
	color: #fff;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.woocommerce .vaarahi-whatsapp-order-button .button.alt:hover,
.woocommerce .vaarahi-whatsapp-order-button .btn:hover {
	background-color: #17673a;
	border-color: #17673a;
	color: #fff;
}

.vaarahi-whatsapp-order-button .vaarahi-whatsapp-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/*
 * The floating WhatsApp button is printed via wp_footer with no CSS of its own,
 * so it was rendering as a plain inline link at the bottom of the page instead
 * of a fixed corner bubble. This is what actually makes it "float".
 */
.vaarahi-whatsapp-float {
	position: fixed;
	bottom: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
	z-index: 1040;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vaarahi-whatsapp-float:hover,
.vaarahi-whatsapp-float:focus {
	background: #1fb959;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3);
}

.vaarahi-whatsapp-float svg {
	width: 30px;
	height: 30px;
}

.vaarahi-whatsapp-float--right {
	right: 1.5rem;
}

.vaarahi-whatsapp-float--left {
	left: 1.5rem;
}

@media (max-width: 575.98px) {
	.vaarahi-whatsapp-float {
		width: 50px;
		height: 50px;
		bottom: 1rem;
	}

	.vaarahi-whatsapp-float--right {
		right: 1rem;
	}

	.vaarahi-whatsapp-float--left {
		left: 1rem;
	}

	.vaarahi-whatsapp-float svg {
		width: 26px;
		height: 26px;
	}
}