/*
Theme Name: Armada Couture
Theme URI: https://armadaacouture.com
Author: WP-Flash | SerpZenith
Description: Bespoke WooCommerce theme for Armada Couture, handmade made-to-order occasion dresses. Built with WP-Flash v4.0. Works in English and Arabic (RTL).
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
WC requires at least: 8.0
License: Private
Text Domain: armada
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg:        oklch(0.985 0.002 20);
	--surface:   oklch(0.955 0.006 20);
	--line:      oklch(0.88 0.006 20);
	--ink:       oklch(0.21 0.012 20);
	--ink-2:     oklch(0.43 0.012 20);
	--wine:      oklch(0.34 0.10 18);
	--wine-deep: oklch(0.27 0.08 18);
	--on-wine:   oklch(0.95 0.015 18);
	--on-wine-2: oklch(0.82 0.03 18);
	--sale:      oklch(0.45 0.13 25);

	--f-display: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: 0.8125rem;
	--step-0:  1rem;
	--step-1:  1.1875rem;
	--step-2:  clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	--step-3:  clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
	--step-4:  clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);

	--gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
	--max:    1440px;
	--radius: 2px;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--z-header: 20;
	--z-drawer: 40;
	--z-dialog: 50;
	--z-toast:  60;
}
:lang(ar) {
	--f-display: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
	--f-body:    "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--step-0)/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--wine); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.4; text-transform: none; font-weight: 500; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--wine); color: var(--on-wine); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: var(--z-toast); background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; }
.skip-link:focus { top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.75em; }
.prose ul, .prose ol { padding-inline-start: 1.25em; }
.label {
	font-size: var(--step--1);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--ink-2);
}
:lang(ar) .label { letter-spacing: 0; text-transform: none; }
.muted { color: var(--ink-2); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .button, button.button, a.button, .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 3.25rem;
	padding: 0 1.75rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--bg);
	font-weight: 500;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn:hover, .button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--light { background: var(--on-wine); color: var(--wine-deep); border-color: var(--on-wine); }
.btn--light:hover { background: transparent; color: var(--on-wine); border-color: var(--on-wine); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link-arrow { display: inline-flex; gap: 0.5em; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15em; }
.link-arrow::after { content: "\2192"; transition: transform 0.4s var(--ease-out); }
[dir="rtl"] .link-arrow::after { content: "\2190"; }
.link-arrow:hover::after { transform: translateX(0.25em); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-0.25em); }

/* ==========================================================================
   Header
   ========================================================================== */
.announce { background: var(--wine-deep); color: var(--on-wine); font-size: var(--step--1); text-align: center; padding: 0.55rem var(--gutter); }
.announce a { color: inherit; }
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: color-mix(in oklch, var(--bg) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "toggle brand tools" "nav nav nav"; align-items: center; column-gap: 1rem; padding-top: 0.9rem; }
.menu-toggle { grid-area: toggle; }
.brand { grid-area: brand; text-align: center; }
.header-tools { grid-area: tools; }
.nav-primary { grid-area: nav; display: flex; justify-content: center; padding-block: 0.55rem 0.35rem; }
.brand small { transition: opacity 0.3s, max-height 0.3s; max-height: 1rem; }
.site-header.is-stuck .brand small { opacity: 0; max-height: 0; }
.brand { font-family: "Jost", sans-serif; font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.45rem); letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; font-weight: 500; }
.brand:hover { color: var(--ink); }
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.4em; text-align: center; color: var(--ink-2); margin-top: 0.15rem; }
.nav-primary { min-width: 0; }
.nav-primary ul { display: flex; gap: clamp(0.9rem, 1.6vw, 1.75rem); list-style: none; margin: 0; padding: 0; }

.nav-primary a { white-space: nowrap; text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 0.5rem; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.45s var(--ease-out); }
[dir="rtl"] .nav-primary a { background-position: 100% 100%; }
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current-product_cat-ancestor > a { color: var(--ink); background-size: 100% 1px; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 0.25rem; }
.icon-btn { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; text-decoration: none; position: relative; border-radius: var(--radius); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.icon-btn:hover { color: var(--wine); }
.bag-count { position: absolute; top: 0.3rem; inset-inline-end: 0.2rem; min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; border-radius: 1rem; background: var(--wine); color: var(--on-wine); font-size: 0.6875rem; line-height: 1.1rem; text-align: center; font-weight: 600; }
.bag-count:empty, .bag-count[data-count="0"] { display: none; }
.lang-switch { font-size: var(--step--1); text-decoration: none; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); margin-inline-end: 0.35rem; }
.menu-toggle { display: none; }

.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: oklch(0.2 0.01 20 / 0.45); animation: fade 0.3s var(--ease-out); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 24rem); background: var(--bg); padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; animation: slide-in 0.45s var(--ease-out); }
[dir="rtl"] .drawer__panel { animation-name: slide-in-rtl; }
.drawer__panel ul { list-style: none; margin: 2rem 0; padding: 0; }
.drawer__panel li a { display: block; font-size: 1.05rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 0.4rem 0; }
.drawer__close { margin-inline-start: -0.6rem; }

@media (max-width: 960px) {
	.nav-primary { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "toggle brand tools"; gap: 0.25rem; padding-block: 0.6rem; }
	.brand { text-align: center; letter-spacing: 0.1em; font-size: 1.05rem; }
	.header-tools .icon-btn[href*="account"] { display: none; }
	.header-tools .lang-switch { display: none; }
}

/* ==========================================================================
   Home
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(88vh, 54rem); border-bottom: 1px solid var(--line); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: clamp(2rem, 5vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 5.5rem); }
.hero__copy h1 { margin: 0; max-width: 11ch; }
.hero__copy p { font-size: var(--step-1); color: var(--ink-2); max-width: 34ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero__media { position: relative; overflow: hidden; background: var(--surface); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; animation: unveil 1.6s var(--ease-out) both; }
.hero__caption { position: absolute; inset-inline-start: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); bottom: 1.25rem; background: var(--bg); padding: 0.6rem 0.9rem; font-size: var(--step--1); text-decoration: none; }
.hero__caption:hover { color: var(--wine); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: var(--step--1); color: var(--ink-2); }
.hero__facts strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { order: -1; aspect-ratio: 4 / 5; max-height: 78vh; }
	.hero__copy { padding-top: 2rem; }
}

.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* Collections index: a typographic list with a following preview image */
.index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: idx; }
.index__item a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.5s var(--ease-out), color 0.3s; }
.index__item a:hover, .index__item a:focus-visible { padding-inline-start: 1rem; color: var(--wine); }
.index__name { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.1; }
.index__count { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; }
.index__preview { position: sticky; top: calc(var(--header-h, 6.5rem) + 1rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.index__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out); }
.index__preview img.is-active { opacity: 1; transform: none; }
@media (max-width: 860px) {
	.index { grid-template-columns: 1fr; }
	.index__preview { display: none; }
}

/* Made to order band (drenched) */
.band { background: var(--wine); color: var(--on-wine); }
.band a { color: inherit; }
.band h2 { color: var(--on-wine); }
.band .muted { color: var(--on-wine-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid color-mix(in oklch, var(--on-wine) 30%, transparent); }
.steps li { counter-increment: step; padding: 1.5rem 1.5rem 0 0; }
[dir="rtl"] .steps li { padding: 1.5rem 0 0 1.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 1.75rem; font-weight: 300; letter-spacing: 0.1em; line-height: 1; margin-bottom: 1rem; color: var(--on-wine-2); }
.steps h3 { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.12em; margin-bottom: 0.5rem; color: var(--on-wine); }
.steps p { color: var(--on-wine-2); font-size: 0.9375rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Store visit split */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.visit__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 1.5rem 0 2rem; }
.visit dt { color: var(--ink-2); font-size: var(--step--1); padding-top: 0.15rem; }
.visit dd { margin: 0; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Full-width hero */
.hero-wide { position: relative; min-height: min(92vh, 58rem); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-wide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: settle 1.8s var(--ease-out) both; }
.hero-wide__shade { position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.15 0.01 20 / 0.62) 0%, oklch(0.15 0.01 20 / 0.18) 45%, transparent 70%); }
.hero-wide__inner { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem); display: grid; gap: 1.1rem; justify-items: start; animation: rise 1s var(--ease-out) 0.25s both; }
.hero-wide h1 { color: #fff; margin: 0; max-width: 16ch; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.75rem); letter-spacing: 0.16em; line-height: 1.15; }
.hero-wide p { margin: 0; font-size: var(--step-1); max-width: 38ch; color: oklch(0.95 0.005 20); }
.hero-wide .hero__actions { margin-top: 0.6rem; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.8); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 760px) { .hero-wide { min-height: 82svh; } .hero-wide__img { object-position: 60% 30%; } }

/* Banner mode: the photo carries its own typography, buttons sit under it */
.hero-wide--banner { align-items: flex-end; background: var(--surface); }
.hero-wide--banner .hero-wide__inner { padding-block: clamp(1.5rem, 5vw, 4rem); }
.hero-wide--banner .btn--light { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-wide--banner .btn--light:hover { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
.hero-wide--banner .btn--outline-light { color: var(--ink); border-color: var(--ink); background: rgb(255 255 255 / 0.55); backdrop-filter: blur(4px); }
.hero-wide--banner .btn--outline-light:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) {
	.hero-wide--banner { min-height: 0; aspect-ratio: auto; display: block; }
	.hero-wide--banner .hero-wide__img { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 22% center; animation: none; }
	.hero-wide--banner .hero-wide__inner { padding-block: 1.25rem; justify-items: stretch; }
	.hero-wide--banner .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.hero-wide--banner .btn { padding-inline: 0.75rem; }
}

/* Statement strip (single USP) */
.statement { border-bottom: 1px solid var(--line); }
.statement__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 3rem; padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.statement__title { margin: 0; font-size: var(--step-2); letter-spacing: 0.2em; text-transform: uppercase; }
:lang(ar) .statement__title { letter-spacing: 0; }
.statement__text { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .statement__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Shop by occasion: image mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(15rem, 22vw)); gap: clamp(0.5rem, 1vw, 1rem); }
.mosaic__tile { position: relative; overflow: hidden; display: block; background: var(--surface); color: #fff; text-decoration: none; }
.mosaic__tile--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__tile--2 { grid-column: 3 / 5; grid-row: 1; }
.mosaic__tile--3 { grid-column: 3; grid-row: 2; }
.mosaic__tile--4 { grid-column: 4; grid-row: 2; }
.mosaic__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.4s var(--ease-out); }
.mosaic__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.15 0.01 20 / 0.55), transparent 55%); }
.mosaic__label { position: absolute; z-index: 1; inset-inline: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); display: grid; gap: 0.4rem; }
.mosaic__name { font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem); letter-spacing: 0.18em; text-transform: uppercase; }
.mosaic__cta { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.35em; }
:lang(ar) .mosaic__name, :lang(ar) .mosaic__cta { letter-spacing: 0; text-transform: none; }
.mosaic__tile:hover { color: #fff; }
@media (hover: hover) { .mosaic__tile:hover img { transform: scale(1.04); } }
@media (max-width: 760px) {
	.mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
	.mosaic__tile--1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
	.mosaic__tile--2 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }
	.mosaic__tile--3, .mosaic__tile--4 { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 4; }
}
.chips--center { justify-content: center; flex-wrap: wrap; margin-top: clamp(1.5rem, 3vw, 2.25rem); -webkit-mask-image: none; mask-image: none; padding: 0; }

/* Instagram */
.instagram { border-top: 1px solid var(--line); }
.instagram__feed { min-height: 4rem; }

/* ==========================================================================
   Product grid + card
   ========================================================================== */
ul.products, .products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 3rem) clamp(0.75rem, 1.5vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.products::before, ul.products::after { content: none !important; }
@media (max-width: 1100px) { ul.products, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { ul.products, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; padding: 0; }

.card { position: relative; display: flex; flex-direction: column; gap: 0.85rem; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: opacity 0.7s var(--ease-out), transform 1.4s var(--ease-out); }
.card__media .card__alt { opacity: 0; }
@media (hover: hover) {
	.card:hover .card__media img { transform: scale(1.035); }
	.card:hover .card__media .card__alt { opacity: 1; }
}
.card__flag { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; background: var(--bg); padding: 0.25rem 0.55rem; font-size: 0.75rem; font-weight: 500; }
.card__flag--sale { background: var(--wine); color: var(--on-wine); }
.card__body { display: grid; gap: 0.25rem; }
.card__title { font-family: var(--f-body); font-size: 0.9375rem; font-weight: 400; line-height: 1.4; margin: 0; letter-spacing: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__price, .price { font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price del { color: var(--ink-2); font-weight: 400; margin-inline-end: 0.4em; }
.price ins { text-decoration: none; color: var(--sale); }

/* Feature tile: every 7th card spans 2 columns on wide screens for editorial rhythm */
@media (min-width: 1101px) {
	.products-grid--editorial > li:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
	.products-grid--editorial > li:nth-child(7n + 1) .card__media { aspect-ratio: auto; flex: 1; min-height: 34rem; }
}

/* ==========================================================================
   Archive
   ========================================================================== */
.archive-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.archive-head h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); }
.archive-intro { color: var(--ink-2); max-width: 60ch; }
.archive-intro .term-description { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.archive-intro.is-open .term-description, .archive-intro.is-short .term-description { max-height: none; -webkit-mask-image: none; mask-image: none; }
.archive-intro.is-short button { display: none; }
.archive-intro button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--ink); font-size: var(--step--1); }
@media (max-width: 860px) { .archive-head { grid-template-columns: 1fr; } }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; border-block: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); position: sticky; top: var(--header-h, 6.5rem); background: var(--bg); z-index: 5; }
.chips { flex: 1 1 0; min-width: 0; max-width: 100%; -webkit-mask-image: linear-gradient(to var(--fade-dir, right), #000 88%, transparent); mask-image: linear-gradient(to var(--fade-dir, right), #000 88%, transparent); padding-inline-end: 1.5rem; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { display: inline-block; white-space: nowrap; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--step--1); transition: border-color 0.3s, background 0.3s; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.woocommerce-ordering select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23333'/%3E%3C/svg%3E") no-repeat right 0.25rem center; padding: 0.4rem 1.5rem 0.4rem 0.25rem; font-size: var(--step--1); cursor: pointer; }
[dir="rtl"] .woocommerce-ordering select { background-position: left 0.25rem center; padding: 0.4rem 0.25rem 0.4rem 1.5rem; }
.woocommerce-result-count { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
.toolbar__right { flex: none; display: flex; align-items: center; gap: 1.25rem; }
.woocommerce-ordering { margin: 0; }
.woocommerce-pagination { margin-top: 3rem; }
.woocommerce-pagination ul { display: flex; gap: 0.25rem; justify-content: center; list-style: none; padding: 0; border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; text-decoration: none; border: 1px solid var(--line); }
.woocommerce-pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ==========================================================================
   Single product
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 5rem); padding-block: clamp(1rem, 2vw, 2rem) clamp(3rem, 6vw, 6rem); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pdp__gallery figure { margin: 0; background: var(--surface); aspect-ratio: 3 / 4; overflow: hidden; }
.pdp__gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp__gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.pdp__gallery figure:only-child { aspect-ratio: 4 / 5; }
.pdp__gallery figure:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp__panel { position: sticky; top: calc(var(--header-h, 6.5rem) + 1rem); display: grid; gap: 1.25rem; }
.crumbs { font-size: var(--step--1); color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp__title { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); letter-spacing: 0.1em; line-height: 1.4; margin: 0; }
.pdp__price { font-size: var(--step-1); }
.pdp__short { color: var(--ink-2); }
.pdp__short p:last-child { margin: 0; }
.pdp__note { display: flex; gap: 0.75rem; padding: 1rem 1.1rem; background: var(--surface); font-size: 0.9375rem; }
.pdp__note svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--wine); }
.pdp__note p { margin: 0; }

/* Size chips (progressively replace the WooCommerce select) */
.variations { width: 100%; border: 0; margin: 0 0 1rem; }
.variations tr, .variations td, .variations th { display: block; padding: 0; text-align: start; }
.variations th.label, .variations .label { margin-bottom: 0.6rem; display: flex; justify-content: space-between; align-items: baseline; }
.variations .label label { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 0.9375rem; }
.size-guide-link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font-size: var(--step--1); color: var(--ink-2); }
.size-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-chips button { min-width: 3.25rem; height: 3rem; padding: 0 0.9rem; border: 1px solid var(--line); background: var(--bg); cursor: pointer; border-radius: var(--radius); font-variant-numeric: tabular-nums; transition: border-color 0.25s, background 0.25s; }
.size-chips button:hover { border-color: var(--ink); }
.size-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.has-chips select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.reset_variations { font-size: var(--step--1); margin-top: 0.5rem; display: inline-block; }
.single_variation_wrap .woocommerce-variation-price { margin-bottom: 0.75rem; }
form.cart { display: grid; gap: 0.75rem; }
form.cart .quantity { display: none; }
.woocommerce-variation-add-to-cart { display: grid; gap: 0.75rem; }
.single_add_to_cart_button { width: 100%; }
.single_add_to_cart_button.disabled { opacity: 0.45; cursor: not-allowed; }
.btn-whatsapp { width: 100%; background: transparent; color: var(--ink); }
.btn-whatsapp:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-weight: 500; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--f-body); font-size: 1.25rem; font-weight: 300; transition: transform 0.4s var(--ease-out); }
.details details[open] summary::after { transform: rotate(45deg); }
.details .details__body { padding-bottom: 1.25rem; color: var(--ink-2); font-size: 0.9375rem; }
.details .details__body h2, .details .details__body h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 1.25em 0 0.4em; letter-spacing: 0; }
.details .details__body ul { padding-inline-start: 1.1em; }

@media (max-width: 900px) {
	.pdp { grid-template-columns: 1fr; }
	.pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.25rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
	.pdp__gallery::-webkit-scrollbar { display: none; }
	.pdp__gallery figure, .pdp__gallery figure:first-child { flex: 0 0 88%; scroll-snap-align: start; aspect-ratio: 3 / 4; }
	.pdp__gallery figure:only-child { flex-basis: 100%; }
	.pdp__panel { position: static; }
}

.related-wrap { border-top: 1px solid var(--line); }
.related-wrap > h2, .related.products > h2 { font-size: var(--step-3); margin-bottom: 2rem; }

/* Size guide dialog */
dialog.sheet { border: 0; padding: 0; width: min(46rem, 100vw - 2rem); max-height: 88vh; background: var(--bg); color: var(--ink); border-radius: var(--radius); }
dialog.sheet::backdrop { background: oklch(0.2 0.01 20 / 0.5); }
dialog.sheet[open] { animation: rise 0.45s var(--ease-out); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-size: var(--step-2); margin: 0; }
.sheet__body { padding: 1.5rem; overflow: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: center; }
.size-table thead th { font-weight: 600; font-size: var(--step--1); }
.table-scroll { overflow-x: auto; }

/* ==========================================================================
   Pages, notices, cart, checkout, account
   ========================================================================== */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-head h1 { margin: 0; font-size: var(--step-3); }
.page-body { padding-bottom: clamp(3rem, 6vw, 6rem); }
.page-body--wide { max-width: none; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.woocommerce-error { border-color: var(--sale); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 2.5rem; padding: 0 1rem; order: 2; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select, .select2-container .select2-selection--single {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
label { font-size: 0.9375rem; }
.woocommerce form .form-row { margin: 0 0 1rem; }
.woocommerce form .form-row label { display: block; margin-bottom: 0.35rem; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 1rem 0.5rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.woocommerce table.shop_table img { width: 5rem; }
.wc-block-cart, .wc-block-checkout { font-family: var(--f-body); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--f-display) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Prose extras: FAQ accordions, embeds, buttons inside page content */
.prose details.faq { border-bottom: 1px solid var(--line); }
.prose details.faq:first-of-type { border-top: 1px solid var(--line); }
.prose details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 500; font-size: var(--step-1); }
.prose details.faq summary::-webkit-details-marker { display: none; }
.prose details.faq summary::after { content: "+"; font-weight: 300; transition: transform 0.4s var(--ease-out); }
.prose details.faq[open] summary::after { transform: rotate(45deg); }
.prose details.faq p { color: var(--ink-2); padding-bottom: 1.1rem; margin: 0; }
.prose iframe { width: 100%; max-width: 100%; border: 0; margin-block: 1rem 2rem; background: var(--surface); }
.prose .button { margin-top: 0.25rem; }
.wpcf7 form { display: grid; gap: 1rem; max-width: 40rem; }
.wpcf7 input[type="submit"] { width: auto; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); min-height: 3.25rem; padding: 0 1.75rem; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--wine); border-color: var(--wine); }

/* Checkout payment list */
.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.wc_payment_methods > li { border: 1px solid var(--line); padding: 0.9rem 1rem; }
.wc_payment_methods label { font-weight: 500; }
.payment_box { padding-top: 0.75rem; color: var(--ink-2); font-size: 0.9375rem; }
#place_order { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--wine-deep); color: var(--on-wine-2); padding-top: clamp(3.5rem, 7vw, 6rem); }
.site-footer a { color: var(--on-wine); text-decoration: none; }
.site-footer a:hover { color: var(--on-wine); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand { color: var(--on-wine); }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; }
.site-footer h2 { font-family: var(--f-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-wine); margin-bottom: 1rem; }
:lang(ar) .site-footer h2 { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9375rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; border-top: 1px solid color-mix(in oklch, var(--on-wine) 20%, transparent); font-size: var(--step--1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.wa-float { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: var(--z-header); display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 1.1rem; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 999px; font-size: 0.875rem; font-weight: 500; box-shadow: 0 6px 8px -4px oklch(0.2 0.01 20 / 0.35); transition: background 0.3s; }
.wa-float:hover { background: var(--wine); color: var(--on-wine); }
.wa-float svg { width: 1.2rem; height: 1.2rem; }
.single-product .wa-float { display: none; }
[dir="rtl"] { --fade-dir: left; }
@media (max-width: 600px) { .wa-float { width: 3rem; padding: 0; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding-block: 4rem; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes slide-in-rtl { from { transform: translateX(100%); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
.hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Logo */
.brand__logo { display: block; width: auto; max-width: none; margin-inline: auto; transition: height 0.35s var(--ease-out); }
.site-header .brand__logo { height: 84px !important; }
.site-header.is-stuck .brand__logo { height: 58px !important; }
.footer-brand .brand__logo { height: 120px !important; margin-inline: 0; }
@media (max-width: 960px) { .site-header .brand__logo, .site-header.is-stuck .brand__logo { height: 52px !important; } }

/* Space between the occasion mosaic and the collection capsules */
.mosaic + .chips.chips--center { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; gap: 0.6rem; }
.mosaic + .chips.chips--center a { padding: 0.6rem 1.15rem; font-size: 0.8125rem; letter-spacing: 0.06em; }

/* Category buying guide below the products */
.archive-guide-wrap { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.archive-guide { max-width: 72ch; margin-inline: auto; }
.archive-guide h2 { font-size: var(--step-2); margin-top: 2.2em; }
.archive-guide h2:first-child { margin-top: 0; }
.archive-guide h3 { font-size: 1rem; letter-spacing: 0.1em; margin-top: 1.6em; }
.archive-guide p, .archive-guide li { color: var(--ink-2); }
.archive-guide details.faq { border-bottom: 1px solid var(--line); }
.archive-guide details.faq:first-of-type { border-top: 1px solid var(--line); }
.archive-guide details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 500; color: var(--ink); }
.archive-guide details.faq summary::-webkit-details-marker { display: none; }
.archive-guide details.faq summary::after { content: "+"; font-weight: 300; transition: transform 0.4s var(--ease-out); }
.archive-guide details.faq[open] summary::after { transform: rotate(45deg); }
.archive-guide details.faq p { padding-bottom: 1.1rem; margin: 0; }
