/* European Gulf Company – "Maison" theme
   A premium European butchery palette in harmony with the logo:
   ivory & stone canvas, aubergine-charcoal (logo ink), oxblood for meat, forest green for livestock,
   brass for fine details and the logo's mint as a sparing highlight. */

:root {
  --bg: #f3ede2;
  --bg-2: #e9e0cf;
  --card: #fffdf8;
  --card-soft: #faf5ea;
  /* "Heritage" palette – matches the logo: deep European green + gold, oxblood for meat */
  --ink: #16241e;
  --ink-2: #3e4b45;
  --muted: #6b766f;
  --line: #e4dccb;
  --night: #0f2a20;
  --night-2: #173a2d;
  --wine: #6a1b27;
  --wine-2: #852536;
  --wine-soft: #f5e6e4;
  --forest: #123a2b;
  --forest-2: #1d5440;
  --forest-soft: #e2ede6;
  --brass: #a57b33;
  --brass-light: #e2c47c;
  --brass-soft: #f5edda;
  --accent: var(--wine);
  --accent-2: var(--wine-2);
  --accent-soft: var(--wine-soft);
  /* legacy tokens used by site.css */
  --green: var(--accent);
  --green-2: var(--accent-2);
  --gold: var(--brass);
  --gold-soft: var(--brass-soft);
  --shadow: 0 1px 2px rgba(34, 28, 38, .05), 0 10px 28px -14px rgba(34, 28, 38, .22);
  --shadow-lg: 0 2px 6px rgba(34, 28, 38, .06), 0 28px 56px -26px rgba(34, 28, 38, .38);
}
.sec-livestock { --accent: var(--forest); --accent-2: var(--forest-2); --accent-soft: var(--forest-soft); }

body { background: var(--bg); color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
.eyebrow, .chips-label, .footer-h { color: var(--brass); }
.gold { color: var(--brass); font-style: italic; font-weight: 600; }
html[lang="ar"] .gold { font-style: normal; }
.note { border-inline-start-color: var(--brass); }

/* buttons */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { color: var(--ink); border-color: #cfc4b3; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-mint { background: var(--brass-light); color: var(--night); }
.btn-mint:hover { background: #e6cb94; color: var(--night); }
.btn.is-added { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* header: thin tri-colour rule, quiet navigation with underline */
.site-header { background: rgba(248, 245, 240, .94); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--forest) 0 40%, var(--brass-light) 40% 70%, var(--brass) 70% 85%, var(--wine) 85% 100%); }
.brand-name { color: var(--ink); }
.brand-name span { color: var(--brass); }
.main-nav a { position: relative; border-radius: 0; padding: 10px 12px; color: var(--ink-2); font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { background: transparent; color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"], .main-nav .nav-strong a[aria-current="page"] { background: transparent; color: var(--accent); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.main-nav .nav-strong a { color: var(--ink); }
.lang-switch summary, .ql-link { color: var(--ink); }
.ql-count { background: var(--brass); color: #fff; }
.nav-toggle .bar { background: var(--ink); }
@media (max-width: 1120px) { .main-nav a::after { display: none; } .main-nav a[aria-current="page"] { background: var(--accent-soft); border-radius: 10px; } }

/* hero: deep night band with ivory type */
.hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(168, 131, 63, .18), transparent 60%),
                    radial-gradient(900px 500px at 0% 100%, rgba(29, 84, 64, .55), transparent 60%),
                    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
        color: #eef2ec; padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: #faf6f0; }
.hero h1 .gold { color: var(--brass-light); }
.hero .eyebrow { color: var(--brass-light); }
.hero .lead { color: #d3ddd6; }
.hero .btn-primary { background: linear-gradient(135deg, #b8893c, #e2c47c); color: var(--night); }
.hero .btn-primary:hover { background: linear-gradient(135deg, #c4964a, #ecd294); color: var(--night); }
.hero .btn-ghost { color: #faf6f0; border-color: rgba(250, 246, 240, .35); }
.hero .btn-ghost:hover { background: rgba(250, 246, 240, .08); border-color: #faf6f0; color: #fff; }
.hero-points { border-top-color: rgba(250, 246, 240, .15); color: #e3ebe5; }
.hero-points li::before { border-color: var(--brass-light); }
.hv-card { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); background: #fbf8f3; }

/* choice cards: meat = oxblood, livestock = forest */
.choice { border: 1px solid var(--line); box-shadow: var(--shadow); }
.choice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--wine); z-index: 1; }
.choice-livestock::before { background: var(--forest); }
.choice-meat .choice-media { background: radial-gradient(120% 90% at 50% 100%, #fff 0%, #f6ebe8 75%); }
.choice-livestock .choice-media { background: radial-gradient(120% 90% at 50% 100%, #fff 0%, #e9f1ec 75%); }
.choice-body h3 { color: var(--ink); }
.choice-meat .choice-meta { color: var(--wine); }
.choice-livestock .choice-meta { color: var(--forest); }
.choice-meta .pill { background: var(--brass-soft); color: var(--brass); }

/* category tiles */
.cat-tile { border: 1px solid var(--line); box-shadow: none; }
.cat-tile:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.cat-name { color: var(--ink); }
.cat-more { color: var(--brass); }
.tile-meat::after { background: var(--wine-soft); }
.tile-livestock::after { background: var(--forest-soft); }

/* product cards */
.card { border: 1px solid var(--line); box-shadow: none; }
.card:hover { box-shadow: var(--shadow-lg); border-color: #d9ccb8; }
.card-meat { --accent: var(--wine); --accent-2: var(--wine-2); --accent-soft: var(--wine-soft); }
.card-livestock { --accent: var(--forest); --accent-2: var(--forest-2); --accent-soft: var(--forest-soft); }
.card-title a { color: var(--ink); }
.card:hover .card-title a { color: var(--accent); }
.card-label { background: rgba(255, 255, 255, .92); color: var(--brass); border: 1px solid var(--brass-soft); }
.card-actions .arrow { color: var(--accent); }
.tag-halal { background: var(--forest-soft); color: var(--forest); }
.tag-live { background: var(--brass-soft); color: #6b4f1f; }
.ph { border-color: #dccfba; background: repeating-linear-gradient(135deg, rgba(168, 131, 63, .06) 0 12px, transparent 12px 24px); }
.ph-cat { color: var(--ink-2); }
.badge { background: var(--brass); }

/* chips */
.chips-panel { border: 1px solid var(--line); box-shadow: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); }
.chip[aria-current="true"] .count, .chip.is-on .count { color: var(--brass-light); }

/* section pages */
.section-intro .visual, .product-photo, .product-media .ph, .product-extra { box-shadow: var(--shadow); border: 1px solid var(--line); }
.group-h { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.panel { border: 1px solid var(--line); box-shadow: none; }
.faq summary { color: var(--ink); }
.faq summary::after { color: var(--accent); }
.key-facts li { border: 1px solid var(--line); box-shadow: none; }
.key-facts span { color: var(--brass); }

/* steps */
.steps { border: 1px solid var(--line); box-shadow: none; }
.step-ico { background: var(--night); color: var(--brass-light); }
.step-no { color: #e2d6c3; }

/* markets band: pasture green */
.markets { background: radial-gradient(800px 400px at 100% 0%, rgba(216, 185, 124, .18), transparent 60%), linear-gradient(150deg, #0f2a20, var(--forest-2)); }
.markets h3 { color: var(--brass-light); }
.markets .eyebrow { color: var(--brass-light); }

/* CTA band: oxblood */
.cta-inner { background: radial-gradient(700px 300px at 90% 0%, rgba(216, 185, 124, .22), transparent 60%), linear-gradient(120deg, #4f121c, var(--wine) 60%, #852536); }
.cta-band .btn-mint { background: var(--brass-light); color: var(--night); }

/* footer: night */
.site-footer { background: var(--night); color: #cbd6cf; }
.site-footer a:hover { color: var(--brass-light); }
.footer-h { color: var(--brass-light); }
.footer-base { border-top-color: #24473a; color: #93a59a; }
.site-footer .muted, .site-footer .contact-list .muted { color: #93a59a; }

/* quote form */
.step-num { background: var(--night); color: var(--brass-light); }
.stepper li.is-current { border-color: var(--brass); color: var(--ink); }
.stepper li.is-done { border-color: var(--ink); }
.quote-form { border: 1px solid var(--line); box-shadow: none; }
.item-legend { color: var(--brass); }
.ref { color: var(--wine); }

/* language chooser */
.lang-card { border: 1px solid var(--line); box-shadow: none; }
.lang-card:hover { border-color: var(--wine); }
.lang-card.is-suggested { border-color: var(--brass); }
.lang-name { color: var(--ink); }
.lang-hint { color: var(--brass); }
.toast { background: var(--night); }
.toast a { color: var(--brass-light); }

/* full photos (livestock in a farm setting): fill the frame edge to edge, no padding or cut-out shadow */
.is-photo img { object-fit: cover; filter: none; }
.product-photo.is-photo img { padding: 0; aspect-ratio: 4 / 3; }
.card-media:has(.is-photo) { padding: 0; }
.card-media .is-photo { inset: 0; }
.card-media .is-photo img { width: 100%; height: 100%; }
.product-media .product-extra.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-card:has(.is-photo), .choice-media:has(.is-photo), .section-intro .visual:has(.is-photo) { padding: 0; overflow: hidden; }
.hv-main .is-photo img, .choice-media .is-photo img, .section-intro .visual .is-photo img { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 3; }
.choice-media:has(.is-photo) { min-height: 0; }
.choice-media .is-photo, .hv-card .is-photo, .section-intro .visual .is-photo { width: 100%; display: block; }

/* studio photos on white: show the whole product on a white tile */
.product-photo.is-white, .product-media .product-extra.is-white, .card-media:has(.is-white),
.hv-card:has(.is-white), .choice-media:has(.is-white) { background: #fff; }
.is-white img { object-fit: contain; filter: none; }
.product-photo.is-white img { padding: 18px; aspect-ratio: 4 / 3; }
.product-media .product-extra.is-white img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }

/* product gallery: main photo full width, extra photos two per row */
.product-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-media > * { min-width: 0; }
.product-media > .product-photo, .product-media > .ph, .product-media > .photo-credit { grid-column: 1 / -1; }
.product-media > .product-photo { display: block; }
.product-media .product-extra { display: block; position: relative; padding: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.product-media .product-extra img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-height: none; object-fit: contain; }

/* ===== "Pasture & Gold" layer (Oct 2026): warm linen canvas, deep green, gold, oxblood for meat ===== */
body {
  background:
    radial-gradient(1100px 520px at 100% -10%, rgba(226, 196, 124, .20), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(29, 84, 64, .07), transparent 65%),
    linear-gradient(180deg, #f6f1e7 0%, #f3ede2 40%, #efe7d8 100%);
  background-attachment: fixed;
}
h1, h2, h3, .cat-name, .choice-body h3, .card-title a, .group-h { color: var(--forest); }
.section-head h2::after, .page-head h1::after, .group-h::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
}
html[dir="rtl"] .section-head h2::after, html[dir="rtl"] .page-head h1::after { margin-inline-start: 0; }

/* header: frosted linen with a gold hairline */
.site-header { background: rgba(246, 241, 231, .88); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(165, 123, 51, .25); }
.header-cta, .site-header .btn-primary { background: var(--forest); }
.header-cta:hover, .site-header .btn-primary:hover { background: var(--forest-2); }

/* hero: deep green with a fine gold diagonal pattern and warm glow */
.hero {
  background:
    repeating-linear-gradient(135deg, rgba(226, 196, 124, .045) 0 2px, transparent 2px 22px),
    radial-gradient(900px 500px at 85% 15%, rgba(226, 196, 124, .22), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(106, 27, 39, .35), transparent 60%),
    linear-gradient(160deg, #0c241b 0%, #123a2b 55%, #0f2a20 100%);
}
.hv-card { border: 1px solid rgba(226, 196, 124, .35); }

/* alternating sections: soft pasture green and warm sand */
main > .section:nth-of-type(odd):not(.hero) { background: transparent; }
.section-alt { background: linear-gradient(180deg, rgba(226, 237, 230, .85), rgba(226, 237, 230, .55)); border-block: 1px solid rgba(18, 58, 43, .08); }

/* cards: warm white, gold edge on hover, gentle lift */
.card, .cat-tile, .choice, .panel, .chips-panel, .steps, .quote-form, .key-facts li, .lang-card {
  background: var(--card); border: 1px solid rgba(165, 123, 51, .18);
  box-shadow: 0 1px 2px rgba(15, 42, 32, .04), 0 14px 30px -20px rgba(15, 42, 32, .30);
}
.card, .cat-tile, .choice { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover, .cat-tile:hover, .choice:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 26px 46px -26px rgba(15, 42, 32, .45); }
.card-media { background: radial-gradient(110% 80% at 50% 100%, #ffffff 0%, #f6efe1 80%); }
.tile-meat::after { background: rgba(106, 27, 39, .09); }
.tile-livestock::after { background: rgba(18, 58, 43, .10); }

/* chips & filters */
.chip { background: #fffdf8; border-color: rgba(165, 123, 51, .25); }
.chip[aria-current="true"], .chip.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }

/* steps & markets */
.step-ico { background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: var(--brass-light); }
.markets { background:
    repeating-linear-gradient(135deg, rgba(226, 196, 124, .04) 0 2px, transparent 2px 22px),
    radial-gradient(800px 400px at 100% 0%, rgba(226, 196, 124, .20), transparent 60%),
    linear-gradient(150deg, #0c241b, var(--forest-2)); }

/* CTA band: oxblood with gold */
.cta-inner { background:
    repeating-linear-gradient(135deg, rgba(226, 196, 124, .05) 0 2px, transparent 2px 22px),
    radial-gradient(700px 300px at 90% 0%, rgba(226, 196, 124, .25), transparent 60%),
    linear-gradient(120deg, #4f121c, var(--wine) 60%, #852536); }

/* footer: deepest green with a gold top rule */
.site-footer { background: linear-gradient(180deg, #0f2a20, #0a1f17); border-top: 3px solid var(--brass); }

/* ===== photo viewer (lightbox) ===== */
img.zoomable { cursor: zoom-in; transition: transform .25s ease; }
img.zoomable:hover { transform: scale(1.02); }
img.zoomable:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 64px;
  background: rgba(10, 26, 20, .92); backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; place-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lb-img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px;
  background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-count { color: var(--brass-light); font-size: .9rem; letter-spacing: .05em; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(226, 196, 124, .5); background: rgba(15, 42, 32, .7); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--forest-2); border-color: var(--brass-light); }
.lb-close { top: 14px; inset-inline-end: 14px; }
.lb-prev { inset-inline-start: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 10px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 640px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Livestock hero: full-width real herd photos, slow pan and crossfade (owner, Oct 2026) */
.lhero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); isolation: isolate; }
.lhero-slides { position: absolute; inset: 0; z-index: -2; }
.lhero picture.lhero-slide { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 0;
  animation: lheroFade 35s linear infinite; }
.lhero picture.lhero-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transform-origin: center;
  animation: lheroPan 35s linear infinite; cursor: default; }
.lhero picture.lhero-slide.lhero-s1, .lhero picture.lhero-slide.lhero-s1 img { animation-delay: -1s; }
.lhero picture.lhero-slide.lhero-s2, .lhero picture.lhero-slide.lhero-s2 img { animation-delay: 6s; }
.lhero picture.lhero-slide.lhero-s3, .lhero picture.lhero-slide.lhero-s3 img { animation-delay: 13s; }
.lhero picture.lhero-slide.lhero-s4, .lhero picture.lhero-slide.lhero-s4 img { animation-delay: 20s; }
.lhero picture.lhero-slide.lhero-s5, .lhero picture.lhero-slide.lhero-s5 img { animation-delay: 27s; }
.lhero picture.lhero-slide.lhero-s2 img, .lhero picture.lhero-slide.lhero-s4 img { animation-name: lheroPanBack; }
@keyframes lheroFade { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lheroPan { 0% { transform: scale(1.06) translate3d(-2%, 0, 0); } 24%, 100% { transform: scale(1.2) translate3d(3%, -1%, 0); } }
@keyframes lheroPanBack { 0% { transform: scale(1.2) translate3d(3%, -1%, 0); } 24%, 100% { transform: scale(1.06) translate3d(-2%, 0, 0); } }
.lhero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 42, 32, .25) 0%, rgba(15, 42, 32, .15) 35%, rgba(15, 42, 32, .82) 100%); }
.lhero-text { padding-block: clamp(2rem, 6vw, 4.5rem); color: #fff; width: 100%; }
.lhero-text .eyebrow { color: var(--brass-light); }
.lhero-text h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 5.2vw, 3.8rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.lhero-text h1::after { background: var(--brass-light); }
.lhero-text .lead { color: rgba(255, 255, 255, .93); max-width: 62ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.lhero-text .btn { margin-top: 1rem; }
.lhero-note { margin-top: 1.25rem; }
.lhero-credits { font-size: .72rem; margin: .4rem 0 0; }
@media (max-width: 640px) { .lhero { min-height: 70vh; } }
@media (prefers-reduced-motion: reduce) {
  .lhero picture.lhero-slide, .lhero picture.lhero-slide img { animation: none; }
  .lhero picture.lhero-slide.lhero-s1 { opacity: 1; }
}
.lhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .7s ease; background: var(--night); }
.lhero-video.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lhero-video { display: none; } }

/* Meat page hero: text on the dark panel, hanging-carcass photos beside it (white-background photos shown whole) */
.lhero.lhero--split { align-items: center; min-height: min(78vh, 720px); }
.lhero.lhero--split::after { display: none; }
.lhero.lhero--split .lhero-slides { inset-block: 0; inset-inline-start: 46%; inset-inline-end: 0; z-index: 0; background: #fff; overflow: hidden; }
.lhero.lhero--split .lhero-text { position: relative; z-index: 1; width: 46%; max-width: none; margin: 0; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.lhero.lhero--split .lhero-text h1 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); max-width: none; text-shadow: none; }
.lhero.lhero--split .lhero-text .lead { text-shadow: none; }
.lhero.lhero--split picture.lhero-slide.is-white { background: #fff; }
.lhero.lhero--split picture.lhero-slide.is-white img { object-fit: contain; padding: clamp(.75rem, 2.5vw, 2rem); animation-name: lheroZoom; }
@keyframes lheroZoom { 0% { transform: scale(.95); } 24%, 100% { transform: scale(1.03); } }
@media (max-width: 859px) {
  .lhero.lhero--split { flex-direction: column; align-items: stretch; min-height: 0; }
  .lhero.lhero--split .lhero-slides { position: relative; inset: auto; order: -1; width: 100%; height: 56vh; min-height: 300px; }
  .lhero.lhero--split .lhero-text { width: 100%; padding-block: 1.75rem; }
}

/* product page: captioned photo grid of the cuts / items in a range */
.range { margin-top: clamp(36px, 6vw, 64px); }
.range .section-h { display: flex; align-items: baseline; gap: 10px; }
.range .section-h .count { font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.range-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.range-item { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.range-item:hover { border-color: var(--brass); box-shadow: var(--shadow); transform: translateY(-2px); }
.range-photo { display: block; aspect-ratio: 4 / 3; background: #fff; }
.range-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; filter: none; }
.range-name { padding: 10px 12px 12px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink); }
@media (max-width: 520px) { .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .range-name { font-size: .84rem; padding: 8px; } }

/* home: category tiles carry a photo of the category instead of the plain disc */
.cat-tile:has(.cat-thumb)::after { display: none; }
.cat-tile > :not(.cat-thumb) { position: relative; z-index: 1; max-width: calc(100% - 96px); }
.cat-thumb { position: absolute; inset-inline-end: 16px; bottom: 16px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s ease; }
.cat-thumb picture, .cat-thumb img { display: block; width: 100%; height: 100%; }
.cat-thumb img { object-fit: cover; }
.cat-thumb .is-white img { object-fit: contain; padding: 8px; filter: none; }
.cat-tile:hover .cat-thumb { transform: scale(1.06); }
.lb-meta { display: grid; justify-items: center; gap: 4px; }
.lb-cap { color: #fff; font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 600; }
.lb-cap:empty { display: none; }
.range-photo img.zoomable { cursor: zoom-in; }

/* contact page: message form beside the company details */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.contact-side { display: grid; gap: clamp(20px, 3vw, 32px); }
.contact-form { scroll-margin-top: 100px; }
.contact-form .check { margin-top: 4px; }
.contact-submit { margin: 20px 0 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form .field-grid { grid-template-columns: 1fr; } .contact-submit .btn { width: 100%; } }
.prose-page:has(.contact-grid) { max-width: var(--wrap, 1180px); }

/* product page: the owner's own clips (portrait phone videos) */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.video-grid li { min-width: 0; }
.video-grid video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.cat-name { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 380px) { .cat-thumb { width: 72px; height: 72px; inset-inline-end: 12px; bottom: 12px; } .cat-tile > :not(.cat-thumb) { max-width: calc(100% - 74px); } }

/* quote form: the product list comes first – each line shows the product photo; the last line can be emptied */
.cart-hint { margin: -4px 0 18px; color: var(--ink-2); max-width: 70ch; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.item-row { position: relative; }
.item-thumb { position: absolute; top: 40px; inset-inline-start: 18px; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.item-row:has(.item-thumb:not([hidden])) .item-grid { margin-inline-start: 78px; }
@media (max-width: 720px) { .item-thumb { width: 44px; height: 44px; top: 38px; inset-inline-start: 12px; } .item-row:has(.item-thumb:not([hidden])) .item-grid { margin-inline-start: 50px; } }
.item-thumb[hidden] { display: none; }
.item-row:only-child .item-remove { display: inline; }
.item-remove { color: var(--red); font-weight: 600; }

/* quote list ("basket") page */
.basket-page { max-width: 980px; padding-bottom: 56px; }
.basket-count { margin: 0 0 12px; font-weight: 700; color: var(--ink-2); }
.basket-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.basket-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb controls controls"; gap: 6px 18px; align-items: start;
  padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.basket-thumb { grid-area: thumb; display: block; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.basket-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.basket-info { grid-area: info; min-width: 0; }
.basket-cat { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
html[lang="ar"] .basket-cat { letter-spacing: 0; }
.basket-name { font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.basket-name:hover { text-decoration: underline; }
.basket-controls { grid-area: controls; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.basket-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.basket-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.basket-qty input { width: 120px; }
.basket-unit select { min-width: 120px; }
.basket-state select { min-width: 170px; }
.basket-item [aria-invalid="true"] { border-color: var(--red); }
.basket-remove { grid-area: remove; background: none; border: 0; padding: 6px 4px; color: var(--red); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.basket-add { margin-bottom: 22px; }
.basket-add .field { max-width: 520px; }
.basket-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; }
.basket-foot { display: grid; gap: 12px; justify-items: start; }
.basket-empty { margin-bottom: 18px; }
@media (max-width: 620px) {
  .basket-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "controls controls controls"; padding: 14px; gap: 10px 12px; }
  .basket-thumb { width: 64px; height: 64px; }
  .basket-qty { flex: 1 1 90px; } .basket-unit { flex: 1 1 110px; } .basket-state { flex: 1 1 100%; }
  .basket-qty input, .basket-unit select, .basket-state select { width: 100%; min-width: 0; }
  .basket-foot .btn { width: 100%; }
}
