/* shop.zoleia.com — the online rug shop. Arabic, right to left; layout and filters in the way of the big rug
   shops (promo bar, search header, mega menus, collection hero, filter bar and drawer, product grid), in the
   zoleia teal. Phone first, responsive up to wide screens. */
:root {
  /* the zoleia brand: the navy and the gold of the logo on warm ivory (--teal kept as the name of the main colour) */
  --ink: #18223f; --muted: #6c7285; --line: #ebe4d6; --bg: #fbf9f5; --soft: #f4eee3; --sand: #efe3cc;
  --teal: #15244c; --teal-2: #22356a; --teal-bg: #f3ecdf; --hot: #b4372b; --radius: 10px;
  --navy: #15244c; --navy-3: #0d1733; --gold: #be9a5c; --gold-2: #d6b97f; --gold-ink: #8a6a32;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.6 "Tajawal", "Segoe UI", Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0;
       border-radius: var(--radius); padding: 12px 26px; font-weight: 800; letter-spacing: .2px; cursor: pointer; }
.btn:hover { background: var(--teal-2); }
.btn.block { width: 100%; }
.only-m { display: none !important; }

/* ---- promo bar and header */
.promo { background: var(--teal); color: #fff; text-align: center; font-size: 14px; font-weight: 700; padding: 9px 16px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.bar { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 16px 28px; }
.logo { font-size: 28px; letter-spacing: 1px; color: var(--teal); font-weight: 500; white-space: nowrap; direction: ltr; display: flex;
        align-items: baseline; gap: 6px; }
.logo b { font-weight: 800; }
.logo small { font-size: 12px; letter-spacing: 0; color: var(--muted); direction: rtl; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid #cfd6d4; border-radius: 4px; padding: 0 14px; height: 48px; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; flex: none; }
.search input { flex: 1; border: 0; outline: 0; font-size: 16px; background: none; min-width: 0; }
.ic { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic i { position: absolute; top: 2px; left: 2px; background: var(--teal); color: #fff; font-style: normal; font-size: 11px; font-weight: 800;
        min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---- menu with mega panels */
.menu { display: flex; justify-content: center; gap: 4px; border-top: 1px solid var(--line); position: relative; }
.mi { position: static; }
.mi > a, a.mi { display: block; padding: 14px 14px; font-weight: 800; font-size: 16px; border-bottom: 3px solid transparent; }
.mi.has > a::after { content: "▾"; font-size: 11px; margin-inline-start: 6px; }
.mi:hover > a, a.mi:hover { border-bottom-color: var(--ink); }
a.mi.hot { color: var(--hot); }
.mega { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, .08); padding: 34px max(28px, calc((100vw - 1260px) / 2)); grid-template-columns: 1fr 280px; gap: 30px; }
.mi.has:hover .mega, .mi.has:focus-within .mega { display: grid; }
.mega > .btn { grid-column: 1; justify-self: start; }
.tiles { display: grid; gap: 20px; }
.tiles.five { grid-template-columns: repeat(5, 1fr); }
/* four to a row, unless the tiles divide evenly by three (six brands read better as two rows of three
   than as a row of four and a stump) */
.tiles.four { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.mega .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art .pic { display: grid; place-items: center; background: var(--soft); aspect-ratio: 4 / 3; border-radius: 2px; }
.art .pic svg { width: 76%; height: auto; }
.art b, .photo b { display: block; margin-top: 10px; font-weight: 800; }
.art small, .photo small { color: var(--muted); font-size: 13px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); border-radius: 2px; }
/* a brand's own photograph is taken as it was made (its own wide shape): the brand's name is written inside it, and a
   narrower frame would cut it off. */
.photo img.brandshot { aspect-ratio: 758 / 333; }
/* a room is a banner of itself, with its name written on it: two to a row on a screen, one on a phone,
   and the caption under it only when the shop has not given the room a banner yet */
.tiles.rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.rooms .photo img, .photo img.roomshot { aspect-ratio: 1227 / 315; border-radius: 10px; }
.mega .tiles.rooms { gap: 14px; }

.art:hover b, .photo:hover b { text-decoration: underline; }
.guide { background: var(--soft); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.guide small { letter-spacing: 1px; font-weight: 800; }
.guide b { font-size: 26px; font-weight: 500; line-height: 1.3; }
.guide p { color: var(--muted); font-size: 14px; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; grid-column: 1 / -1; }
.cols.one { grid-template-columns: 1fr; grid-column: auto; }
.col h4 { margin: 0 0 14px; color: var(--muted); font-size: 14px; letter-spacing: .5px; }
.sw { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-weight: 700; }
.sw i { width: 34px; height: 34px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .1); flex: none; }
.sw small { color: var(--muted); margin-inline-start: auto; }
.ln { display: block; padding: 6px 0; font-weight: 700; }
.ln:hover, .sw:hover { text-decoration: underline; }
.shade, .dshade { display: none; }

/* ---- page blocks */
main { min-height: 50vh; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 18px 28px 40px; }
.wrap.narrow { max-width: 1100px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.ptitle { font-size: 30px; font-weight: 800; margin: 0 0 22px; }
.hero { max-width: 1320px; margin: 22px auto 0; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.hero .htxt { background: var(--teal); color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.2; font-weight: 800; }
.hero p { margin: 0; opacity: .9; font-size: 17px; }
.hero .btn { background: #fff; color: var(--teal); align-self: flex-start; }
.hero img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.block { max-width: 1320px; margin: 40px auto 0; padding: 0 28px; }
.wrap .block { padding: 0; }
.bhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.bhead h2 { margin: 0; font-size: 26px; font-weight: 800; }
.bhead a { color: var(--teal); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chipsw { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 8px; font-weight: 700; }
.chipsw i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.chipsw:hover { border-color: var(--ink); }

/* ---- collection */
.chero { position: relative; height: 230px; overflow: hidden; display: grid; place-items: center; background: var(--soft); margin-bottom: 18px; }
/* a brand or a room with a banner of its own: the picture itself, unshaded, its name already on it */
.chero.own { height: auto; display: block; background: transparent; }
.chero.own img { position: static; width: 100%; height: auto; filter: none; border-radius: 2px; }
/* a brand's banner (2.28:1) at 60% of its height: the top and bottom trimmed evenly, its name kept in the middle */
.chero.own.brand img { aspect-ratio: 3.8 / 1; object-fit: cover; object-position: center; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); }
.chero div { position: relative; text-align: center; color: #fff; padding: 0 20px; }
.chero h1 { margin: 0; font-size: 40px; font-weight: 500; }
.chero p { margin: 6px 0 0; font-size: 16px; }
.fbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; }
.allf { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: 3px; padding: 10px 18px;
        font-weight: 800; cursor: pointer; }
.allf svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; border: 1px solid #cfd6d4; border-radius: 3px; padding: 9px 16px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: "▾"; font-size: 11px; }
.dd[open] summary { border-color: var(--ink); }
.n { background: var(--teal); color: #fff; font-style: normal; border-radius: 9px; min-width: 18px; height: 18px; font-size: 11px; display: grid; place-items: center; }
.pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; background: #fff; border: 1px solid var(--line);
       box-shadow: 0 16px 30px rgba(0, 0, 0, .1); padding: 12px 16px; min-width: 260px; max-height: 360px; overflow: auto; border-radius: 4px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 600; }
.opt input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.opt em { color: var(--muted); font-style: normal; font-size: 13px; margin-inline-start: auto; }
.opt.exact span { direction: ltr; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); flex: none; }
.count { margin-inline-start: auto; color: var(--muted); font-weight: 700; font-size: 14px; }
.sort { border: 1px solid #cfd6d4; border-radius: 3px; padding: 9px 12px; background: #fff; font-weight: 700; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(380px, 92vw); background: #fff; z-index: 60;
          transform: translateX(105%); transition: transform .2s; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .dshade { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
.dhead { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
.dhead button { border: 0; background: none; font-size: 20px; cursor: pointer; }
.dbody { flex: 1; overflow: auto; padding: 6px 20px; }
.dsec { border-bottom: 1px solid var(--line); padding: 10px 0; }
.dsec summary { font-weight: 800; cursor: pointer; padding: 6px 0; }
.dfoot { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.dfoot .clear { font-weight: 800; text-decoration: underline; }
.dfoot .btn { flex: 1; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { background: var(--teal-bg); color: var(--teal); border-radius: 999px; padding: 5px 14px; font-weight: 800; font-size: 14px; }
.clearall { font-weight: 800; text-decoration: underline; padding: 5px 6px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty b { color: var(--ink); font-size: 18px; }

/* ---- product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.pcard { display: flex; flex-direction: column; gap: 6px; }
.pimg { position: relative; display: block; background: var(--soft); aspect-ratio: 4 / 5; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pimg img { transform: scale(1.04); }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; }
.sws { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.sws .sw { padding: 2px; border: 1px solid transparent; border-radius: 50%; }
.sws .sw.on { border-color: var(--ink); }
.sws .sw i { width: 20px; height: 20px; border-radius: 50%; }
.sws small { color: var(--muted); }
.pname { font-weight: 800; font-size: 16px; line-height: 1.4; }
.pname:hover { text-decoration: underline; }
.pbrand { color: var(--muted); font-size: 13px; }
.price { font-size: 15px; }
.price b { font-size: 17px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager b { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); padding: 0 10px; font-weight: 800; }
.pager b { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---- product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.gallery img { width: 100%; background: var(--soft); aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 140px; }
.info h1 { font-size: 30px; margin: 4px 0 8px; font-weight: 800; line-height: 1.3; }
.pprice { font-size: 18px; margin-bottom: 16px; }
.pprice b { font-size: 28px; }
.pprice small { color: var(--muted); font-size: 14px; margin-inline-start: 6px; }
.info h4 { margin: 18px 0 10px; font-size: 15px; }
.info h4 span { font-weight: 500; }
.colours { display: flex; flex-wrap: wrap; gap: 10px; }
.colours .sw { flex-direction: column; gap: 4px; padding: 4px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.colours .sw.on { border-color: var(--ink); }
.colours .sw i { width: 44px; height: 44px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.sz { border: 1px solid #cfd6d4; padding: 10px; text-align: center; display: flex; flex-direction: column; border-radius: 3px; }
.sz b { font-size: 16px; }
.sz small { color: var(--muted); }
.sz.on { border: 2px solid var(--ink); padding: 9px; }
.stock { color: var(--teal); font-weight: 800; margin: 14px 0; }
.stock.low { color: var(--hot); }
.buy { display: flex; gap: 12px; }
.qty { display: flex; border: 1px solid #cfd6d4; border-radius: 3px; }
.qty button { width: 42px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty input { width: 50px; border: 0; text-align: center; font-weight: 800; outline: 0; }
.addc { flex: 1; padding: 15px; font-size: 17px; }
.perks { list-style: none; padding: 16px 18px; margin: 18px 0; background: var(--soft); display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.perks li::before { content: "✓"; color: var(--teal); margin-inline-end: 8px; }
.spec summary { font-weight: 800; cursor: pointer; padding: 12px 0; border-top: 1px solid var(--line); }
.spec dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px; margin: 0 0 10px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }

/* ---- cart */
.flash { padding: 12px 16px; margin-bottom: 14px; font-weight: 700; }
.flash.ok { background: var(--teal-bg); color: var(--teal); }
.flash.err { background: #fdecea; color: var(--hot); }
.cartgrid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cline { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline img { width: 96px; height: 120px; object-fit: cover; background: var(--soft); }
.cline .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cline small { color: var(--muted); }
.cqty select { border: 1px solid #cfd6d4; padding: 6px 10px; border-radius: 3px; background: #fff; }
.summary { background: var(--soft); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 140px; }
.summary h3 { margin: 0; }
.srow { display: flex; justify-content: space-between; }
.srow.muted { color: var(--muted); }
.summary .ln { text-align: center; text-decoration: underline; }

/* ---- footer */
.foot { background: var(--navy-3); color: #d9dcea; margin-top: 60px; padding: 46px 28px 20px; }
.fwrap { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { color: #fff; margin: 0 0 12px; }
.foot a, .foot span { display: block; padding: 3px 0; font-size: 14px; }
.foot .logo { color: #fff; font-size: 24px; }
.foot p { font-size: 14px; opacity: .85; }
.copy { text-align: center; font-size: 13px; opacity: .6; margin-top: 30px; }

/* ---- responsive: tablets */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.five { grid-template-columns: repeat(3, 1fr); }
  .mega { grid-template-columns: 1fr; }
  .guide { display: none; }
  .fwrap { grid-template-columns: 1fr 1fr; }
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* ---- phones: the menu becomes a drawer, the mega panels open inside it */
@media (max-width: 820px) {
  .only-m { display: grid !important; }
  .bar { flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; }
  .logo { font-size: 22px; letter-spacing: 4px; flex: 1; justify-content: center; }
  .logo small { display: none; }
  .search { order: 3; flex-basis: 100%; height: 44px; }
  .menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(340px, 88vw); background: #fff; z-index: 70; flex-direction: column;
          justify-content: flex-start; overflow: auto; transform: translateX(105%); transition: transform .2s; padding: 14px 0; border: 0; gap: 0; }
  body.nav-open .menu { transform: none; }
  body.nav-open .top { z-index: 80; }   /* the menu lives inside the sticky header: lift the header above the shade */
  body.nav-open .shade { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 65; }
  .mi > a, a.mi { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .mega { position: static; box-shadow: none; padding: 12px 20px; display: none !important; }
  /* a section opens and closes with a tap on its title (an accordion, one open at a time); its page is the button inside */
  .mi.has.open .mega { display: grid !important; animation: mega-in .18s ease-out; }
  .mi.has > a { display: flex; align-items: center; justify-content: space-between; }
  .mi.has > a::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0;
                       transform: rotate(45deg); transition: transform .2s; margin: -4px 4px 0; }
  .mi.has.open > a { background: var(--cream, #f7f3ea); }
  .mi.has.open > a::after { transform: rotate(-135deg); margin-top: 4px; }
  .tiles.five, .tiles.four, .mega .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tiles.rooms { grid-template-columns: 1fr; gap: 12px; }
  .tiles.four { --cols: 2; }
  .cols { grid-template-columns: 1fr; }
  .wrap { padding: 14px 16px 30px; }
  .hero { grid-template-columns: 1fr; padding: 0; margin-top: 0; }
  .hero .htxt { padding: 34px 22px; }
  .hero h1 { font-size: 30px; }
  .hero img { max-height: 260px; }
  .block { padding: 0 16px; margin-top: 30px; }
  .bhead h2 { font-size: 21px; }
  .chero { height: 160px; }
  .chero h1 { font-size: 28px; }
  .fbar .dd { display: none; }
  .count { order: 4; flex-basis: 100%; margin: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pname { font-size: 14px; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .gallery img { position: static; }
  .info h1 { font-size: 24px; }
  .cartgrid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .fwrap { grid-template-columns: 1fr; }
  .ptitle { font-size: 24px; }
}
@media (max-width: 360px) {
  .promo { font-size: 12px; }
  .grid { gap: 18px 8px; }
  .price b { font-size: 15px; }
  .sizes { grid-template-columns: repeat(2, 1fr); }
  .spec dl { grid-template-columns: 1fr; }
  .cline img { width: 70px; height: 88px; }
}

/* ---- checkout */
.checkout .cosec { border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; }
.cosec h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.cosec h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 14px; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.checkout input:not([type=radio]), .checkout select { border: 1px solid #cfd6d4; border-radius: 3px; padding: 11px 12px; font-size: 15px; background: #fff; font-weight: 500; }
.checkout input:focus, .checkout select:focus { outline: 2px solid var(--teal-bg); border-color: var(--teal); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frow.three { grid-template-columns: repeat(3, 1fr); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.checkout label.mode { border: 1px solid #cfd6d4; padding: 14px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; margin: 0; }
.mode input { accent-color: var(--teal); width: 18px; height: 18px; }
.mode b { font-size: 15px; }
.mode small { flex-basis: 100%; color: var(--muted); font-weight: 500; padding-inline-start: 28px; }
.mode:has(input:checked) { border: 2px solid var(--teal); padding: 13px; background: var(--teal-bg); }
.mode.off { opacity: .5; cursor: not-allowed; }
.for-pickup { display: none; }
.checkout label.chk { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.checkout label.chk input { width: 18px; height: 18px; padding: 0; accent-color: var(--teal); flex: none; }
form.pick .for-pickup { display: block; }
form.pick .for-delivery { display: none; }
.sline { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sline img { width: 54px; height: 66px; object-fit: cover; background: #fff; }
.sline .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sline small, .summary small.muted { color: var(--muted); }
.srow.total { font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.thanks { text-align: center; padding: 30px 10px 34px; }
.thanks .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 34px; display: inline-grid; place-items: center; }
.thanks h1 { margin: 14px 0 6px; font-size: 28px; }
.thanks p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) {
  .frow, .frow.three, .modes { grid-template-columns: 1fr; }
  .checkout .cosec { padding: 14px; }
}
.opt .sub { color: var(--muted); font-size: 12px; font-weight: 500; }
.dd .pop { max-height: 420px; }

.gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery .thumbs img { width: 72px; height: 72px; aspect-ratio: auto; position: static; cursor: pointer; border: 1px solid var(--line, #e5e7eb); }
.pdesc { margin-top: 12px; line-height: 1.8; white-space: pre-line; }

/* ---- soft corners: no sharp corner on any picture or badge of the shop */
:root { --img-radius: 14px; }
.pimg, .art .pic, .photo img, .gallery img, .gallery .thumbs img, .cline img, .sline img, .hero, .hero img, .chero, .guide {
  border-radius: var(--img-radius); overflow: hidden; }
.tag { border-radius: 8px; }
.search, .sz, .qty, .dd summary, .sort, .allf, .cqty select, .checkout input:not([type=radio]), .checkout select { border-radius: 10px; }

/* ---- the language button, and the English (left to right) page */
.langbtn { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; color: var(--teal); flex: none; }
.langbtn:hover { background: var(--teal-bg); }
html[dir=ltr] body { font-family: "Inter", "Tajawal", system-ui, sans-serif; }
/* in English the drawers come from the left */
html[dir=ltr] .drawer { transform: translateX(-105%); }
html[dir=ltr] body.drawer-open .drawer { transform: none; }
@media (max-width: 820px) {
  html[dir=ltr] .menu { transform: translateX(-105%); }
  html[dir=ltr] body.nav-open .menu { transform: none; }
}

/* the zoleia icon beside the name */
.logo img { height: 40px; width: auto; flex: none; }
.foot .logo { align-items: center; gap: 10px; }
.foot .logo .ficon { background: #fff; border-radius: 12px; padding: 5px 8px; display: inline-flex; }
.foot .logo img { height: 34px; }
@media (max-width: 700px) { .logo img { height: 34px; } }

/* ---- the zoleia brand theme: classic Arabic headings, gold details, a woven hero ---- */
h1, h2, .ptitle, .bhead h2, .info h1, .chero h1, .thanks h1, .guide b { font-family: "El Messiri", "Tajawal", serif; font-weight: 700; letter-spacing: 0; }
html[dir=ltr] h1, html[dir=ltr] h2 { font-family: "El Messiri", "Inter", serif; }
::selection { background: var(--gold-2); color: var(--navy-3); }

/* buttons: navy, gold, outline */
.btn { border-radius: 999px; padding: 13px 28px; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(21, 36, 76, .18); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-3); }
.btn.gold:hover { background: var(--gold-2); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* header: a thin gold rule, the wordmark */
.top { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 0;
       box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px rgba(190, 154, 92, .35); }
.logo { align-items: center; gap: 10px; letter-spacing: 0; color: var(--navy); }
.logo .wm { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0; font-family: "Montserrat", "Segoe UI", sans-serif;
            text-transform: uppercase; letter-spacing: 2.5px; font-size: 25px; line-height: 1; }
.logo .wm b { font-weight: 700; color: var(--navy); }
.logo .wm i { font-style: normal; font-weight: 600; color: var(--gold); }
.logo .wm small { flex-basis: 100%; font-family: "Tajawal", sans-serif; text-transform: none; letter-spacing: 0; font-size: 12px;
                  color: var(--gold-ink); font-weight: 700; margin-top: 4px; }
.search { background: var(--bg); border-color: var(--line); border-radius: 999px; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190, 154, 92, .18); background: #fff; }
.ic i { background: var(--gold); color: var(--navy-3); }
.langbtn { color: var(--navy); border-color: var(--line); }
.langbtn:hover { background: var(--teal-bg); }
.mi > a, a.mi { color: var(--navy); }
.mi:hover > a, a.mi:hover { border-bottom-color: var(--gold); color: var(--navy-3); }
a.mi.hot { color: var(--gold-ink); }
.mega { background: #fff; border-top: 2px solid var(--gold); }
.guide { background: var(--navy); color: #fff; }
.guide small { color: var(--gold-2); }
.guide p { color: #c9cde0; }

/* the woven hero: navy with the gold weave of the logo, the rug beside it */
.hero { margin-top: 26px; }
.hero .htxt { position: relative; overflow: hidden; background-color: var(--navy);
              background-image: repeating-linear-gradient(45deg, rgba(190, 154, 92, .10) 0 2px, transparent 2px 18px),
                                repeating-linear-gradient(-45deg, rgba(190, 154, 92, .06) 0 2px, transparent 2px 18px);
              padding: 64px 52px; gap: 16px; }
.hero .htxt::before, .hero .htxt::after { content: ""; position: absolute; inset-inline: 28px; height: 10px;
              background: radial-gradient(circle at 5px 5px, var(--gold) 2.2px, transparent 2.6px) 0 0 / 14px 10px repeat-x; opacity: .85; }
.hero .htxt::before { top: 16px; } .hero .htxt::after { bottom: 16px; }
.hero .htxt small { color: var(--gold-2); font-weight: 800; letter-spacing: .5px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.hero .htxt small::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { font-size: 46px; line-height: 1.25; }
.hero p { color: #d8dbe8; opacity: 1; }
.hero .hcta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .hcta .btn { align-self: auto; }
.hero img { border-start-start-radius: 0; border-end-start-radius: 0; }
.hero .htxt { border-start-end-radius: 0; border-end-end-radius: 0; }
.hero { border-radius: var(--img-radius); box-shadow: 0 24px 50px rgba(13, 23, 51, .16); padding: 0; max-width: 1264px; }

/* the perks strip under the hero */
.perks-strip { list-style: none; max-width: 1264px; margin: 22px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
               background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.perks-strip li { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; position: relative; padding-inline-start: 42px; }
.perks-strip li + li { border-inline-start: 1px solid var(--line); }
.perks-strip li::before { content: ""; position: absolute; inset-inline-start: 18px; top: 22px; width: 12px; height: 12px; transform: rotate(45deg);
                          background: var(--gold); border-radius: 2px; }
.perks-strip b { color: var(--navy); font-size: 15px; }
.perks-strip small { color: var(--muted); font-size: 13px; }

/* section heads with a gold rule */
.bhead { align-items: center; }
.bhead h2 { color: var(--navy); display: flex; align-items: center; gap: 12px; }
.bhead h2::after { content: ""; width: 44px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.bhead a { color: var(--gold-ink); }
.bhead a:hover { color: var(--navy); }

/* product cards: a soft ivory frame, a lift on hover */
.pcard { gap: 6px; }
.pimg { background: var(--soft); box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s, transform .25s; }
.pcard:hover .pimg { box-shadow: 0 18px 34px rgba(13, 23, 51, .14); transform: translateY(-2px); }
.tag { background: var(--navy); color: var(--gold-2); font-weight: 800; }
.pname { color: var(--navy); }
.price b { color: var(--navy); }
.pbrand { color: var(--gold-ink); font-weight: 700; letter-spacing: .3px; }
.photo b { color: var(--navy); }
.photo img, .art .pic { transition: transform .3s, box-shadow .3s; }
.photo:hover img { box-shadow: 0 16px 30px rgba(13, 23, 51, .14); }
.chipsw:hover { border-color: var(--gold); }

/* the collection hero: navy veil, gold rule under the title */
.chero { background: var(--navy); }
.chero img { filter: brightness(.55) saturate(.9); }
.chero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 23, 51, .1), rgba(13, 23, 51, .55)); }
.chero div { z-index: 1; }
.chero h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 2px; }
.allf, .pager b { background: var(--navy); }
.pager a:hover { border-color: var(--gold); }
.dd[open] summary, .sz.on, .colours .sw.on, .sws .sw.on { border-color: var(--navy); }
.chip { background: var(--teal-bg); color: var(--navy); }
.stock { color: #2e7d4f; }
.perks { background: var(--teal-bg); border-radius: 14px; }
.perks li::before { color: var(--gold-ink); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.checkout .cosec { border-radius: 16px; background: #fff; }
.cosec h3 span, .thanks .tick { background: var(--gold); color: var(--navy-3); }
.mode:has(input:checked) { border-color: var(--navy); }

/* footer: deep navy, gold headings, the weave on its top edge */
.foot { position: relative; border-top: 4px solid var(--gold); }
.foot::before { content: ""; position: absolute; inset-inline: 0; top: 8px; height: 10px; opacity: .6;
                background: radial-gradient(circle at 5px 5px, var(--gold) 2px, transparent 2.4px) 0 0 / 14px 10px repeat-x; }
.foot h4 { color: var(--gold-2); font-family: "El Messiri", "Tajawal", serif; }
.foot a:hover { color: var(--gold-2); }
.foot .logo .wm { font-size: 22px; }
.foot .logo .wm b { color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }

/* phones */
@media (max-width: 1100px) { .perks-strip { grid-template-columns: repeat(2, 1fr); } .perks-strip li:nth-child(3) { border-inline-start: 0; }
                              .perks-strip li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 820px) {
  .logo .wm { font-size: 19px; letter-spacing: 2px; }
  .logo .wm small { display: none; }
  .hero { border-radius: 0; box-shadow: none; }
  .hero .htxt { padding: 44px 22px 40px; border-radius: 0; }
  .hero h1 { font-size: 31px; }
  .hero img { border-radius: 0; }
  .perks-strip { margin: 0; border-radius: 0; border-inline: 0; }
  .perks-strip li { padding: 12px 14px 12px 14px; padding-inline-start: 34px; }
  .perks-strip li::before { inset-inline-start: 14px; top: 18px; width: 10px; height: 10px; }
  .perks-strip b { font-size: 14px; } .perks-strip small { font-size: 12px; }
  .btn { padding: 12px 22px; }
  .mi > a, a.mi { border-bottom-color: var(--line); }
}

/* "last piece / last two" instead of stock counts; filter menus above the products */
.few { font-style: normal; color: var(--hot); font-weight: 800; font-size: 12px; margin-inline-start: auto; white-space: nowrap; }
a .few { display: block; margin-top: 2px; }
.dd[open] { z-index: 35; }
.dd .pop { z-index: 36; }

/* the mega menus: a panel the width of the page's content, no white bands on the sides; the size guide as a table */
@media (min-width: 821px) {
  .mega { inset-inline: auto; left: 50%; transform: translateX(-50%); width: min(1264px, calc(100vw - 48px)); padding: 26px 28px;
          border-radius: 0 0 18px 18px; border: 1px solid var(--line); border-top: 2px solid var(--gold); grid-template-columns: 1fr 300px; }
}
.guide { border-radius: 16px; padding: 24px 22px; gap: 12px; text-align: start; align-items: stretch; }
.guide small { align-self: center; }
.guide b { text-align: center; font-size: 24px; }
.gsizes { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 0; }
.gsizes li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0;
             border-bottom: 1px dashed rgba(214, 185, 127, .35); font-size: 14px; }
.gsizes li:last-child { border-bottom: 0; }
.gsizes span { color: #e4e6f0; font-weight: 700; }
.gsizes b { color: var(--gold-2); font-family: "Montserrat", "Segoe UI", sans-serif; font-size: 13px; font-weight: 600; white-space: nowrap; }
.guide .btn { align-self: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-3); margin-top: 4px; }

/* the product page, compact: half-size boxes for the sizes, smaller colour squares, less space between the blocks */
.info h4 { margin: 14px 0 8px; }
.colours { gap: 6px; }
.colours .sw { padding: 3px; border-radius: 8px; font-size: 11.5px; }
.colours .sw i { width: 36px; height: 36px; border-radius: 6px; }
.sizes { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.sz { padding: 6px 4px; border-radius: 10px; gap: 0; line-height: 1.3; }
.sz.on { padding: 5px 3px; }
.sz b { font-size: 14px; }
.sz small { font-size: 11.5px; }
.pprice { margin-bottom: 10px; }
.stock { margin: 10px 0; }
@media (max-width: 820px) {
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colours .sw i { width: 32px; height: 32px; }
  .pdp { gap: 14px; }
}
@media (max-width: 360px) { .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the wordmark stays on one line (English pages too), the tagline under it */
.logo .wm { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; white-space: nowrap; }
.logo .wm small { grid-column: 1 / -1; }
html[dir=rtl] .logo .wm { direction: ltr; }
html[dir=rtl] .logo .wm small { direction: rtl; }
.logo .wm small { text-align: center; margin-top: 5px; }
/* phones: a compact footer, the name on top and the three lists side by side */
@media (max-width: 820px) {
  .foot { margin-top: 36px; padding: 26px 16px 14px; }
  .foot::before { top: 6px; }
  .fwrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .fwrap > div:first-child { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .fwrap > div:first-child p { margin: 0; font-size: 12.5px; }
  .foot h4 { font-size: 14.5px; margin: 0 0 6px; }
  .foot a, .foot span { font-size: 12.5px; padding: 3px 0; line-height: 1.45; overflow-wrap: anywhere; }
  .foot .logo .wm { font-size: 19px; }
  .foot .logo .ficon img { height: 28px; }
  .copy { margin-top: 18px; padding-top: 12px; font-size: 11.5px; }
}

/* ---- the account in the header */
.ic.acc .acc-on { position: absolute; top: 6px; inset-inline-start: 6px; width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%;
                  background: #2e9d63; box-shadow: 0 0 0 2px #fff; }

/* ---- compare: the toggle on each card and on the product page, the bar, the table */
.pcard { position: relative; }
.cmp-btn { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
           border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 800;
           font-size: 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(13, 23, 51, .15); }
.cmp-btn .cmp-ic, .cmp-pdp .cmp-ic, .cmp-bar .cmp-ic { font-size: 15px; line-height: 1; }
.cmp-btn.on, .cmp-pdp.on { background: var(--gold); color: var(--navy-3); }
.cmp-pdp { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 16px; }
.cmp-bar { position: fixed; z-index: 45; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
           background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 999px; box-shadow: 0 14px 30px rgba(13, 23, 51, .3);
           font-weight: 800; border: 1px solid rgba(214, 185, 127, .5); }
.cmp-bar[hidden] { display: none; }
.cmp-bar .cmp-ic { color: var(--gold-2); }
.cmp-bar small { color: #c9cde0; font-weight: 600; font-size: 12px; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-size: 14px; }
.cmp th { width: 120px; color: var(--muted); font-weight: 700; background: var(--bg); position: sticky; inset-inline-start: 0; z-index: 1; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .pimg { aspect-ratio: 4 / 5; border-radius: 12px; }
.cmp-x { margin-top: 6px; border: 0; background: none; color: var(--hot); font-weight: 800; cursor: pointer; padding: 0; }
.cmp-price b { color: var(--navy); font-size: 16px; }
.cmp-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-sizes b { background: var(--soft); border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 700; }
.ok-stock { color: #2e7d4f; font-weight: 800; }
.cmp .btn { padding: 9px 16px; font-size: 13px; }

/* ---- sign in, sign up, my account */
.acc-wrap { display: flex; justify-content: center; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: 100%; box-shadow: 0 10px 30px rgba(13, 23, 51, .06); }
.acc-wrap .acc-card { max-width: 460px; }
.acc-card .ptitle { margin-bottom: 6px; }
.acc-sub { color: var(--muted); margin: 0 0 16px; }
.acc-card form .btn { margin-top: 6px; }
.acc-alt { text-align: center; margin: 16px 0 4px; }
.acc-alt a { color: var(--gold-ink); font-weight: 800; }
.acc-note { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.acc-del-link { text-align: center; margin: 22px 0 4px; font-size: 13px; }
.acc-del-link a { color: var(--muted); text-decoration: underline; }
.acc-del h3 { font-size: 15px; margin: 14px 0 6px; }
.acc-del ul { margin: 0 0 8px; padding-inline-start: 20px; line-height: 1.8; }
.acc-sure { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.acc-sure input { width: auto; min-height: 0; margin: 0; }
.btn.danger { background: var(--hot); }
.btn.danger:hover { background: #962c22; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn.ghost-dark { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.acc-order { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.acc-order:last-child { border-bottom: 0; }
.acc-order small { display: block; color: var(--muted); font-size: 12px; }
.acc-order .st { background: var(--teal-bg); color: var(--navy); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; }
.acc-order .amt { color: var(--navy); }
@media (max-width: 820px) {
  .cmp-btn .cmp-tx { display: none; }
  .cmp-btn { padding: 6px 8px; top: 8px; inset-inline-end: 8px; }
  .acc-card { padding: 18px 16px; }
  .cmp th { width: 92px; font-size: 12.5px; }
  .cmp td { font-size: 13px; padding: 8px; }
  .cmp-bar { bottom: 12px; padding: 10px 16px; }
}
/* the header on phones: menu, name, language, account and cart on one line */
@media (max-width: 820px) {
  .bar { gap: 8px 6px; }
  .bar .ic { width: 36px; height: 36px; }
  .bar .ic svg { width: 23px; height: 23px; }
  .langbtn { padding: 5px 9px; font-size: 12px; }
  .logo { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 380px) { .logo .wm { font-size: 16px; letter-spacing: 1.2px; } .logo img { height: 28px; } }
/* the buttons of the sign in and sign up forms */
.acc-card .btn.block { min-height: 50px; padding: 14px 20px; font-size: 16px; margin-top: 10px; }

/* ---- the product's pictures: the whole rug (no cropping), the photos beside it */
.gallery img { aspect-ratio: auto; object-fit: initial; position: static; }
.gwrap { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: start; position: sticky; top: 140px; }
.gwrap.one { grid-template-columns: minmax(0, 1fr); }
.gthumbs { display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow-y: auto; scrollbar-width: none; }
.gthumbs::-webkit-scrollbar { display: none; }
.gth { padding: 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); cursor: pointer; overflow: hidden; flex: none; }
.gth img { width: 100%; height: 96px; object-fit: contain; display: block; border-radius: 0; }
.gth.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(21, 36, 76, .15); }
.gmain { background: var(--soft); border-radius: var(--img-radius); display: grid; place-items: center; padding: 14px; }
.gmain img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; border-radius: 6px; background: transparent; }
@media (max-width: 820px) {
  .gwrap { grid-template-columns: minmax(0, 1fr); position: static; }
  .gthumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .gth { width: 64px; }
  .gth img { height: 76px; }
  .gmain { padding: 8px; }
  .gmain img { max-height: 70vh; }
}

/* the company behind the shop, small, under the copyright */
.kuc { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: #c9cde0; }
.kuc img { width: 28px; height: 28px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }

/* ---- ratings: stars drawn by a gold bar under grey stars (--r: 0 to 5) */
.stars { display: inline-flex; align-items: center; gap: 4px; }
.stars i { --r: 0; display: inline-block; font-style: normal; font-size: 14px; letter-spacing: 1px; line-height: 1;
           background: linear-gradient(90deg, var(--gold) calc(var(--r) * 20%), #d9d4c8 calc(var(--r) * 20%));
           -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.stars i::before { content: "★★★★★"; }
.stars small { color: var(--muted); font-size: 12px; }
html[dir=rtl] .stars i { transform: scaleX(-1); }
.rate-link { display: inline-flex; margin: -4px 0 8px; color: var(--gold-ink); font-size: 13px; font-weight: 700; }
.reviews { border-top: 1px solid var(--line); padding: 14px 0 6px; margin-top: 8px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-head h3 { margin: 0; font-family: "El Messiri", "Tajawal", serif; color: var(--navy); }
.rv-avg { display: inline-flex; align-items: center; gap: 6px; }
.rv-avg b { font-size: 20px; color: var(--navy); }
.rv-form { display: grid; gap: 8px; margin: 12px 0; background: var(--soft); padding: 12px; border-radius: 14px; }
.rv-pick { display: inline-flex; flex-direction: row-reverse; justify-self: start; gap: 2px; }
.rv-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.rv-pick label { font-size: 28px; color: #d9d4c8; cursor: pointer; line-height: 1; }
.rv-pick input:checked ~ label, .rv-pick label:hover, .rv-pick label:hover ~ label { color: var(--gold); }
.rv-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; resize: vertical; background: #fff; }
.rv-form .btn { justify-self: start; padding: 10px 22px; }
.rv-login, .rv-none { margin: 10px 0; }
.rv-login a { color: var(--gold-ink); font-weight: 800; }
.rvw { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rvw:last-child { border-bottom: 0; }
.rvw-top { display: flex; align-items: center; gap: 8px; }
.rvw-top small { color: var(--muted); margin-inline-start: auto; font-size: 12px; }
.rvw p { margin: 4px 0 0; font-size: 14px; }
.pcard .stars { margin-top: -2px; }

/* ---- see it in your room */
.gmain { position: relative; }
.room-open { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 8px; border: 0;
             border-radius: 999px; padding: 9px 16px; background: rgba(13, 23, 51, .88); color: #fff; font: inherit; font-weight: 800;
             font-size: 13px; cursor: pointer; box-shadow: 0 8px 20px rgba(13, 23, 51, .25); }
.room-open svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; }
.room { position: fixed; inset: 0; z-index: 90; background: #0d1733; color: #fff; display: flex; flex-direction: column; }
.room[hidden] { display: none; }
.room-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(214, 185, 127, .3); }
.room-bar b { font-family: "El Messiri", "Tajawal", serif; font-size: 18px; flex: 1; }
.room-sizes { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.room-size { border-radius: 8px; border: 0; padding: 6px 8px; font: inherit; font-weight: 700; }
.room-x { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.room-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px; }
.room-start { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 380px; }
.room-start p { color: #c9cde0; margin: 0 0 6px; }
.room-start .btn { width: 100%; cursor: pointer; }
.room-view { position: relative; width: min(100%, 1100px); height: 100%; overflow: hidden; border-radius: 12px; touch-action: none; background: #000; }
.room-bg, .room-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.room-rug { position: absolute; left: 0; top: 0; transform-origin: 0 0; cursor: move; max-width: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.room-h { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--gold);
          border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); cursor: grab; z-index: 2; }
.room-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px 16px; }
.room-tools .btn { padding: 9px 16px; font-size: 13px; }
.room-tools small { color: #c9cde0; flex-basis: 100%; text-align: center; }

/* the owners' mark on the pictures: tiny and faint, for the staff (a customer takes it for a speck) */
.om { position: absolute; bottom: 5px; inset-inline-end: 7px; z-index: 1; font-style: normal; font-size: 9px; line-height: 1; letter-spacing: 1px;
      color: rgba(255, 255, 255, .7); text-shadow: 0 0 2px rgba(0, 0, 0, .45); pointer-events: none; user-select: none; }
.om:empty { display: none; }

/* the zoleia mark on the shop's pictures: a round badge in a corner */
.wmk { position: absolute; z-index: 1; bottom: 10px; inset-inline-start: 10px; width: 38px; height: 38px; border-radius: 50%;
       background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(13, 23, 51, .18);
       border: 1.5px solid rgba(190, 154, 92, .7); pointer-events: none; }
.wmk img { height: 24px; width: auto; border-radius: 0; background: none; }
.gmain .wmk { bottom: auto; top: 14px; inset-inline-start: auto; inset-inline-end: 14px; width: 48px; height: 48px; }
.gmain .wmk img { height: 30px; }
.gmain .om { bottom: 8px; }
@media (max-width: 820px) { .wmk { width: 32px; height: 32px; bottom: 8px; inset-inline-start: 8px; } .wmk img { height: 20px; }
                            .gmain .wmk { width: 40px; height: 40px; } .gmain .wmk img { height: 25px; } }
/* the room window lives inside the product's picture block: its own rules win over the gallery's */
.room .room-rug { position: absolute; left: 0; top: 0; aspect-ratio: auto; object-fit: fill; border-radius: 0; background: none; max-width: none; }
.room .room-bg { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; position: static; border-radius: 0; background: none; }
.room-start[hidden], .room-view[hidden], .room-tools[hidden], .room .room-bg[hidden], .room .room-video[hidden] { display: none; }

/* the rug laid in the rooms of the shop: room pictures fill their thumbnail; a card over which the pointer rests shows
   its rug in a room, framed on the rug */
.gth.scene img { object-fit: cover; }
.pimg.inroom img { object-position: var(--pos, 50% 70%); }
.chero img.scene { filter: brightness(.55) saturate(1.05); }

/* the whole rug in every card: the frame has the shape of a rug and the picture is never cut (no zoom on hover);
   a card showing its rug in a room fills the frame, centred on the rug */
.pimg, .cmp .pimg { aspect-ratio: 2 / 3; }
.pimg img { object-fit: contain; }
.pcard:hover .pimg img { transform: none; }
.pimg.inroom img { object-fit: cover; }

/* the pictures of the shop are not for taking: no dragging, no «save image» menu, no selecting */
.pimg img, .gallery img, .chero img, .hero img, .cmp img, .room img, .wmk img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* two fields side by side never push out of the form (an input keeps its natural width otherwise) */
.frow > * { min-width: 0; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout select { width: 100%; min-width: 0; box-sizing: border-box; }

/* the colours of a card stay inside it on a phone (smaller dots, wrapping if need be) */
.sws { flex-wrap: wrap; min-width: 0; }
@media (max-width: 820px) {
  .sws { gap: 3px; }
  .sws .sw { padding: 1px; }
  .sws .sw i { width: 16px; height: 16px; }
}
/* the comparison: each rug's picture keeps a card's size, however few rugs are compared */
.cmp .pimg { max-width: 240px; width: 100%; margin-inline: auto; }

/* every card's picture fills its rug-shaped frame edge to edge (a photo taken narrower than the rug is widened to
   the frame; the product page keeps the photo as it is) */
.pimg img { object-fit: fill; }
.pimg.inroom img { object-fit: cover; }

/* ---- full width: the page runs edge to edge on every screen, with a gutter that grows with the screen */
:root { --gut: clamp(16px, 3vw, 56px); }
.bar, .wrap, .wrap.narrow, .block { max-width: none; padding-inline: var(--gut); }
.wrap .block { padding-inline: 0; }
.hero { max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.hero img { max-height: none; min-height: 100%; }
.hero .htxt { padding-inline: clamp(24px, 5vw, 96px); }
.perks-strip { max-width: none; margin: 22px var(--gut) 0; }
.foot { padding-inline: var(--gut); }
.fwrap { max-width: none; }
@media (min-width: 821px) { .mega { width: calc(100vw - 2 * var(--gut)); } }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiles.five { gap: 28px; } }
@media (min-width: 2100px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 821px) and (max-width: 1100px) { .hero h1 { font-size: 34px; } }

/* ---- share the product */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.share > span { font-weight: 800; font-size: 14px; color: var(--muted); margin-inline-end: 4px; }
.share a, .share button { position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; padding: 0; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.share svg { width: 19px; height: 19px; fill: currentColor; }
.share svg.ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share a:hover, .share button:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share .sh-wa:hover { background: #25d366; }
.share .sh-tg:hover { background: #229ed9; }
.share .sh-fb:hover { background: #1877f2; }
.share .sh-x:hover { background: #111; }
.share .sh-em:hover, .share .sh-cp:hover, .share .sh-more:hover { background: var(--navy); }
.share .sh-cp em { position: absolute; bottom: calc(100% + 6px); white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; background: var(--navy-3);
  color: #fff; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share .sh-cp.done em { opacity: 1; }
.share [hidden] { display: none; }

/* ---- the rug in your room */
html.rv-on, html.rv-on body { overflow: hidden; }
.rv { position: fixed; inset: 0; z-index: 95; background: #0b1430; color: #fff; display: flex; flex-direction: column; }
.rv[hidden], .rv [hidden] { display: none !important; }
.rv img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.rv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rv-bar { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: #fff; color: var(--navy-3); box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.rv-title { font-family: "El Messiri", "Tajawal", serif; font-size: 18px; flex: 1; }
.rv-x { border: 0; background: #f1f2f6; color: var(--navy-3); width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.rv-top { display: flex; gap: 8px; }
.rv-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dfe2ea; background: #fff; color: var(--navy-3); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rv-pill.gold { background: var(--navy-3); color: #fff; border-color: var(--navy-3); }
.rv-start { flex: 1; overflow: auto; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 28px 48px; padding: 28px 20px; }
.rv:has(.rv-work[hidden]) .rv-top { display: none; }
.rv-intro { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.rv-badge { align-self: flex-start; background: rgba(214, 185, 127, .16); color: var(--gold-2); border: 1px solid rgba(214, 185, 127, .4); border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 800; }
.rv-intro h3 { margin: 0; font-family: "El Messiri", "Tajawal", serif; font-size: 28px; line-height: 1.3; }
.rv-intro p { margin: 0; color: #c9cde0; line-height: 1.8; }
.rv-intro small { color: #9aa1bd; line-height: 1.7; }
.rv-up { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.rv-up .btn { flex: 1 1 180px; cursor: pointer; }
.rv-up .btn.ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.rv-rooms { max-width: 520px; flex: 1 1 320px; }
.rv-rooms h4 { margin: 0 0 12px; color: var(--gold-2); font-size: 15px; }
.rv-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.rv-rgrid button { position: relative; border: 2px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; background: #000;
  aspect-ratio: 4 / 3; transition: border-color .2s, transform .2s; }
.rv-rgrid button:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.rv-rgrid img { width: 100%; height: 100%; object-fit: cover; }
.rv-rgrid span { position: absolute; inset: auto 0 0; padding: 18px 8px 6px; font-size: 12.5px; font-weight: 700; color: #fff; text-align: start;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.rv-work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rv-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1a2650, #070d22); overflow: hidden; }
.rv-canvas, .rv-over { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; max-width: none; }
.rv-over { touch-action: none; z-index: 1; }
.rv-busy { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(7, 13, 34, .72);
  backdrop-filter: blur(3px); font-weight: 700; color: #e9ebf4; }
.rv-busy i { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(214, 185, 127, .25); border-top-color: var(--gold-2); animation: rvspin .9s linear infinite; }
@keyframes rvspin { to { transform: rotate(360deg); } }
.rv-hint, .rv-nofloor { position: absolute; z-index: 2; inset-inline: 0; top: 10px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); text-align: center;
  background: rgba(7, 13, 34, .7); padding: 7px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; }
.rv.busy .rv-hint, .rv-nofloor { display: none; }
.rv-fixbar { position: absolute; z-index: 2; inset-inline: 10px; top: 10px; background: rgba(255, 255, 255, .96); border-radius: 16px; padding: 10px 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3); display: grid; gap: 8px; }
.rv-fixbar p { margin: 0; font-size: 13px; color: var(--navy-3); }
.rv-fixbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-fixbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--navy-3); }
.rv-fixbar .rv-pill.on { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy-3); }
.rv.fixing .rv-hint { display: none; }
.rv.nofloor .rv-nofloor { display: block; border-radius: 12px; top: 52px; color: #ffe3a6; }
.rv-sheet { background: #fff; color: var(--navy-3); border-radius: 18px 18px 0 0; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.rv-sheet::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: #d5d8e1; margin: 0 auto 8px; }
.rv-acts { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.rv-acts::-webkit-scrollbar { display: none; }
.rv-acts > button, .rv-acts > label, .rv-more summary { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--navy-3); font: inherit;
  font-size: 14px; font-weight: 700; padding: 8px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap; flex: none; }
.rv-acts > button:hover, .rv-more summary:hover { background: #f1f2f6; }
.rv-acts > button:disabled { opacity: .35; cursor: default; }
.rv:not(.has-rug) .rv-need { display: none; }
.rv-sizes select { border: 1px solid #dfe2ea; border-radius: 8px; padding: 5px 8px; font: inherit; font-weight: 700; direction: ltr; background: #fff; }
.rv-more { position: relative; margin-inline-start: auto; }
.rv-more summary { list-style: none; }
.rv-more summary::-webkit-details-marker { display: none; }
.rv-menu { position: fixed; bottom: 150px; inset-inline-end: 12px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); padding: 14px;
  display: grid; gap: 12px; min-width: 220px; z-index: 5; }
.rv-menu label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.rv-menu input { accent-color: var(--gold); }
.rv-menu button { border: 1px solid #dfe2ea; background: #fff; border-radius: 10px; padding: 9px; font: inherit; font-weight: 700; cursor: pointer; color: var(--navy-3); }
.rv-rugs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: thin; }
.rv-rug { flex: none; width: 74px; display: grid; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font: inherit; }
.rv-rug img { width: 74px; height: 96px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; outline: 1px solid #e3e5ec; background: #f6f6f8; }
.rv-rug.on img { border-color: var(--navy-3); }
.rv-rug small { font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .rv-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rv:has(.rv-work:not([hidden])) .rv-title { visibility: hidden; }
  .rv-pill span { display: none; }
  .rv-pill { padding: 9px; }
  .rv-cart.rv-pill span { display: inline; }
  .rv-cart.rv-pill { padding: 8px 12px; }
  .rv-start { align-content: flex-start; }
  .rv-intro h3 { font-size: 23px; }
  .rv-rug { width: 62px; }
  .rv-rug img { width: 62px; height: 80px; }
}
@media (min-width: 821px) {
  .rv-work { flex-direction: row; }
  .rv-sheet { width: 320px; flex: none; border-radius: 0; display: flex; flex-direction: column; overflow: auto; box-shadow: none; }
  .rv-sheet::before { display: none; }
  .rv-acts { flex-wrap: wrap; overflow: visible; border-bottom: 1px solid #eceef3; padding-bottom: 10px; margin-bottom: 10px; }
  .rv-acts > button, .rv-acts > label { flex: 1 1 45%; }
  .rv-more { margin: 0; flex: 1 1 100%; }
  .rv-more summary { width: 100%; justify-content: center; }
  .rv-menu { position: static; box-shadow: none; padding: 8px 0 0; min-width: 0; }
  .rv-rugs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .rv-rug, .rv-rug img { width: 100%; }
  .rv-rug img { height: auto; aspect-ratio: 3 / 4; }
}

/* the buy row: one neat line in the page's proportions (quantity, add to cart, compare), the same height */
.buy { align-items: stretch; gap: 10px; margin-top: 6px; }
.buy .qty { height: 48px; flex: 0 0 auto; overflow: hidden; }
.buy .qty button { width: 40px; font-size: 18px; color: var(--navy); }
.buy .qty input { width: 40px; font-size: 15px; background: transparent; }
.buy .btn { height: 48px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.buy .addc { flex: 1 1 auto; max-width: 300px; }
.buy .cmp-pdp { flex: 0 0 48px; width: 48px; padding: 0; }
@media (max-width: 820px) {
  /* the header's blur traps a fixed child in the header's own box (the menu came out as tall as the header):
     no blur on phones, the menu takes the whole screen height and scrolls on its own, the page behind stays still */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu { height: 100vh; height: 100dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
          padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.nav-open { overflow: hidden; touch-action: none; }
  body.nav-open .menu { touch-action: pan-y; }
  .buy { gap: 8px; }
  .buy .qty { height: 44px; }
  .buy .qty button { width: 36px; }
  .buy .qty input { width: 34px; }
  .buy .btn { height: 44px; padding: 0 16px; font-size: 14.5px; }
  .buy .cmp-pdp { flex-basis: 44px; width: 44px; }
  .share { gap: 6px; }
  .share > span { margin-inline-end: 2px; }
  .share a, .share button { width: 36px; height: 36px; }
  .share svg { width: 17px; height: 17px; }
}

/* ---- the main banner: one wide band of a moderate height, the words on the navy side, the rug on the other side
   melting into the navy (no hard edge between the two halves) */
.hero { position: relative; display: block; overflow: hidden; height: clamp(340px, 34vw, 480px); background-color: var(--navy);
        background-image: repeating-linear-gradient(45deg, rgba(190, 154, 92, .10) 0 2px, transparent 2px 18px),
                          repeating-linear-gradient(-45deg, rgba(190, 154, 92, .06) 0 2px, transparent 2px 18px); }
.hero img { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 62%; height: 100%; min-height: 0; max-height: none;
            object-fit: cover; object-position: center 40%; border-radius: 0; transform: scale(1.02); }
/* the navy runs over the rug's inner edge and darkens its outer side a little, so the picture sits inside the band */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
               background: linear-gradient(to left, var(--navy) 0, var(--navy) 36%, rgba(21, 36, 76, .78) 46%, rgba(21, 36, 76, .25) 62%, rgba(21, 36, 76, 0) 78%, rgba(21, 36, 76, .35) 100%),
                           linear-gradient(to bottom, rgba(13, 23, 51, .25), transparent 25%, transparent 75%, rgba(13, 23, 51, .35)); }
html[dir=ltr] .hero::after { background: linear-gradient(to right, var(--navy) 0, var(--navy) 36%, rgba(21, 36, 76, .78) 46%, rgba(21, 36, 76, .25) 62%, rgba(21, 36, 76, 0) 78%, rgba(21, 36, 76, .35) 100%),
                                         linear-gradient(to bottom, rgba(13, 23, 51, .25), transparent 25%, transparent 75%, rgba(13, 23, 51, .35)); }
.hero .htxt { position: relative; z-index: 1; height: 100%; width: min(620px, 52%); background: none; border-radius: 0;
              padding: 0 clamp(24px, 5vw, 96px); gap: 14px; justify-content: center; }
.hero .htxt::before, .hero .htxt::after { inset-inline: clamp(24px, 5vw, 96px) 0; }
.hero h1 { font-size: clamp(30px, 3.3vw, 46px); }
.hero p { font-size: 16.5px; max-width: 470px; }
@media (max-width: 820px) {
  /* phones: the rug fills the band behind the words, darkened so they read clearly */
  .hero { height: auto; min-height: 330px; }
  .hero img { width: 100%; object-position: center 35%; }
  .hero::after, html[dir=ltr] .hero::after { background: linear-gradient(to top, rgba(13, 23, 51, .96) 0, rgba(21, 36, 76, .86) 48%, rgba(21, 36, 76, .55) 100%); }
  .hero .htxt { width: auto; min-height: 330px; padding: 44px 22px 40px; justify-content: flex-end; }
  .hero .htxt::before, .hero .htxt::after { inset-inline: 22px; }
}

/* «رجوع» on every page but the home page: back to where the visitor came from, or to the shop */
.backrow { padding: 14px var(--gut) 0; }
.backbtn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff;
           border: 1px solid var(--line); color: var(--navy); font-weight: 800; font-size: 14px; text-decoration: none; }
.backbtn svg { width: 18px; height: 18px; }
html[dir=ltr] .backbtn svg { transform: scaleX(-1); }
.backrow + .wrap, .backrow + * { margin-top: 0; }

/* about us and the privacy policy */
.doc { max-width: 860px; padding-bottom: 48px; line-height: 1.9; color: #2a3350; }
.doc h2 { font-family: 'El Messiri', 'Tajawal', sans-serif; color: var(--navy-3); font-size: 22px; margin: 0 0 10px; }
.doc h3 { font-size: 16px; color: var(--navy-3); margin: 16px 0 6px; }
.doc ul { padding-inline-start: 20px; margin: 6px 0 10px; }
.doc li { margin: 4px 0; }
.doc-hero { background: linear-gradient(135deg, var(--navy-3), #24366b); color: #fff; border-radius: 22px; padding: 34px 28px; margin: 10px 0 26px; }
.doc-hero h1 { font-family: 'El Messiri', 'Tajawal', sans-serif; color: var(--gold-2); font-size: 32px; margin: 0 0 10px; }
.doc-hero p { margin: 0; font-size: 17px; opacity: .95; }
.doc-sec { background: #fff; border: 1px solid #eceef3; border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.doc-grid > div { background: #f8f6f0; border-radius: 14px; padding: 14px 16px; }
.doc-grid b { color: var(--navy-3); }
.doc-grid p { margin: 4px 0 0; font-size: 14px; }
.doc-contact { list-style: none; padding: 0; }
.doc mark.todo { background: #fff1c2; color: #8a5a00; border-radius: 6px; padding: 0 6px; }
@media (max-width: 640px) { .doc-hero { padding: 24px 18px; } .doc-hero h1 { font-size: 26px; } .doc-sec { padding: 18px 16px; } }

/* ---- the cart: a line per piece with its unit price, a − / + stepper and a remove button; a clear summary */
.cflash { display: flex; align-items: center; gap: 10px; border-radius: 12px; font-size: 15px; }
.cflash span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; flex: none; }
.cline { align-items: flex-start; gap: 14px; }
.cline .cpic img { width: 96px; height: 128px; border-radius: 10px; display: block; }
.cline .cname { font-weight: 800; font-size: 16px; color: var(--navy); }
.cline .csize { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--navy); }
.cline .cunit { font-size: 13px; }
.cside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.cside .num { font-size: 16px; white-space: nowrap; }
.cstep { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.cstep button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; }
.cstep button:disabled { color: #c9c4b8; cursor: default; }
.cstep button:not(:disabled):active { background: var(--soft); }
.cstep output { min-width: 28px; text-align: center; font-weight: 800; }
.cdel { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.cdel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cdel:hover { color: var(--hot); }
.summary .btn.block { min-height: 52px; font-size: 16px; padding: 14px 20px; margin-top: 6px; }
.summary .srow { align-items: baseline; gap: 12px; }
@media (max-width: 820px) {
  .cline .cpic img { width: 84px; height: 112px; }
  .cline .cname { font-size: 15px; }
}
@media (max-width: 380px) {
  .cline { flex-wrap: wrap; }
  .cline .grow { flex: 1 1 150px; }
  .cside { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; padding-inline-start: 98px; }
}
/* the colour names under the swatches stay readable on phones */
.colours .sw small { font-size: 11px; }

/* ---- discounts: a badge on the picture, the sale price in red with the showroom's price struck through */
.pimg .off { direction: ltr !important; position: absolute; top: 44px; inset-inline-start: 10px; z-index: 2; background: var(--hot); color: #fff; font-size: 13px;
  font-weight: 900; padding: 4px 10px; border-radius: 999px; direction: ltr; unicode-bidi: isolate; box-shadow: 0 4px 10px rgba(180, 55, 43, .3); }
.price.sale b, .pprice.sale b { color: var(--hot); }
.price .was, .pprice .was { color: var(--muted); font-size: .85em; font-weight: 600; margin-inline-start: 6px; text-decoration-thickness: 1.5px; }
.pprice .off-pill { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: 14px; font-weight: 900; }
.saves { margin: -8px 0 14px; color: var(--hot); font-weight: 700; font-size: 14px; }
/* a price range from / to, in the price filter */
.prange { display: flex; align-items: center; gap: 8px; padding: 10px 4px 4px; border-top: 1px dashed var(--line); margin-top: 6px; }
.prange input { width: 0; flex: 1; min-width: 70px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.prange span { color: var(--muted); }
.prange .btn.sm { padding: 0 14px; height: 40px; font-size: 14px; }
.pimg .tag + .off { top: 44px; }
.pimg .off:first-of-type { top: 10px; }
.pprice .off-pill, .pimg .off { direction: ltr; unicode-bidi: isolate; }
.pprice.sale small { display: block; margin: 4px 0 0; white-space: nowrap; }
/* the badge is written left to right (-20%) but sits on the start side of the picture, under the sizes tag */
html[dir=rtl] .pimg .off { right: 10px; left: auto; }
html[dir=ltr] .pimg .off { left: 10px; right: auto; }

/* the phone: one size for every control. Buttons are 48px pills, fields 48px; the filters and the sort sit side
   by side at the same width, height and weight; the quantity steppers match the buttons beside them. */
@media (max-width: 820px) {
  .btn, .btn.block, .btn.gold, .btn.ghost, .addc { min-height: 48px; padding: 0 22px; font-size: 15px; font-weight: 800; line-height: 1.2; }
  .fbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
  .fbar .allf { order: 1; }
  .fbar .sort { order: 2; }
  .fbar .count { order: 3; grid-column: 1 / -1; }
  .fbar .allf, .fbar .sort { width: 100%; height: 48px; min-height: 48px; margin: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; }
  .fbar .allf { justify-content: center; padding: 0 16px; }
  .fbar .sort { -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center; color: var(--navy);
    border: 1.5px solid var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315244c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 16px center / 14px;
    padding: 0; padding-inline: 12px 34px; }
  html[dir=ltr] .fbar .sort { background-position: right 16px center; }
  .qty, .buy .qty { height: 48px; border-radius: 999px; overflow: hidden; }
  .acc-card .btn.block, .summary .btn.block { min-height: 48px; padding: 0 22px; font-size: 15px; }
  .qty button { width: 44px; }
  .buy .addc { height: 48px; }
  .buy .cmp-pdp { flex-basis: 48px; width: 48px; height: 48px; }
  .checkout select { height: 48px; }
  .share a, .share button { width: 40px; height: 40px; }
  .share svg.ln { stroke-width: 2.3; }
  .cstep { height: 44px; }
  .cstep button { width: 44px; }
}

/* the factory colour code beside the colour (shown when the management chooses) */
.info h4 .ccode { display: inline-block; margin-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: #f1f4f7; color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

/* ---- home: «شاهد السجادة في غرفتك» — one room of the shop, our rugs laid in it in turn, a phone showing the rug's card */
.vroom { --pw: clamp(150px, 13vw, 200px); margin: 40px var(--gut) 0; display: grid; grid-template-columns: minmax(300px, .78fr) 1.5fr;
         background: var(--soft); border-radius: var(--img-radius); position: relative; isolation: isolate; }
.vr-text { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center;
           align-items: center; }
.vr-text small { color: var(--gold-ink); font-weight: 800; letter-spacing: .4px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.vr-text small::before, .vr-text small::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.vr-text h2 { margin: 0; color: var(--navy); font-size: clamp(26px, 2.7vw, 42px); line-height: 1.25; font-weight: 800; }
.vr-text p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); max-width: 30em; }
.vr-text .btn { margin-top: 8px; min-width: 190px; }
.vr-dots { display: flex; gap: 8px; margin-top: 10px; }
.vr-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: #d5cab5; cursor: pointer;
                  transition: width .35s, background .35s; }
.vr-dots button.on { width: 26px; background: var(--navy); }
.vr-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.vr-stage { position: relative; min-height: clamp(340px, 33vw, 500px); border-start-end-radius: var(--img-radius);
            border-end-end-radius: var(--img-radius); overflow: hidden; background: #e9e1d2; }
.vr-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
            transition: opacity .9s ease, transform 4.2s ease-out; }
.vr-scene.on { opacity: 1; transform: scale(1); }
/* a dashed gold line from the phone down to the rug on the floor, drawn again with every rug */
.vr-path { position: absolute; inset-inline: 18% 6%; bottom: 8%; width: 76%; height: 28%; z-index: 1; overflow: visible; transform: scaleX(-1); }
.vr-path path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .9;
                filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.vr-phone { position: absolute; z-index: 2; inset-inline-start: 5%; top: 50%; transform: translateY(-50%); width: var(--pw);
            aspect-ratio: 9 / 18.5; background: #15171c; border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .045);
            box-shadow: 0 26px 50px rgba(13, 23, 51, .35), inset 0 0 0 2px #2c2f36; }
.vr-phone::before { content: ""; position: absolute; top: calc(var(--pw) * .07); left: 50%; width: 30%; height: calc(var(--pw) * .045);
                    transform: translateX(-50%); background: #15171c; border-radius: 9px; z-index: 2; }
.vr-screen { position: relative; height: 100%; background: #fff; border-radius: calc(var(--pw) * .12); overflow: hidden; }
.vr-brand { position: absolute; top: 15%; inset-inline: 0; text-align: center; direction: ltr; font-size: calc(var(--pw) * .075);
            letter-spacing: 3px; color: var(--navy); font-weight: 800; }
.vr-card { position: absolute; inset: 24% 9% 7%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
           opacity: 0; transform: translateY(14px); transition: opacity .6s ease .15s, transform .6s ease .15s; pointer-events: none; }
.vr-card.on { opacity: 1; transform: none; pointer-events: auto; }
.vr-card img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.vr-card b { font-size: calc(var(--pw) * .068); color: var(--ink); line-height: 1.3; margin-top: 4px; }
.vr-card small { font-size: calc(var(--pw) * .058); color: var(--muted); line-height: 1.2; }
.vr-btn { margin-top: 4px; background: var(--soft); color: var(--navy); font-weight: 800; font-size: calc(var(--pw) * .055);
          padding: 3px 8px; border-radius: 4px; white-space: nowrap; }

@media (max-width: 1100px) {
  .vroom { --pw: clamp(120px, 15vw, 160px); grid-template-columns: minmax(260px, .9fr) 1.3fr; }
  .vr-stage { min-height: 330px; }
}
@media (max-width: 820px) {
  .vroom { --pw: clamp(92px, 26vw, 130px); grid-template-columns: 1fr; margin-top: 30px; }
  .vr-stage { order: -1; min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--img-radius) var(--img-radius) 0 0; }
  .vr-phone { inset-inline-start: 4%; top: auto; bottom: 5%; transform: none; }
  .vr-path { inset-inline: 30% 6%; width: 64%; bottom: 10%; height: 30%; }
  .vr-text { padding: 26px 20px 28px; }
  .vr-text .btn { width: 100%; max-width: 340px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .vr-scene, .vr-card { transition: opacity .3s; transform: none; }
}

/* ---- favourites: the heart in the header, on every card and on the product page; the account's link */
.ic.fav svg path { fill: none; }
.ic i[hidden] { display: none !important; }
.fav-btn { position: absolute; top: 48px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center;
           border: 0; border-radius: 50%; padding: 0; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer;
           box-shadow: 0 4px 12px rgba(13, 23, 51, .15); transition: transform .15s; }
.fav-btn:active { transform: scale(.9); }
.fav-btn svg, .fav-pdp svg, .fav-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.fav-btn.on, .fav-pdp.on { color: #d6455d; }
.fav-btn.on svg, .fav-pdp.on svg { fill: currentColor; }
.fav-pdp { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 18px; border: 0; border-radius: 999px;
           background: #fff; color: var(--navy); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
           box-shadow: inset 0 0 0 1.5px var(--line); }
.fav-pdp:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fav-pdp .fav-in, .fav-pdp.on .fav-add { display: none; }
.fav-pdp.on .fav-in { display: inline; }
.acc-fav { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.acc-fav > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.acc-fav small { color: var(--muted, #6b7280); font-weight: 600; }
.acc-fav .fav-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fdecef; color: #d6455d; flex: none; }
.acc-fav .fav-ic svg { fill: currentColor; }
.acc-fav .go { font-style: normal; font-size: 22px; color: var(--muted, #6b7280); }
html[dir=ltr] .acc-fav .go { transform: scaleX(-1); }
.fav-gone { margin: 0 0 14px; }
@media (max-width: 820px) {
  .fav-btn { top: 44px; inset-inline-end: 8px; width: 32px; height: 32px; }
}

/* ───────── the strip that closes the home page: the rugs people bought most, walking past on their own.
   The walking is one CSS animation over a row printed twice, so the second copy arrives exactly where the first
   began and the eye never sees a seam. It stands still under a finger, under the pointer, for a keyboard, and for
   anyone whose device asks for less motion. ───────── */
.hotband .hotwrap { position: relative; overflow: hidden; padding: 4px 0 2px;
                    -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
                    mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.hotband .hotrun { display: flex; gap: 0; width: max-content; animation: hotwalk calc(var(--n, 10) * 3.4s) linear infinite; }
/* the row is printed twice, so half the track is exactly one copy — the gap rides on the card itself,
   otherwise the seam is short by one gap and a bald patch walks past. In Arabic the row reads from the
   right, so it walks the other way: either way the end is joined to the beginning. */
.hotband .hotwrap:hover .hotrun, .hotband .hotwrap:focus-within .hotrun, .hotband .hotwrap:active .hotrun { animation-play-state: paused; }
@keyframes hotwalk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .hotband .hotrun { animation-name: hotwalk-rtl; }
@keyframes hotwalk-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.hotband .hotcard { flex: none; width: 190px; margin-inline-end: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
                    padding: 8px 8px 10px; transition: border-color .2s, transform .2s; }
.hotband .hotcard:hover { border-color: var(--gold); transform: translateY(-3px); }
.hotband .hotcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--soft); }
.hotband .hotcard b { display: block; margin-top: 7px; font-size: 13px; font-weight: 800; line-height: 1.35;
                      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotband .hotcard small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.hotband .hotcard .hotprice { display: block; margin-top: 4px; font-size: 13px; font-weight: 900; color: var(--gold-ink); }

@media (max-width: 820px) {
  .hotband .hotcard { width: 148px; margin-inline-end: 10px; }
  .hotband .hotwrap { -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
                      mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
}
/* a device that asks for less motion gets the same rugs, standing still and pushed by the finger */
@media (prefers-reduced-motion: reduce) {
  .hotband .hotwrap { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px;
                      -webkit-mask-image: none; mask-image: none; }
  .hotband .hotrun { animation: none; }
  .hotband .hotcard { scroll-snap-align: start; }
  .hotband .hotcard[aria-hidden="true"] { display: none; }
}

/* ---- phones up to 440 px (iPhone 375-430, Galaxy 360-412): the header's icons, the logo and the language button stay on
   one line (the cart used to drop to a line of its own above the search) */
@media (max-width: 440px) {
  .bar { gap: 8px 4px; padding: 10px 12px; }
  .bar .ic { width: 34px; height: 34px; }
  .bar .ic svg { width: 22px; height: 22px; }
  .logo { gap: 6px; min-width: 0; }
  .logo img { height: 28px; }
  .logo .wm { font-size: 15px; letter-spacing: 1px; }
  .langbtn { padding: 5px 9px; font-size: 12px; }
}
/* the rug's own colour sample (23/11): a round piece cut from the rug where it shows the colour, ringed like a fabric chip */
.sws .sw i { width: 24px; height: 24px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.colours .sw i { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .18); }
.colours .sw.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
@media (max-width: 600px) { .colours .sw i { width: 40px; height: 40px; } }
