/*
Theme Name: WATFA Storefront
Theme URI: https://store.watfatrading.com
Description: Storefront child theme for WATFA — Cloud-style retail, red identity, EN/AR.
Author: WATFA
Template: storefront
Version: 1.1.2
Text Domain: watfa-storefront
*/

:root {
	--watfa-red: #e31c25;
	--watfa-red-dark: #c41820;
	--watfa-pink: #e31c25;
	--watfa-bg: #ffffff;
	--watfa-hero: #f4f6fb;
	--watfa-text: #111111;
	--watfa-muted: #6b7280;
	--watfa-rule: #eceef2;
	--watfa-util: #111111;
	--watfa-footer: #0b0b0d;
	--watfa-font: Inter, Cairo, "Segoe UI", Tahoma, sans-serif;
	--watfa-max: 1240px;
}

body,
body.rtl,
button,
input,
textarea,
select {
	background: var(--watfa-bg);
	color: var(--watfa-text);
	font-family: var(--watfa-font);
	letter-spacing: 0;
	text-rendering: auto;
}

body.rtl,
body.rtl button,
body.rtl input,
body.rtl textarea,
body.rtl select {
	font-family: Cairo, Inter, Tahoma, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.alpha,
.beta,
.gamma {
	letter-spacing: 0 !important;
	font-weight: 700;
	color: var(--watfa-text);
}

a {
	color: var(--watfa-text);
}

a:focus,
button:focus,
.button:focus,
input:focus {
	outline: 2px solid var(--watfa-red);
	outline-offset: 2px;
}

.site,
#page {
	width: 100%;
	max-width: none;
}

.site-content {
	width: 100%;
	max-width: none;
}

.col-full,
.site-content .col-full,
.site-content > .col-full {
	max-width: var(--watfa-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

.home .site-content > .col-full {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.content-area,
.right-sidebar .content-area,
.left-sidebar .content-area,
.storefront-full-width-content .content-area {
	width: 100%;
	float: none;
	margin: 0;
}

.widget-area,
.right-sidebar .widget-area,
.left-sidebar .widget-area {
	width: 100%;
	float: none;
	margin: 0;
}

.storefront-handheld-footer-bar {
	z-index: 30;
}

/* ---------- Identity ---------- */
.watfa-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: var(--watfa-text);
	flex: 0 0 auto;
}

.watfa-logo__mark {
	width: 36px;
	height: 36px;
	object-fit: contain;
	display: block;
}

.watfa-logo__word {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	text-transform: lowercase;
}

.watfa-logo--dark {
	color: #fff;
}

.watfa-logo--dark .watfa-logo__word {
	color: #fff;
}

/* ---------- Chrome ---------- */
.watfa-chrome {
	background: #fff;
	position: relative;
	z-index: 20;
}

.watfa-util {
	background: var(--watfa-util);
	color: #d1d5db;
	font-size: 0.75rem;
}

.watfa-util a,
.watfa-util .watfa-lang a,
.watfa-util .watfa-lang__current {
	color: #f3f4f6;
}

.watfa-util .watfa-lang__current {
	color: #fff;
	font-weight: 700;
}

.watfa-util__inner,
.watfa-mast__inner,
.watfa-cats__inner,
.watfa-hero__inner,
.watfa-newsletter__inner,
.watfa-footer__inner,
.watfa-promo__inner {
	max-width: var(--watfa-max);
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.watfa-util__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 34px;
}

.watfa-util__tag {
	margin: 0;
	color: #9ca3af;
}

.watfa-util__tools {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.watfa-util__tools a {
	text-decoration: none;
	font-weight: 600;
}

.watfa-mast {
	border-bottom: 1px solid var(--watfa-rule);
}

.watfa-mast__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem 1.75rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.watfa-search {
	flex: 1 1 auto;
	position: relative;
}

.watfa-search__icon {
	position: absolute;
	left: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #9ca3af;
	pointer-events: none;
	overflow: hidden;
}

.watfa-chrome svg,
.watfa-trust svg,
.watfa-search__icon svg,
.watfa-iconbtn svg,
.watfa-trust__icon svg {
	display: block;
	width: 18px;
	height: 18px;
	max-width: 22px;
	max-height: 22px;
	flex: 0 0 auto;
}

body.rtl .watfa-search__icon {
	left: auto;
	right: 0.95rem;
}

.watfa-search input[type="search"] {
	width: 100%;
	border: 0;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 0.72rem 1.15rem 0.72rem 2.6rem;
	font: inherit;
	font-size: 0.92rem;
}

body.rtl .watfa-search input[type="search"] {
	padding: 0.72rem 2.6rem 0.72rem 1.15rem;
}

.watfa-mast__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.watfa-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--watfa-text);
	text-decoration: none;
}

.watfa-iconbtn svg {
	width: 22px;
	height: 22px;
	max-width: 22px;
	max-height: 22px;
}

.watfa-iconbtn__count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: var(--watfa-red);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.watfa-cats {
	border-bottom: 1px solid var(--watfa-rule);
}

.watfa-cats__inner {
	overflow-x: auto;
}

.watfa-cats__menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.15rem 0.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.watfa-cats__menu li {
	margin: 0;
	list-style: none;
}

.watfa-cats__menu a {
	display: block;
	padding: 0.85rem 0.9rem;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.watfa-cats__menu .current-menu-item a,
.watfa-cats__menu a:hover {
	color: var(--watfa-red);
}

.watfa-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.watfa-lang__link {
	text-decoration: none;
}

@media (max-width: 800px) {
	.watfa-mast__inner {
		flex-wrap: wrap;
	}

	.watfa-search {
		flex: 1 1 100%;
		order: 3;
	}

	.watfa-util__tag {
		display: none;
	}
}

/* ---------- Buttons ---------- */
.watfa-hero__cta,
.watfa-promo__cta,
.woocommerce:not(.site-header) a.button.alt,
.woocommerce:not(.site-header) button.button.alt,
.woocommerce-cart .button,
.woocommerce-checkout .button,
ul.products li.product .button {
	background-color: var(--watfa-red);
	border-color: var(--watfa-red);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
}

.watfa-hero__cta:hover,
.watfa-promo__cta:hover,
.woocommerce:not(.site-header) a.button.alt:hover,
.woocommerce:not(.site-header) button.button.alt:hover,
ul.products li.product .button:hover {
	background-color: var(--watfa-red-dark);
	border-color: var(--watfa-red-dark);
	color: #fff;
}

.onsale,
.woocommerce span.onsale {
	background: var(--watfa-red);
}

/* ---------- Homepage ---------- */
.home.page .site-main,
.home.page .content-area {
	margin: 0;
	padding: 0;
	width: 100%;
	float: none;
}

.watfa-hero,
.watfa-doors,
.watfa-featured,
.watfa-trust,
.watfa-page-content,
.watfa-promo {
	padding: 2.75rem 0;
}

.watfa-doors .col-full,
.watfa-featured .col-full,
.watfa-trust .col-full,
.watfa-page-content .col-full {
	max-width: var(--watfa-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

.watfa-sectionhead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.35rem;
}

.watfa-sectionhead h2 {
	font-size: 1.35rem;
	margin: 0;
}

.watfa-sectionhead a {
	color: var(--watfa-red);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.watfa-kicker {
	margin: 0 0 0.55rem;
	color: var(--watfa-red);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.watfa-hero {
	width: 100%;
	background: linear-gradient(90deg, #f4e9ff 0%, #fde8f3 42%, #e8f1ff 100%);
	padding: 0;
}

.watfa-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	min-height: 420px;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.watfa-hero__copy h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.1;
	margin: 0 0 0.8rem;
	max-width: 11em;
}

.watfa-hero__copy p {
	color: var(--watfa-muted);
	margin: 0 0 1.4rem;
	max-width: 30em;
}

.watfa-hero__cta,
.watfa-promo__cta {
	float: none;
	display: inline-block;
	padding: 0.75rem 1.7rem;
	margin: 0;
}

.watfa-hero__visual {
	display: flex;
	justify-content: flex-end;
}

.watfa-hero__visual img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

.watfa-doors__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.75rem 3rem;
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0;
}

.watfa-doors__item {
	margin: 0;
	list-style: none;
}

.watfa-doors__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
}

.watfa-doors__photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #f6f7f9;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 1px var(--watfa-rule);
}

.watfa-doors__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.watfa-doors__item h3 {
	font-size: 0.88rem;
	font-weight: 600;
	margin: 0;
}

.watfa-featured ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	width: 100%;
}

.watfa-featured ul.products li.product,
ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	background: #fff;
	border: 0;
	border-radius: 0;
	padding: 0.35rem 0.2rem 1rem;
	box-shadow: none;
	text-align: center;
}

ul.products li.product:hover {
	box-shadow: none;
}

ul.products li.product img,
ul.products li.product .wp-post-image,
ul.products li.product .woocommerce-placeholder {
	max-height: 160px !important;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto 0.85rem;
	object-fit: contain;
	background: #f7f8fa;
	border-radius: 8px;
}

ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.86rem;
	font-weight: 500;
	letter-spacing: 0 !important;
}

ul.products li.product .price {
	color: var(--watfa-text);
	font-weight: 700;
	font-size: 0.92rem;
}

ul.products li.product .price del {
	color: var(--watfa-muted);
	font-weight: 400;
}

ul.products li.product a.added_to_cart {
	display: none !important;
}

ul.products li.product .button {
	padding: 0.45rem 1rem;
	font-size: 0.8rem;
}

.watfa-promo {
	padding: 0;
	background-color: #1d4ed8;
	background-image: var(--watfa-promo-image);
	background-size: cover;
	background-position: center right;
}

.watfa-promo__inner {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

.watfa-promo__copy {
	max-width: 28rem;
	color: #fff;
}

.watfa-promo__copy h2 {
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	margin: 0 0 0.55rem;
}

.watfa-promo__copy p {
	margin: 0 0 1.15rem;
	color: rgba(255, 255, 255, 0.86);
}

.watfa-promo__cta {
	padding: 0.65rem 1.4rem;
}

.watfa-trust {
	padding-top: 1.25rem;
}

.watfa-trust__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.watfa-trust__list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
	padding: 0.5rem;
}

.watfa-trust__icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff0f1;
	color: var(--watfa-red);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.35rem;
}

.watfa-trust__icon svg {
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
}

.watfa-trust__list strong {
	font-size: 0.92rem;
}

.watfa-trust__list span:last-child {
	font-size: 0.8rem;
	color: var(--watfa-muted);
	font-weight: 400;
}

/* ---------- Newsletter + footer ---------- */
.watfa-newsletter {
	background: var(--watfa-pink);
	color: #fff;
	padding: 1.35rem 0;
}

.watfa-newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
}

.watfa-newsletter__title,
.watfa-newsletter__ok,
.watfa-newsletter__err {
	margin: 0;
	font-weight: 700;
	font-size: 1.15rem;
}

.watfa-newsletter__form {
	display: flex;
	gap: 0;
	min-width: min(100%, 360px);
}

.watfa-newsletter__form input[type="email"] {
	flex: 1 1 auto;
	border: 0;
	border-radius: 4px 0 0 4px;
	padding: 0.7rem 0.9rem;
	font: inherit;
}

.watfa-newsletter__form button {
	border: 0;
	background: #111;
	color: #fff;
	border-radius: 0 4px 4px 0;
	padding: 0.7rem 1.15rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

body.rtl .watfa-newsletter__form input[type="email"] {
	border-radius: 0 4px 4px 0;
}

body.rtl .watfa-newsletter__form button {
	border-radius: 4px 0 0 4px;
}

.site-footer,
.watfa-footer {
	background: var(--watfa-footer);
	color: #d1d5db;
	padding: 2.75rem 0 2rem;
}

.site-footer,
.site-footer a,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
	color: #e5e7eb;
}

.site-footer a:hover {
	color: #fff;
}

.watfa-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.75rem;
}

.watfa-footer h3 {
	font-size: 0.95rem;
	margin: 0 0 0.8rem;
	color: #fff;
}

.watfa-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.watfa-footer li,
.watfa-footer p {
	margin: 0 0 0.45rem;
	font-size: 0.86rem;
	line-height: 1.5;
}

.watfa-footer a {
	text-decoration: none;
}

.watfa-footer__brand {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #222;
	display: flex;
	justify-content: center;
}

body.rtl .watfa-hero,
body.rtl .watfa-hero__copy,
body.rtl .watfa-promo__copy,
body.rtl .watfa-trust__list li,
body.rtl .watfa-doors__item a {
	text-align: center;
}

body.rtl .watfa-hero__copy,
body.rtl .watfa-promo__copy {
	text-align: start;
}

@media (max-width: 900px) {
	.watfa-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		text-align: center;
	}

	.watfa-hero__copy h1,
	.watfa-hero__copy p {
		margin-left: auto;
		margin-right: auto;
	}

	.watfa-hero__visual {
		justify-content: center;
	}

	.watfa-trust__list,
	.watfa-footer__cols {
		grid-template-columns: 1fr 1fr;
	}

	.watfa-promo__inner {
		background-position: center;
	}
}

@media (max-width: 66.4989378333em) {
	.col-full,
	.site-content .col-full,
	.site-content > .col-full {
		margin-left: auto;
		margin-right: auto;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.home .site-content > .col-full {
		margin: 0;
		padding: 0;
	}
}

@media (max-width: 768px) {
	.watfa-trust__list,
	.watfa-footer__cols {
		grid-template-columns: 1fr;
	}

	.site-header {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.watfa-newsletter__inner {
		flex-direction: column;
		align-items: stretch;
	}
}
