/*
 * Dalisay Style: component styles.
 * Colours and fonts come from theme.json presets (Appearance › Editor › Styles),
 * so switching colour scheme there restyles everything below, including the
 * free delivery bar and the sticky Add to bag bar.
 */

/* New UAE dirham sign (U+20C3). Most devices don't have this character yet, so the
   theme adds it to its own fonts: the file holds only that one character, and the
   unicode-range means it is never used for any other text. */
@font-face {
	font-family: "Jost";
	src: url("../fonts/dirham.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+20C3;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/dirham.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+20C3;
}
@font-face {
	font-family: "Dirham";
	src: url("../fonts/dirham.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+20C3;
}
/* If something on the page uses another font, prices still get the sign */
.woocommerce-Price-currencySymbol { font-family: "Dirham", var(--wp--preset--font-family--body); }

/* --------------------------------------------------------------
   Header
   -------------------------------------------------------------- */
.ds-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .ds-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* The mobile menu opens inside the header, so lift the whole header above everything on the
   page (product zoom icon, sticky Add to bag bar...) while the menu is open. */
.ds-site-header:has(.wp-block-navigation__responsive-container.is-menu-open) { z-index: 100001; }
@media (max-width: 600px) {
	.admin-bar .ds-site-header { top: 0; }
}

.ds-topbar p { margin: 0; letter-spacing: 0.04em; }
.ds-topbar .ds-topbar__msg { opacity: 0.85; }

.ds-lang { display: inline-flex; gap: 0.5rem; align-items: center; }
.ds-lang a { text-decoration: none; opacity: 0.7; }
.ds-lang a.is-current,
.ds-lang a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.ds-header .wp-block-navigation a { text-decoration: none; }
.ds-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.ds-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	padding: 0.5rem 0;
	min-width: 220px !important;
	box-shadow: 0 12px 32px rgb(9 8 13 / 0.08);
}
.ds-header .wp-block-navigation__submenu-container a { padding: 0.5rem 1.1rem !important; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }

.ds-header__icons > * { margin: 0 !important; }
.ds-header__icons .wc-block-mini-cart__button,
.ds-header__icons .wc-block-customer-account a,
.ds-header .ds-search .wp-block-search__button {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: none;
	border: 0;
	color: var(--wp--preset--color--contrast);
}
.ds-header .ds-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.ds-header__icons .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--on-accent) !important;
	font-weight: 700;
}
.ds-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; }
.ds-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0.55rem 1rem;
}

/* Wordmark (shown until a logo image is uploaded) */
.ds-wordmark {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.65rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	white-space: nowrap;
	direction: ltr;
	unicode-bidi: isolate;
}
.ds-wordmark__i { position: relative; display: inline-block; }
.ds-wordmark__i::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -0.2em;
	width: 0.3em;
	height: 0.3em;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff6d9 0%, #e2c27c 45%, #b8913f 100%);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.ds-footer .ds-footer__brand,
.ds-footer .ds-footer__brand a { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; text-decoration: none; text-transform: lowercase; }

/* Top bar: delivery message in the centre, language and social icons on the right.
   A three-column grid keeps the message centred on the page whatever is on the right. */
.ds-topbar .ds-topbar__msg { opacity: 1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.ds-topbar .ds-topbar__row {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}
.ds-topbar .ds-topbar__row > .ds-topbar__msg { grid-column: 2; text-align: center; }
.ds-topbar .ds-topbar__row > .ds-topbar__end { grid-column: 3; justify-self: end; margin: 0; }
.ds-topbar .ds-social { margin: 0; gap: 0.9rem; }
.ds-topbar .ds-social .wp-social-link { opacity: 0.85; }
.ds-topbar .ds-social .wp-social-link:hover { opacity: 1; color: var(--wp--preset--color--accent) !important; }
.ds-topbar .ds-social .wp-block-social-link-anchor { padding: 0.15rem; }

/* Main row: menu on the left, logo in the centre, account and basket on the right */
.ds-header .ds-header__row {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
}
.ds-header .ds-header__start { justify-self: start; min-width: 0; }
.ds-header .ds-search { margin: 0; margin-inline-start: -11px; position: relative; }
.ds-header .ds-search .wp-block-search__button { margin: 0; }
.ds-header .ds-nav .wp-block-navigation__container { flex-wrap: nowrap; }
/* Search opens as a small box under the icon, so the menu doesn't move */
.ds-header .ds-search .wp-block-search__inside-wrapper { width: auto !important; position: relative; border: 0; padding: 0; }
.ds-header .ds-search .wp-block-search__input {
	position: absolute;
	top: calc(100% + 0.9rem);
	inset-inline-start: 0;
	width: 300px !important;
	max-width: 80vw;
	background: var(--wp--preset--color--base);
	box-shadow: 0 12px 32px rgb(9 8 13 / 0.12);
	z-index: 60;
}
.ds-header .ds-search.wp-block-search__searchfield-hidden .wp-block-search__input { display: none; }
.ds-header .ds-header__logo { justify-self: center; }
.ds-header .ds-header__icons { justify-self: end; }
.ds-header .ds-nav { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.ds-header .ds-header__logo .ds-wordmark { font-size: 2rem; }
.ds-header__icons .wc-block-mini-cart__button { gap: 0.5rem; padding: 0 0.25rem; }
.ds-header__icons .wc-block-mini-cart__amount {
	display: inline !important;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

@media (max-width: 781px) {
	.ds-topbar .ds-topbar__end .ds-social { display: none; }
	.ds-topbar .ds-topbar__row { grid-template-columns: 1fr auto; }
	.ds-topbar .ds-topbar__row > .ds-topbar__msg { grid-column: 1; text-align: start; }
	.ds-topbar .ds-topbar__row > .ds-topbar__end { grid-column: 2; }
	.ds-topbar .ds-topbar__row:not(:has(.ds-lang)) { grid-template-columns: 1fr; }
	.ds-topbar .ds-topbar__row:not(:has(.ds-lang)) > .ds-topbar__msg { text-align: center; }
	.ds-topbar .ds-topbar__end:not(:has(.ds-lang)) { display: none; }
	.ds-header .ds-header__row { gap: 0.75rem; }
	.ds-header .ds-search,
	.ds-header .wp-block-woocommerce-customer-account,
	.ds-header__icons .wc-block-mini-cart__amount { display: none !important; }
	.ds-wordmark,
	.ds-header .ds-header__logo .ds-wordmark { font-size: 1.6rem; }
}

/* --------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------- */
.is-style-eyebrow,
p.is-style-eyebrow,
h2.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0;
}
.ds-chip {
	display: inline-block;
	margin: 0;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ds-link-arrow { margin: 0; font-weight: 600; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; }
.ds-link-arrow a { text-decoration: none; border-bottom: 2px solid var(--wp--preset--color--accent); padding-bottom: 2px; }
.ds-link-arrow a::after { content: " →"; }
html[dir="rtl"] .ds-link-arrow a::after { content: " ←"; }

.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--30);
}
.ds-main { min-height: 50vh; }

/* --------------------------------------------------------------
   Home
   -------------------------------------------------------------- */
.ds-hero h1 { color: inherit; }
.ds-hero .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--on-primary); }
.ds-hero .is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--on-primary); color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--on-primary); }
.ds-hero .ds-btn-accent .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

.ds-hero__feature .wc-block-product-template { margin: 0; }
.ds-hero-card {
	background: var(--wp--preset--color--tile) !important;
	color: var(--wp--preset--color--contrast);
	padding: 1rem !important;
	box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.30);
	max-width: 440px;
	margin-inline: auto;
}
.ds-hero-card li { margin: 0; }
.ds-hero-card a { color: var(--wp--preset--color--contrast) !important; }
.ds-hero-card .ds-hero-card__info { margin-top: 0.75rem; gap: 1rem; }
.ds-hero-card .wp-block-post-title { margin: 0; font-family: var(--wp--preset--font-family--body); font-weight: 500; }
.ds-hero-card .wc-block-components-product-price { white-space: nowrap; }

.ds-designers__list { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; }
.ds-designers__list a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.ds-designers__list a:hover { color: var(--wp--preset--color--primary); }

.ds-tiles { gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20); margin-top: var(--wp--preset--spacing--30); }
.ds-tile { margin: 0; }
.ds-tile__img, .ds-tile__empty { margin: 0; background: var(--wp--preset--color--tile); outline: 1px solid var(--wp--preset--color--line); outline-offset: -1px; }
.ds-tile__img img { width: 100%; height: auto; padding: 8%; box-sizing: border-box; transition: transform .35s ease; }
.ds-tile:hover .ds-tile__img img { transform: scale(1.04); }
.ds-tile__empty { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--surface); }
.ds-tile__empty a { font-family: var(--wp--preset--font-family--heading); font-size: 3rem; color: var(--wp--preset--color--primary); text-decoration: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ds-tile__title { margin: 0.75rem 0 0; font-family: var(--wp--preset--font-family--body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ds-tile__title a { text-decoration: none; }

.ds-why__item { text-align: center; }
.ds-why__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}
.ds-why__icon svg { width: 24px; height: 24px; }
.ds-why__item h3 { margin-top: 1rem; }

/* --------------------------------------------------------------
   Product cards
   -------------------------------------------------------------- */
.ds-cards { gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20) !important; }
.ds-cards > li { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ds-card__media { position: relative; margin: 0 0 0.55rem !important; }
.ds-card__media .wc-block-components-product-image,
.ds-card__media .wp-block-woocommerce-product-image { margin: 0 !important; background: var(--wp--preset--color--tile); outline: 1px solid var(--wp--preset--color--line); outline-offset: -1px; overflow: hidden; }
.ds-card__media img { padding: 7%; box-sizing: border-box; transition: transform .35s ease; }
.ds-cards > li:hover .ds-card__media img { transform: scale(1.04); }
.ds-cards .wp-block-post-title,
.ds-card__title { margin: 0 !important; font-family: var(--wp--preset--font-family--body); font-weight: 400; line-height: 1.35; color: var(--wp--preset--color--muted); }
.ds-cards .wp-block-post-title a { color: inherit; }
.ds-cards .wc-block-components-product-price { margin: 0.15rem 0 0 !important; font-weight: 700; }
.ds-cards li.outofstock .ds-card__media img,
.ds-cards li:has(.ds-badge--sold) .ds-card__media img { opacity: .45; }

.ds-badge,
.ds-field--badge .ds-badge {
	position: absolute;
	top: 0.65rem;
	inset-inline-start: 0.65rem;
	z-index: 2;
	margin: 0;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
}
.ds-badge--sold,
.ds-field--badge .ds-badge--sold { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.ds-field--badge { margin: 0 !important; }

.ds-field { margin-block: 0; }
.ds-designer {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
a.ds-designer:hover { color: var(--wp--preset--color--primary); }
.ds-label {
	display: inline-block;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.ds-field-placeholder { opacity: .6; font-size: 0.85rem; }

/* --------------------------------------------------------------
   Shop
   -------------------------------------------------------------- */
.ds-shop-head .wp-block-query-title { margin: 0; }
.ds-shop-head .wp-block-term-description { color: var(--wp--preset--color--muted); max-width: 65ch; }
.ds-shop__bar { margin-bottom: var(--wp--preset--spacing--30); padding-bottom: 0.9rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.ds-shop__bar .woocommerce-result-count { margin: 0; color: var(--wp--preset--color--muted); }
.ds-shop__bar .woocommerce-ordering { margin: 0; }
.ds-shop__bar select,
.woocommerce-ordering select {
	min-height: 44px;
	padding: 0 2.25rem 0 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}
.ds-shop__filters .wc-block-product-filters { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); }
.ds-shop__filters h3,
.ds-shop__filters .wp-block-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}
.ds-shop__filters .wp-block-woocommerce-product-filter-taxonomy,
.ds-shop__filters .wp-block-woocommerce-product-filter-attribute,
.ds-shop__filters .wp-block-woocommerce-product-filter-price,
.ds-shop__filters .wp-block-woocommerce-product-filter-status {
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.ds-shop__filters .wc-block-product-filter-checkbox-list__label { font-size: 0.95rem; }
.ds-shop__filters input[type="checkbox"] { accent-color: var(--wp--preset--color--primary); }
.ds-shop__filters .wc-block-product-filter-price-slider input[type="range"] { accent-color: var(--wp--preset--color--primary); }
.ds-shop__filters .wc-block-product-filter-removable-chips__chip { background: var(--wp--preset--color--surface); border: 0; border-radius: 999px; }
@media (max-width: 781px) {
	.ds-shop { gap: 0 !important; }
	.ds-shop__filters { flex-basis: 100% !important; }
	.ds-shop__filters .wc-block-product-filters { position: static; }
}

.ds-pagination { margin-top: var(--wp--preset--spacing--50); gap: 0.5rem; }
.ds-pagination a,
.ds-pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 0.75rem;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--wp--preset--color--line); border-radius: 999px;
	text-decoration: none;
}
.ds-pagination .page-numbers.current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }

.woocommerce-breadcrumb,
.wc-block-breadcrumbs { color: var(--wp--preset--color--muted); }
.woocommerce-breadcrumb a { color: var(--wp--preset--color--muted); text-decoration: none; }

/* --------------------------------------------------------------
   Single product
   -------------------------------------------------------------- */
.ds-product__gallery .woocommerce-product-gallery__image,
.ds-product__gallery .flex-viewport { background: var(--wp--preset--color--tile); }
.ds-product__gallery .woocommerce-product-gallery { outline: 1px solid var(--wp--preset--color--line); outline-offset: -1px; }
.ds-product__gallery .flex-control-thumbs { display: flex; gap: 0.5rem; margin: 0.5rem 0 0 !important; padding: 0; }
.ds-product__gallery .flex-control-thumbs li { flex: 0 0 80px; width: 80px !important; background: var(--wp--preset--color--tile); outline: 1px solid var(--wp--preset--color--line); outline-offset: -1px; list-style: none; }
.ds-product__gallery .flex-control-thumbs img { opacity: .55; cursor: pointer; }
.ds-product__gallery .flex-control-thumbs img.flex-active,
.ds-product__gallery .flex-control-thumbs img:hover { opacity: 1; }
@media (min-width: 782px) {
	.ds-product__summary { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 120px); align-self: flex-start; }
}
.ds-product__summary .wp-block-post-title { margin: 0; }
.ds-product__summary .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.ds-product__summary .wp-block-post-excerpt p { margin: 0; }
.ds-product__summary .wc-block-components-product-price,
.ds-product__summary .wp-block-woocommerce-product-price { font-family: var(--wp--preset--font-family--heading); }

.ds-condition {
	background: var(--wp--preset--color--surface);
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.ds-condition__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: var(--wp--preset--font-size--small); }
.ds-condition__title { text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--wp--preset--font-size--x-small); }
.ds-condition__guide { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--primary); }
.ds-condition__scale { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.35rem; }
.ds-condition__step { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; font-size: 0.72rem; color: var(--wp--preset--color--muted); line-height: 1.25; }
.ds-condition__bar { height: 6px; border-radius: 999px; background: var(--wp--preset--color--line); }
.ds-condition__step.is-current { color: var(--wp--preset--color--contrast); font-weight: 700; }
.ds-condition__step.is-current .ds-condition__bar { background: var(--wp--preset--color--accent); }
.ds-condition__desc { margin: 0; font-size: var(--wp--preset--font-size--small); }

.ds-add-to-cart form.cart { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0; }
.ds-add-to-cart form.cart .quantity { display: none; }
.ds-add-to-cart .single_add_to_cart_button,
.ds-add-to-cart button[type="submit"] {
	flex: 1 1 100%;
	min-height: 56px;
	font-size: 0.95rem !important;
}
.ds-add-to-cart .stock { margin: 0 0 0.5rem; font-weight: 600; }
.ds-add-to-cart .stock.out-of-stock { color: var(--wp--preset--color--contrast); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--wp--preset--font-size--small); }
.ds-add-to-cart .stock.in-stock { display: none; }

.ds-whatsapp {
	display: flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 52px;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--button-radius);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.ds-whatsapp:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

.ds-promises { list-style: none; padding: 0; margin: 0.5rem 0 0; border-top: 1px solid var(--wp--preset--color--line); }
.ds-promises li { padding: 0.7rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

.ds-product__details { margin-top: var(--wp--preset--spacing--50) !important; }
.ds-product__details .wc-tabs { border-bottom: 1px solid var(--wp--preset--color--line) !important; }
.ds-product__details .wc-tabs li a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--wp--preset--font-size--small); }
.ds-product__details .wc-tabs li.active a { color: var(--wp--preset--color--primary) !important; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { border-bottom: 1px solid var(--wp--preset--color--line) !important; background: transparent !important; padding: 0.7rem 0 !important; font-style: normal; text-align: start; }
.woocommerce table.shop_attributes th { color: var(--wp--preset--color--muted); font-weight: 400; width: 160px; }
.woocommerce table.shop_attributes td p { margin: 0; }

/* --------------------------------------------------------------
   Cart, checkout, forms
   -------------------------------------------------------------- */
.ds-wc-page .wp-block-post-title { margin-bottom: var(--wp--preset--spacing--30); }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--on-primary) !important;
	border-radius: var(--wp--custom--button-radius) !important;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	min-height: 56px;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover { background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select select { border-radius: 0 !important; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-inline-end: var(--wp--preset--spacing--30); }

/* --------------------------------------------------------------
   Free delivery progress bar
   -------------------------------------------------------------- */
.ds-fdb {
	--ds-fdb-fill: var(--wp--preset--color--accent);
	--ds-fdb-done: var(--wp--preset--color--primary);
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 1rem 1.15rem 1.15rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border-inline-start: 4px solid var(--ds-fdb-fill);
	transition: border-color .3s ease;
}
.ds-fdb[hidden] { display: none; }
.ds-fdb.is-done { border-inline-start-color: var(--ds-fdb-done); }
.ds-fdb__head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.ds-fdb__icon { display: inline-flex; color: var(--wp--preset--color--primary); flex: 0 0 auto; }
.ds-fdb__msg { margin: 0; flex: 1 1 14rem; font-size: var(--wp--preset--font-size--small); line-height: 1.45; }
.ds-fdb__msg [hidden] { display: none !important; }
.ds-fdb__amount { font-weight: 700; color: var(--wp--preset--color--primary); white-space: nowrap; }
.ds-fdb__done { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--wp--preset--color--primary); }
.ds-fdb__cta {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid var(--ds-fdb-fill);
	white-space: nowrap;
}
.ds-fdb__cta[hidden] { display: none; }
.ds-fdb__track {
	position: relative;
	height: 8px;
	margin-top: 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--line);
	overflow: hidden;
}
.ds-fdb__fill {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	border-radius: inherit;
	background: var(--ds-fdb-fill);
	transition: width .6s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.ds-fdb.is-done .ds-fdb__fill { background: var(--ds-fdb-done); }
.ds-fdb--checkout { margin-bottom: var(--wp--preset--spacing--40); }
.ds-fdb--mini-cart { margin: 0 0 1rem; padding: 0.85rem 1rem; }
.ds-fdb--mini-cart .ds-fdb__icon { display: none; }

/* Sitewide bar: lives inside the sticky header (.ds-site-header, z-index 50), so it sticks
   with the header and can't slide underneath it. Opens with a smooth slide-down. */
.ds-gfdb {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
	background: var(--wp--preset--color--surface);
}
.ds-gfdb.is-open { grid-template-rows: 1fr; opacity: 1; box-shadow: inset 0 -1px 0 var(--wp--preset--color--line); }
.ds-gfdb.no-anim { transition: none; }
.ds-gfdb__inner { min-height: 0; overflow: hidden; }
.ds-gfdb:not(.is-open) .ds-gfdb__inner { visibility: hidden; }
.ds-fdb--global {
	display: flex;
	align-items: center;
	gap: 0.6rem 1.5rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0.55rem var(--wp--style--root--padding-right, 1.5rem) 0.6rem var(--wp--style--root--padding-left, 1.5rem);
	background: transparent;
	border: 0;
}
.ds-fdb--global .ds-fdb__head { flex: 0 1 auto; flex-wrap: nowrap; gap: 0.6rem 1rem; }
.ds-fdb--global .ds-fdb__msg { flex: 0 1 auto; font-size: 0.85rem; }
.ds-fdb--global .ds-fdb__icon svg { width: 20px; height: 20px; }
.ds-fdb--global .ds-fdb__track { flex: 1 1 40%; margin-top: 0; height: 6px; min-width: 120px; }
@media (max-width: 781px) {
	.ds-fdb--global { flex-direction: column; align-items: stretch; gap: 0.4rem; padding-top: 0.5rem; padding-bottom: 0.55rem; }
	.ds-fdb--global .ds-fdb__icon,
	.ds-fdb--global .ds-fdb__cta { display: none; }
	.ds-fdb--global .ds-fdb__msg { font-size: 0.8rem; text-align: center; }
	.ds-fdb--global .ds-fdb__track { flex: 0 0 auto; width: 100%; height: 4px; }
}

/* --------------------------------------------------------------
   Out of stock: Notify me + View similar
   -------------------------------------------------------------- */
.ds-oos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0.25rem 0 0;
}
.ds-oos .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding-inline: 1rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.25;
}
/* Secondary: outline in ink, fills on hover */
.ds-oos .ds-oos__similar.wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--contrast);
}
.ds-oos .ds-oos__similar.wp-element-button:hover,
.ds-oos .ds-oos__similar.wp-element-button:focus-visible {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
@media (max-width: 480px) {
	.ds-oos { grid-template-columns: 1fr; }
}
/* Leave room for the sticky header when "View similar" scrolls to the section */
.ds-related { scroll-margin-top: 180px; }
.ds-related:focus { outline: none; }

/* Notify me dialog */
.ds-notify {
	width: min(92vw, 460px);
	max-height: calc(100dvh - 2rem);
	margin: auto !important;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 24px 64px rgb(9 8 13 / 0.25);
}
.ds-notify::backdrop { background: rgb(11 11 11 / 0.55); }
.ds-notify[open] { animation: ds-notify-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes ds-notify-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ds-notify__form { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem 1.75rem 1.75rem; border-top: 4px solid var(--wp--preset--color--accent); }
.ds-notify__close { position: absolute; top: 0.5rem; inset-inline-end: 0.5rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.75rem; line-height: 1; color: var(--wp--preset--color--contrast); cursor: pointer; }
.ds-notify__title { margin: 0; font-size: var(--wp--preset--font-size--large); line-height: 1.2; padding-inline-end: 2rem; }
.ds-notify__fields { display: flex; flex-direction: column; gap: 0.75rem; }
.ds-notify__fields[hidden] { display: none; }
.ds-notify__text, .ds-notify__small { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ds-notify__small { font-size: var(--wp--preset--font-size--x-small); }
.ds-notify__label { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ds-notify__input { width: 100%; min-height: 50px; padding: 0.75rem 1rem; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); color: inherit; font: inherit; box-sizing: border-box; }
.ds-notify__input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: transparent; }
.ds-notify__submit.wp-element-button { min-height: 52px; cursor: pointer; }
.ds-notify__submit.is-loading { opacity: 0.6; pointer-events: none; }
.ds-notify__msg { margin: 0; padding: 0.9rem 1rem; background: var(--wp--preset--color--surface); border-inline-start: 4px solid var(--wp--preset--color--accent); font-weight: 600; }
.ds-notify__msg.is-error { border-inline-start-color: #B3261E; }
.ds-notify__msg[hidden] { display: none; }
/* Browsers without <dialog>: show the form inline under the buttons */
.ds-notify:not([open]) { display: none; }
@supports not selector(dialog::backdrop) { .ds-notify { display: block; position: static; width: auto; margin-top: 1rem; } }

/* --------------------------------------------------------------
   Sticky Add to bag bar
   -------------------------------------------------------------- */
.ds-satc {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-top: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 -10px 30px rgb(9 8 13 / 0.10);
	padding: 0.6rem clamp(0.75rem, 4vw, 1.25rem) calc(0.6rem + env(safe-area-inset-bottom, 0px));
	transform: translateY(110%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	display: none;
}
.ds-satc.is-visible { transform: translateY(0); }
.ds-satc__inner { display: flex; align-items: center; gap: 0.75rem; max-width: 1320px; margin: 0 auto; }
.ds-satc__img { width: 52px !important; height: 52px !important; object-fit: contain; background: var(--wp--preset--color--tile); outline: 1px solid var(--wp--preset--color--line); outline-offset: -1px; flex: 0 0 auto; padding: 3px; box-sizing: border-box; }
.ds-satc__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.ds-satc__designer { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ds-satc__title { font-size: 0.82rem; color: var(--wp--preset--color--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-satc__price { font-size: 0.95rem; font-weight: 700; }
.ds-satc__price del { font-weight: 400; color: var(--wp--preset--color--muted); }
.ds-satc__button.wp-element-button {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0.8rem 1.2rem;
	font-size: 0.8rem;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
}
.ds-satc__button.is-loading { color: transparent !important; pointer-events: none; }
.ds-satc__button.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border: 2px solid var(--wp--preset--color--on-primary);
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: ds-spin .7s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

@media (max-width: 781px) {
	.ds-satc { display: block; }
	body.has-ds-satc { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 782px) {
	.ds-satc--desktop { display: block; }
	.ds-satc--desktop .ds-satc__img { width: 60px !important; height: 60px !important; }
	body.has-ds-satc:has(.ds-satc--desktop) { padding-bottom: 84px; }
}

/* --------------------------------------------------------------
   Footer and newsletter
   -------------------------------------------------------------- */
.ds-footer a { text-decoration: none; }
.ds-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ds-footer__heading {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: inherit;
	margin-bottom: 1rem;
}
.ds-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: var(--wp--preset--font-size--small); }
.ds-footer__links a { color: rgb(255 255 255 / 0.8); }
.ds-footer p { margin: 0; }

.ds-newsletter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; max-width: 26rem; }
.ds-newsletter input[type="email"] {
	flex: 1 1 12rem;
	min-height: 48px;
	padding: 0 1.1rem;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: var(--wp--custom--button-radius);
	background: transparent;
	color: inherit;
	font: inherit;
}
.ds-newsletter input[type="email"]::placeholder { color: rgb(255 255 255 / 0.55); }
.ds-newsletter .wp-element-button { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); min-height: 48px; cursor: pointer; }
.ds-newsletter .wp-element-button:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.ds-newsletter__msg { flex-basis: 100%; font-size: var(--wp--preset--font-size--small); margin: 0.25rem 0 0; }
.ds-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------
   Arabic (right to left)
   -------------------------------------------------------------- */
html[dir="rtl"] body,
:root:lang(ar) body {
	/* Arabic letters use IBM Plex Sans Arabic; any Latin words (brand names) keep the Latin fonts. */
	--wp--preset--font-family--heading: "IBM Plex Sans Arabic", Jost, Unbounded, Tahoma, sans-serif;
	--wp--preset--font-family--body: "IBM Plex Sans Arabic", Jost, "DM Sans", Tahoma, sans-serif;
}
/* Arabic letters must join: no letter-spacing or forced capitals (the Latin wordmark keeps its look). */
html[dir="rtl"] body *:not(.ds-wordmark):not(.ds-wordmark *) {
	letter-spacing: 0 !important;
	text-transform: none !important;
}
html[dir="rtl"] .ds-wordmark { font-family: Jost, Unbounded, sans-serif; }

/* --------------------------------------------------------------
   Motion
   -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ds-satc, .ds-fdb__fill, .ds-gfdb, .ds-notify[open], .ds-card__media img, .ds-tile__img img { transition: none !important; }
	.ds-notify[open] { animation: none; }
	.ds-satc__button.is-loading::after { animation-duration: 2s; }
}

/* Visually hidden helper */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Product page fixes */
.ds-product__gallery .woocommerce-product-gallery,
.ds-product__gallery .images { width: 100% !important; float: none !important; margin: 0 !important; }
.ds-product__gallery .woocommerce-product-gallery__trigger { inset-inline-end: 1rem; inset-inline-start: auto; top: 1rem; background: var(--wp--preset--color--base); border-radius: 50%; }
.ds-product__details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ds-related:not(:has(.wc-block-product)):not(:has(li)) { display: none; }

/* Mobile header: menu button left, logo centre, basket right */
@media (max-width: 781px) {
	.ds-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-inline-start: -10px; }
}

/* Tablet (600–1023px): use the menu button like on phones, so the header stays on one line */
@media (min-width: 600px) and (max-width: 1023px) {
	.ds-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ds-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.ds-header .wp-block-navigation__responsive-container.is-menu-open { display: flex; }
}
/* Inside the open mobile menu, show any submenu inline rather than as a dropdown box */
.ds-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	border: 0 !important;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
	height: auto !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0.25rem 0 0.5rem !important;
	background: transparent !important;
}
.ds-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }

/* --------------------------------------------------------------
   Product page: version 1 details
   -------------------------------------------------------------- */
.ds-cards .ds-field--label .ds-label { color: #8C6A2E; font-size: 0.68rem; }
.ds-instalments { margin: 0; color: var(--wp--preset--color--muted); }
.ds-notes { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); line-height: 1.65; }
.ds-notes p { margin: 0 0 0.6rem; }
.ds-notes p:last-child { margin-bottom: 0; }
.ds-summary-heading {
	margin: var(--wp--preset--spacing--20) 0 0 !important;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.ds-specs table,
.ds-specs .wp-block-woocommerce-product-specifications,
table.wp-block-woocommerce-product-specifications { width: 100%; border-collapse: collapse; border: 0; font-size: var(--wp--preset--font-size--small); }
.ds-specs th,
.ds-specs td,
.wp-block-woocommerce-product-specifications th,
.wp-block-woocommerce-product-specifications td {
	border: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line) !important;
	padding: 0.6rem 0 !important;
	text-align: start;
	background: transparent !important;
	vertical-align: top;
}
.ds-specs th,
.wp-block-woocommerce-product-specifications th { width: 40%; font-weight: 400; color: var(--wp--preset--color--muted); }
.ds-accordion { border-top: 1px solid var(--wp--preset--color--line); }
.ds-accordion .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.9rem 0; margin: 0; }
.ds-accordion .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ds-accordion .wp-block-details summary::-webkit-details-marker { display: none; }
.ds-accordion .wp-block-details summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; line-height: 1; }
.ds-accordion .wp-block-details[open] summary::after { content: "−"; }
.ds-accordion .wp-block-details p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin: 0.75rem 0 0; }
.ds-about-bag .wp-block-woocommerce-product-description { color: var(--wp--preset--color--contrast); }
.ds-product__gallery .wp-block-woocommerce-product-image-gallery { max-width: none !important; width: 100% !important; }
.wp-block-woocommerce-product-specifications td p,
.wp-block-woocommerce-product-specifications th p { margin: 0 !important; }
