/* ============================================================================
   WINTER SOLUTION HOMEPAGE — STYLESHEET
   Color গুলো PHP এর includes/config.php থেকে CSS variable হিসেবে বসে যায়
   (wsh-homepage wrapper এর inline style attribute এ)। নিচের ডিফল্ট ভ্যালু
   গুলো শুধু fallback — সরাসরি রঙ বদলাতে config.php এডিট করুন।
   ========================================================================= */

.wsh-homepage {
	--wsh-primary: #0F3D2E;
	--wsh-primary-dark: #0A2A20;
	--wsh-primary-light: #155C43;
	--wsh-accent: #C9A227;
	--wsh-accent-light: #E4C25C;
	--wsh-text-dark: #16241D;
	--wsh-text-body: #5B6660;
	--wsh-text-light: #FFFFFF;
	--wsh-bg-light: #F5F7F4;
	--wsh-bg-white: #FFFFFF;
	--wsh-border: #E4E8E2;
	--wsh-filter-active-bg: #2563EB;
	--wsh-filter-active-text: #FFFFFF;
	--wsh-radius: 10px;
	--wsh-shadow: 0 10px 30px rgba(15, 61, 46, 0.08);
	--wsh-transition: 0.3s ease;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", Arial, sans-serif;
	color: var(--wsh-text-body);
	background: var(--wsh-bg-white);
	overflow-x: hidden;
}

.wsh-homepage * {
	box-sizing: border-box;
}

.wsh-homepage img {
	max-width: 100%;
	display: block;
}

.wsh-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.wsh-section {
	padding: 72px 0;
}

.wsh-section-head {
	margin-bottom: 40px;
}

.wsh-section-head--center {
	text-align: center;
}

.wsh-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wsh-accent);
	margin-bottom: 10px;
	position: relative;
	padding-left: 26px;
}

.wsh-eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 2px;
	background: var(--wsh-accent);
	transform: translateY(-50%);
}

.wsh-heading {
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--wsh-text-dark);
	margin: 0 0 14px;
}

/* ছবি সেট না করা পর্যন্ত এই ব্র্যান্ডেড gradient + icon প্লেসহোল্ডার হিসেবে দেখাবে —
   ফাঁকা ধূসর বক্সের বদলে ইচ্ছাকৃত ডিজাইন হিসেবে বোঝা যাবে। আসল ছবি বসালে
   এটা আর দেখাবে না। */
.wsh-img-placeholder {
	width: 100%;
	height: 100%;
	min-height: 120px;
	border-radius: var(--wsh-radius);
	background-color: var(--wsh-primary);
	background-image:
		url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4' opacity='0.55'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='M21 15.5l-5.2-5.2a1 1 0 0 0-1.4 0L5 19'/%3E%3C/svg%3E"),
		linear-gradient(135deg, var(--wsh-primary-light) 0%, var(--wsh-primary) 55%, var(--wsh-primary-dark) 100%);
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: 30px 30px, cover;
}

/* ব্র্যান্ড লোগো স্লট আলাদা — এখানে সবুজ gradient না, হালকা ড্যাশড বক্স দেখাবে */
.wsh-brands__item .wsh-img-placeholder {
	background-color: var(--wsh-bg-light);
	background-image: none;
	border: 1px dashed var(--wsh-border);
	min-height: 40px;
}

/* প্রোডাক্ট কার্ডের ইমেজ স্লট — ছোট আইকন, সাদা bg উপর হালকা প্লেসহোল্ডার */
.wsh-product-card__img .wsh-img-placeholder {
	border-radius: 0;
	min-height: 0;
}

/* Focus visibility for accessibility */
.wsh-homepage a:focus-visible,
.wsh-homepage button:focus-visible {
	outline: 2px solid var(--wsh-accent);
	outline-offset: 2px;
}

/* ============================================================================
   BUTTONS
   ========================================================================= */
.wsh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: transform var(--wsh-transition), box-shadow var(--wsh-transition), background var(--wsh-transition), color var(--wsh-transition);
}
.wsh-btn:hover {
	transform: translateY(-2px);
}

.wsh-btn--accent {
	background: var(--wsh-accent);
	color: var(--wsh-primary-dark);
}
.wsh-btn--accent:hover {
	background: var(--wsh-accent-light);
}

.wsh-btn--primary {
	background: var(--wsh-primary);
	color: var(--wsh-text-light);
}
.wsh-btn--primary:hover {
	background: var(--wsh-primary-light);
}

.wsh-btn--outline {
	background: transparent;
	color: var(--wsh-primary);
	border: 1.5px solid var(--wsh-primary);
}
.wsh-btn--outline:hover {
	background: var(--wsh-primary);
	color: var(--wsh-text-light);
}

.wsh-btn--ghost-light {
	background: rgba(255, 255, 255, 0.12);
	color: var(--wsh-text-light);
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(4px);
}
.wsh-btn--ghost-light:hover {
	background: rgba(255, 255, 255, 0.22);
}
.wsh-btn__icon {
	font-size: 11px;
}

/* ============================================================================
   BANNER — ইমেজ ক্যারোসেল (রেকমেন্ডেড সাইজ 1821x400px, ratio ≈ 4.55:1)
   পুরোপুরি রেসপন্সিভ — width 100% আর aspect-ratio ফিক্সড থাকায় মোবাইলেও
   প্রপোরশনালি ছোট হয়ে ফিট হয়, কোনো crop/distortion হয় না।
   ========================================================================= */
.wsh-banner {
	position: relative;
	width: 100%;
	background: var(--wsh-bg-light);
}

.wsh-banner__slider {
	position: relative;
	width: 100%;
	aspect-ratio: var(--wsh-banner-ratio, 1821 / 400);
	overflow: hidden;
}

.wsh-banner__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease;
}
.wsh-banner__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.wsh-banner__link {
	display: block;
	width: 100%;
	height: 100%;
}

.wsh-banner__img,
.wsh-banner__slide .wsh-img-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	min-height: 0;
}

.wsh-banner__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(10, 20, 16, 0.35);
	color: #fff;
	cursor: pointer;
	transition: background var(--wsh-transition);
}
.wsh-banner__nav:hover {
	background: rgba(10, 20, 16, 0.6);
}
.wsh-banner__nav--prev {
	left: 14px;
}
.wsh-banner__nav--next {
	right: 14px;
}

.wsh-banner__dots {
	position: absolute;
	right: 16px;
	bottom: 12px;
	z-index: 5;
	display: flex;
	gap: 7px;
}
.wsh-banner__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background var(--wsh-transition), transform var(--wsh-transition);
}
.wsh-banner__dot.is-active {
	background: var(--wsh-accent);
	transform: scale(1.25);
}

/* Video modal (About সেকশনের "Watch Profile" বাটনের জন্য ব্যবহৃত হয়) */
.wsh-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
}
.wsh-video-modal.is-open {
	display: flex;
}
.wsh-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 16, 0.85);
}
.wsh-video-modal__box {
	position: relative;
	z-index: 2;
	width: min(900px, 92vw);
	aspect-ratio: 16/9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.wsh-video-modal__frame,
.wsh-video-modal__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
.wsh-video-modal__close {
	position: absolute;
	top: -42px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

/* ============================================================================
   ABOUT — ব্যানারের ঠিক নিচের সেকশন
   ========================================================================= */
.wsh-about__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 60px;
	align-items: center;
}
.wsh-about__media {
	position: relative;
}
.wsh-about__img,
.wsh-about__media .wsh-img-placeholder {
	width: 100%;
	border-radius: var(--wsh-radius);
	aspect-ratio: 4/3;
	object-fit: cover;
}
.wsh-about__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wsh-primary);
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
	transition: transform var(--wsh-transition), background var(--wsh-transition);
}
.wsh-about__play:hover {
	transform: translate(-50%, -50%) scale(1.08);
	background: #fff;
}
.wsh-about__play span {
	margin-left: 3px;
}
.wsh-about__list {
	list-style: none;
	margin: 20px 0 28px;
	padding: 0;
	display: grid;
	gap: 12px;
}
.wsh-about__list li {
	position: relative;
	padding-left: 28px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wsh-text-body);
}
.wsh-about__list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wsh-accent);
	color: var(--wsh-primary-dark);
	font-size: 10px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================================
   OUR AIM — Mission/Vision + Stats
   ========================================================================= */
.wsh-aim {
	background: var(--wsh-bg-light);
}
.wsh-aim__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}

.wsh-tabs__nav {
	display: flex;
	gap: 10px;
	margin: 26px 0 18px;
}
.wsh-tabs__btn {
	padding: 10px 24px;
	border-radius: 30px;
	border: 1.5px solid var(--wsh-border);
	background: var(--wsh-bg-white);
	color: var(--wsh-text-dark);
	font-weight: 700;
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: all var(--wsh-transition);
}
.wsh-tabs__btn.is-active {
	background: var(--wsh-primary);
	border-color: var(--wsh-primary);
	color: var(--wsh-text-light);
}
.wsh-tabs__panel {
	display: none;
	line-height: 1.8;
	font-size: 15.5px;
	animation: wshFadeIn 0.4s ease;
}
.wsh-tabs__panel.is-active {
	display: block;
}

@keyframes wshFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.wsh-aim__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.wsh-stat {
	background: var(--wsh-bg-white);
	border: 1px solid var(--wsh-border);
	border-radius: var(--wsh-radius);
	padding: 28px 20px;
	text-align: center;
	box-shadow: var(--wsh-shadow);
}
.wsh-stat__number {
	font-size: 34px;
	font-weight: 800;
	color: var(--wsh-primary);
	margin: 0 0 6px;
}
.wsh-stat__label {
	margin: 0;
	font-size: 13.5px;
	color: var(--wsh-text-body);
	font-weight: 600;
}

/* ============================================================================
   PRODUCTS — উপরে ফিল্টার ট্যাব, নিচে ৪-কলাম প্রোডাক্ট গ্রিড
   ========================================================================= */

/* ---- Filter tabs (রেফারেন্স ডিজাইন: প্রথমটা সলিড নীল, বাকিগুলো সাদা+বর্ডার) ---- */
.wsh-products__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.wsh-tab-btn {
	padding: 12px 22px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--wsh-text-dark);
	background: var(--wsh-bg-white);
	border: 1.5px solid var(--wsh-border);
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--wsh-transition), color var(--wsh-transition), border-color var(--wsh-transition), transform var(--wsh-transition);
}
.wsh-tab-btn:hover {
	border-color: var(--wsh-filter-active-bg);
	color: var(--wsh-filter-active-bg);
}
.wsh-tab-btn.is-active {
	background: var(--wsh-filter-active-bg);
	border-color: var(--wsh-filter-active-bg);
	color: var(--wsh-filter-active-text);
}
.wsh-tab-btn.is-active:hover {
	color: var(--wsh-filter-active-text);
}
.wsh-tab-btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: wait;
}

/* ---- Product grid: ৪টা কার্ড এক সারিতে (রেফারেন্স ডিজাইনের মতো) ---- */
.wsh-products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	min-height: 120px;
}
.wsh-products__grid[aria-busy="true"] {
	pointer-events: none;
}

.wsh-product-card {
	text-decoration: none;
	display: block;
	background: var(--wsh-bg-white);
	border: 1px solid var(--wsh-border);
	border-radius: var(--wsh-radius);
	overflow: hidden;
	transition: transform var(--wsh-transition), box-shadow var(--wsh-transition), border-color var(--wsh-transition);
}
.wsh-product-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--wsh-shadow);
	border-color: var(--wsh-filter-active-bg);
}
.wsh-product-card__img {
	aspect-ratio: 1/1;
	background: var(--wsh-bg-white);
	overflow: hidden;
	padding: 14px;
}
.wsh-product-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
}
.wsh-product-card:hover .wsh-product-card__img img {
	transform: scale(1.05);
}
.wsh-product-card__name {
	display: block;
	padding: 12px 14px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wsh-text-dark);
	text-align: center;
	border-top: 1px solid var(--wsh-border);
}

.wsh-products__empty {
	padding: 40px 20px;
	text-align: center;
	color: var(--wsh-text-body);
	background: var(--wsh-bg-light);
	border-radius: var(--wsh-radius);
	margin: 0;
}

.wsh-products__error {
	text-align: center;
	padding: 30px;
	background: #FFF6F0;
	border: 1px dashed #E0B29A;
	border-radius: var(--wsh-radius);
}
.wsh-products__error p {
	margin: 0 0 14px;
	color: #8a4a2f;
	font-size: 14px;
}

.wsh-products__footer {
	margin-top: 32px;
	text-align: center;
}

/* --- Skeleton / Loading state --- */
.wsh-skeleton-card {
	border-radius: var(--wsh-radius);
	overflow: hidden;
	border: 1px solid var(--wsh-border);
}
.wsh-skeleton-card__img {
	aspect-ratio: 1/1;
	background: linear-gradient(90deg, var(--wsh-bg-light) 25%, #ECEFE9 37%, var(--wsh-bg-light) 63%);
	background-size: 400% 100%;
	animation: wshShimmer 1.4s ease infinite;
}
.wsh-skeleton-card__line {
	height: 14px;
	margin: 14px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--wsh-bg-light) 25%, #ECEFE9 37%, var(--wsh-bg-light) 63%);
	background-size: 400% 100%;
	animation: wshShimmer 1.4s ease infinite;
}
@keyframes wshShimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* ============================================================================
   BRAND MARQUEE
   ========================================================================= */
.wsh-brands {
	background: var(--wsh-bg-light);
}
.wsh-brands__track {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wsh-brands__list {
	display: flex;
	align-items: center;
	gap: 60px;
	width: max-content;
	animation: wshMarquee 30s linear infinite;
}
.wsh-brands__item {
	height: 46px;
	width: 120px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter var(--wsh-transition), opacity var(--wsh-transition);
}
.wsh-brands__item:hover {
	filter: grayscale(0%);
	opacity: 1;
}
.wsh-brands__item img {
	max-height: 100%;
	width: auto;
	margin: 0 auto;
}
@keyframes wshMarquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ============================================================================
   ACHIEVEMENT
   ========================================================================= */
.wsh-achievement__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 60px;
	align-items: center;
}
.wsh-achievement__img,
.wsh-achievement__media .wsh-img-placeholder {
	width: 100%;
	border-radius: var(--wsh-radius);
	aspect-ratio: 4/3;
	object-fit: cover;
}
.wsh-achievement__list {
	list-style: none;
	margin: 22px 0 30px;
	padding: 0;
	display: grid;
	gap: 14px;
}
.wsh-achievement__list li {
	position: relative;
	padding-left: 30px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wsh-text-body);
}
.wsh-achievement__list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wsh-accent);
	color: var(--wsh-primary-dark);
	font-size: 11px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
	.wsh-about__grid,
	.wsh-aim__grid,
	.wsh-achievement__grid {
		grid-template-columns: 1fr;
	}
	.wsh-achievement__media {
		order: -1;
	}
	.wsh-products__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 780px) {
	.wsh-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wsh-section {
		padding: 48px 0;
	}
	.wsh-banner__nav {
		display: none;
	}
	.wsh-about__play {
		width: 54px;
		height: 54px;
		font-size: 16px;
	}
	.wsh-aim__stats {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	.wsh-stat {
		padding: 18px 10px;
	}
	.wsh-stat__number {
		font-size: 26px;
	}
	.wsh-products__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 20px;
		padding-right: 20px;
		scrollbar-width: none;
	}
	.wsh-products__tabs::-webkit-scrollbar {
		display: none;
	}
	.wsh-tab-btn {
		padding: 10px 18px;
		font-size: 13.5px;
	}
	.wsh-products__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.wsh-product-card__img {
		padding: 8px;
	}
}

@media (max-width: 380px) {
	.wsh-products__grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.wsh-homepage * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
