/* ============================================================
   shop.css — Boutique Royale (extends brand.css + site.css)
   ============================================================ */
body.shop { background-color: var(--ivory); color: var(--fg1); overflow-x: hidden; }

/* shop nav is always solid ink (sits over ivory pages) */
body.shop .nav {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
  position: sticky;
}
body.shop main { padding-top: 0; }

/* ---- cart icon + badge ---- */
.cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ivory); cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease); margin-inline-start: 6px; }
.cart-icon:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: var(--gold); }
.cart-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--royal-red); color: var(--ivory); font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; font-family: var(--font-body); }
.cart-count.has { display: inline-flex; }
.cart-icon.bump { animation: cartBump .5s var(--ease); }
@keyframes cartBump { 0%,100%{ transform: scale(1);} 35%{ transform: scale(1.22);} }

/* ---- shop hero band ---- */
.shop-hero { background: var(--ink); color: var(--ivory); padding: clamp(110px, 16vh, 180px) clamp(20px, 6vw, 120px) clamp(50px, 7vh, 80px); position: relative; overflow: hidden; }
.shop-hero::after { content:""; position:absolute; inset:0; background-image: url('assets/texture-embroidery-patch.png'); background-size: cover; background-position: center; opacity: .07; }
.shop-hero .inner { position: relative; max-width: 1240px; margin: 0 auto; }
.shop-hero .eyebrow { color: var(--gold); }
.shop-hero h1 { font-family: var(--font-display); color: var(--ivory); font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 14px 0 16px; line-height: 1.05; }
.shop-hero p { color: var(--fg-on-dark-2); max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* ---- filters ---- */
.shop-body { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(20px, 6vw, 120px) 90px; }

/* ===== Search + breadcrumb tools row ============================== */
.shop-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.shop-search { position: relative; max-width: 540px; }
.shop-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--fg2); pointer-events: none;
}
html[lang="ar"] .shop-search-icon { left: auto; right: 16px; }
#shopSearch {
  width: 100%; padding: 14px 44px 14px 46px;
  font-family: var(--font-body); font-size: 15px;
  background: var(--bg-elevated); color: var(--ink);
  border: 1px solid var(--ivory-line); border-radius: var(--r-pill);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
html[lang="ar"] #shopSearch { padding: 14px 46px 14px 44px; text-align: right; }
#shopSearch:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
#shopSearch::placeholder { color: var(--fg2); }
.shop-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; color: var(--fg2);
  border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.shop-search-clear.show { display: inline-flex; align-items: center; justify-content: center; }
.shop-search-clear:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
html[lang="ar"] .shop-search-clear { right: auto; left: 12px; }

.cat-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); }
.cat-breadcrumb .crumb { color: var(--fg2); text-decoration: none; padding: 4px 4px; border-radius: 4px; transition: color .2s var(--ease); }
.cat-breadcrumb .crumb:hover { color: var(--ink); }
.cat-breadcrumb .crumb.active { color: var(--ink); font-weight: 600; }
.cat-breadcrumb .crumb-sep { color: color-mix(in srgb, var(--fg2) 50%, transparent); font-weight: 400; }
html[lang="ar"] .cat-breadcrumb { letter-spacing: 0.02em; font-size: 14px; }

.cat-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); background: var(--bg-elevated); border: 1px solid var(--ivory-line); padding: 11px 20px; border-radius: var(--r-pill); cursor: pointer; transition: all .28s var(--ease); font-family: var(--font-body); display: inline-flex; align-items: center; gap: 8px; }
html[lang="ar"] .filter-chip { letter-spacing: 0.02em; font-size: 15px; }
.filter-chip:hover { border-color: var(--gold); color: var(--ink); }
.filter-chip.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.filter-chip .chip-arrow { color: var(--gold); font-weight: 700; font-size: 1.1em; line-height: 0.7; opacity: 0.85; }
.filter-chip:hover .chip-arrow { opacity: 1; }

/* ---- product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px){ .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .product-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--bg-elevated); border: 1px solid var(--ivory-line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.pc-media { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-warm); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-cat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
html[lang="ar"] .pc-cat { letter-spacing: 0.02em; font-size: 14px; }
.pc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.25; text-decoration: none; }
.pc-name:hover { color: var(--royal-red); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.pc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--royal-red); white-space: nowrap; }
.pc-add { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--ink); padding: 9px 14px; border-radius: var(--r-sm); cursor: pointer; transition: all .26s var(--ease); white-space: nowrap; }
.pc-add:hover { background: var(--ink); color: var(--ivory); }
.pc-add.added { background: var(--royal-red); border-color: var(--royal-red); color: var(--ivory); }
.shop-empty { color: var(--fg2); font-style: italic; padding: 40px 0; }

/* ---- product detail ---- */
.pd-back { display: inline-block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); margin-bottom: 28px; }
.pd-back:hover { color: var(--royal-red); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 820px){ .pd-grid { grid-template-columns: 1fr; } }
.pd-media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ivory-line); aspect-ratio: 4/5; background: var(--ivory-warm); box-shadow: var(--shadow-md); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding-top: 6px; }
.pd-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--ink); line-height: 1.08; margin: 10px 0 14px; }
.pd-price { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--royal-red); margin-bottom: 22px; }
.pd-desc { color: var(--fg2); line-height: 1.7; margin-bottom: 26px; max-width: 52ch; }
.pd-options { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.pd-optrow { display: flex; align-items: center; gap: 16px; }
.pd-optrow span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); min-width: 90px; }
html[lang="ar"] .pd-optrow span { letter-spacing: 0.02em; font-size: 15px; }
.pd-optrow select, .checkout-form select, .checkout-form input, .checkout-form textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--bg-elevated);
  border: 1px solid var(--ivory-line); border-radius: var(--r-sm); padding: 12px 14px; outline: none; transition: border-color .25s var(--ease); width: 100%;
}
.pd-optrow select { width: auto; min-width: 160px; }
.pd-optrow select:focus, .checkout-form :focus { border-color: var(--gold); }
.pd-buyrow { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 24px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; }
.qty-stepper button { width: 46px; background: none; border: 0; font-size: 20px; color: var(--ink); cursor: pointer; transition: background .2s var(--ease); }
.qty-stepper button:hover { background: var(--ivory-warm); }
.qty-stepper input { width: 48px; text-align: center; border: 0; border-inline: 1px solid var(--ivory-line); font-family: var(--font-display); font-size: 16px; padding: 12px 0; outline: none; background: var(--bg-elevated); color: var(--ink); }
.qty-stepper.sm button { width: 34px; font-size: 17px; padding: 6px 0; }
.qty-stepper.sm input { width: 38px; padding: 6px 0; font-size: 14px; }
.pd-cod { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--r-md); background: color-mix(in srgb, var(--gold) 6%, transparent); margin-bottom: 18px; }
.pd-cod-ic { font-size: 26px; color: var(--gold-deep); }
.pd-cod strong { display: block; color: var(--ink); font-family: var(--font-display); }
.pd-cod span { font-size: 13.5px; color: var(--fg2); }
.pd-ref { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); }
.related { margin-top: clamp(60px, 9vw, 110px); }
.related h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 26px; color: var(--ink); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 640px){ .rel-grid { grid-template-columns: 1fr 1fr; } }
.rel-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.rel-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--ivory-line); transition: transform .5s var(--ease); }
.rel-card:hover img { transform: translateY(-4px); }
.rel-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.rel-price { color: var(--royal-red); font-weight: 700; font-size: .92rem; }

/* ---- cart / panier ---- */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px){ .cart-grid { grid-template-columns: 1fr; } }
.cart-row { display: grid; grid-template-columns: 92px 1fr auto auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--ivory-line); }
.cr-media img { width: 92px; height: 110px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--ivory-line); }
.cr-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; text-decoration: none; display: block; margin: 3px 0; }
.cr-name:hover { color: var(--royal-red); }
.cr-opts { font-size: 13px; color: var(--fg2); }
.cr-price { font-family: var(--font-display); font-weight: 700; color: var(--royal-red); white-space: nowrap; }
.cr-remove { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--fg2); cursor: pointer; transition: color .2s var(--ease); padding: 0 4px; }
.cr-remove:hover { color: var(--royal-red); }
@media (max-width: 560px){
  .cart-row { grid-template-columns: 72px 1fr auto; grid-template-areas: "m i x" "m q p"; row-gap: 10px; }
  .cr-media { grid-area: m; } .cr-info { grid-area: i; } .cr-remove { grid-area: x; }
  .cart-row .qty-stepper { grid-area: q; } .cr-price { grid-area: p; text-align: end; }
  .cr-media img { width: 72px; height: 88px; }
}
.cart-summary { background: var(--ink); color: var(--ivory); border-radius: var(--r-md); padding: 30px; position: sticky; top: 96px; }
.cart-summary h3 { font-family: var(--font-display); color: var(--ivory); font-size: 1.3rem; margin: 0 0 20px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; color: var(--fg-on-dark-2); font-size: 15px; border-bottom: 1px solid color-mix(in srgb, var(--gold) 16%, transparent); }
.sum-row.total { color: var(--ivory); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; border-bottom: 0; padding-top: 16px; }
.sum-row.total span:last-child { color: var(--gold-bright); }
.btn-royal.full { width: 100%; justify-content: center; margin-top: 20px; }
.cod-note { text-align: center; font-size: 12.5px; letter-spacing: 0.06em; color: var(--gold-bright); margin-top: 14px; }
.cart-cont { display: block; text-align: center; margin-top: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-2); }
.cart-cont:hover { color: var(--ivory); }
.cart-empty { text-align: center; padding: clamp(50px, 10vh, 110px) 0; }
.cart-empty p { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--fg2); margin-bottom: 26px; }

/* ---- checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 900px){ .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.row2 { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; }
@media (max-width: 520px){ .field.row2 { grid-template-columns: 1fr; } }
.field label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); }
html[lang="ar"] .field label { letter-spacing: 0.02em; font-size: 15px; }
.field .req { color: var(--royal-red); }
.checkout-form .invalid { border-color: var(--royal-red); }
.checkout-form textarea { resize: vertical; min-height: 84px; }
.pay-methods { display: grid; gap: 12px; margin-top: 6px; }
.pay-opt { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--ivory-line); border-radius: var(--r-md); background: var(--bg-elevated); }
.pay-opt.selected { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.pay-opt.disabled { opacity: .5; }
.pay-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; flex: none; }
.pay-opt.selected .pay-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pay-opt strong { display: block; font-family: var(--font-display); color: var(--ink); }
.pay-opt span { font-size: 13px; color: var(--fg2); }
.pay-soon { margin-inline-start: auto; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); border: 1px solid var(--ivory-line); padding: 4px 10px; border-radius: var(--r-pill); }
.form-error { color: var(--royal-red); font-size: 14px; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.order-aside { background: var(--ink); color: var(--ivory); border-radius: var(--r-md); padding: 28px; position: sticky; top: 96px; }
.order-aside h3 { font-family: var(--font-display); color: var(--ivory); font-size: 1.2rem; margin: 0 0 18px; }
.os-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 14%, transparent); }
.os-row img { width: 48px; height: 58px; object-fit: cover; border-radius: var(--r-xs); }
.os-meta { flex: 1; } .os-meta span { display: block; color: var(--ivory); font-size: 14px; font-family: var(--font-display); }
.os-meta small { color: var(--fg-on-dark-2); font-size: 12px; }
.os-price { color: var(--gold-bright); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* section heading on shop pages */
.shop-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--ink); margin: 0 0 6px; }
.shop-lead { color: var(--fg2); margin-bottom: 34px; }

/* ---- confirmation ---- */
.confirm-wrap { max-width: 660px; margin: 0 auto; text-align: center; padding: clamp(80px,12vh,150px) 24px 110px; }
.confirm-seal { width: 96px; margin: 0 auto 26px; animation: overtureIn 1.4s var(--ease); }
.confirm-wrap h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: 16px; }
.confirm-wrap p { color: var(--fg2); line-height: 1.7; max-width: 50ch; margin: 0 auto 30px; }
.confirm-card { display: inline-flex; flex-wrap: wrap; gap: 30px; justify-content: center; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--r-md); padding: 26px 34px; background: color-mix(in srgb, var(--gold) 5%, transparent); margin-bottom: 36px; }
.confirm-card .cc-k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg2); }
.confirm-card .cc-v { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--royal-red); margin-top: 4px; }
.confirm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); color: var(--ink); padding: 16px 30px; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 700; cursor: pointer; transition: all .26s var(--ease); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---- devis banner (boutique) ---- */
.devis-banner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,6vw,120px) clamp(50px,7vw,90px); }
.db-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--ink); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: var(--r-md); padding: clamp(28px,4vw,46px) clamp(26px,4vw,52px);
  background-image:
    repeating-linear-gradient(45deg, rgba(201,164,90,.022) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
    url("/assets/pattern-damask-ink.webp");
  background-repeat: repeat, no-repeat, repeat;
  background-size: auto, auto, 540px auto;
}
.db-text { max-width: 60ch; }
.db-text h2 { font-family: var(--font-display); font-weight: 700; color: var(--ivory); font-size: clamp(1.4rem,2.6vw,2.1rem); margin: 10px 0 8px; }
html[lang="ar"] .db-text h2 { font-family: var(--font-arabic); }
.db-text p { color: var(--fg-on-dark-2); line-height: 1.6; margin: 0; }
@media (max-width: 600px){ .db-inner { flex-direction: column; align-items: flex-start; } }

/* ===== Arabic typography — Mashq (headings) + Amiri (text), no third font ===== */
html[lang="ar"] .pc-name,
html[lang="ar"] .pd-name,
html[lang="ar"] .cr-name,
html[lang="ar"] .rel-name,
html[lang="ar"] .os-meta span,
html[lang="ar"] .pay-opt strong,
html[lang="ar"] .btn-ghost { font-family: 'Amiri', serif; }
html[lang="ar"] .shop-h1,
html[lang="ar"] .cart-summary h3,
html[lang="ar"] .order-aside h3,
html[lang="ar"] .confirm-wrap h1 { font-family: var(--font-arabic); }

/* phone/email numerals stay in LTR logical order inside RTL layout */
html[lang="ar"] .ph-list a,
html[lang="ar"] .contact-line a,
html[lang="ar"] .msg-highlight a,
html[lang="ar"] .svc-cell a { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .svc-cell a,
html[lang="ar"] .msg-highlight a { text-align: right; }

/* ============================================================
   Delivery-type tabs (Home / Pickup) on the checkout form
   ============================================================ */
.delivery-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--ivory-warm); border: 1px solid var(--ivory-line);
  border-radius: var(--r-md); padding: 5px;
}
.delivery-tab {
  background: transparent; border: 0; cursor: pointer;
  padding: 12px 14px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.delivery-tab:hover { color: var(--ink); }
.delivery-tab.active {
  background: var(--ink); color: var(--ivory);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 28%, transparent) inset;
}
html[lang="ar"] .delivery-tab { font-family: var(--font-arabic); letter-spacing: 0; }

/* ============================================================
   Loading state — gold-ring spinner, brand voice
   ============================================================ */
.br-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px; padding: clamp(60px, 12vh, 140px) 20px;
  color: var(--gold-deep);
}
.br-loading-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--gold) 14%, transparent);
  border-top-color: var(--gold);
  animation: brSpin 0.9s linear infinite;
  box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 18%, transparent);
}
.br-loading-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
}
html[lang="ar"] .br-loading-text {
  font-family: var(--font-arabic); letter-spacing: 0.08em;
  font-style: normal; font-size: 17px;
}
.product-grid .br-loading,
.cat-filters .br-loading { grid-column: 1 / -1; }
@keyframes brSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .br-loading-ring { animation: none; opacity: .5; }
}

/* ============================================================
   File-upload picker — brand-styled
   Used on /commande, /contact (devis + message tabs).
   ============================================================ */
.file-picker {
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  background: color-mix(in srgb, var(--gold) 4%, transparent);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.file-picker.is-drag {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}
.file-picker-prompt {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--fg2);
  cursor: pointer; user-select: none;
}
.file-picker-prompt .fp-ico {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: 50%; color: var(--gold-deep);
}
.file-picker-prompt .fp-ico svg { width: 18px; height: 18px; }
.file-picker-prompt .fp-text { flex: 1 1 auto; min-width: 0; }
.file-picker-prompt b { color: var(--ink); font-weight: 700; }
.file-picker-prompt small {
  display: block; margin-top: 2px;
  font-size: 12px; color: var(--fg2); font-style: italic;
}
.file-picker input[type="file"] { display: none; }
.file-picker-list {
  margin-top: 14px; display: flex; flex-direction: column; gap: 8px;
}
.file-picker-list:empty { display: none; }
.file-picker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--ivory-line);
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink);
}
.file-picker-item .fp-name {
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-picker-item .fp-size { color: var(--fg2); font-size: 12px; flex: 0 0 auto; }
.file-picker-item .fp-remove {
  flex: 0 0 auto; width: 24px; height: 24px;
  background: transparent; border: 1px solid color-mix(in srgb, var(--royal-red) 30%, transparent);
  border-radius: 50%; color: var(--royal-red);
  font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.file-picker-item .fp-remove:hover { background: var(--royal-red); color: var(--ivory); }
.file-picker-item.is-err {
  border-color: color-mix(in srgb, var(--royal-red) 45%, transparent);
  background: color-mix(in srgb, var(--royal-red) 4%, transparent);
}
.file-picker-item.is-err .fp-name { color: var(--royal-red); }
.file-picker-error {
  margin-top: 10px; font-size: 12px; color: var(--royal-red);
  font-style: italic;
}

/* Hint chip on the file picker — shows accepted extensions on hover/focus.
   No info ever in the prompt itself; users who want the list get it via
   the tooltip, and users who upload a wrong file get the same list inline
   as the error message. Keeps the picker visually quiet. */
.file-picker-prompt .fp-hint {
  position: relative; flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 50%; color: var(--gold-deep);
  background: transparent; cursor: help;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.file-picker-prompt .fp-hint:hover,
.file-picker-prompt .fp-hint:focus-visible {
  border-color: var(--gold); color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  outline: none;
}
.file-picker-prompt .fp-hint svg { width: 14px; height: 14px; }
.file-picker-prompt .fp-hint::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); right: 0;
  white-space: normal; width: max-content; max-width: 280px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--ivory);
  font-family: var(--font-body); font-size: 12px; font-style: normal;
  line-height: 1.5; letter-spacing: 0.01em; text-align: start;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 20;
}
.file-picker-prompt .fp-hint::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); right: 10px;
  width: 8px; height: 8px;
  background: var(--ink);
  border-right: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  transform: rotate(45deg);
  opacity: 0; transition: opacity .22s var(--ease); z-index: 20;
}
.file-picker-prompt .fp-hint:hover::after,
.file-picker-prompt .fp-hint:focus-visible::after { opacity: 1; transform: translateY(0); }
.file-picker-prompt .fp-hint:hover::before,
.file-picker-prompt .fp-hint:focus-visible::before { opacity: 1; }
html[dir="rtl"] .file-picker-prompt .fp-hint::after { right: auto; left: 0; }
html[dir="rtl"] .file-picker-prompt .fp-hint::before { right: auto; left: 10px; }

/* ===== Boutique pagination (Google-style pager) =================== */
.shop-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: 44px;
}
.shop-pager .pager-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 15px; color: var(--fg1);
  background: var(--bg-elevated);
  border: 1px solid var(--ivory-line); border-radius: var(--r-pill, 10px);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.shop-pager .pager-btn:hover:not(.disabled):not(.active) { border-color: var(--gold); color: var(--ink); }
.shop-pager .pager-btn.active {
  background: var(--ink); color: var(--ivory);
  border-color: var(--ink); font-weight: 700; cursor: default;
}
.shop-pager .pager-btn.disabled { opacity: .4; cursor: not-allowed; }
.shop-pager .pager-gap { min-width: 24px; text-align: center; color: var(--fg2); user-select: none; }
