/* ==========================================================================
   Asmaa — art theme
   Palette taken from the reference painting: sky blue, tree green,
   warm stone, on a white gallery wall.
   ========================================================================== */

:root {
	--white: #ffffff;
	--mist: #f1f5f8;          /* cool gallery wall */
	--line: #e3e9ee;
	--sky: #5b8dbe;           /* painted sky */
	--sky-deep: #2c5a85;      /* buttons & links (AA on white) */
	--sky-pale: #dce8f3;
	--leaf: #4f7a3a;          /* tree green */
	--leaf-light: #7c9a4b;
	--stone: #cdb79a;         /* sun-warmed stone: frames */
	--stone-deep: #8c7358;
	--ink: #1d2b38;           /* text */
	--muted: #566575;
	--night: #14212c;         /* footer */

	--font-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
	--font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-logo: "Aref Ruqaa", "Amiri", serif;

	--container: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--section-y: clamp(72px, 9vw, 132px);
	--header-h: 88px;
	--end-sign: 1;            /* flips drawers in RTL */
	--ease: cubic-bezier(.2, .7, .2, 1);
}
[dir="rtl"] { --end-sign: -1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; }
::selection { background: var(--sky-pale); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; inset-inline-start: 12px; top: 12px; background: var(--white); padding: 10px 16px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.icon { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

section[id] { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */
.btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 10px 26px;
	border: 1.5px solid var(--sky-deep); border-radius: 2px;
	background: var(--sky-deep); color: var(--white);
	font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .wpcf7-submit:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--cart, .woocommerce a.button.btn--cart {
	min-height: 40px; padding: 8px 16px; font-size: 14px;
	background: transparent; color: var(--sky-deep); border-color: currentColor;
}
.btn--cart:hover, .woocommerce a.button.btn--cart:hover { background: var(--sky-deep); color: var(--white); border-color: var(--sky-deep); }
.btn--cart.loading { opacity: .55; pointer-events: none; }
.btn--cart.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--cart.added { background: var(--leaf); border-color: var(--leaf); color: var(--white); }
a.added_to_cart { display: none !important; }
.btn--whatsapp { background: #1f8f4e; border-color: #1f8f4e; margin-top: 8px; }
.btn--whatsapp:hover { background: var(--ink); border-color: var(--ink); }
.text-link { font-weight: 500; font-size: 15px; }
.round-btn {
	width: 48px; height: 48px; display: inline-grid; place-items: center;
	border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer;
	transition: background-color .2s, color .2s, opacity .2s;
}
.round-btn:hover { background: var(--ink); color: var(--white); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.round-btn--next .icon { transform: scaleX(-1); }
[dir="rtl"] .round-btn--next .icon { transform: none; }
[dir="rtl"] .round-btn:not(.round-btn--next) .icon { transform: scaleX(-1); }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	min-width: 44px; min-height: 44px; padding: 8px; border: 0; background: none; cursor: pointer; color: var(--ink);
	font-size: 14px; font-weight: 500;
}
.icon-btn:hover { color: var(--sky-deep); }

/* ---------- Frames: every artwork hangs on the white wall ---------- */
.frame {
	display: block; position: relative; padding: clamp(8px, 1.1vw, 14px);
	background: var(--white); border: 0;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--stone) 75%, white), 0 22px 30px -22px rgba(29, 43, 56, .45);
	transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
a.frame:hover, button.frame:hover { box-shadow: 0 0 0 1px var(--stone), 0 30px 40px -24px rgba(29, 43, 56, .55); transform: translateY(-2px); }
button.frame { cursor: zoom-in; width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 60; background: var(--white);
	transition: box-shadow .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(20, 33, 44, .5); }
.site-header__bar {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	height: var(--header-h); transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__bar { height: 68px; }
.site-header__start { display: flex; align-items: center; gap: 6px; justify-self: start; }
.site-header__end { display: flex; align-items: center; gap: 6px; justify-self: end; }
.brand { display: block; line-height: 0; color: var(--ink); }
.brand .asmaa-logo, .brand .custom-logo { height: 66px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand .asmaa-logo, .site-header.is-scrolled .brand .custom-logo { height: 50px; }
.menu-toggle { display: none; }

.asmaa-logo { overflow: visible; }
.asmaa-logo__ar { font-family: var(--font-logo); font-size: 50px; font-weight: 700; }
.asmaa-logo__en { font-family: var(--font-display); font-style: italic; font-size: 16px; letter-spacing: .06em; opacity: .75; }

.primary-nav { border-block: 1px solid var(--line); }
.primary-nav .menu { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px); }
.primary-nav a {
	display: block; padding: 14px 2px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
	background: linear-gradient(var(--sky), var(--sky)) no-repeat center bottom 9px / 0 2px;
	transition: background-size .3s var(--ease), color .2s;
}
.primary-nav a:hover, .primary-nav .is-active > a, .primary-nav .current-menu-item > a { color: var(--sky-deep); background-size: 100% 2px; }

.cart-count {
	position: absolute; top: 2px; inset-inline-start: 22px;
	min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
	background: var(--leaf); color: var(--white); font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
	transition: transform .3s var(--ease);
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.lang-switcher { font-size: 14px; }
.lang-switcher .trp-language-switcher { width: auto; }

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.icon-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.brand .asmaa-logo, .brand .custom-logo { height: 52px; }
	.site-header.is-scrolled .brand .asmaa-logo { height: 44px; }
	.site-header { border-bottom: 1px solid var(--line); }
	.site-header__start .lang-switcher { display: none; }
}

/* ---------- Drawers (mobile menu + side cart) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s linear .45s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20, 33, 44, .45); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; z-index: 1; width: min(420px, 90vw);
	display: flex; flex-direction: column; background: var(--white);
	transition: transform .45s var(--ease);
}
.drawer--cart .drawer__panel { inset-inline-end: 0; transform: translateX(calc(101% * var(--end-sign))); }
.drawer--nav .drawer__panel { inset-inline-start: 0; transform: translateX(calc(-101% * var(--end-sign))); width: min(360px, 86vw); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 1.5rem; margin: 0; }
.drawer__brand .asmaa-logo { height: 46px; width: auto; }
.mobile-menu { padding: 12px 24px; overflow-y: auto; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.45rem; }
.mobile-menu a:hover, .mobile-menu .is-active > a { color: var(--sky-deep); }
.drawer__lang { padding: 16px 24px; margin-top: auto; border-top: 1px solid var(--line); }

/* Side cart contents (WooCommerce mini cart) */
.drawer--cart .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.woocommerce-mini-cart { flex: 1; overflow-y: auto; padding: 8px 20px; }
.woocommerce-mini-cart-item {
	position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: start;
	padding-block: 16px; padding-inline: 0 34px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.woocommerce-mini-cart-item a:not(.remove) { display: contents; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.woocommerce-mini-cart-item img { grid-row: span 2; width: 72px !important; height: 90px !important; object-fit: cover; padding: 4px; background: #fff; box-shadow: 0 0 0 1px var(--stone); margin: 0 !important; float: none !important; }
.woocommerce-mini-cart-item .quantity { grid-column: 2; color: var(--muted); font-size: 14px; }
.woocommerce-mini-cart-item .remove {
	position: absolute; top: 14px; inset-inline-end: 0; width: 26px; height: 26px; display: grid; place-items: center;
	border-radius: 50%; color: var(--muted) !important; text-decoration: none; font-size: 20px; line-height: 1;
}
.woocommerce-mini-cart-item .remove:hover { background: var(--mist); color: #b3261e !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 18px 20px 8px; border-top: 1px solid var(--line); font-size: 16px; }
.woocommerce-mini-cart__total .amount { font-weight: 600; color: var(--sky-deep); }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 12px 20px 22px; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent !important; color: var(--ink) !important; border-color: var(--ink) !important; }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--ink) !important; color: #fff !important; }
.woocommerce-mini-cart__empty-message { margin: auto; padding: 48px 28px; text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 1.35rem; }

/* ---------- Search panel ---------- */
.search-panel { position: fixed; inset: 0 0 auto; z-index: 110; background: var(--white); box-shadow: 0 20px 50px -20px rgba(20,33,44,.4); transform: translateY(-105%); transition: transform .45s var(--ease); }
.search-panel.is-open { transform: none; }
.search-panel__inner { display: flex; align-items: center; gap: 12px; padding-block: 28px; }
.search-panel .search-form { flex: 1; }
.search-form { position: relative; display: flex; align-items: center; }
.search-field {
	width: 100%; padding: 12px 0; padding-inline-end: 52px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
	background: transparent; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem);
}
.search-field:focus { outline: none; border-bottom-color: var(--sky); }
.search-field::placeholder { color: #93a0ad; }
.search-submit { position: absolute; inset-inline-end: 0; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }

/* ---------- Section heads ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 640px; }
.section-title { font-size: clamp(2.1rem, 1.35rem + 2.4vw, 3.4rem); margin: 0; }
.brush-line { display: block; width: 118px; height: 14px; margin-top: 6px; color: var(--sky); }
.section-intro { margin-top: 16px; color: var(--muted); max-width: 56ch; }
.section-intro p:last-child { margin: 0; }

/* ---------- Hero: the arch window ---------- */
.hero { padding-top: clamp(20px, 3vw, 36px); }
.hero__window {
	position: relative; overflow: hidden;
	aspect-ratio: 16 / 8; max-height: calc(100vh - 220px); min-height: 360px; width: 100%;
	border-radius: 50% 50% 0 0 / 34% 34% 0 0;
	background: var(--sky);
	box-shadow: 0 0 0 10px var(--white), 0 0 0 11px var(--stone);
	animation: window-rise 1.4s var(--ease) both .15s;
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__media video { object-fit: cover; }
.hero__media iframe { border: 0; width: 100%; height: 100%; transform: scale(1.35); pointer-events: none; }
@keyframes window-rise {
	from { clip-path: inset(100% 0 0 0); }
	to { clip-path: inset(0 0 0 0); }
}
.hero__sill {
	display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end;
	margin-top: 11px; padding-top: clamp(28px, 4vw, 48px); border-top: 3px solid var(--stone);
}
.hero__title { font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.6rem); line-height: 1.2; margin: 0; }
.hero__text { color: var(--muted); font-size: 1.06rem; }
.hero__text p { margin-bottom: 18px; }

@media (max-width: 760px) {
	.hero__window { aspect-ratio: 4 / 5; max-height: 70vh; min-height: 0; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 7px var(--white), 0 0 0 8px var(--stone); }
	.hero__sill { grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__figure {
	margin: 0; padding: 12px; background: var(--white); border-radius: 999px 999px 0 0;
	box-shadow: 0 0 0 1px var(--stone), 0 30px 40px -28px rgba(29, 43, 56, .5);
}
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.about__text { font-size: 1.08rem; max-width: 58ch; }
.about__signature { margin: 18px 0 0; font-family: var(--font-logo); font-size: 2.4rem; line-height: 1; color: var(--sky-deep); }
@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__figure { max-width: 420px; width: 100%; margin-inline: auto; }
}

/* ---------- Portfolio: gallery wall ---------- */
.portfolio { background: var(--mist); }
.gallery-wall { columns: 3 280px; column-gap: clamp(24px, 3.4vw, 48px); }
.gallery-wall__item { break-inside: avoid; margin-bottom: clamp(32px, 4vw, 52px); }
.gallery-wall__label { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.gallery-wall__label strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Shop ---------- */
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.shop__head .section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.carousel__nav { display: flex; gap: 10px; margin-bottom: clamp(28px, 3.5vw, 48px); flex: none; }
.carousel { position: relative; }
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 28px) / 4); gap: 28px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: 4px;
	padding: 4px 4px 36px; margin: -4px -4px 0; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.carousel__slide { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1100px) { .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; } }
@media (max-width: 760px) {
	.carousel__track { grid-auto-columns: 72%; gap: 18px; }
	.shop__head .carousel__nav { display: none; }
}

.art-card { display: flex; flex-direction: column; height: 100%; }
.art-card__frame { aspect-ratio: 4 / 5; }
.art-card__frame img { aspect-ratio: auto; }
.art-card__badge {
	position: absolute; top: 22px; inset-inline-start: 22px; padding: 2px 12px;
	background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--stone);
}
.art-card__badge--sale { background: var(--leaf); color: var(--white); box-shadow: none; }
.art-card.is-sold .art-card__frame img { filter: saturate(.4); opacity: .8; }
.art-card__meta { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.art-card__title { font-size: 1.3rem; margin: 0 0 2px; }
.art-card__title a { color: inherit; text-decoration: none; }
.art-card__title a:hover { color: var(--sky-deep); }
.art-card__note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.art-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.art-card__price { font-weight: 600; color: var(--sky-deep); font-size: 16px; }
.art-card__price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-end: 6px; }
.art-card__price ins { text-decoration: none; }

.shop__grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(56px, 7vw, 96px) 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.shop__grid-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin: 0; }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
@media (max-width: 1100px) { .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
	.art-grid .art-card__title { font-size: 1.1rem; }
	.art-grid .art-card__row { flex-direction: column; align-items: stretch; }
	.art-grid .btn--cart { width: 100%; }
	.frame { padding: 6px; }
}

/* ---------- Banner ---------- */
.banner { position: relative; display: flex; align-items: center; min-height: clamp(460px, 44vw, 620px); overflow: hidden; background: var(--sky); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__inner { position: relative; padding-block: 64px; }
.banner__card {
	max-width: 480px; padding: clamp(28px, 4vw, 52px); background: var(--white);
	box-shadow: 0 0 0 1px var(--stone), 0 40px 60px -40px rgba(20, 33, 44, .6);
}
.banner__title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); }
.banner__text { color: var(--muted); margin-bottom: 8px; }
@media (max-width: 760px) {
	.banner { display: block; min-height: 0; background: var(--white); }
	.banner__img { position: relative; height: 320px; }
	.banner__inner { padding-block: 0 24px; margin-top: -90px; }
}

/* ---------- Videos ---------- */
.videos { background: var(--mist); }
.videos .carousel__track { grid-auto-columns: calc((100% - 4 * 24px) / 5); gap: 24px; }
.videos--landscape .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
.video-card { margin: 0; }
.video-card__media {
	position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink) center / cover no-repeat;
	box-shadow: 0 0 0 8px var(--white), 0 0 0 9px color-mix(in srgb, var(--stone) 75%, white), 0 26px 30px -24px rgba(29,43,56,.5);
	margin: 9px;
}
.videos--landscape .video-card__media { aspect-ratio: 16 / 9; }
.video-card__media video, .video-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-card figcaption { margin: 18px 9px 0; font-size: 14px; color: var(--muted); }
.video-card--empty .video-card__media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 33, 44, .35); }
.video-card__play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--white); }
.video-card__play .icon { width: 58px; height: 58px; padding: 16px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; }
@media (max-width: 1100px) { .videos .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (max-width: 760px) {
	.videos .carousel__track { grid-auto-columns: 62%; }
	.videos--landscape .carousel__track { grid-auto-columns: 86%; }
	.videos .carousel__nav { display: none; }
}

/* ---------- Contact + Contact Form 7 ---------- */
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__form { padding: clamp(24px, 3.5vw, 44px); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -40px rgba(20,33,44,.45); }
.cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.cf7-field { margin: 0 0 14px; }
.cf7-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .cf7-grid { grid-template-columns: 1fr; } }
.wpcf7 label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 12px 14px; border: 1px solid #cfd8e0; border-radius: 2px; background: var(--white);
	color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 3px var(--sky-pale); }
.wpcf7 .wpcf7-not-valid { border-color: #b3261e; }
.wpcf7-not-valid-tip { font-size: 13px; color: #b3261e; margin-top: 4px; }
.cf7-submit { margin: 8px 0 0; display: flex; align-items: center; gap: 12px; }
.wpcf7-spinner { margin: 0; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-width: 1px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--leaf); background: #eef5ea; }
.notice-box { padding: 20px; background: var(--mist); border-inline-start: 3px solid var(--sky); color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: rgba(255, 255, 255, .78); text-align: center; }
.site-footer__art {
	position: absolute; inset: 0; background: center 70% / cover no-repeat;
	opacity: .2; filter: saturate(.6) contrast(1.1); mix-blend-mode: luminosity;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}
.site-footer__inner { position: relative; padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 32px; }
.site-footer__brand { display: block; line-height: 0; color: var(--white); }
.site-footer__brand .asmaa-logo, .site-footer__brand .custom-logo { height: 84px; width: auto; }
.site-footer__widgets { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-widget { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-widget__title { color: var(--white); font-size: 1.2rem; margin: 0; }
.site-footer .contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 15px; }
.site-footer .contact-list li { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .contact-list .icon { width: 18px; height: 18px; color: var(--stone); }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-list a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background-color .2s, border-color .2s, color .2s; }
.social-list a:hover { background: var(--white); border-color: var(--white); color: var(--night); text-decoration: none; }
.social-list .icon { width: 20px; height: 20px; }
.site-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255,255,255,.6); }
.site-footer__bottom p { margin: 0; padding-block: 18px; }

/* ---------- WhatsApp (left side; set Ally to the right side) ---------- */
.whatsapp-float {
	position: fixed; left: 20px; bottom: 20px; z-index: 90;
	width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
	background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(20, 90, 50, .6);
	transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* ---------- Add-to-cart popup ---------- */
.cart-popup { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.cart-popup.is-open { visibility: visible; }
.cart-popup__scrim { position: absolute; inset: 0; background: rgba(20, 33, 44, .5); opacity: 0; transition: opacity .35s; }
.cart-popup.is-open .cart-popup__scrim { opacity: 1; }
.cart-popup__card {
	position: relative; overflow: hidden; width: min(440px, 100%); padding: 40px 32px 30px;
	background: var(--white); text-align: center; box-shadow: 0 40px 80px -30px rgba(20,33,44,.6);
	opacity: 0; transform: translateY(18px) scale(.97);
}
.cart-popup__card > * { opacity: 0; }
/* the paint sweep: a stroke of sky crosses the card and leaves it painted white */
.cart-popup__card::before {
	content: ""; position: absolute; inset: -10% -20%; z-index: 3; pointer-events: none;
	background: linear-gradient(100deg, var(--sky) 0 60%, var(--sky-deep) 60% 72%, var(--leaf-light) 72% 84%, var(--stone) 84%);
	transform: translateX(calc(110% * var(--end-sign) * -1)) skewX(-12deg);
}
.cart-popup.is-open .cart-popup__card { animation: popup-in .5s var(--ease) forwards; }
.cart-popup.is-open .cart-popup__card::before { animation: paint-sweep 1s var(--ease) forwards; }
.cart-popup.is-open .cart-popup__card > * { animation: fade-in .45s var(--ease) forwards .42s; }
@keyframes popup-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes paint-sweep {
	0% { transform: translateX(calc(110% * var(--end-sign) * -1)) skewX(-12deg); }
	45% { transform: translateX(0) skewX(-12deg); }
	100% { transform: translateX(calc(110% * var(--end-sign))) skewX(-12deg); }
}
.cart-popup__x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }
.cart-popup__art { position: relative; width: 132px; margin: 0 auto 22px; }
.cart-popup__img { width: 132px; height: 164px; object-fit: cover; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--stone); background: var(--mist); }
.cart-popup__check { position: absolute; bottom: -14px; inset-inline-end: -18px; width: 52px; height: 52px; }
.cart-popup__check circle { fill: var(--leaf); stroke: var(--white); stroke-width: 3; }
.cart-popup__check path { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.cart-popup.is-open .cart-popup__check path { animation: draw .5s var(--ease) forwards .85s; }
.cart-popup__title { font-size: 1.9rem; margin: 0; }
.cart-popup__stroke { display: block; width: 110px; height: 14px; margin: 4px auto 10px; }
.cart-popup__stroke path { fill: none; stroke: var(--sky); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; }
.cart-popup.is-open .cart-popup__stroke path { animation: draw .7s var(--ease) forwards .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cart-popup__name { color: var(--muted); margin: 0 0 26px; font-size: 1.05rem; }
.cart-popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .cart-popup__actions { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.lightbox.is-open { visibility: visible; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(14, 22, 30, .9); opacity: 0; transition: opacity .3s; }
.lightbox.is-open .lightbox__scrim { opacity: 1; }
.lightbox__figure { position: relative; margin: 0; max-width: min(1100px, 100%); opacity: 0; transform: scale(.97); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lightbox.is-open .lightbox__figure { opacity: 1; transform: none; }
.lightbox__figure img { max-height: 80vh; width: auto; margin-inline: auto; padding: 12px; background: var(--white); }
.lightbox__figure figcaption { margin-top: 14px; text-align: center; color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.lightbox__close { position: absolute; top: -52px; inset-inline-end: 0; color: #fff; }
.lightbox__close:hover { color: var(--stone); }

/* ---------- Inner pages / WooCommerce pages ---------- */
.page-wrap { padding-block: clamp(40px, 6vw, 80px); }
.page-head { margin-bottom: 36px; }
.page-title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.page-search { max-width: 560px; margin-top: 16px; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 32px; }
.post-card__title { font-size: 1.4rem; margin-top: 18px; }
.post-card__title a { color: inherit; text-decoration: none; }
.single-entry__img { margin: 0 0 36px; max-width: 900px; }
.empty-state { color: var(--muted); font-size: 1.1rem; }
.page-404 { text-align: center; }
.page-404 .page-search { margin: 24px auto 28px; }

.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 14px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { padding: 10px; background: #fff; box-shadow: 0 0 0 1px var(--stone), 0 22px 30px -22px rgba(29,43,56,.45); aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); padding-top: 14px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--sky-deep); font-weight: 600; }
.woocommerce span.onsale { background: var(--leaf); min-height: 0; min-width: 0; padding: 2px 12px; border-radius: 0; line-height: 1.8; }
@media (max-width: 1100px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } }
.woocommerce div.product .product_title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.woocommerce div.product div.images img { padding: 14px; background: #fff; box-shadow: 0 0 0 1px var(--stone); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sky-deep); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sky-deep); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .quantity .qty {
	padding: 10px 12px; border: 1px solid #cfd8e0; border-radius: 2px; font-family: var(--font-body);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
	.cart-popup__card::before { display: none; }
}
