/* styles.css */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .7rem 1.2rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }
.button:hover { opacity: .78; }
.eyebrow { display: block; margin-bottom: .85rem; color: var(--quiet); font-size: .75rem; letter-spacing: .13em; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 10ch; margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 5.7rem); line-height: 1.05; letter-spacing: -.055em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.media-slot { position: relative; display: grid; place-items: center; min-height: 380px; padding: 2rem; background: #dededb; border: 1px solid #bcbcb7; text-align: center; color: var(--quiet); }
.media-slot::before { content: ""; position: absolute; inset: 1.2rem; border: 1px dashed #999994; }
.section { padding: clamp(4rem, 8vw, 7rem) 5vw; }
.section--mist { background: var(--mist); }
.section__head { width: min(100%, 1150px); display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 0 auto 2.4rem; }
.section__head p { max-width: 34rem; margin: 0; color: var(--quiet); }
.grid { width: min(100%, 1150px); margin: 0 auto; display: grid; gap: 1rem; }
.product-card { border: 1px solid var(--line); background: #fff; }
.product-card__body { padding: 1.2rem; }
.text-link { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.story { width: min(100%, 1150px); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin: 0 auto; }
.products { grid-template-columns: repeat(3, 1fr); }
.product-card__image { min-height: 240px; background: #e4e4e0; display: grid; place-items: center; color: var(--quiet); font-size: .82rem; }
.product-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--quiet); }
.page-hero { padding: 5rem 5vw 3.5rem; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero__inner { width: min(100%, 1150px); margin: 0 auto; }
.page-hero h1 { max-width: none; }
.page-hero p { max-width: 48rem; color: var(--quiet); }
.category-tabs { width: min(100%, 1150px); margin: 0 auto 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.tab { padding: .55rem .85rem; border: 1px solid var(--line); font-size: .86rem; }
.tab--active { border-color: var(--ink); font-weight: 700; }
.detail { width: min(100%, 1150px); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; }
.detail .media-slot { min-height: 520px; }
.detail__price { font-size: 1.2rem; font-weight: 700; }
.detail__facts { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.detail__facts li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 700; }
input, textarea, select { width: 100%; padding: .8rem; border: 1px solid var(--line); background: #fff; font: inherit; }
textarea { min-height: 120px; resize: vertical; }
.site-footer { padding: 3.5rem 5vw 1.6rem; border-top: 1px solid var(--line); }
.footer-grid { width: min(100%, 1150px); margin: 0 auto; display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid a { color: var(--quiet); font-size: .88rem; display: block; margin-bottom: .4rem; }
.legal { width: min(100%, 1150px); margin: 2.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: .76rem; }
@media (max-width: 800px) {
  .story, .detail { grid-template-columns: 1fr; gap: 2rem; }
  .media-slot { min-height: 300px; }
  .products { grid-template-columns: 1fr; }
  .section__head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* هوية بيرلا الرسمية: الكحلي هو السطح الرئيسي، مع العاجي للقراءة والذهب للتفاصيل. */
:root { --ink: #1c1c1c; --paper: #ffffff; --mist: #f4f4f2; --line: #d7d7d3; --quiet: #6d6d68; --perla-navy: #0F2747; --perla-orange: #FF9E1B; --perla-gold: #C8A45D; --perla-ivory: #F6EFE5; }

/* نهاية ملف التنسيق: أولوية الصفحات الداخلية. */
body:not(.maison) .page-hero, body:not(.maison) .section--mist { background: var(--perla-ivory) !important; }

/* تصحيحات ختامية للصفحات الداخلية، توضع في آخر الملف لتعلو الطبقات الأقدم. */
html body:not(.maison) .product-card__image { background-color: var(--perla-navy); background-position: center; background-size: cover; }
html body:not(.maison) .product-photo--1 { background-image: url("assets/perla-real-box-02.jpeg") !important; }
html body:not(.maison) .product-photo--2 { background-image: url("assets/perla-real-box-04.jpeg") !important; }
html body:not(.maison) .product-photo--3 { background-image: url("assets/perla-real-box-03.jpeg") !important; }
html body:not(.maison) .product-photo--4 { background-image: url("assets/perla-real-box-06.jpeg") !important; }
html body:not(.maison) .product-photo--5 { background-image: url("assets/perla-real-box-01.jpeg") !important; }
html body:not(.maison) .product-photo--6 { background-image: url("assets/perla-real-box-05.jpeg") !important; }

html body:not(.maison) .product-detail-image::before { display: none; }

/* تحسينات الواجهة التجارية: صور حقيقية، طلب مباشر، وجوال بلا قصّ أفقي. */
html, body { max-width: 100%; overflow-x: clip; }
body.maison h1, body.maison h2, body.maison h3 { font-family: Alexandria, Arial, sans-serif; letter-spacing: 0; }
.lang-toggle { min-width: 42px; min-height: 42px; border: 1px solid rgba(200,164,93,.72); background: transparent; color: var(--perla-ivory); font: 600 .72rem/1 Alexandria, Arial, sans-serif; letter-spacing: .06em; cursor: pointer; }
.editorial-hero { display: grid; align-items: end; }
.editorial-hero__caption { grid-template-columns: minmax(0, 680px) auto; width: 100%; }
.editorial-hero__caption h1 { max-width: 14ch; margin: 0 0 .8rem; color: var(--perla-ivory); font-size: clamp(2.3rem, 5.4vw, 5.9rem); line-height: 1.15; font-weight: 500; }
.editorial-hero__caption p { max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button--orange { border-color: var(--perla-orange); background: var(--perla-orange); color: var(--perla-navy); }
.hero-actions .underlined { color: var(--perla-ivory); white-space: nowrap; }
.universe h2 { margin: 0 0 clamp(2.1rem, 5vw, 4rem); font-size: clamp(2rem, 4.5vw, 4.7rem); font-weight: 400; line-height: 1.25; }
.collection-grid { width: min(100%, 1300px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(200,164,93,.42); }
.collection-tile { position: relative; isolation: isolate; min-height: clamp(250px, 34vw, 480px); display: flex; align-items: end; padding: 1.2rem; overflow: hidden; color: var(--perla-ivory); background-position: center; background-size: cover; }
.collection-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(7,25,47,.88)); transition: background .25s ease; }
.collection-tile:hover::after { background: linear-gradient(180deg, rgba(7,25,47,.18), rgba(7,25,47,.92)); }
.collection-tile span { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 600; }
.collection-tile--chocolate { background-image: image-set(url("assets/perla-category-cutout-20261030-chocolate-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-chocolate-640w.webp") type("image/webp")); }
.collection-tile--pastry { background-image: url("assets/perla-real-box-03.jpeg"); }
.collection-tile--gifts { background-image: image-set(url("assets/perla-category-cutout-20261030-gifts-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-gifts-640w.webp") type("image/webp")); }
.best-sellers { padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem); background: var(--perla-ivory); color: var(--perla-navy); }
.best-sellers__head { width: min(100%, 1300px); margin: 0 auto 2.1rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.best-sellers h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.3rem); font-weight: 400; }
.best-sellers .underlined { color: var(--perla-navy); white-space: nowrap; }
.product-strip { width: min(100%, 1300px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-preview { min-width: 0; background: #fff; border: 1px solid rgba(15,39,71,.13); }
.product-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #0F2747; padding: 0; box-sizing: border-box; }
.product-preview > div { padding: 1.1rem; }
.product-preview h3 { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; }
.product-preview p { margin: 0 0 1rem; color: #40516a; font-size: .82rem; }
.product-preview a { display: inline-block; color: var(--perla-navy); border-bottom: 1px solid var(--perla-gold); font-size: .82rem; font-weight: 700; padding-bottom: .1rem; }
.mobile-order { display: none; }
@media (max-width: 800px) {
  .lang-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .editorial-hero__caption { grid-template-columns: 1fr; }
  .editorial-hero__caption h1 { max-width: 12ch; font-size: clamp(2.15rem, 10vw, 3.35rem); }
  .hero-actions { align-items: center; }
  .hero-actions .button { min-width: 130px; }
  .universe h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-tile { min-height: 220px; padding: 1rem; }
  .editorial-feature { min-width: 0; }
  .feature-copy { min-width: 0; }
  .feature-copy h2, .addresses h2 { overflow-wrap: anywhere; }
  .best-sellers { padding: 3.5rem 1rem; }
  .best-sellers__head { align-items: end; }
  .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
  .product-preview { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
  .footer-grid { padding-inline: 1rem !important; }
  .mobile-order { position: fixed; z-index: 40; inset-inline: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; place-items: center; min-height: 52px; background: var(--perla-orange); color: var(--perla-navy); box-shadow: 0 10px 28px rgba(0,0,0,.28); font-weight: 700; }
}
@media (max-width: 370px) {
  .lang-toggle { display: none; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-tile { min-height: 200px; }
}

/* هيدر ثابت للصفحات الداخلية: علامة بيرلا تبقى حاضرة مثل الرئيسية. */
.editorial-hero { background: var(--perla-navy) !important; }
.subpage-header { position: sticky; top: 0; z-index: 30; background: var(--perla-navy); color: var(--perla-ivory); border-bottom: 1px solid rgba(200,164,93,.42); font-family: Alexandria, Arial, sans-serif; }
.subpage-service { min-height: 30px; display: grid; place-items: center; padding: .3rem 1rem; border-bottom: 1px solid rgba(200,164,93,.32); background: #0b1e38; color: var(--perla-ivory); font-size: .7rem; text-align: center; }
.subpage-head { width: min(100%, 1340px); min-height: 82px; margin: 0 auto; padding: .7rem clamp(1rem,4vw,4rem); display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 1.2rem; }
.subpage-logo { grid-column: 2; display: grid; place-items: center; }
.subpage-logo img { display: block; width: min(205px, 22vw); height: auto; }
.subpage-nav { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: clamp(.85rem,1.7vw,1.85rem); font-size: .82rem; white-space: nowrap; }
.subpage-nav a { color: var(--perla-ivory); border-bottom: 1px solid transparent; padding: .35rem 0; }
.subpage-nav a:hover, .subpage-nav a[aria-current="page"] { color: var(--perla-orange); border-color: var(--perla-orange); }
.subpage-actions { grid-column: 3; grid-row: 1; display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.subpage-search { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--perla-ivory); }
.subpage-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.subpage-order { display: inline-grid; place-items: center; min-height: 46px; padding: .65rem 1.25rem; background: var(--perla-orange); color: var(--perla-navy); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.subpage-header + main .page-hero { padding-top: clamp(3.5rem,7vw,6rem); }
.branch-showcase { width: min(100%, 1150px); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.branch-card { overflow: hidden; background: #fff; border: 1px solid rgba(15,39,71,.12); color: var(--perla-navy); }
.branch-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.branch-card__body { padding: 1.35rem; }
.branch-card__eyebrow { display: block; margin-bottom: .55rem; color: #647089; font-size: .74rem; }
.branch-card h3 { margin-bottom: .55rem; font-size: 1.38rem; }
.branch-card p { margin-bottom: .9rem; color: #40516a; font-size: .9rem; }
.branch-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; padding-top: .9rem; border-top: 1px solid rgba(15,39,71,.12); font-size: .82rem; }
.branch-card dt { color: #647089; }
.branch-card dd { margin: 0; font-weight: 600; }
.demo-note { margin: 1rem 0 0; color: #6c5c38; font-size: .78rem; }
@media (max-width: 900px) {
  .subpage-head { min-height: 68px; padding: .55rem 1rem; grid-template-columns: auto minmax(0,1fr) auto; }
  .subpage-logo { grid-column: 2; }
  .subpage-logo img { width: min(160px, 42vw); }
  .subpage-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; flex-wrap: wrap; gap: .35rem 1rem; padding: .45rem 0 .15rem; font-size: .7rem; white-space: normal; }
  .subpage-actions { grid-column: 3; grid-row: 1; }
  .subpage-search { display: none; }
  .subpage-order { min-height: 38px; padding: .55rem .75rem; font-size: .75rem; }
  .branch-showcase { grid-template-columns: 1fr; }
}

/* توحيد الصفحات الداخلية مع عالم الرئيسية. */
body:not(.maison) { font-family: Alexandria, Arial, sans-serif; }
body:not(.maison) h1, body:not(.maison) h2, body:not(.maison) h3 { font-family: Alexandria, Arial, sans-serif; letter-spacing: 0; }
body:not(.maison) .page-hero { border-color: rgba(200,164,93,.45); }
body:not(.maison) .page-hero h1 { color: var(--perla-navy); }
body:not(.maison) .page-hero p { color: #40516a; }
body:not(.maison) .section { background: #fff; }
.category-tabs .tab { appearance: none; background: #fff; color: var(--perla-navy); cursor: pointer; font-family: inherit; }
.category-tabs .tab:hover, .category-tabs .tab--active { border-color: var(--perla-orange); background: var(--perla-orange); color: var(--perla-navy); }
.product-card[hidden] { display: none; }
body:not(.maison) .product-photo--1 { background-image: url("assets/perla-real-box-02.jpeg") !important; }
body:not(.maison) .product-photo--2 { background-image: url("assets/perla-real-box-04.jpeg") !important; }
body:not(.maison) .product-photo--3 { background-image: url("assets/perla-real-box-03.jpeg") !important; }
body:not(.maison) .product-photo--4 { background-image: url("assets/perla-real-box-06.jpeg") !important; }
body:not(.maison) .product-photo--5 { background-image: url("assets/perla-real-box-01.jpeg") !important; }
body:not(.maison) .product-photo--6 { background-image: url("assets/perla-real-box-05.jpeg") !important; }

body:not(.maison) .product-detail-image::before { display: none; }
.site-footer--full { padding: 0; background: #091c34 !important; color: var(--perla-ivory) !important; border-color: rgba(200,164,93,.42) !important; }
.site-footer--full .footer-grid { padding: 3rem 5vw; }
.site-footer--full .footer-grid h2 { color: var(--perla-gold); }
.site-footer--full .footer-grid a { color: var(--perla-ivory) !important; }
.site-footer--full .subpage-logo { justify-items: start; }
.site-footer--full .subpage-logo img { width: min(190px, 48vw); }
.site-footer--full .legal { color: #dce4ed !important; border-color: rgba(200,164,93,.36) !important; }
@media (max-width: 800px) {
  .category-tabs { padding-inline: 0; }
  .site-footer--full .footer-grid { padding: 2.4rem 1rem; }
}

/* الفيديو الافتتاحي: طبقة كحلي تضمن وضوح النص وتُبقي الصورة الثابتة بديلاً فورياً. */
.editorial-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.editorial-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(15,39,71,.84) 0%, rgba(15,39,71,.47) 55%, rgba(15,39,71,.30) 100%); }
@media (max-width: 800px) {
  .editorial-hero__video { object-position: center; } /* phone film is shot vertical (540x960), no side shift */
  .editorial-hero::after { background: linear-gradient(180deg, rgba(15,39,71,.34), rgba(15,39,71,.78)); }
}

/* صور بيرلا الحقيقية: تستخدم للعرض التجاري بدلاً من صور أو منتجات مولّدة. */
body.maison .feature-media { background: #3a2622 url("assets/perla-real-box-01.jpeg") center / cover no-repeat; }
html body:not(.maison) .product-card__image { background-image: url("assets/perla-real-box-02.jpeg"); }
html body:not(.maison) .product-card:nth-child(2) .product-card__image { background-image: url("assets/perla-real-box-03.jpeg"); }
html body:not(.maison) .product-card:nth-child(3) .product-card__image { background-image: url("assets/perla-real-box-05.jpeg"); }
html body:not(.maison) .detail .media-slot { background: #243f62 url("assets/perla-real-box-06.jpeg") center / cover; color: transparent; }
html body:not(.maison) .detail .media-slot::before { display: none; }
body:not(.maison) { background: var(--perla-ivory); color: var(--perla-navy); }
body:not(.maison) .button { background: var(--perla-orange); color: var(--perla-navy); border-color: var(--perla-orange); }
body:not(.maison) .product-card__image { background: #243f62 image-set(url("assets/perla-menu-boxes-07.avif") type("image/avif"), url("assets/perla-menu-boxes-07.webp") type("image/webp")) center / cover; color: transparent; }
body:not(.maison) .product-card:nth-child(2) .product-card__image { background-image: image-set(url("assets/perla-menu-chocolate-10.avif") type("image/avif"), url("assets/perla-menu-chocolate-10.webp") type("image/webp")); }
body:not(.maison) .product-card:nth-child(3) .product-card__image { background-image: image-set(url("assets/perla-menu-cakes-12.avif") type("image/avif"), url("assets/perla-menu-cakes-12.webp") type("image/webp")); }
body:not(.maison) .site-footer { background: var(--perla-navy); color: var(--perla-ivory); border-color: rgba(200,164,93,.46); }
body:not(.maison) .site-footer * { color: var(--perla-ivory); }
@media (max-width: 430px) {
  .footer-grid, .form-grid { grid-template-columns: 1fr; }
}

/* الصفحة الرئيسية التحريرية: هيكل مستوحى من منطق «الدار + التشكيلات»، لا من نسخة الموقع المرجعي. */
.maison { background: #fff; color: #171717; }
.editorial-hero { isolation: isolate; overflow: hidden; position: relative; }
.editorial-hero__caption { z-index: 1; position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.editorial-hero__caption p { margin: 0; font-size: .88rem; }
.editorial-hero__caption a, .underlined { border-bottom: 1px solid var(--ink); font-weight: 700; font-size: .86rem; padding-bottom: .15rem; }
.universe { margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 5vw; text-align: center; }
.editorial-feature { width: min(100%, 1320px); margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; }
.feature-media { display: grid; place-items: center; padding: 2rem; position: relative; color: var(--quiet); text-align: center; font-size: .82rem; }
.feature-media::before { content: ""; position: absolute; inset: 1.75rem; border: 1px dashed #9e9e99; }
.feature-media span { position: relative; padding: .45rem .75rem; background: #dcdcd8; }
.feature-copy { padding: clamp(2rem, 6vw, 6rem); }
.feature-copy h2, .addresses h2 { font-family: Georgia, serif; font-weight: 400; }
.addresses { width: min(100%, 1150px); margin: 0 auto; padding: clamp(3rem, 7vw, 6.5rem) 5vw; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; border-top: 1px solid var(--line); }
.addresses p { max-width: 35rem; }
.addresses__cards article { display: grid; gap: .3rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.addresses__cards span { font-size: .9rem; }
@media (max-width: 800px) {
  .editorial-feature, .addresses { grid-template-columns: 1fr; }
}

/* طبقة هوية نهائية: توضع بعد الهيكل التحريري حتى يبقى الكحلي هو الخلفية الفعلية. */
body.maison { background: var(--perla-navy); color: var(--perla-ivory); font-family: Alexandria, Tajawal, Arial, sans-serif; }
.editorial-hero { min-height: min(74vh, 760px); }
.editorial-hero__caption { color: var(--perla-ivory); background: linear-gradient(90deg, rgba(15,39,71,.95), rgba(15,39,71,.55), transparent); padding: 2rem 5vw; }
.editorial-hero__caption p { color: var(--perla-gold); }
.editorial-hero__caption a, .underlined { color: inherit; border-color: var(--perla-gold); }
.universe { width: 100%; max-width: none; background: var(--perla-navy); }
.universe .eyebrow, .feature-copy .eyebrow, .addresses .eyebrow { color: var(--perla-gold); }
.editorial-feature { background: var(--perla-ivory); color: var(--perla-navy); }
.feature-media { min-height: 610px; background: #32201d image-set(url("assets/perla-menu-chocolate-10.avif") type("image/avif"), url("assets/perla-menu-chocolate-10.webp") type("image/webp")) center / cover no-repeat; }
.feature-media::before, .feature-media span { display: none; }
.feature-copy p { color: #40516a; }
.feature-copy .underlined { color: var(--perla-navy); }
.addresses { border-color: rgba(246,239,229,.28); }
.addresses h2 { color: var(--perla-ivory); }
.addresses p, .addresses__cards span { color: #cdd5e1; }
.addresses__cards { border-top: 1px solid var(--line); border-color: rgba(246,239,229,.28); }
.addresses__cards article { border-color: rgba(246,239,229,.28); }

/* Home refinements (Ahmed, 6 Oct). Hero text: the caption shade sits behind the text in either
   direction, and the eyebrow is Perla gold, not grey on navy. */
.editorial-hero__caption .eyebrow { color: var(--perla-gold); }
.editorial-hero__caption h1, .editorial-hero__caption p { text-shadow: 0 1px 14px rgba(7,25,47,.55); }
[dir="rtl"] .editorial-hero__caption { background: linear-gradient(270deg, rgba(15,39,71,.95), rgba(15,39,71,.6) 55%, transparent); }
@media (max-width: 800px) {
  .editorial-hero__caption, [dir="rtl"] .editorial-hero__caption { background: linear-gradient(180deg, transparent, rgba(15,39,71,.92) 35%); }
  /* the sticky order bar appears once the hero (which has its own button) is scrolled past */
  .mobile-order { visibility: hidden; opacity: 0; transform: translateY(150%); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .mobile-order.is-shown { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  body.maison { padding-bottom: calc(52px + 2rem); }
}
@media (prefers-reduced-motion: reduce) { .mobile-order, .mobile-order.is-shown { transition: none; } }

/* Branches: the two real storefronts in identical square frames. */
.addresses__branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-self: center; }
.addresses__branch { display: grid; gap: .35rem; color: var(--perla-ivory); }
.addresses__branch img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: .6rem; border: 1px solid rgba(200,164,93,.35); }
.addresses__branch img[src*="ad-dilam"] { object-position: 50% 45%; }
.addresses__branch img[src*="al-kharj"] { object-position: 50% 30%; }
.addresses__branch b { font-size: 1.1rem; }
.addresses__branch span { color: #cdd5e1; font-size: .9rem; }
.addresses__branch:hover b { color: var(--perla-orange); }

/* Dedicated pastry campaign; complete landscape photography in its own slot. */
.fatayer-campaign{max-width:1320px;margin:0 auto 40px;background:#0F2747;color:#f6efe5}
.fatayer-campaign__copy{padding:24px;text-align:center}
.fatayer-campaign__copy .eyebrow{color:#c8a45d}
.fatayer-campaign h2{color:#f6efe5;font-size:clamp(24px,3vw,36px);line-height:1.5;margin:10px 0}
.fatayer-campaign a{color:#f6efe5}
.fatayer-campaign>img,.fatayer-campaign>picture>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.maison .collection-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.maison .collection-grid .collection-tile{aspect-ratio:4/5;min-height:0;background-size:cover}
.maison .collection-tile--chocolate{background-image:image-set(url("assets/perla-category-cutout-20261030-chocolate-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-chocolate-640w.webp") type("image/webp"))}
.maison .collection-tile--maamoul{background-image:image-set(url("assets/perla-category-cutout-20261030-maamoul-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-maamoul-640w.webp") type("image/webp"))}
.maison .collection-tile--homemade{background-image:image-set(url("assets/perla-category-cutout-20261030-sweets-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-sweets-640w.webp") type("image/webp"))}
.maison .collection-tile--oriental{background-image:image-set(url("assets/perla-category-cutout-20261030-oriental-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-oriental-640w.webp") type("image/webp"))}
.maison .collection-tile--fatayer{background-image:image-set(url("assets/perla-category-cutout-20261030-fatayer-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-fatayer-640w.webp") type("image/webp"))}
.maison .collection-tile--gifts{background-image:image-set(url("assets/perla-category-cutout-20261030-gifts-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-gifts-640w.webp") type("image/webp"))}
@media(max-width:1100px){.maison .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.maison .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fatayer-campaign{margin-inline:16px}}

.maison .collection-tile--cakes{background-image:image-set(url("assets/perla-category-cutout-20261030-cakes-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-cakes-640w.webp") type("image/webp"))}
.cakes-feature{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;max-width:1320px;margin:48px auto;padding:0 24px}
.cakes-feature>img,.cakes-feature>picture>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;mask-image:none!important;-webkit-mask-image:none!important}
.cakes-feature h2{font-size:clamp(28px,4vw,48px);line-height:1.5}
.cakes-feature p{line-height:1.9}
@media(min-width:1101px){.maison .collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.cakes-feature{grid-template-columns:1fr;gap:20px;padding:0 16px;margin:32px auto}}

.maison .collection-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.maison .collection-grid .collection-tile{flex:0 0 calc((100% - 54px)/4)}
@media(max-width:1100px){.maison .collection-grid .collection-tile{flex-basis:calc((100% - 36px)/3)}}
@media(max-width:700px){.maison .collection-grid{gap:12px}.maison .collection-grid .collection-tile{flex-basis:calc((100% - 12px)/2)}}

.maison .collection-tile--gateaux{background-image:image-set(url("assets/perla-category-cutout-20261030-gateaux-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-gateaux-640w.webp") type("image/webp"))}

.signature-art{background:#0F2747;color:#f6efe5;padding:32px 0;margin:0}
.signature-art__head{max-width:1320px;margin:0 auto 20px;padding:0 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.signature-art__head h2{font-size:clamp(26px,3.6vw,42px);line-height:1.5;margin:8px 0;color:#f6efe5}
.signature-art__head .eyebrow{color:#c8a45d}.signature-art__head a{color:#f6efe5;flex-shrink:0}
.signature-art picture{display:block;max-width:1440px;margin:auto}
.signature-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;mask-image:none!important;-webkit-mask-image:none!important}
@media(max-width:700px){.signature-art{padding:24px 0}.signature-art__head{display:block;padding:0 16px}.signature-art img{aspect-ratio:4/5}}

/* Oriental campaign requested by Ahmed; keep the existing hero rules. */
.maison .oriental-campaign{position:relative;width:min(100%,1672px);margin:3rem auto;background:#0F2747;color:#f6efe5;scroll-margin-top:90px}
.oriental-campaign picture{display:block}
.oriental-campaign__image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;mask-image:none!important;-webkit-mask-image:none!important}
.oriental-campaign__copy{position:absolute;top:18%;right:3.5%;width:23%;text-align:start}
.oriental-campaign__copy .eyebrow{display:block;color:#c8a45d;font-size:14px;line-height:1.8}
.oriental-campaign__copy h2{margin:16px 0;color:#f6efe5;font-size:clamp(30px,3.2vw,52px);line-height:1.5}
.oriental-campaign__copy p{margin:0 0 24px;color:#f6efe5;font-size:clamp(13px,1.1vw,16px);line-height:1.9}
.oriental-campaign__copy .button{min-height:48px;font-size:14px;color:#0F2747}
.oriental-campaign__copy .button:focus-visible{outline:2px solid #f6efe5;outline-offset:4px}
@media(max-width:1000px){.maison .oriental-campaign{margin:2rem auto}.oriental-campaign__copy{position:static;width:auto;padding:24px 20px 32px;text-align:center}.oriental-campaign__copy h2{font-size:clamp(28px,4vw,40px);margin:10px 0}.oriental-campaign__copy p{max-width:560px;margin:0 auto 20px;font-size:15px}}
@media(max-width:700px){.oriental-campaign__image{aspect-ratio:4/5}}
/* overrides.css */
/* طبقة موحدة أخيرة لصفحات بيرلا الداخلية. */
body:not(.maison) { font-family: Alexandria, Arial, sans-serif; }
body:not(.maison) h1, body:not(.maison) h2, body:not(.maison) h3 { font-family: Alexandria, Arial, sans-serif; letter-spacing: 0; }
body:not(.maison) .page-hero, body:not(.maison) .section--mist { background: #F6EFE5; }
body:not(.maison) .page-hero { border-color: rgba(200,164,93,.45); }
body:not(.maison) .page-hero h1 { color: #0F2747; }
body:not(.maison) .page-hero p { color: #40516a; }
body:not(.maison) .section { background: #fff; }
body:not(.maison) .section--mist { background: #F6EFE5; }
.category-tabs .tab { appearance: none; background: #fff; color: #0F2747; cursor: pointer; font-family: inherit; }
.category-tabs .tab:hover, .category-tabs .tab--active { border-color: #FF9E1B; background: #FF9E1B; color: #0F2747; }
.product-card[hidden] { display: none; }
html body:not(.maison) .product-photo--1 { background-image: url("assets/perla-real-box-02.jpeg") !important; }
html body:not(.maison) .product-photo--2 { background-image: url("assets/perla-real-box-04.jpeg") !important; }
html body:not(.maison) .product-photo--3 { background-image: url("assets/perla-real-box-03.jpeg") !important; }
html body:not(.maison) .product-photo--4 { background-image: url("assets/perla-real-box-06.jpeg") !important; }
html body:not(.maison) .product-photo--5 { background-image: url("assets/perla-real-box-01.jpeg") !important; }
html body:not(.maison) .product-photo--6 { background-image: url("assets/perla-real-box-05.jpeg") !important; }

html body:not(.maison) .product-detail-image::before { display: none; }
.site-footer--full { padding: 0; background: #091c34 !important; color: #F6EFE5 !important; border-color: rgba(200,164,93,.42) !important; }
.site-footer--full .footer-grid { padding: 3rem 5vw; }
.site-footer--full .footer-grid h2 { color: #C8A45D !important; }
.site-footer--full .footer-grid a { color: #F6EFE5 !important; }
.site-footer--full .subpage-logo { justify-items: start; }
.site-footer--full .subpage-logo img { width: min(190px, 48vw); }
.site-footer--full .legal { color: #dce4ed !important; border-color: rgba(200,164,93,.36) !important; }
.story-image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }


.subpage-categories { display: flex; justify-content: center; gap: 2rem; padding: .9rem 1rem; border-top: 1px solid rgba(200,164,93,.32); background: #0F2747; }
.subpage-categories a { color: #F6EFE5; font-size: .88rem; }
.subpage-categories a:hover { color: #FF9E1B; }
.order-note { max-width: 54rem; margin: 1.5rem 0 0; color: #40516a; font-size: .9rem; line-height: 1.8; }
@media (max-width:800px) { .site-footer--full .footer-grid { padding: 2.4rem 1rem; } .story-image { min-height: 260px; } }

/* Homepage cake campaign: preserve the full image, including on phones. */
.maison .cake-campaign { position: relative; width: min(100%, 1672px); margin: 0 auto; background: #0F2747; color: #F6EFE5; scroll-margin-top: 210px; }
.maison .cake-campaign__image { display: block; width: 100%; height: auto; }
.maison .cake-campaign__copy { position: absolute; top: 12%; right: 4%; width: 26%; text-align: start; }
.maison .cake-campaign__copy .eyebrow { display: block; color: #C8A45D; font-size: .875rem; }
.maison .cake-campaign__copy h2 { margin: 1rem 0; color: #F6EFE5; font-family: Alexandria, Arial, sans-serif; font-size: clamp(1.75rem, 3.2vw, 3.4rem); line-height: 1.5; letter-spacing: 0; }
.maison .cake-campaign__copy p { margin: 0 0 1.75rem; color: #F6EFE5; font-size: 1rem; line-height: 1.9; }
.maison .cake-campaign__copy .button { min-height: 48px; font-size: .9rem; color: #0F2747; }
.maison .cake-campaign__copy .button:hover { background: #E58B12; }
.maison .cake-campaign__copy .button:focus-visible { outline: 2px solid #F6EFE5; outline-offset: 4px; }
@media (max-width: 900px) {
  .maison .cake-campaign__copy { position: static; width: auto; padding: 2rem 1.25rem 2.5rem; text-align: center; }
  .maison .cake-campaign__copy h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .maison .cake-campaign__copy p { max-width: 32rem; margin: 0 auto 1.5rem; }
}

/* Homemade sweets: one editorial banner and two complete group photographs. */
.maison .homemade-campaign { width: min(100%, 1672px); margin: 3rem auto; background: #07192f; color: #F6EFE5; scroll-margin-top: 210px; }
.maison .homemade-campaign__hero { position: relative; }
.maison .homemade-campaign__image { display: block; width: 100%; height: auto; }
.maison .homemade-campaign__copy { position: absolute; top: 15%; right: 4%; width: 25%; text-align: start; }
.maison .homemade-campaign__copy .eyebrow { display: block; color: #C8A45D; font-size: .875rem; }
.maison .homemade-campaign__copy h2 { margin: 1rem 0; color: #F6EFE5; font-family: Alexandria, Arial, sans-serif; font-size: clamp(1.75rem, 3vw, 3.25rem); line-height: 1.5; letter-spacing: 0; }
.maison .homemade-campaign__copy p { margin: 0; color: #F6EFE5; font-size: 1rem; line-height: 1.9; }
.maison .homemade-campaign__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 1.5rem; }
.maison .homemade-campaign__gallery figure { min-width: 0; margin: 0; }
.maison .homemade-campaign__gallery img { display: block; width: 100%; height: auto; }
.maison .collection-tile--homemade { background-image: image-set(url("assets/perla-category-cutout-20261030-sweets-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-sweets-640w.webp") type("image/webp")) !important; background-position: center; }
@media (max-width: 900px) {
  .maison .homemade-campaign { margin: 2rem auto; }
  .maison .homemade-campaign__copy { position: static; width: auto; padding: 2rem 1.25rem; text-align: center; }
  .maison .homemade-campaign__copy h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .maison .homemade-campaign__copy p { max-width: 32rem; margin: 0 auto; }
}
@media (max-width: 600px) {
  .maison .homemade-campaign__gallery { grid-template-columns: 1fr; gap: .75rem; padding: .75rem; }
}

/* Maamoul: preserve every grouped photo in full, with copy beside the hero. */
.maison .maamoul-campaign { width: min(100%, 1672px); margin: 3rem auto; background: #07192f; color: #F6EFE5; scroll-margin-top: 210px; }
.maison .maamoul-campaign__hero { position: relative; }
.maison .maamoul-campaign__image, .maison .maamoul-campaign__gallery img { display: block; width: 100%; height: auto; }
.maison .maamoul-campaign__copy { position: absolute; top: 20%; right: 4%; width: 25%; text-align: start; }
.maison .maamoul-campaign__copy .eyebrow { display: block; color: #C8A45D; font-size: .875rem; }
.maison .maamoul-campaign__copy h2 { margin: 1rem 0; color: #F6EFE5; font-family: Alexandria, Arial, sans-serif; font-size: clamp(1.75rem, 3vw, 3.25rem); line-height: 1.5; letter-spacing: 0; }
.maison .maamoul-campaign__copy p { margin: 0 0 1.75rem; color: #F6EFE5; font-size: 1rem; line-height: 1.9; }
.maison .maamoul-campaign__copy .button { min-height: 48px; font-size: .9rem; color: #0F2747; }
.maison .maamoul-campaign__copy .button:hover { background: #E58B12; }
.maison .maamoul-campaign__copy .button:focus-visible { outline: 2px solid #F6EFE5; outline-offset: 4px; }
.maison .maamoul-campaign__gallery { margin: 0; padding: 1.5rem 8%; }
@media (max-width: 900px) {
  .maison .maamoul-campaign { margin: 2rem auto; }
  .maison .maamoul-campaign__copy { position: static; width: auto; padding: 2rem 1.25rem; text-align: center; }
  .maison .maamoul-campaign__copy h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .maison .maamoul-campaign__copy p { max-width: 32rem; margin: 0 auto 1.5rem; }
  .maison .maamoul-campaign__gallery { padding: .75rem; }
}

/* Home hero (Ahmed, 15 Oct): the video fills the screen under the header and the caption sits lower,
   so more of the video shows above it. Header + category row = 167px on desktop, 91px on phones. */
.maison .editorial-hero { min-height: min(calc(100svh - 167px), 900px); }
.maison .editorial-hero__caption { padding-block: .5rem 1rem; }
.maison .editorial-hero__caption .eyebrow { margin-bottom: .15rem; }
.maison .editorial-hero__caption h1 { margin-bottom: .3rem; line-height: 1.05; }
@media (max-width: 900px) {
  .maison .editorial-hero { min-height: min(calc(100svh - 91px), 760px); }
}
/* gifts.css */
/* Gifts extend Perla's navy, ivory and gold identity. Keep product photos whole. */
.gifts-page { background: #F6EFE5; color: #0F2747; }

.gifts-page h1, .gifts-page h2 { line-height: 1.45; letter-spacing: 0; }
.gifts-page .eyebrow, .gift-campaign .eyebrow { font-size: .875rem; letter-spacing: 0; }
.gifts-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gifts-banner { background: radial-gradient(ellipse at 50% 105%, #294d74, #102d50 60%, #091f3b); }
html[data-theme="light"] .gifts-page .gifts-banner {
  background: radial-gradient(ellipse at 50% 105%, #e7d6b8, #faf5ec 72%);
}
.gifts-banner__lineup {
  display: grid;
  grid-template-columns: 1.12fr .84fr 1.32fr .78fr .74fr;
  align-items: end;
  gap: clamp(14px, 2.2vw, 34px);
  max-width: 1580px;
  margin-inline: auto;
  padding: clamp(26px, 3vw, 46px) 4vw clamp(30px, 3.8vw, 56px);
}
.gifts-banner__piece {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 10px rgb(4 12 22 / .36));
}
html[data-theme="light"] .gifts-banner__piece { filter: drop-shadow(0 10px 9px rgb(60 39 18 / .22)); }
.gifts-page a:focus-visible, .gift-campaign a:focus-visible { outline: 2px solid #FF9E1B; outline-offset: 5px; }
.newborn-section, .gifts-more { padding: clamp(3rem, 6vw, 5rem) 5vw; }
.newborn-section, .gifts-more article, .gifts-request { scroll-margin-top: 190px; }
.gifts-section-head { width: min(100%, 1200px); margin: 0 auto 2.25rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.gifts-section-head h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.gifts-section-head .eyebrow { color: #735a2e; }
.gifts-section-head p { max-width: 27rem; margin: 0; color: #40516a; font-size: 1rem; line-height: 1.9; }
.newborn-grid { width: min(100%, 1200px); margin: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem 1.5rem; }
.gift-card { min-width: 0; border: 1px solid rgba(200,164,93,.45); background: #fff; }
.gift-card:last-child { grid-column: 2; }
.gift-card__photo { display: block; aspect-ratio: 1; overflow: hidden; background: #07192f; }
.gift-card__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gift-card__photo > .perla-motion-frame { width: 100%; height: 100%; }
.gift-card__copy { padding: 1.25rem; }
.gift-card__copy span { display: block; color: #735a2e; font-size: .875rem; margin-bottom: .5rem; }
.gift-card__copy h3 { font-size: 1.125rem; line-height: 1.7; }
.gift-card__copy p { margin: 0; color: #40516a; font-size: 1rem; line-height: 1.85; }
.gifts-more { background: #0F2747; color: #F6EFE5; }
.gifts-more .eyebrow { color: #C8A45D; }
.gifts-more__grid { width: min(100%, 1200px); margin: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.gifts-more__grid article { padding: 1.75rem; border: 1px solid rgba(200,164,93,.5); }
.gifts-more__grid > article { display:flex; flex-direction:column; }
.gifts-more__grid .gifts-service-photo { display:block; width:100%; aspect-ratio:4/3; margin:0 0 1.25rem; overflow:hidden; background:transparent; }
.gifts-more__grid .gifts-service-photo picture,
.gifts-more__grid .gifts-service-photo img { display:block; width:100%; height:100%; }
.gifts-more__grid .gifts-service-photo img { aspect-ratio:auto; object-fit:contain; }
.gifts-service-links { display:flex; flex-wrap:wrap; gap:12px; padding-block-start:12px; margin-block-start:auto; }
.gifts-special__photo { aspect-ratio:4 / 3; margin:0 0 1.25rem; background:transparent; }
.gifts-special__photo > picture, .gifts-special__photo img { display:block; width:100%; height:100%; }
.gifts-special__photo img { object-fit:contain; }
.gifts-more__grid h3 { color: #F6EFE5; font-size: 1.25rem; }
.gifts-more__grid p { color: #F6EFE5; font-size: 1rem; line-height: 1.9; }
.gifts-request .section__head p, .gifts-request label { font-size: 1rem; }
.gifts-request h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.gifts-request button:disabled { cursor: not-allowed; opacity: .65; }
.maison .gift-campaign { width: min(100%, 1672px); margin: 3rem auto; display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; background: #07192f; color: #F6EFE5; scroll-margin-top: 210px; }
.gift-campaign__copy { padding: clamp(2rem,4vw,4rem); }
.gift-campaign__copy .eyebrow { color: #C8A45D; }
.gift-campaign__copy h2 { font-family: Alexandria, Arial, sans-serif; color: #F6EFE5; font-size: clamp(1.8rem,3vw,3.1rem); line-height: 1.5; letter-spacing: 0; }
.gift-campaign__copy p { font-size: 1rem; line-height: 1.9; }
.gift-campaign__image { display: block; width: 100%; height: auto; }
@media(max-width: 1000px) {
  .maison .gift-campaign { grid-template-columns: 1fr; }
  .gift-campaign__copy { padding: 2.5rem 1.25rem; text-align: center; }
  .gift-campaign__copy p { max-width: 36rem; margin-inline: auto; }
  .gifts-section-head { align-items: start; flex-direction: column; gap: 1rem; }
  .newborn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gift-card:last-child { grid-column: auto; }
  .gifts-more__grid { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .newborn-section, .gifts-more { padding: 3rem 1rem; }
  .newborn-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .maison .gift-campaign { margin: 2rem auto; }
}

/* The customer prepares a WhatsApp enquiry, then chooses whether to send it. */
.inner-page .newborn-section .newborn-featured { --cols:3; max-width:1020px; margin-inline:auto; }
.inner-page .newborn-section .newborn-featured h3 { min-height:0; }
.newborn-more { max-width:1200px; margin:24px auto 0; border-top:1px solid var(--stroke); }
.newborn-more > summary { width:fit-content; margin-inline:auto; padding:14px 8px; min-height:48px; box-sizing:border-box; cursor:pointer; color:var(--accent); font-weight:600; }
.newborn-more > summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.newborn-section .newborn-more__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px 18px; padding-block:20px; }
.newborn-more article { scroll-margin-top:180px; }
.newborn-section .gift-card__photo { background:transparent; }
@media(max-width:700px) {
 .inner-page .newborn-section .newborn-featured { --cols:2; }
 .newborn-section .newborn-more__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
}
.gifts-request .section__head, .gifts-request form, .gifts-request__direct { max-width:1200px; margin-inline:auto; }
.gifts-request form { gap:20px; }
.gifts-request input, .gifts-request select { min-height:48px; width:100%; }
.gifts-request textarea { min-height:130px; width:100%; }
  .gifts-request { --error-text:#ffb5b5; }
  html[data-theme="light"] .gifts-request { --error-text:#9f2634; }
  .gifts-request input[aria-invalid="true"] { border-color:var(--error-text); box-shadow:0 0 0 1px var(--error-text); }
  .gifts-request .field-error:not([hidden]) { display:block; margin-top:6px; color:var(--error-text); font-size:.78rem; line-height:1.7; }
.gifts-request__submit { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.gifts-request__submit p { margin:0; font-size:.85rem; }
.gifts-request__submit button { min-height:48px; cursor:pointer; }
.gifts-request__direct { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:24px; }
.gifts-request__direct p { margin:0; }
@media(max-width:700px) {
 .gifts-request .form-grid { grid-template-columns:1fr; }
 .gifts-request__submit { align-items:stretch; flex-direction:column; }
 .gifts-request__submit button { width:100%; }
}

.gifts-jump { display: flex; justify-content: center; gap: 12px 32px; flex-wrap: wrap; padding: 20px 16px; border-bottom: 1px solid #dccbac; }
.gifts-jump a { color: #102b49; font-size: 14px; text-decoration: none; padding: 8px 4px; border-bottom: 1px solid #c8a45d; }
.newborn-section, .gifts-more { padding-block: 36px; }
.gifts-section-head { margin-bottom: 24px; gap: 24px; }
.gifts-section-head h2 { font-size: clamp(24px, 2.3vw, 34px); }
.newborn-grid { gap: 24px; }
.newborn-section { padding-inline: 24px; }
.newborn-grid, .gifts-section-head { width: 100%; max-width: 1440px; }
.gift-card { border: 0; background: #f6efe5; }
.gift-card__photo { width: 100%; aspect-ratio: 1; background: #07192f; border-radius: 12px; }
.gift-card__copy { padding: 16px 0; }
.gift-card:last-child { grid-column: auto; }
@media(max-width: 600px) {
  .gifts-banner__lineup {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 16px 24px;
  }
  .gifts-banner__piece { grid-column: span 2; }
  .gifts-banner__piece--tower { grid-column: 2 / span 2; }
  .gifts-banner__piece--cake { grid-column: 4 / span 2; }
  .gifts-jump { gap: 8px 20px; padding-block: 12px; }
  .gifts-jump a { font-size: 12px; }
  .newborn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gift-card__copy { padding: 12px; }
  .gift-card__copy h3 { font-size: 14px; }
  .gift-card__copy p, .gift-card__copy span { font-size: 11px; }
}
/* image-motion.css */
/* Perla: restrained photographic depth, with fixed text and layout. */
.perla-motion-frame { display: block; position: relative; overflow: hidden; isolation: isolate; }
.perla-motion-frame--story { width: 100%; height: 100%; min-height: 320px; }
.product-preview > .perla-motion-frame { padding: 0; }
.perla-motion-background { position: relative; overflow: hidden; isolation: isolate; }
.perla-motion-background > .perla-motion-surface { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.perla-motion-surface { transform: none; transform-origin: center; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .perla-motion-surface { transition: transform 550ms cubic-bezier(.2,.65,.25,1); }
  .perla-motion-active > .perla-motion-surface {
    transform: translate3d(var(--perla-image-x, 0px), var(--perla-image-y, 0px), 0) scale(var(--perla-image-scale, 1.02));
    transition-duration: 380ms;
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .perla-motion-surface { transform: none !important; transition: none !important; will-change: auto !important; }
}
/* editorial-media.css */
/* Editorial photographs belong to the surrounding section; sales cards stay crisp. */
main img:not(.product-preview img, .product-card img, .cat-card img, .gift-card img, .vase-card img, .product-detail img, .product-gallery img, .story-cover__mark, .story-motif img){
  -webkit-mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent);
  mask-composite:intersect;
}
body .story-layer__media:not(.story-motif){background:transparent;overflow:visible;aspect-ratio:auto}
body .story-layer__media:not(.story-motif) img{height:auto;object-fit:contain;background:transparent}
body .addresses__branch img{border:0;border-radius:0}
body .branches-premium .card{border:0}

/* The approved fatayer artwork uses a navy ground that merges into the story. */
.story-layer__media:has(img[src*="fatira-approved"]){background:transparent}
.story-layer__media img[src*="fatira-approved"]{mask-image:radial-gradient(ellipse closest-side,#000 76%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse closest-side,#000 76%,transparent 100%)}

body .story-layer[data-layer='3']{width:100%;background:#102b49;padding-inline:max(5vw,calc((100vw - 1056px)/2))}body .story-layer[data-layer='3'] h2{color:#f6efe5}body .story-layer[data-layer='3'] p{color:#cdd5e1}body .story-layer[data-layer='3'] .eyebrow{color:#c8a45d}

/* Product story photography shares the selected navy backdrop. */
body .story-layer[data-layer='6']{width:100%;background:#0F2747;padding-inline:max(5vw,calc((100vw - 1056px)/2))}
body .story-layer[data-layer='6'] h2{color:#f6efe5}body .story-layer[data-layer='6'] p{color:#cdd5e1}body .story-layer[data-layer='6'] .eyebrow{color:#c8a45d}
/* pages.css */
/* Inner pages — ONE system (Ahmed, 12 Oct; DESIGN_RULES.md): gateway, the four categories,
   product details, occasions, privacy, 404. Same ivory ground, same content width and gutters,
   same page head, two card types only (category 4:5 on the gateway, product 1:1 everywhere else). */

/* short pages: the footer sits at the bottom of the screen, no strip under it */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

.inner-page { background: #F6EFE5; }
.fatayer-hospitality-photo{display:block;aspect-ratio:16/9;background:#0F2747;overflow:hidden;margin-bottom:16px}
.fatayer-hospitality-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;mask-image:none!important;-webkit-mask-image:none!important}
.inner-page .eyebrow { color: #735a2e; font-size: .9rem; letter-spacing: 0; }

/* page head: eyebrow, title, one line; the search sits on the same line */
.inner-page .page-hero.inner-head { min-height: 0; padding: clamp(1.6rem, 3.5vw, 2.6rem) 5vw 0; background: transparent !important; border: 0; }
.inner-head .page-hero__inner { width: auto; max-width: 1320px; margin: 0 auto; padding: 0; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.inner-head__title .eyebrow { margin-bottom: .4rem; }
.inner-head h1, .inner-page #product-name { max-width: none; margin: 0 0 .35rem; color: #0F2747; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.3; letter-spacing: 0; }
.inner-head p { max-width: 48rem; margin: 0; color: #40516a; font-size: 1rem; line-height: 1.8; text-decoration: none; border: 0; }
.inner-head .collection-search { width: min(100%, 300px); max-width: none; margin: 0; flex: 0 0 auto; }

/* content: one width, one gutter */
.inner-body { max-width: 1320px; margin: 0 auto; padding: 1.6rem 5vw clamp(2.5rem, 5vw, 4rem); box-sizing: content-box; }
.inner-page h2:not(.visually-hidden) { letter-spacing: 0; }
.inner-page .vase-gallery__head h2, .inner-page .gifts-section-head h2 { color: #0F2747; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; }

/* product card: the photo FILLS its frame — never an empty band beside or above it (Ahmed, 12 Oct).
   Square frame for box/tray photos, a two-column 16:9 frame for wide spreads (.product-card--wide).
   Rows that are not full are centred, like the gateway. */
.inner-page .products, .inner-page .vase-gallery__grid, .inner-page .newborn-grid {
  --cols: 4; --gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px var(--gap); width: auto; max-width: none; margin: 0; align-items: flex-start; }
.inner-page .product-card, .inner-page .vase-card, .inner-page .gift-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; border: 0; background: transparent; }
.inner-page .product-card--wide { flex-basis: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) * 2 + var(--gap)); }
.inner-page .products .collection-art, .inner-page .vase-card__photo, .inner-page .gift-card__photo {
  display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0; background: #0F2747; }
.inner-page .product-card--wide .collection-art { aspect-ratio: 16 / 9; }
.inner-page .vase-card__photo { background: #F6EFE5; }
.inner-page .products .collection-art img, .inner-page .vase-card__photo img, .inner-page .gift-card__photo img,
.inner-page .vase-card__photo .perla-motion-frame, .inner-page .gift-card__photo .perla-motion-frame { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.inner-page .product-card__body, .inner-page .vase-card__copy, .inner-page .gift-card__copy { display: grid; gap: .35rem; padding: .9rem .1rem 0; }
.inner-page .product-card h3, .inner-page .vase-card h3, .inner-page .gift-card__copy h3 { min-height: 0; margin: 0; color: #0F2747; font-size: 1.05rem; line-height: 1.5; }
.inner-page .gift-card__copy span { margin: 0; color: #735a2e; font-size: .85rem; }
.inner-page .gift-card__copy p, .inner-page .vase-card__copy p { margin: 0; color: #40516a; font-size: .9rem; line-height: 1.7; }
.inner-page .product-card .text-link { justify-self: start; margin: 0; color: #735a2e; font-size: .85rem; font-weight: 700; border-bottom: 1px solid #C8A45D; padding-bottom: .1rem; }
.inner-page .product-card .text-link::after { content: " ←"; }
[dir="ltr"] .inner-page .product-card .text-link::after { content: " →"; }
.inner-page .order-note { margin: 1.6rem 0 0; font-size: .9rem; }
.inner-page .order-note a { color: #0F2747; border-bottom: 1px solid #C8A45D; }

/* chocolate: trays and vases follow the same grid */
.inner-page .vase-gallery { width: auto; max-width: none; margin: 3rem 0 0; }
.inner-page .vase-gallery__head p { margin: .3rem 0 0; color: #40516a; font-size: 1rem; }
.inner-page .vase-gallery__hero { display: block; max-width: 960px; margin: 1.4rem auto 1.6rem; background: none; }
.inner-page .vase-gallery__hero img { display: block; width: 100%; height: auto; max-height: none; margin: 0; object-fit: fill; }

/* occasions: same content width as the other pages */
.inner-page .newborn-section, .inner-page .gifts-more { padding-inline: 5vw; }
.inner-page .newborn-section > *, .inner-page .gifts-section-head { max-width: 1320px; margin-inline: auto; }

/* product details: same width; the photo is whole, never cropped */
.inner-page .product-body { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.inner-page .product-body .detail { width: auto; max-width: none; margin: 0; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* Owner's transparent sample collections retain every piece in both themes. */
.inner-page .product-card--samples .collection-art { background:var(--surface-card); }
.inner-page .product-card--samples .collection-art img { object-fit:contain; }
.product-detail-image > a { display:block; width:100%; height:100%; }
.product-detail-image--samples { background:var(--surface-card); }

/* Approved serving photographs use native square frames; never specimen grids. */
.inner-page .product-card--samples .collection-art { aspect-ratio:1; background:#f6efe5; }
.inner-page .product-card--samples .collection-art img { object-fit:contain; }
.product-detail-image--samples { background:#f6efe5; }

/* privacy / 404: a comfortable reading width inside the same container */
.inner-page .inner-body .story { display: block; width: auto; max-width: 760px; margin: 0; }
.inner-page .inner-body .story h2 { margin: 2rem 0 .6rem; color: #0F2747; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; }
.inner-page .inner-body .story h2:first-child { margin-top: 0; }
.inner-page .inner-body .story p { color: #40516a; font-size: 1rem; line-height: 1.9; }

@media (max-width: 1100px) {
  .inner-page .products, .inner-page .vase-gallery__grid, .inner-page .newborn-grid { --cols: 3; }
}
@media (max-width: 700px) {
  .inner-head .page-hero__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .inner-head .collection-search { width: 100%; }
  .inner-page .page-hero.inner-head { padding: 1.4rem 16px 0; }
  .inner-body { padding: 1.2rem 16px 2.5rem; }
  .inner-page .products, .inner-page .vase-gallery__grid, .inner-page .newborn-grid { --cols: 2; --gap: 12px; row-gap: 18px; }
  .inner-page .newborn-section, .inner-page .gifts-more { padding-inline: 16px; }
}

#hospitality > .underlined{display:table;margin-top:12px}

/* One presentation frame for every catalogue: original photos keep their colors. */
.inner-page .product-card, .inner-page .vase-card, .inner-page .gift-card {
  border:1px solid var(--stroke); border-radius:6px; overflow:hidden;
  background:var(--surface-card);
}
.inner-page .product-card__body, .inner-page .vase-card__copy, .inner-page .gift-card__copy {
  padding:12px; gap:6px;
}
.inner-page .product-card h3, .inner-page .vase-card h3, .inner-page .gift-card__copy h3 {
  font-size:1rem; line-height:1.5; overflow-wrap:break-word;
}
.inner-page .product-card .text-link { min-height:30px; display:inline-flex; align-items:center; }
/* custom-orders.css */
/* Owner-selected past orders; transparent artwork follows both approved palettes. */
.custom-orders { padding:40px 5vw; scroll-margin-top:180px; border-top:1px solid var(--stroke); }
.custom-orders__inner { max-width:1320px; margin-inline:auto; }
.custom-orders__head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.custom-orders__head h2 { margin:4px 0 0; font-size:clamp(1.5rem,2.4vw,2rem); }
.custom-orders__head p { max-width:34rem; margin:0; color:var(--muted); font-size:.95rem; line-height:1.9; }
.custom-orders__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.custom-order { min-width:0; margin:0; background:var(--surface-card); border:1px solid var(--stroke); border-radius:12px; overflow:hidden; }
.custom-order__stage { display:block; position:relative; isolation:isolate; width:100%; aspect-ratio:1; padding:24px; box-sizing:border-box; perspective:1000px; background:radial-gradient(ellipse at 50% 80%,var(--surface-alt),transparent 72%); touch-action:pan-y; -webkit-tap-highlight-color:transparent; }
.custom-order__stage::before { content:''; position:absolute; width:58%; height:9%; inset-inline-start:21%; bottom:12%; border-radius:50%; background:#0003; filter:blur(14px); z-index:-1; }
.custom-order__stage picture { display:contents; }
.custom-order__stage img { display:block; width:100%; height:100%; object-fit:contain; mask-image:none!important; -webkit-mask-image:none!important; user-select:none; transform:rotateX(var(--order-tilt-x,0deg)) rotateY(var(--order-tilt-y,0deg)) translateZ(20px); transition:transform .35s ease; transform-origin:50% 60%; }
.custom-order__stage[data-tilting] img { transition:none; will-change:transform; }
.custom-orders[data-interactive] .custom-order__stage { cursor:grab; }
.custom-orders[data-interactive] .custom-order__stage:active { cursor:grabbing; }
.custom-order__zoom { position:absolute; inset-inline-end:12px; bottom:12px; display:flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--stroke); border-radius:4px; background:var(--surface); color:var(--text); font-size:.72rem; }
.custom-order__zoom svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
.custom-order__copy { padding:18px 20px 22px; border-top:1px solid var(--stroke); }
.custom-order__copy h3 { color:var(--text); font-size:1rem; line-height:1.6; margin:0 0 6px; }
.custom-order__copy p { color:var(--muted); font-size:.85rem; line-height:1.8; margin:0 0 12px; }
.custom-order__copy a { display:inline-flex; align-items:center; min-height:44px; color:var(--text); font-size:.85rem; border-bottom:1px solid var(--accent); }
.custom-orders__hint { color:var(--muted); font-size:.8rem; line-height:1.8; margin:16px 0 0; }
.custom-order__stage:focus-visible, .custom-order__copy a:focus-visible, .custom-order-dialog button:focus-visible { outline:3px solid var(--accent); outline-offset:-4px; }
.custom-order-dialog { width:min(92vw,860px); max-width:none; max-height:92svh; margin:auto; padding:24px; box-sizing:border-box; overflow:auto; border:1px solid var(--stroke); border-radius:12px; color:var(--text); background:var(--surface); }
.custom-order-dialog::backdrop { background:#030d1ad1; backdrop-filter:blur(6px); }
.custom-order-dialog__top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.custom-order-dialog__top h2 { margin:0; font-size:1.1rem; line-height:1.6; }
.custom-order-dialog__top form { margin:0; }
.custom-order-dialog button { width:44px; height:44px; padding:0; font-size:28px; border:1px solid var(--stroke); background:var(--surface-card); color:var(--text); cursor:pointer; }
.custom-order-dialog__media { display:grid; place-items:center; min-width:0; }
.custom-order-dialog__media picture { display:contents; }
.custom-order-dialog__media img { display:block; width:100%; height:min(65svh,680px); object-fit:contain; mask-image:none!important; -webkit-mask-image:none!important; }
html.custom-order-modal-open { overflow:hidden; }
@media(max-width:760px) {
 .custom-orders { padding:32px 16px; scroll-margin-top:120px; }
 .custom-orders__head { align-items:start; flex-direction:column; gap:10px; }
 .custom-orders__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
 .custom-order:last-child { grid-column:1 / -1; width:calc((100% - 16px) / 2); justify-self:center; }
 .custom-order__stage { padding:16px; }
 .custom-order__copy { padding:14px; }
 .custom-order-dialog { padding:16px; }
}
@media(max-width:480px) {
 .custom-orders__grid { grid-template-columns:1fr; }
 .custom-order:last-child { grid-column:auto; width:100%; }
 .custom-order__stage { aspect-ratio:auto; height:280px; padding:18px; }
 .custom-order__copy p { margin-bottom:4px; }
}
@media(prefers-reduced-motion:reduce) {
 .custom-order__stage img { transform:none!important; transition:none; }
 .custom-orders__hint { display:none; }
}
/* One selected image per work; keep the last pair centered. */
.custom-order--portrait { scroll-margin-top:120px; }
.custom-order--portrait .custom-order__stage { height:auto; aspect-ratio:1122 / 1402; padding:0; overflow:hidden; }
.custom-order--portrait .custom-order__stage::before { content:none; }
.custom-order--portrait .custom-order__stage img { transform-origin:center; transform:rotateX(var(--order-tilt-x,0deg)) rotateY(var(--order-tilt-y,0deg)); }
@media(min-width:761px) {
 .custom-orders__grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
 .custom-orders__grid > .custom-order { grid-column:span 2; }
 .custom-orders__grid > .custom-order:nth-child(4):nth-last-child(2) { grid-column:2 / span 2; }
 .custom-orders__grid > .custom-order:nth-child(5):last-child { grid-column:4 / span 2; }
}
/* macarons.css */
/* Owner-requested Perla macaron section; scoped so existing pages stay unchanged. */
.macaron-shell{max-width:1320px;margin-inline:auto;min-width:0}
.macaron-home,.macaron-collection{padding:clamp(32px,5vw,64px) 5vw;background:var(--surface);color:var(--text);scroll-margin-top:150px;border-block-start:1px solid var(--stroke)}
.macaron-home :is(h2,h3),.macaron-collection :is(h2,h3){color:var(--text);letter-spacing:0;line-height:1.5}
.macaron-home h2{font-size:clamp(1.7rem,3vw,2.6rem);margin:6px 0 10px}
.macaron-collection h2{font-size:clamp(1.25rem,2vw,1.65rem);margin:6px 0 10px}
.macaron-catalogue{padding-top:1.6rem;border-block-start:0}
.macaron-occasion,.macaron-occasion__links a{scroll-margin-top:150px}
html:has(.macaron-occasion:target,.macaron-occasion__links a:target){scroll-behavior:auto}
.macaron-occasion__links{display:flex;flex-wrap:wrap;gap:8px 24px}
.macaron-home p,.macaron-collection p{color:var(--muted);font-size:.95rem;line-height:1.9;margin:0}
.macaron-home .eyebrow,.macaron-collection .eyebrow{color:var(--accent);font-size:.85rem}
.macaron-home__head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.macaron-home__piece{display:block;flex:0 0 120px;width:120px;height:120px;object-fit:contain}
.macaron-photo{display:block;min-width:0;text-decoration:none;background:transparent}
.macaron-photo img{display:block;width:100%;height:auto;object-fit:contain;mask-image:linear-gradient(to right,transparent,#000 1.5%,#000 98.5%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 1.5%,#000 98.5%,transparent),linear-gradient(to bottom,transparent,#000 2%,#000 98%,transparent);-webkit-mask-composite:source-in}
.macaron-home__foot,.macaron-format__copy{display:flex;align-items:center;justify-content:space-between;gap:24px}
.macaron-home__foot{padding-top:20px}
.macaron-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;width:fit-content;color:var(--text);font-size:.9rem;font-weight:600;border-bottom:1px solid var(--accent);text-decoration:none;flex-shrink:0}
.macaron-link::after{content:'←';font-size:1.1rem}
[dir="ltr"] .macaron-link::after{content:'→'}
.macaron-link:hover{color:var(--accent)}
.macaron-home a:focus-visible,.macaron-collection a:focus-visible,.macaron-detail summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.macaron-format__copy{padding-block:24px;align-items:end}
.macaron-format__copy>div{max-width:42rem}
.macaron-towers,.macaron-colors,.macaron-box{scroll-margin-top:150px}
.macaron-detail{border-block-start:1px solid var(--stroke);border-block-end:1px solid var(--stroke);margin:0 0 32px}
.macaron-detail summary{cursor:pointer;padding-block:16px;min-height:44px;box-sizing:border-box;color:var(--text);font-size:.85rem}
.macaron-detail>a{display:block;width:min(100%,480px);margin:8px auto 24px}
.macaron-detail img{display:block;width:100%;height:auto;object-fit:contain}
.macaron-colors,.macaron-box{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);align-items:center;gap:clamp(24px,5vw,64px)}
.macaron-box{margin-block-end:clamp(24px,4vw,48px);padding-block-end:clamp(24px,4vw,48px);border-block-end:1px solid var(--stroke)}
.macaron-colors__copy .macaron-link{margin-top:18px}
.macaron-collection .macaron-availability{padding-top:28px;font-size:.78rem;line-height:1.8;max-width:58rem}
@media(max-width:900px){.macaron-format__copy{align-items:start;flex-direction:column;gap:14px}.macaron-home__foot{align-items:start;flex-wrap:wrap;gap:10px}}
@media(max-width:700px){
 .macaron-home,.macaron-collection{padding:28px 16px;scroll-margin-top:120px}
 .macaron-home__head{gap:12px;margin-bottom:18px;align-items:start}
 .macaron-home__piece{flex-basis:64px;width:64px;height:64px;margin-top:5px}
 .macaron-home h2{font-size:1.6rem;line-height:1.5}
 .macaron-home__photo{max-width:400px;margin-inline:auto}
 .macaron-colors,.macaron-box{grid-template-columns:minmax(0,1fr);gap:18px}
 .macaron-colors__copy{order:2}
 :is(.macaron-colors,.macaron-box)>.macaron-photo{order:1}
 .macaron-detail summary{line-height:1.8}
 .macaron-link{font-size:.83rem;max-width:100%;white-space:normal}
 .macaron-home__foot p{font-size:.85rem}
}
/* approved-visuals.css */
/* Owner-approved showroom: complete artwork, native proportions and both palettes. */
.approved-feature,.approved-showcase{max-width:1320px;margin-inline:auto;padding:clamp(24px,4vw,54px) 5vw;color:var(--text);box-sizing:content-box}
.approved-feature__head,.approved-showcase__head{margin-block-end:20px}
.approved-feature h2,.approved-showcase h2{margin:0 0 8px;font-size:clamp(1.5rem,2.7vw,2.25rem);line-height:1.4;color:var(--text)}
.approved-feature p,.approved-card p{color:var(--muted);line-height:1.75}
.approved-feature__links{margin-block-start:16px}
.approved-campaign{max-width:1320px;margin:20px auto;overflow:hidden}
.approved-campaign>a,.approved-campaign picture,.approved-campaign img{display:block;width:100%}
.approved-campaign img{height:auto;object-fit:cover;mask-image:none!important;-webkit-mask-image:none!important;filter:none}
.approved-campaign--collection{aspect-ratio:2021/778}
.approved-campaign--B01,.approved-campaign--B06{aspect-ratio:1942/810}
.approved-campaign>a,.approved-campaign picture,.approved-campaign img{height:100%}
.approved-grid{--cols:4;--gap:18px;display:flex;flex-wrap:wrap;justify-content:center;gap:24px var(--gap);align-items:start}
html .approved-grid .approved-card{flex:0 0 calc((100% - (var(--cols) - 1)*var(--gap))/var(--cols));min-width:0;border:1px solid var(--stroke);border-radius:6px;background:var(--surface-card);overflow:hidden}
html .approved-grid .approved-card--wide{flex-basis:calc((100% - (var(--cols) - 1)*var(--gap))/var(--cols)*2 + var(--gap))}
.approved-card__art{display:block;background:var(--surface);width:100%}
.approved-card__art picture,.approved-card__art img{display:block;width:100%;height:auto;object-fit:cover}
html .approved-card .product-card__body{display:grid;gap:8px;padding:14px}
html .approved-card h3{font-size:1rem;line-height:1.55;margin:0;color:var(--text)}
html .approved-card p{font-size:.88rem;margin:0}
html .approved-card .approved-card__story-title{font-size:1.2rem;line-height:1.5;margin:4px 0 0;color:var(--accent)}
html .approved-card--story h3{min-height:0}
html .approved-card .approved-card__story{max-width:60ch}
html .approved-card .text-link{font-size:.88rem;color:var(--accent);min-height:36px;display:inline-flex;align-items:center;justify-self:start}
.approved-modal{width:min(920px,92vw);max-height:92dvh;padding:20px;border:1px solid var(--stroke);border-radius:8px;background:var(--surface);color:var(--text)}
.approved-modal::backdrop{background:#03101dcc}
.approved-modal__head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.approved-modal__head h2{font-size:1.15rem;line-height:1.6;margin:0}
.approved-modal button{min-width:44px;min-height:44px;border:1px solid var(--stroke);background:var(--surface-card);color:var(--text);font:inherit;cursor:pointer;border-radius:4px;padding:8px 14px}
.approved-modal__media{display:flex;align-items:center;justify-content:center;background:var(--surface-card);margin-block:14px}
.approved-modal__media img{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;object-fit:contain}
.approved-modal__controls{display:flex;justify-content:center;align-items:center;gap:16px}
.approved-modal__controls[hidden]{display:none}
html.approved-modal-open{overflow:hidden}
@media(max-width:1100px){.approved-grid{--cols:3}}
@media(max-width:700px){.approved-feature,.approved-showcase{padding:24px 16px}.approved-grid{--cols:2;--gap:12px;gap:18px var(--gap)}.approved-campaign{margin:16px;aspect-ratio:4/5}.approved-feature .approved-campaign{margin-inline:0}.approved-card .product-card__body{padding:10px}.approved-modal{padding:12px}.approved-modal__head h2{font-size:1rem}}
/* layout.css */
/* Shared layout layer: one header and footer on every page, the language switch and search.
   Loaded last on every page (tools/layout.py keeps it there). */

/* AVIF photos (tools/avif.py): the generated <picture> wrapper adds no box of its own */
picture[data-avif] { display: contents; }

/* accessibility */
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; padding: .7rem 1.1rem; background: #FF9E1B; color: #0F2747; font-weight: 700; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #C8A45D; outline-offset: 3px; }

/* header: identical on every page */
.subpage-categories { flex-wrap: nowrap; justify-content: safe center; gap: clamp(.65rem, 5vw - 2.15rem, 2rem); overflow-x: auto; scrollbar-width: none; }
.subpage-categories::-webkit-scrollbar { display: none; }
.subpage-categories a { white-space: nowrap; }
.subpage-categories a:hover, .subpage-nav a:hover { color: #FF9E1B; }
.subpage-actions .lang-toggle { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 .55rem; cursor: pointer; font-family: Alexandria, Arial, sans-serif; }

@media (max-width: 800px) {
  .subpage-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 1.15rem; padding-inline: .25rem; white-space: nowrap; }
  .subpage-nav::-webkit-scrollbar { display: none; }
  .subpage-categories { justify-content: flex-start; gap: 1.4rem; padding: .7rem 1rem; }
  .subpage-categories a { font-size: .8rem; }
  .subpage-actions { gap: .35rem; }
  .subpage-actions .lang-toggle, .subpage-search { display: inline-grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  .subpage-search svg { width: 19px; height: 19px; }
}

/* The main nav moves to its own row, centred under the logo, whenever it cannot sit beside the logo:
   below 1024px, and in English below 1280px (longer labels). Before this it ran under the logo. */
@media (min-width: 901px) and (max-width: 1023px) {
  .subpage-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: .1rem 0 .2rem; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  html[dir="ltr"] .subpage-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: .1rem 0 .2rem; }
}

/* One pinned row (Ahmed, 14 Oct): the service line scrolls away (sticky top = minus its height) and the
   category row sits under the header, so it scrolls with the page. Pinned height: 82px desktop, 60px phone. */
.subpage-header { top: -30px; }
.subpage-service { height: 30px; min-height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-sizing: border-box; }
.subpage-categories { background: var(--perla-navy); border-bottom: 1px solid rgba(200,164,93,.32); }
.menu-toggle, .site-menu { display: none; }

@media (max-width: 900px) {
  .subpage-head { min-height: 60px; padding: .4rem 1rem; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; }
  .subpage-logo img { width: min(136px, 34vw); }
  .subpage-nav { display: none; }
  .menu-toggle { grid-column: 1; grid-row: 1; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(200,164,93,.55); background: transparent; color: var(--perla-ivory); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .menu-toggle[aria-expanded="true"] { background: rgba(200,164,93,.18); }
  .site-menu:not([hidden]) { display: block; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 1rem 1rem 1.4rem; border-top: 1px solid rgba(200,164,93,.32); background: var(--perla-navy); }
  .site-menu__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-menu__cats a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: var(--perla-ivory); }
  .site-menu__cats img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .site-menu__cats span { position: absolute; inset: auto 0 0; padding: 1.4rem .6rem .5rem; background: linear-gradient(transparent, rgba(7,25,47,.92)); font-size: .85rem; font-weight: 600; }
  .site-menu__links { display: grid; margin-top: 1rem; border-top: 1px solid rgba(200,164,93,.25); }
  .site-menu__links a { padding: .85rem .2rem; border-bottom: 1px solid rgba(200,164,93,.18); color: var(--perla-ivory); font-size: .95rem; }
  .site-menu__links a[aria-current="page"] { color: var(--perla-orange); }
  html.menu-open { overflow: hidden; }
}

/* collections search */
.collection-search { position: relative; width: min(100%, 560px); margin: 0 auto 1.6rem; }
.collection-search svg { position: absolute; inset-inline-start: 1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #0F2747; stroke-width: 1.65; stroke-linecap: round; opacity: .6; pointer-events: none; }
.collection-search input { width: 100%; min-height: 52px; padding: .8rem 1rem; padding-inline-start: 3rem; border: 1px solid rgba(200,164,93,.55); border-radius: 0; background: #fff; color: #0F2747; font: 400 1rem/1.4 Alexandria, Arial, sans-serif; }
.collection-search input:focus { border-color: #C8A45D; outline: none; box-shadow: 0 0 0 3px rgba(200,164,93,.25); }
.search-empty { margin: 2rem auto 0; color: #40516a; text-align: center; }

/* English (LTR) */
html[dir="ltr"] body { letter-spacing: 0; }

/* Phones: two header rows only (logo + actions, main nav). The product categories stay one tap
   away on the collections page, the home tiles and the footer (Ahmed, 6 Oct). */
@media (max-width: 900px) { .subpage-categories { display: none; } }
/* theme.css */
/* Approved dual palette, 19 Oct 2026. Product images keep their original pixels. */
:root { --surface:#0F2747; --surface-alt:#132f50; --surface-card:#163552; --text:#F6EFE5; --muted:#ced7e2; --accent:#d6b474; --stroke:#c8a45d66; color-scheme:dark; }
:root[data-theme="light"] { --surface:#F6EFE5; --surface-alt:#fbf7f0; --surface-card:#fffaf3; --text:#0F2747; --muted:#40516a; --accent:#80602f; --stroke:#c8a45d70; color-scheme:light; }
html body { background:var(--surface); color:var(--text); }
.theme-toggle { display:inline-grid; place-items:center; flex-shrink:0; width:42px; height:42px; padding:8px; background:transparent; border:1px solid var(--stroke); border-radius:4px; color:var(--text); cursor:pointer; }
.theme-toggle svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .theme-moon, [data-theme="light"] .theme-toggle .theme-sun { display:none; }
[data-theme="light"] .theme-toggle .theme-moon { display:block; }
.theme-toggle:hover { background:var(--surface-card); }
html .subpage-header, html .subpage-head, html .subpage-service, html .subpage-categories, html .site-menu:not([hidden]) { background:var(--surface); color:var(--text); border-color:var(--stroke); }
html .subpage-nav a, html .subpage-categories a, html .lang-toggle, html .subpage-search, html .menu-toggle, html .site-menu__links a { color:var(--text); }
html .subpage-nav a[aria-current="page"], html .subpage-categories a[aria-current="page"] { color:var(--accent); border-bottom-color:var(--accent); }
html .subpage-order { background:var(--text); color:var(--surface); border:1px solid var(--text); }
html .subpage-actions { gap:.6rem; }
html .site-footer--full { background:var(--surface)!important; color:var(--text)!important; border-color:var(--stroke)!important; }
html .site-footer--full .footer-grid a, html .site-footer--full .legal { color:var(--text)!important; }
html .site-footer--full .footer-grid h2 { color:var(--accent)!important; }
html .inner-page, html .story-page, html body:not(.maison) .section, html body:not(.maison) .section--mist, html body:not(.maison) .page-hero { background:var(--surface); color:var(--text); }
html .inner-head h1, html .inner-page #product-name, html .inner-page h2, html .inner-page .product-card h3, html .inner-page .vase-card h3, html .inner-page .gift-card__copy h3, html .story-layer h2 { color:var(--text); }
html .inner-head p, html .inner-page .order-note, html .inner-page .gift-card__copy p, html .inner-page .vase-card__copy p, html .inner-page .inner-body .story p, html .story-layer p, html .search-empty { color:var(--muted); }
html .inner-page .eyebrow, html .inner-page .text-link, html .inner-page .gift-card__copy span, html .story-layer .eyebrow { color:var(--accent); }
html .inner-page .order-note a, html .cat-gateway__order a { color:var(--text); }
html .collection-search input, html .form input, html .form select, html .form textarea { background:var(--surface-card); color:var(--text); border-color:var(--stroke); }
html .collection-search input::placeholder { color:var(--muted); opacity:1; }
html .collection-search svg { stroke:var(--text); opacity:1; }
/* Category portraits keep their native 4:5 frame; captions never cover the food. */
html .cat-gateway .page-hero__inner { display:grid; grid-template-columns:minmax(0,1fr); width:100%; justify-content:stretch; justify-items:center; text-align:center; gap:1.1rem; }
html .cat-gateway .inner-head__title { width:100%; }
html .cat-gateway .inner-head h1 { font-size:clamp(1.9rem,3vw,2.6rem); }
html .cat-gateway .inner-head .collection-search { width:min(100%,360px); }
html .cat-gateway__grid { gap:18px; }
html .cat-card { min-width:0; border:1px solid var(--stroke); border-radius:6px; overflow:hidden; background:var(--surface-card); }
html .cat-card a { color:var(--text); }
html .cat-card__img { aspect-ratio:4/5; background:var(--surface); }
/* Transparent subjects share this exact ground; no baked photographic backdrops. */
html .cat-card__img img { object-fit:contain; padding:clamp(6px,1vw,12px); box-sizing:border-box; background:var(--surface); transform:none!important; }
html .cat-card__body { grid-template-columns:1fr auto; align-items:center; padding:15px 17px; gap:8px; }
html .cat-card__body h3 { min-height:0; color:var(--text); font-size:clamp(.9rem,1.25vw,1.12rem); }
html .cat-card__cta { font-size:0; border:0; color:var(--accent); }
html .cat-card__cta::after { content:'←'; font-size:1.5rem; }
html[dir="ltr"] .cat-card__cta::after { content:'→'; }
html .cat-card a:hover { box-shadow:inset 0 0 0 1px var(--accent); }
html .cat-gateway__order { color:var(--muted); }
/* Home surfaces change, photographic navy artwork stays faithful to its source. */
html .maison .universe, html .maison .home-recipients, html .maison .home-trust, html .maison .addresses, html .maison .selection, html .maison .home-special { background:var(--surface); color:var(--text); }
html .maison .universe h2, html .maison .home-recipients h2, html .maison .addresses h2, html .maison .selection h2, html .maison .selection h3, html .maison .home-special h2 { color:var(--text); }
html .maison .home-trust b, html .maison .home-recipients b { color:var(--text); }
html .maison .home-trust small, html .maison .home-recipients span, html .maison .home-special p { color:var(--muted); }
html .maison .home-recipients__grid a, html .maison .home-wa { border-color:var(--stroke); background:var(--surface-card); color:var(--text); }
html .maison .home-wa small { color:var(--muted); }
html .maison .home-recipients__grid svg, html .maison .home-trust svg, html .maison .home-wa svg { stroke:var(--accent); }
html .story-layer__num { color:var(--accent); }
html .branches-premium, html .branches-premium .one, html .branches-premium .one .info { background:var(--surface); color:var(--text); }
html .branches-premium .one .card { background:var(--surface-card); color:var(--text); border-color:var(--stroke); }
html .branches-premium .one .section-head p, html .branches-premium .one .location, html .branches-premium .one .hours { color:var(--muted); }
@media(max-width:900px) {
 html .subpage-head { gap:.35rem; padding-inline:12px; }
 html .subpage-actions { gap:.3rem; }
 html .theme-toggle { width:36px; height:36px; }
 html .subpage-logo img { width:min(120px,29vw); }
 html .subpage-head .subpage-logo img { width:min(160px,34vw); }
 html .subpage-search { display:none; }
}
@media(max-width:700px) { html .cat-gateway__grid { gap:14px 12px; } html .cat-card__body { padding:11px 10px; } }
@media(max-width:380px) { html .subpage-actions .lang-toggle { min-width:30px; width:30px; } html .subpage-order { padding-inline:.55rem; } html .subpage-logo img { width:96px; } }
/* Keep the wordmark legible while all four phone header controls remain available. */
@media(max-width:400px) {
 html .subpage-head { padding-inline:8px; gap:4px; }
 html .subpage-head .subpage-logo img { width:136px; max-width:none; }
 html .subpage-head .menu-toggle { width:36px; height:40px; }
 html .subpage-head .subpage-actions { gap:3px; }
 html .subpage-head .lang-toggle { width:30px; min-width:30px; padding-inline:0; }
 html .subpage-head .theme-toggle { width:32px; padding:5px; }
 html .subpage-head .subpage-order { padding:.4rem .35rem; font-size:.66rem; }
}
@media(max-width:340px) {
 html .subpage-head .subpage-logo img { width:130px; }
 html .subpage-head .lang-toggle { width:28px; min-width:28px; }
 html .subpage-head .theme-toggle { width:30px; }
 html .subpage-head .subpage-order { padding-inline:.25rem; font-size:.6rem; }
}

html .maison .addresses p, html .maison .addresses__branch, html .maison .addresses__branch span, html .maison .selection p { color:var(--muted); }
html .maison .addresses__branch b { color:var(--text); }
html .maison .selection-card { background:var(--surface-card); color:var(--text); }
html .maison .selection-card h3 { color:var(--text); }
html .maison .collection-grid .collection-tile { border:1px solid var(--stroke); border-radius:6px; }
/* Reserve the full portrait before the caption, including bases near the lower edge. */
html .maison .collection-grid .collection-tile { --category-inset:clamp(6px,1vw,12px); aspect-ratio:auto; padding:0; display:flex; flex-direction:column; align-items:stretch; background-size:calc(100% - 2 * var(--category-inset)) auto; background-repeat:no-repeat; background-position:center calc(var(--category-inset) * 1.25); background-color:var(--surface); }
html .maison .collection-grid .collection-tile::before { content:""; display:block; width:100%; aspect-ratio:4/5; flex-shrink:0; }
html .maison .collection-grid .collection-tile::after { display:none; }
html .maison .collection-grid .collection-tile > span { display:flex; align-items:center; width:100%; min-height:3.5em; padding:.65rem .8rem; box-sizing:border-box; background:var(--surface-card); color:var(--text); text-shadow:none; font-size:clamp(.85rem,1.3vw,1.12rem); line-height:1.5; flex:1; }
/* Use the same complete portrait in the expandable phone category menu. */
html .site-menu__cats a { aspect-ratio:auto; display:flex; flex-direction:column; border:1px solid var(--stroke); border-radius:6px; background:var(--surface-card); }
html .site-menu__cats img { width:100%; height:auto; aspect-ratio:4/5; object-fit:contain; padding:clamp(6px,1vw,12px); box-sizing:border-box; background:var(--surface); }
html .site-menu__cats span { position:static; padding:.65rem .6rem; min-height:3.5em; box-sizing:border-box; display:flex; align-items:center; flex:1; background:var(--surface-card); color:var(--text); font-size:.8rem; line-height:1.5; }
html .inner-page .vase-gallery__head p { color:var(--muted); }
html .inner-page .detail h1, html .inner-page .detail h2, html .inner-page .detail p, html .inner-page .detail a { color:var(--text); }

html .cat-gateway .inner-head__title { text-align:center; }
html .cat-gateway .inner-head h1, html .cat-gateway .inner-head p { margin-inline:auto; }
html .cat-gateway .page-hero__inner { justify-content:normal; }

/* Override the legacy ivory-page palette at its actual specificity. */
html body .inner-page .inner-head h1, html body .inner-page #product-name,
html body .inner-page .inner-body .story h2, html body .inner-page .product-card h3,
html body .inner-page .vase-card h3, html body .inner-page .gift-card__copy h3 { color:var(--text); }
html body .inner-page .inner-head p, html body .inner-page .inner-body .story p,
html body .inner-page .vase-gallery__head p, html body .inner-page .gift-card__copy p,
html body .inner-page .vase-card__copy p { color:var(--muted); }
html body .maison .home-special .eyebrow, html body .maison .addresses .eyebrow { color:var(--accent); }

html .inner-page .gifts-more, html .maison .best-sellers { background:var(--surface); color:var(--text); }
html .inner-page .gifts-more h2, html .inner-page .gifts-more h3, html .inner-page .gifts-more p,
html .maison .best-sellers h2, html .maison .best-sellers .underlined { color:var(--text); }
html .inner-page .gifts-request input, html .inner-page .gifts-request textarea, html .inner-page .gifts-request select { background:var(--surface-card); color:var(--text); border-color:var(--stroke); }
html .inner-page .gifts-request input::placeholder, html .inner-page .gifts-request textarea::placeholder { color:var(--muted); opacity:1; }

/* All structural surfaces follow the selected palette, including outer gutters.
   Food imagery has separate light versions; never invert or filter product pixels. */
html[data-theme='light'] body.maison, html[data-theme='light'] body.maison main { background:var(--surface); color:var(--text); }
html[data-theme='light'] body.maison :is(.cake-campaign,.signature-art,.home-art-pair,.oriental-campaign,.homemade-campaign,.maamoul-campaign,.fatayer-campaign) { background:var(--surface); color:var(--text); }
html[data-theme='light'] body.maison :is(.signature-art__head,.cake-campaign__copy,.oriental-campaign__copy,.homemade-campaign__copy,.maamoul-campaign__copy,.fatayer-campaign__copy) :is(h2,p,a:not(.button)) { color:var(--text); }
html[data-theme='light'] body.maison :is(.signature-art__head,.cake-campaign__copy,.oriental-campaign__copy,.homemade-campaign__copy,.maamoul-campaign__copy,.fatayer-campaign__copy) .eyebrow { color:var(--accent); }
/* The standalone pastry page uses the same approved light campaign as home. */
html[data-theme='light'] .fatayer-campaign { background:var(--surface); color:var(--text); }
html[data-theme='light'] .fatayer-campaign__copy :is(h2,p,a:not(.button)) { color:var(--text); }
html[data-theme='light'] .fatayer-campaign__copy .eyebrow { color:var(--accent); }
html[data-theme='light'] body.maison .addresses { border-color:var(--stroke); }
html[data-theme='light'] body.maison .addresses__branch img { background:transparent; }
html[data-theme='light'] body.maison :is(.best-sellers__head,.universe,.home-recipients) .eyebrow { color:var(--accent); }
html[data-theme='light'] body.maison .product-preview { background:var(--surface-card); color:var(--text); }
html[data-theme='light'] body.maison .product-preview h3, html[data-theme='light'] body.maison .product-preview a { color:var(--text); }
html[data-theme='light'] body .story-cover, html[data-theme='light'] body .story-pause, html[data-theme='light'] body .story-coda,
html[data-theme='light'] body .story-layer[data-layer='3'], html[data-theme='light'] body .story-layer[data-layer='5'], html[data-theme='light'] body .story-layer[data-layer='6'] { background:var(--surface); color:var(--text); }
html[data-theme='light'] body .story-cover :is(h1,p), html[data-theme='light'] body .story-pause :is(h2,p), html[data-theme='light'] body .story-coda :is(h2,p),
html[data-theme='light'] body .story-layer[data-layer] h2 { color:var(--text); }
html[data-theme='light'] body .story-layer[data-layer] p { color:var(--muted); }
html[data-theme='light'] body .story-cover .eyebrow, html[data-theme='light'] body .story-layer[data-layer] .eyebrow { color:var(--accent); }
html[data-theme='light'] .story-cover__mark { background:#0F2747; border-radius:12px; padding:14px; }
html[data-theme='light'] body .gifts-jump a { color:var(--text); }
html[data-theme='light'] body .inner-page .gift-card { background:var(--surface); }
html[data-theme='light'] body .inner-page .gifts-request .section__head p { color:var(--muted); }
html[data-theme='light'] body .site-menu__links { border-color:var(--stroke); }
html[data-theme='light'] body .menu-toggle { border-color:var(--stroke); }
html[data-theme='light'] body .theme-toggle:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
/* The approved films keep their natural palette; interface overlays follow theme. */
html[data-theme="light"] body.maison .editorial-hero { background:var(--surface)!important; }
html[data-theme="light"] body.maison .editorial-hero::after { background:none; }
html[data-theme="light"] body.maison .editorial-hero__caption { background:linear-gradient(90deg,rgba(246,239,229,.95),rgba(246,239,229,.55),transparent); color:var(--text); }
html[data-theme="light"][dir="rtl"] body.maison .editorial-hero__caption { background:linear-gradient(270deg,rgba(246,239,229,.95),rgba(246,239,229,.6) 55%,transparent); }
@media(max-width:800px) {
 html[data-theme="light"] body.maison .editorial-hero__caption, html[data-theme="light"][dir="rtl"] body.maison .editorial-hero__caption { background:linear-gradient(180deg,transparent,rgba(246,239,229,.92) 35%); }
}
html[data-theme="light"] body.maison .editorial-hero__caption :is(h1,p) { text-shadow:none; }
html[data-theme="light"] body.maison .editorial-hero__caption h1 { color:var(--text); }
html[data-theme="light"] body.maison .editorial-hero__caption p { color:var(--muted); }
html[data-theme="light"] body.maison .editorial-hero__caption .eyebrow { color:var(--accent); }
html[data-theme="light"] body.maison .editorial-hero__caption .underlined { color:var(--text); }
/* Occasion enquiries use the same palette throughout the complete form. */
html body .inner-page .gifts-section-head h2 { color:var(--text); }
html body .inner-page .gifts-section-head p { color:var(--muted); }
html body .inner-page .gifts-section-head .eyebrow { color:var(--accent); }
html body .gifts-jump a { color:var(--text); }
html body .inner-page .gifts-request { background:var(--surface); color:var(--text); border-top:1px solid var(--stroke); }
html body .inner-page .gifts-request h2, html body .inner-page .gifts-request label { color:var(--text); }
html body .inner-page .gifts-request p { color:var(--muted); }
html body .inner-page .gifts-request .eyebrow { color:var(--accent); }
html body .inner-page .gifts-request input, html body .inner-page .gifts-request select,
html body .inner-page .gifts-request textarea { border-color:var(--stroke); background:var(--surface-card); color:var(--text); }
html body .inner-page .gifts-request :is(input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
html body .inner-page .gifts-request__direct a { color:var(--text); border:1px solid var(--stroke); padding:10px 14px; min-height:44px; }
html body .inner-page .gift-card, html body .inner-page .product-card, html body .inner-page .vase-card { background:var(--surface-card); border:1px solid var(--stroke); }
/* Compact shared footer: all original destinations remain visible on phones. */
@media(max-width:700px) {
 html body .site-footer--full .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; padding-block:28px; }
 html body .site-footer--full .footer-grid > div:first-child { grid-column:1 / -1; }
 html body .site-footer--full .footer-grid > div:last-child { grid-column:1 / -1; }
 html body .site-footer--full .footer-grid > div:last-child a { display:inline-flex; margin-inline-end:18px; }
 html body .site-footer--full .footer-grid h2 { margin-bottom:8px; font-size:1rem; }
 html body .site-footer--full .footer-grid a:not(.subpage-logo) { min-height:32px; line-height:1.5; margin-bottom:0; padding-block:5px; }
 html body .site-footer--full .legal { margin-top:0; padding:16px; line-height:1.7; }
}
/* Orange action buttons need navy text in both palettes, including details. */
html body .inner-page .detail .product-order a.button,
html body .button--orange { background:#FF9E1B; color:#0F2747; border-color:#FF9E1B; }
html body .button--orange:focus-visible, html body .product-order .button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
html body.branches-premium .one .section-head h1 { color:var(--text); }
html.menu-open .mobile-order { display:none; }
/* Occasion photos have separate light art; loading surfaces must match too. */
html[data-theme="light"] .gifts-banner,
html[data-theme="light"] .inner-page .gift-card__photo { background:var(--surface); }
/* LIGHT_MEDIA_BACKGROUNDS */
html[data-theme="light"] body.maison .collection-grid { background:transparent; }
html[data-theme="light"] body.maison .collection-tile::after { background:none; }
html[data-theme="light"] .cat-card__img { background:var(--surface); }
html body.maison .collection-tile--chocolate { background-image:image-set(url("assets/perla-category-cutout-20261030-chocolate-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-chocolate-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--maamoul { background-image:image-set(url("assets/perla-category-cutout-20261030-maamoul-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-maamoul-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--homemade { background-image:image-set(url("assets/perla-category-cutout-20261030-sweets-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-sweets-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--oriental { background-image:image-set(url("assets/perla-category-cutout-20261030-oriental-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-oriental-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--fatayer { background-image:image-set(url("assets/perla-category-cutout-20261030-fatayer-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-fatayer-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--gifts { background-image:image-set(url("assets/perla-category-cutout-20261030-gifts-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-gifts-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--cakes { background-image:image-set(url("assets/perla-category-cutout-20261030-cakes-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-cakes-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
html body.maison .collection-tile--gateaux { background-image:image-set(url("assets/perla-category-cutout-20261030-gateaux-640w.avif") type("image/avif"), url("assets/perla-category-cutout-20261030-gateaux-640w.webp") type("image/webp"))!important; background-color:var(--surface); }
/* release-quality.css */
/* Shared, theme-aware refinements from the final acceptance review. */
html body .site-footer--full .footer-grid h2 { font-size:1.14rem; line-height:inherit; letter-spacing:0; margin:0 0 .45rem; }
.motion-control { position:absolute; z-index:5; inset-block-start:16px; inset-inline-start:16px; min-height:44px; padding:10px 16px; border:1px solid var(--accent); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; cursor:pointer; }
.motion-control[hidden] { display:none; }
.motion-control:focus-visible,.search-clear:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.request-selection { display:flex; align-items:end; gap:16px; margin:20px 0; padding:16px; border:1px solid var(--stroke); background:var(--surface-card); }
.request-selection[hidden] { display:none; }
.request-selection label { flex:1; min-width:0; display:grid; gap:8px; }
.request-selection input { width:100%; min-width:0; box-sizing:border-box; padding:12px; border:1px solid var(--stroke); background:var(--surface); color:var(--text); font:inherit; }
.request-selection button { background:transparent; border:0; cursor:pointer; font:inherit; font-size:13px; min-height:44px; color:var(--accent); }
.request-timing,.detail__facts,.product-allergy,.product-service-note { color:var(--muted); font-size:14px; line-height:1.9; }
.detail__facts { padding-inline-start:22px; }
.detail__facts li { margin-block:8px; }
.product-allergy { border-block-start:1px solid var(--stroke); padding-block-start:14px; }
.search-status { font-size:13px; color:var(--muted); margin:8px 0 20px; min-height:24px; }
.collection-search input { min-width:0; }
.search-clear { flex:none; background:var(--surface-card); color:var(--text); border:1px solid var(--stroke); border-radius:5px; min-height:44px; padding:8px 14px; cursor:pointer; font:inherit; font-size:13px; }
.search-clear[hidden] { display:none; }
html[data-theme='light'] .one :is(.number,.subtitle,.secondary) { color:var(--accent); }
html .one .hours { color:var(--muted); line-height:1.9; font-size:14px; opacity:1; }
html .one .title h2 { font-size:clamp(24px,3vw,36px); margin:0; color:var(--text); }
html[data-theme='light'] .story-pause .eyebrow { color:var(--accent); }
html[data-theme='light'] :is(.story-cover__hint,#story-coda-title) { color:var(--accent); }
html body.maison :is(.home-special,.addresses) .eyebrow { color:var(--accent); }
html .branches-premium .one .picture.art { background:var(--surface-card); }
.branch-art-caption { color:var(--muted); font-size:12px; text-align:center; padding:8px 12px; margin:0; background:var(--surface-card); }
.branch-service { color:var(--text); background:var(--surface); }
.branch-service__inner { max-width:1100px; margin-inline:auto; padding:36px 24px 60px; }
.branch-service h2 { font-size:clamp(23px,3vw,32px); }
.branch-service p { color:var(--muted); line-height:1.9; }
.legacy-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; list-style:none; }
.legacy-products a { display:block; padding:14px; border:1px solid var(--stroke); color:var(--text); }
.home-proof { display:grid; grid-template-columns:minmax(0,560px) minmax(0,520px); align-items:center; justify-content:center; gap:clamp(24px,5vw,72px); padding:48px 24px; background:var(--surface); color:var(--text); }
.home-proof figure { margin:0; text-align:center; background:transparent; }
.home-proof__art { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:12px; padding-block:16px; background:transparent; }
.home-proof__piece { display:block; min-width:0; }
.home-proof__piece + .home-proof__piece { margin-block-start:36px; }
html body.maison .home-proof img { display:block; width:100%; height:auto; mask-image:none; -webkit-mask-image:none; box-shadow:none; filter:none; background:transparent; }
.home-proof figcaption { margin-top:12px; color:var(--muted); font-size:12px; }
.home-proof h2 { font-size:clamp(28px,4vw,46px); line-height:1.4; }
.home-proof p { line-height:1.9; color:var(--muted); margin-block:20px; }
.home-proof .eyebrow { color:var(--accent); }
html body .fatayer-campaign__hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; background:var(--surface); }
html body .fatayer-campaign__image { width:min(100%,496px); margin:auto; aspect-ratio:4/5; object-fit:contain; max-height:none; background:var(--surface); }
html body .fatayer-campaign__copy { position:static; background:transparent; padding:24px; color:var(--text); }
html body .vase-gallery__hero { display:block; background:var(--surface); }
html body .vase-gallery__hero img { width:min(100%,440px); margin:auto; height:auto; aspect-ratio:4/5; object-fit:contain; background:var(--surface); }
@media(max-width:700px) {
 html body .site-footer--full .footer-grid h2 { font-size:1rem; margin-bottom:8px; }
 .request-selection { align-items:stretch; flex-direction:column; }
 .home-proof { grid-template-columns:1fr; padding:32px 24px; }
 .home-proof figure { width:min(100%,480px); margin:auto; }
 .home-proof__piece + .home-proof__piece { margin-block-start:18px; }
 .legacy-products { grid-template-columns:1fr; }
 html body .fatayer-campaign__hero { grid-template-columns:1fr; }
 .motion-control { inset-block-start:10px; inset-inline-start:10px; font-size:12px; padding:8px 12px; }
}

/* Merged review, 12 Nov: use palette tokens with enough selector specificity. */
html body .inner-page .product-card .text-link,
html body .inner-page .vase-card .text-link,
html body .inner-page .gift-card .text-link { color:var(--accent); min-height:44px; display:inline-flex; align-items:center; }
html body .cat-gateway .search-empty,
html body .inner-page .search-empty { color:var(--muted); }
html body .inner-page .product-card .text-link:hover,
html body .inner-page .product-card .text-link:focus-visible { color:var(--text); border-color:currentColor; }
html body .inner-page :is(.products,.vase-gallery__grid,.newborn-grid) { align-items:stretch; }
html body .inner-page :is(.product-card,.vase-card,.gift-card) { display:flex; flex-direction:column; }
html body .inner-page :is(.product-card__body,.vase-card__copy,.gift-card__copy) { display:flex; flex-direction:column; flex:1; }
html body .inner-page :is(.product-card__body,.vase-card__copy,.gift-card__copy) h3 { min-height:3em; }
html body .inner-page :is(.product-card__body,.vase-card__copy,.gift-card__copy) > .text-link { margin-block-start:auto; align-self:flex-start; }
.product-title-link { color:inherit; text-decoration:none; }
.product-title-link:hover { text-decoration:underline; text-underline-offset:4px; }
.collection-art:focus-visible,.product-title-link:focus-visible { outline:3px solid var(--accent); outline-offset:-3px; }
.footer-contact { margin-top:18px; display:grid; gap:8px; }
html body .site-footer--full .footer-contact a { min-height:44px; line-height:1.6; font-size:13px; display:grid; align-content:center; }
.footer-contact small { display:block; font-size:11px; color:var(--muted); }
html body .site-footer--full .footer-contact :is(span,bdi) { color:var(--text); }
html body .site-footer--full .footer-contact small { color:var(--muted); }
.global-search-results { margin-top:24px; }
.global-search-results[hidden] { display:none; }
.global-search-results .search-card[hidden] { display:none; }
.global-search-head { max-width:800px; }
.global-search-head h1 { font-size:clamp(30px,4vw,48px); line-height:1.3; max-width:24ch; margin:0 0 16px; }
.global-search-head .collection-search { width:100%; margin:22px 0 12px; }
.global-search-head .search-status { margin:8px 0; }
.related-products { margin-top:36px; padding-top:28px; border-top:1px solid var(--stroke); }
.product-info { margin-block:24px; padding:20px; border:1px solid var(--stroke); border-radius:8px; background:var(--surface-card); }
.product-info h2 { margin:0 0 16px; font-size:1.15rem; }
.product-info dl { margin:0; display:grid; gap:12px; }
.product-info dl > div { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr); gap:12px; }
.product-info dt { font-weight:600; color:var(--text); }
.product-info dd { margin:0; overflow-wrap:anywhere; color:var(--text); }
.related-products h2 { margin:0 0 20px; font-size:clamp(22px,3vw,30px); }
.related-products .product-grid,.global-search-results .product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.global-search-results .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.global-search-results .search-card h2 { font-size:18px; line-height:1.6; margin:0 0 18px; }
.global-search-results .collection-art img,.related-products .collection-art img { width:100%; height:100%; object-fit:contain; }
.global-search-results .collection-art { aspect-ratio:1; }
.global-search-head .collection-search { display:flex; gap:10px; }
.search-empty__links { display:flex; flex-wrap:wrap; gap:12px 20px; margin-block:16px; }
.search-empty__links a { display:inline-flex; align-items:center; min-height:44px; }
/* Keep an actual themed surface visible while lower-page photos load. */
html .gifts-page :is(.gift-card__photo,.custom-order__stage,.macaron-photo) { background-color:var(--surface-card); }
/* Photo slots already have an explicit height or aspect-ratio: defer their
   offscreen rendering without estimating or collapsing the card's dimensions. */
html .gifts-page :is(.gift-card__photo,.custom-order__stage) { content-visibility:auto; }
.global-search-head input { min-width:0; flex:1; width:100%; min-height:48px; padding:12px; color:var(--text); background:var(--surface-card); border:1px solid var(--stroke); border-radius:6px; font:inherit; }
.related-products .collection-art { aspect-ratio:1; }
.product-breadcrumbs { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-bottom:22px; }
.product-breadcrumbs a { color:var(--accent); min-height:32px; display:inline-flex; align-items:center; }
.product-breadcrumbs span { align-self:center; }
html body.maison .universe { padding-block:72px; }
html body.maison .addresses { width:min(100%,1280px); padding-block:56px; gap:40px; grid-template-columns:.9fr 1.1fr; }
html body.maison .addresses__branch img { min-height:180px; }
html body .gifts-request { padding-block:56px; }
.global-search-head { padding-bottom:12px; }
.global-search-results { padding-top:12px; }
@media(min-width:701px) and (max-width:1100px) {
 .global-search-results .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px) {
 html body .subpage-head { grid-template-columns:44px minmax(0,1fr) 44px 44px; gap:6px; padding:6px 12px; }
 html body .subpage-head .menu-toggle { grid-column:1; grid-row:1; width:44px; height:44px; }
 html body .subpage-head .subpage-logo { grid-column:2; grid-row:1; justify-self:center; min-width:0; }
 html body .subpage-head .subpage-logo img { width:136px; max-width:100%; height:auto; }
 html body .subpage-head .subpage-actions { display:contents; }
 html body .subpage-head .theme-toggle { grid-column:3; grid-row:1; width:44px; height:44px; }
 html body .subpage-head .lang-toggle { grid-column:4; grid-row:1; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; }
 html body .subpage-head .subpage-search { display:inline-grid; place-items:center; grid-column:1; grid-row:2; width:44px; height:44px; }
 html body .subpage-head .subpage-order { grid-column:2 / -1; grid-row:2; display:grid; place-items:center; min-height:44px; font-size:13px; padding:8px 12px; }
 html body .site-menu:not([hidden]) { display:flex; flex-direction:column; max-height:calc(100dvh - 136px); }
 html body .site-menu__links { order:-1; display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; padding-bottom:14px; }
 html body .site-menu__links a { padding:10px 12px; min-height:44px; border:1px solid var(--stroke); border-radius:4px; font-size:12px; }
 html body .site-menu__cats { flex-shrink:0; }
}
@media(max-width:700px) {
 html body.maison .universe { padding-block:32px; }
 html body.maison .addresses { padding-block:28px; grid-template-columns:1fr; gap:24px; }
 html body.maison .addresses__branch img { min-height:0; }
 html body .gifts-request { padding-block:32px; }
 .related-products .product-grid,.global-search-results .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 html body.maison .hero-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); max-width:100%; gap:12px; }
 html body.maison .hero-actions .underlined { white-space:normal; overflow-wrap:anywhere; min-width:0; max-width:100%; }
 html body.maison .hero-actions .button { min-width:0; max-width:100%; white-space:normal; }
 .global-search-head .collection-search { width:100%; }
}
