/* Desert Face — mobile experience (loaded after theme.css). */

/* ---------- Header: custom burger + drawer below 1181px ---------- */
.df-header__row { grid-template-areas: "nav logo tools"; }
.df-nav, .df-burger { grid-area: nav; }
.df-logo { grid-area: logo; justify-self: center; }
.df-header__tools { grid-area: tools; }
.df-burger {
	display: none; justify-self: start; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 10px; margin-inline-start: -10px; background: none; border: 0; cursor: pointer;
}
.df-burger span { display: block; width: 22px; height: 1.5px; background: var(--df-base); border-radius: 2px; }
.df-burger span:nth-child(2) { width: 15px; }
.df-burger:focus-visible { outline: 2px solid var(--df-gold); outline-offset: 2px; }
@media (max-width: 1180px) {
	.df-nav { display: none !important; }
	.df-burger { display: inline-flex; }
}
@media (max-width: 781px) {
	.df-header { padding-block: .4rem; }
	.df-header__row { grid-template-columns: 44px 1fr 44px !important; gap: .25rem !important; }
	.df-logo img { width: 122px; }
	.df-header__tools { gap: 0 !important; }
	.df-header__tools .df-lang,
	.df-header__tools .wc-block-customer-account,
	.df-header__tools .wp-block-woocommerce-customer-account { display: none !important; }
}

/* ---------- Announcement: single-line marquee on phones ---------- */
.df-announce__dup { display: none; }
@media (max-width: 781px) {
	.df-announce { padding-block: .45rem; overflow: hidden; }
	.df-announce .df-announce__text {
		display: flex; width: max-content; max-width: none !important; margin-inline: 0 !important; white-space: nowrap;
		font-size: 11px; letter-spacing: .1em; animation: df-marquee 24s linear infinite;
	}
	.df-announce__text span { padding-inline-end: 3rem; }
	.df-announce__dup { display: inline; }
	html[dir="rtl"] .df-announce .df-announce__text { animation-name: df-marquee-rtl; font-size: 12px; letter-spacing: 0; }
}
@keyframes df-marquee { to { transform: translateX(-50%); } }
@keyframes df-marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Drawer ---------- */
html.df-lock, html.df-lock body { overflow: hidden; }
.df-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; transition: visibility 0s .45s; }
.df-drawer.is-open { visibility: visible; pointer-events: auto; transition: none; }
.df-drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 12, 12, .55); opacity: 0; transition: opacity .35s; }
.df-drawer.is-open .df-drawer__backdrop { opacity: 1; }
.df-drawer__panel {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 420px);
	display: flex; flex-direction: column; padding: .75rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
	background: var(--df-ink); color: var(--df-base); overflow-y: auto; isolation: isolate;
	transform: translateX(-100%); transition: transform .45s var(--df-ease);
}
html[dir="rtl"] .df-drawer__panel { transform: translateX(100%); }
.df-drawer.is-open .df-drawer__panel { transform: none; }
.df-drawer__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; background: var(--df-pattern) center / 380px auto repeat; }
.df-drawer__top { display: flex; align-items: center; justify-content: space-between; padding-block-end: .9rem; border-block-end: 1px solid rgba(242, 242, 242, .1); }
.df-drawer__logo img { width: 128px; display: block; }
.df-drawer__close {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(242, 242, 242, .18);
	border-radius: 50%; background: none; color: var(--df-base); cursor: pointer;
}
.df-drawer__close .df-i { width: 20px; height: 20px; }
.df-drawer__big { display: flex; flex-direction: column; padding-block: .75rem; }
.df-drawer__big a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem;
	border-block-end: 1px solid rgba(242, 242, 242, .07); color: var(--df-base); text-decoration: none;
	font-family: var(--wp--preset--font-family--display); font-size: 2.15rem; line-height: 1; text-transform: uppercase;
	opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--df-ease), color .2s;
}
.df-drawer.is-open .df-drawer__big a { opacity: 1; transform: none; }
.df-drawer.is-open .df-drawer__big a:nth-child(2) { transition-delay: .04s; }
.df-drawer.is-open .df-drawer__big a:nth-child(3) { transition-delay: .08s; }
.df-drawer.is-open .df-drawer__big a:nth-child(4) { transition-delay: .12s; }
.df-drawer.is-open .df-drawer__big a:nth-child(5) { transition-delay: .16s; }
.df-drawer.is-open .df-drawer__big a:nth-child(6) { transition-delay: .2s; }
.df-drawer__big a:hover, .df-drawer__big a:focus-visible { color: var(--df-gold); }
.df-drawer__big .df-i { width: 20px; height: 20px; flex: none; color: var(--df-gold); }
html[dir="rtl"] .df-drawer__big .df-i { transform: scaleX(-1); }
html[dir="rtl"] .df-drawer__big a { font-family: var(--wp--preset--font-family--arabic); font-weight: 800; font-size: 1.55rem; padding-block: .85rem; }
.df-drawer__small { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; padding-block: 1.25rem; font-size: var(--wp--preset--font-size--small); }
.df-drawer__small a { color: rgba(242, 242, 242, .7); text-decoration: none; }
.df-drawer__small a:hover { color: var(--df-gold); }
.df-drawer__foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: auto; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(242, 242, 242, .1); }
.df-drawer__chip, .df-drawer__foot .df-lang {
	display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid rgba(242, 242, 242, .22);
	border-radius: 999px; color: var(--df-base); font-size: var(--wp--preset--font-size--x-small); font-weight: 700; text-decoration: none;
}
.df-drawer__foot .df-lang { border-color: var(--df-gold); color: var(--df-gold); }
.df-drawer__chip .df-i { width: 16px; height: 16px; }

/* ---------- Mobile tab bar ---------- */
.df-tabbar { display: none; }
@media (max-width: 781px) {
	.df-tabbar {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90;
		padding-block-end: env(safe-area-inset-bottom); background: rgba(31, 31, 31, .97);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block-start: 1px solid rgba(203, 160, 107, .22);
	}
	.df-tabbar a {
		position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem 0 .5rem;
		color: rgba(242, 242, 242, .6); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	}
	html[dir="rtl"] .df-tabbar a { letter-spacing: 0; font-size: 11.5px; }
	.df-tabbar a.is-active { color: var(--df-gold); }
	.df-tabbar a.is-active::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 30%; height: 2px; background: var(--df-gold); }
	.df-tabbar .df-i { width: 22px; height: 22px; }
	.df-tabbar__count {
		position: absolute; top: .3rem; inset-inline-start: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px;
		border-radius: 9px; background: var(--df-gold); color: var(--df-ink); font-size: 10px; line-height: 17px; text-align: center; font-weight: 800;
	}
	body.df-has-tabbar { padding-block-end: calc(60px + env(safe-area-inset-bottom)); }
	body.df-has-tabbar .df-wa { inset-block-end: calc(74px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

/* ---------- Sticky add-to-cart (product pages, phones) ---------- */
.df-sticky-atc { display: none; }
@media (max-width: 781px) {
	.df-sticky-atc {
		display: flex; align-items: center; gap: .75rem; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90;
		padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(250, 248, 244, .97);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block-start: 1px solid var(--df-line);
		box-shadow: 0 -12px 30px -22px rgba(0, 0, 0, .5); transform: translateY(110%); transition: transform .35s var(--df-ease);
	}
	.df-sticky-atc.is-visible { transform: none; }
	.df-sticky-atc__img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--df-radius); background: var(--df-sand); }
	.df-sticky-atc__info { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
	.df-sticky-atc__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--wp--preset--font-size--small); font-weight: 700; }
	.df-sticky-atc__price { color: var(--df-muted); font-size: var(--wp--preset--font-size--small); }
	.df-sticky-atc__price del { opacity: .6; margin-inline-end: .3rem; }
	.df-sticky-atc__price ins { text-decoration: none; }
	.df-sticky-atc__btn {
		padding: .9rem 1.1rem; border: 0; border-radius: var(--df-radius); background: var(--df-ink); color: var(--df-base); cursor: pointer;
		font-family: inherit; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
	}
	html[dir="rtl"] .df-sticky-atc__btn { letter-spacing: 0; font-size: var(--wp--preset--font-size--small); }
	body.df-atc-visible { padding-block-end: 76px; }
	body.df-atc-visible .df-wa { inset-block-end: calc(84px + env(safe-area-inset-bottom)); }
}
form.cart.df-flash { animation: df-flash 1.3s ease; border-radius: var(--df-radius); }
@keyframes df-flash { 30% { box-shadow: 0 0 0 8px rgba(203, 160, 107, .45); } 100% { box-shadow: 0 0 0 0 rgba(203, 160, 107, 0); } }

/* ---------- Category chips (phones) ---------- */
.df-chips { display: none; }
@media (max-width: 781px) {
	.df-chips {
		display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: 0 1.5rem;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important; padding-inline: var(--wp--style--root--padding-left, 1rem);
	}
	.df-chips::-webkit-scrollbar { display: none; }
	.df-chips a {
		flex: none; padding: .55rem 1rem; border: 1px solid rgba(203, 160, 107, .5); border-radius: 999px; color: var(--df-base);
		font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	}
	.df-chips a:first-child { background: var(--df-gold); border-color: var(--df-gold); color: var(--df-ink); }
	html[dir="rtl"] .df-chips a { letter-spacing: 0; font-size: var(--wp--preset--font-size--small); }
}

/* ---------- Hero: full-bleed photo on phones ---------- */
@media (max-width: 860px) {
	.df-hero { padding-block: 0; }
	.df-hero::before { display: none; }
	.df-hero__grid {
		position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; align-items: stretch;
		min-height: min(calc(100svh - 110px), 700px); padding-block: 2.5rem 1.5rem;
	}
	body.df-has-tabbar .df-hero__grid { min-height: min(calc(100svh - 230px), 600px);
	}
	.df-hero__media {
		position: absolute; inset-block: 0; inset-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem));
		z-index: -1; max-width: none !important; margin: 0;
	}
	.df-hero__media::before { display: none; }
	.df-hero__media::after {
		content: ""; position: absolute; inset: 0;
		background: linear-gradient(180deg, rgba(31, 31, 31, .2) 0%, rgba(31, 31, 31, .15) 30%, rgba(31, 31, 31, .85) 68%, #1F1F1F 100%);
	}
	.df-hero__media > img:first-child { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 25%; border-radius: 0; box-shadow: none; }
	.df-hero__mark { display: none; }
	.df-hero .df-eyebrow { margin-block-end: .9rem; }
	.df-hero__title { font-size: clamp(3.3rem, 16vw, 4.75rem); margin-block-end: 1rem; }
	html[dir="rtl"] .df-hero__title { font-size: clamp(2.6rem, 12.5vw, 3.6rem); line-height: 1.15; }
	.df-hero__lead { max-width: 30rem; margin-block-end: 1.5rem; color: rgba(242, 242, 242, .86); font-size: 1rem; }
	.df-hero__actions { max-width: 30rem; }
	.df-hero__actions { flex-wrap: nowrap; gap: .6rem; }
	.df-hero__actions .df-btn { flex: 1 1 0; padding-inline: .75rem; }
}

/* ---------- Sections, collections, story, band (phones) ---------- */
@media (max-width: 781px) {
	.df-section { padding-block: 3.25rem; }
	.df-section__head { margin-block-end: 1.5rem; }
	.df-section__head h2, .df-story__copy h2 { font-size: clamp(2.2rem, 10.5vw, 2.8rem); }
	html[dir="rtl"] :is(.df-section__head h2, .df-story__copy h2) { font-size: clamp(1.7rem, 8vw, 2.2rem); }

	.df-collections__grid {
		display: flex !important; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important; padding-inline: var(--wp--style--root--padding-left, 1rem);
		scroll-padding-inline: var(--wp--style--root--padding-left, 1rem);
	}
	.df-collections__grid::-webkit-scrollbar { display: none; }
	.df-tile { flex: 0 0 84%; min-height: 430px; scroll-snap-align: start; }

	.df-story__grid { gap: 1.75rem; }
	.df-story__media { order: 0 !important; }
	.df-story__media img { aspect-ratio: 4 / 3; }

	.df-band { padding-block: 3rem; }
	.df-band__inner { justify-items: center; gap: 2rem; }
	.df-band__wordmark { width: 160px; }
	.df-promises { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 1rem; }
	.df-promise svg { width: 26px; height: 26px; margin-block-end: .5rem; }
	.df-promise h3 { font-size: .9375rem; }
	.df-promise p { font-size: .8125rem; }

	.df-page-hero { padding-block: 2rem; margin-block-end: 2rem; }
	.df-page-hero .wp-block-post-title, .df-page-hero .wp-block-query-title { font-size: clamp(2.2rem, 11vw, 3rem); }
	.df-story-hero h1 { font-size: clamp(3rem, 14vw, 4rem); }
}

/* ---------- Product grids ---------- */
.wc-block-product .wp-block-post-title,
.wc-block-product .wc-block-components-product-price { text-align: start !important; }
.wc-block-product .wc-block-components-product-button { align-items: flex-start; }
.wc-block-product .wp-block-button__link,
.wc-block-product .wc-block-components-product-button__button {
	background: transparent !important; color: var(--df-ink) !important; border: 1px solid var(--df-ink) !important;
	padding: .65rem 1.1rem !important; font-size: 11px !important; min-height: 0 !important;
}
.wc-block-product .wc-block-components-product-button__button:hover { background: var(--df-ink) !important; color: var(--df-base) !important; }
@media (max-width: 781px) {
	.wc-block-product-template.is-flex-container,
	.wc-block-product-template.wc-block-product-template__responsive { gap: 1.75rem .75rem !important; }
	.wc-block-product .wp-block-post-title { font-size: .9375rem !important; }
	.wc-block-product .wc-block-components-product-image { margin-block-end: .65rem !important; }
	.wc-block-product .wp-block-woocommerce-product-button,
	.wc-block-product .wc-block-components-product-button { display: none !important; }
	.wc-block-components-product-sale-badge { font-size: 10px; padding: .2rem .45rem; }
	.woocommerce-result-count, .wc-block-product-results-count { font-size: var(--wp--preset--font-size--x-small); color: var(--df-muted); }
	.woocommerce-ordering select, .wc-block-catalog-sorting select { max-width: 52vw; padding: .45rem .6rem; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: #fff; font-size: var(--wp--preset--font-size--x-small); }
}

/* ---------- Product page (phones) ---------- */
@media (max-width: 781px) {
	.single-product h1.wp-block-post-title, .single-product h1.product_title { font-size: clamp(2.1rem, 10vw, 2.6rem) !important; margin-block-end: .5rem; }
	html[dir="rtl"] .single-product h1.wp-block-post-title { font-size: clamp(1.6rem, 7.5vw, 2rem) !important; }
	.single-product .wc-block-components-product-price, .single-product .wp-block-woocommerce-product-price { font-size: 1.25rem !important; }
	table.variations, table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; width: 100%; }
	table.variations th.label { padding: 0 0 .4rem; text-align: start; }
	table.variations td.value { padding: 0 0 1.1rem; }
	.df-swatch { min-width: 50px; height: 46px; }
	.df-swatch--color { width: 42px; min-width: 42px; height: 42px; }
	.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: .6rem; align-items: stretch; }
	.single_add_to_cart_button { flex: 1; min-height: 52px; }
	form.cart .quantity .qty { width: 72px; min-height: 52px; }
	.product_meta { font-size: var(--wp--preset--font-size--x-small); color: var(--df-muted); }
	.woocommerce-tabs ul.tabs.wc-tabs { display: flex !important; flex-wrap: nowrap !important; gap: 1.25rem; max-width: 100%; overflow-x: auto !important; white-space: nowrap; scrollbar-width: none; padding-inline: 0 !important; }
	.woocommerce-tabs ul.tabs.wc-tabs li { flex: none; margin: 0 !important; }
	.woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
	/* Plain gallery (Arabic) becomes a swipeable carousel */
	.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
		display: flex !important; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
	.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image { flex: 0 0 86%; scroll-snap-align: center; }
	.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image img { aspect-ratio: 4 / 5 !important; object-fit: cover; }
}

/* ---------- Footer accordion (phones) ---------- */
.df-footer__col summary { list-style: none; text-transform: uppercase; }
html[dir="rtl"] .df-footer__col summary { letter-spacing: 0; }
.df-footer__col summary::-webkit-details-marker { display: none; }
@media (min-width: 782px) { .df-footer__col summary { pointer-events: none; } }
@media (max-width: 781px) {
	.df-footer { padding-block-start: 2.75rem; }
	.df-footer__grid { gap: 0 !important; }
	.df-footer__brand { display: flex; flex-direction: column; align-items: center; padding-block-end: 2rem; text-align: center; }
	.df-footer__brand img { width: 110px; }
	.df-footer__col { border-block-start: 1px solid rgba(242, 242, 242, .1); }
	.df-footer__col summary { display: flex; align-items: center; justify-content: space-between; margin: 0; padding-block: 1.05rem; cursor: pointer; }
	.df-footer__col summary::after { content: "+"; color: var(--df-gold); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
	.df-footer__col[open] summary::after { transform: rotate(45deg); }
	.df-footer__col .df-footer__list { padding-block-end: 1.25rem; }
	.df-footer__bottom { flex-direction: column; align-items: center; gap: .35rem; margin-block-start: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.df-announce .df-announce__text { animation: none; }
}
