/* Pages that share index.html. The body gets v-home | v-fabrics | v-product | v-work | v-how | v-book and only
   that page's sections show. The home page stops at the calculator; the rest are their own tabs. */

/* ---------- which sections show on which page ---------- */
body.v-home main > section:not(#top):not(#fabrics):not(#calc) { display: none; }
body:not(.v-home) main > :not(section) { display: none; }
body.v-fabrics main > section:not(#fabrics),
body.v-product main > section:not(#product),
body.v-work main > section:not(#work),
body.v-how main > section:not(#how),
body.v-book main > section:not(#book) { display: none; }
body:not(.v-home) main { padding-top: 0; min-height: 70vh; } /* the header is sticky (in the flow) here, so no extra top space */
body:not(.v-home) main > section .rv { opacity: 1; transform: none; }

/* ---------- prices: offer ---------- */
.price s.was, .pd-price s.was { color: var(--muted); font-weight: 400; font-size: .86em; text-decoration-thickness: 1px; margin-inline-start: 4px; }
.badge.offer { background: var(--gold); color: var(--navy-2); inset-inline-start: auto; inset-inline-end: 10px; }

/* ---------- fabric cards: link + a calm hover — the fabric close-up fades in over the room photo ---------- */
a.fcard { color: inherit; }
.fcard-img .veil { display: none; }
.fcard-img .alt { opacity: 0; transition: opacity .7s var(--ease); }
.fcard-img .peek {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0; text-align: center;
  font: 500 13px var(--body); color: #fff; background: linear-gradient(0deg, rgba(30,42,54,.55), rgba(30,42,54,0));
  padding: 26px 12px 12px; opacity: 0; transition: opacity .5s var(--ease);
}
@media (hover: hover) {
  .fcard:hover .fcard-img.has-alt .alt { opacity: 1; }
  .fcard:hover .fcard-img .peek { opacity: 1; }
}

/* ---------- our work page ---------- */
#workFilters { justify-content: center; margin-bottom: 18px; }
@media (max-width: 720px) { #workFilters { justify-content: flex-start; } }
.gallery figure { position: relative; }
.gallery figcaption {
  position: absolute; inset-inline-start: 10px; bottom: 10px; font: 500 12.5px var(--body); color: var(--navy);
  background: rgba(250,247,241,.9); border-radius: var(--r-pill); padding: 4px 11px; pointer-events: none;
}
.gallery .album-n {
  position: absolute; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 4px;
  font: 500 12px var(--body); color: #fff; background: rgba(19,38,56,.55); border-radius: 3px; padding: 3px 7px; pointer-events: none;
}
.gallery .album-n .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.more { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }

/* ---------- one fabric ---------- */
.pdp { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--navy); }
.crumbs b { color: var(--navy); font-weight: 500; }

.pd { display: grid; gap: 28px; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; } .pd-media { position: sticky; top: 92px; } }

.pd-gal { border-radius: var(--r-lg); overflow: hidden; background: var(--ivory-2); }
.pd-gal .gal-track figure { aspect-ratio: 4 / 5; }
.pd-gal .gal-track figure img { width: 100%; height: 100%; object-fit: cover; }
.pd-gal .gal-track figure.is-card img { object-fit: contain; background: #F6F1EA; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: none; width: 62px; aspect-ratio: 4 / 5; border-radius: 8px; border: 1px solid var(--line); background: var(--tone) center / cover; opacity: .7; transition: .2s; }
.pd-thumbs button.on, .pd-thumbs button:hover { opacity: 1; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.pd-info { display: flex; flex-direction: column; gap: 18px; }
.pd-info .eyebrow { margin: 0; }
.pd-info h1 { font: 600 clamp(40px, 6vw, 58px)/1.02 var(--latin); letter-spacing: .02em; color: var(--navy); text-align: start; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.pd-price > span { font-size: 13.5px; color: var(--muted); }
.pd-price .price { font-size: 17px; }
.pd-price .price b { font: 600 28px var(--display); color: var(--navy); }
.pd-price .badge.offer { position: static; }
.pd-desc { color: var(--ink); font-size: 16px; max-width: 52ch; }

.pd-colours { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pd-col-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-col-h h2 { font-size: 18px; }
.pd-col-h h2 small { color: var(--muted); font: 400 14px var(--body); }
.pd-all { background: none; border: 0; color: var(--gold-deep); font: 500 14px var(--body); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.pd-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-sw .sw-btn { min-height: 44px; }
.pd-sw .sw-btn .sw { width: 32px; height: 32px; }
.pd-colname { font-size: 14px; color: var(--muted); }
.pd-colname b { color: var(--navy); font-weight: 600; }

.pd-cta { display: grid; gap: 10px; }
@media (min-width: 560px) { .pd-cta { grid-template-columns: 1fr 1fr; } .pd-cta .btn-gold { grid-column: 1 / -1; } }
.pd-cta .btn { justify-content: center; }

.pd-specs { list-style: none; border-top: 1px solid var(--line); }
.pd-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pd-specs li span { color: var(--muted); }
.pd-specs li b { font-weight: 500; color: var(--navy); text-align: end; }
.pd-specs li.hint { display: block; color: var(--muted); font-size: 13px; border: 0; padding-top: 14px; }

.pd-block { margin-top: 64px; }
.pd-block-h { margin-bottom: 18px; }
.pd-block-h h2 { font-size: clamp(22px, 3vw, 28px); }
.pd-block-h p { color: var(--muted); margin-top: 4px; }
.pair-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .pair-grid { grid-template-columns: repeat(3, 1fr); } }
.pair { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: .25s var(--ease); }
.pair:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pair-sw { position: relative; flex: none; width: 76px; height: 64px; }
.pair-sw i { position: absolute; top: 0; width: 46px; height: 64px; border-radius: 8px; background: var(--tone) center / cover; box-shadow: 0 2px 8px -3px rgba(12,26,40,.35); border: 2px solid var(--paper); }
.pair-sw i:first-child { inset-inline-start: 0; z-index: 1; }
.pair-sw i:last-child { inset-inline-start: 28px; }
.pair-txt { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.pair-txt small { color: var(--gold-deep); font-size: 12px; }
.pair-txt b { font: 600 19px var(--latin); color: var(--navy); text-align: start; }
.pair-txt span { font-size: 13px; color: var(--muted); }
#pdMore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { #pdMore { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* calculator: a fabric family with no fabrics yet */
.choice.soon { opacity: .55; cursor: not-allowed; }
.choice.soon .soon-tag { font: 500 11.5px var(--body); color: var(--gold-deep); background: var(--gold-wash); border-radius: var(--r-pill); padding: 2px 8px; margin-inline-start: 4px; }

/* spacing on the inner pages: the header is already there, keep the title close */
body:not(.v-home) main > section.sec { padding-top: 34px; }
body:not(.v-home) main > section .head { margin-top: 0; }
.pd-thumbs { background: none; padding: 0; }
.how-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:36px}

/* ---------- footer: compact, with social icons ---------- */
.ftr{padding:40px 0 96px}
.foot{display:grid;gap:26px}
.foot-brand img{width:92px;margin-bottom:8px}
.foot-brand p{font-size:13.5px;max-width:300px}
.social{display:flex;gap:10px;margin-top:14px}
.social a{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:var(--r);color:#fff;transition:background .3s,border-color .3s,color .3s}
.social a:hover{background:var(--gold);border-color:var(--gold);color:#fff}
.social .ic{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.6}
.foot-links a{padding:4px 0;font-size:14px}
.foot h4{font-size:15px;margin-bottom:8px}
.foot-branches p{font-size:13.5px;margin-bottom:8px}
.ftr .copy{font-size:12px;margin-top:26px;padding-top:16px}
@media (max-width:720px){
  .ftr{padding:28px 0 92px}
  .foot{grid-template-columns:1fr 1fr;gap:22px 18px}
  .foot-brand{grid-column:1 / -1;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:center}
  .foot-brand img{width:64px;margin:0;grid-row:span 2}
  .foot-brand p{font-size:13px}
  .social{margin-top:6px}
  .social a{width:38px;height:38px}
  .foot-links{display:flex;flex-direction:column}
  .foot-links a{padding:3px 0;font-size:13.5px}
  .foot-branches p{font-size:12.5px;line-height:1.55}
  .ftr .copy{margin-top:18px}
}
@media (min-width:900px){
  .foot{grid-template-columns:1.3fr 1fr 1.4fr;gap:48px}
}

/* ---------- hero: the four service points (replace the 20+ / KS / wave numbers) ---------- */
.hero-feats{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;margin-top:34px;padding-top:22px;border-top:1px solid rgba(255,255,255,.22)}
.hero-feats li{display:flex;gap:10px;align-items:flex-start}
.hero-feats .ic{flex:none;width:26px;height:26px;color:var(--gold-2);stroke-width:1.4;margin-top:2px}
.hero-feats b{display:block;font:500 15px/1.4 var(--display);color:#fff}
.hero-feats span{display:block;font-size:12.5px;line-height:1.55;color:rgba(255,255,255,.72)}
@media (max-width:560px){.hero-feats{gap:14px 14px}.hero-feats span{display:none}.hero-feats b{font-size:14px}}

/* ---------- ribbon: one calm, slow line under the hero ---------- */
.ribbon{background:#ECE8E1;color:#4A4744;overflow:hidden;direction:ltr;border-block:1px solid #E2DDD4;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.rb-row{overflow:hidden;white-space:nowrap;padding:10px 0}
.rb-track{display:inline-flex;align-items:center;gap:20px;animation:rb 160s linear infinite;will-change:transform}
.rb-track span{font:400 13px/1 var(--display);letter-spacing:.03em;color:#4A4744;opacity:.85}
.rb-track span:nth-of-type(even){font:400 11px/1 var(--latin);letter-spacing:.24em;text-transform:uppercase;color:#8C8780;opacity:.85}
/* separator: a tiny tassel (cord, ring, cap, fringe) instead of a dot */
.rb-track i{font-style:normal;width:9px;height:20px;background:#A9A39A;display:inline-block;font-size:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 22'%3E%3Cg stroke='%23000' fill='none'%3E%3Cpath d='M5 0v3' stroke-width='.9'/%3E%3Ccircle cx='5' cy='5' r='1.9' stroke-width='.9'/%3E%3Cpath d='M3 10.6 2 21.4M4.3 10.6 3.9 21.8M5.7 10.6 6.1 21.8M7 10.6 8 21.4' stroke-width='.75'/%3E%3C/g%3E%3Cpath d='M3.3 7.4h3.4l.7 3.3H2.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 22'%3E%3Cg stroke='%23000' fill='none'%3E%3Cpath d='M5 0v3' stroke-width='.9'/%3E%3Ccircle cx='5' cy='5' r='1.9' stroke-width='.9'/%3E%3Cpath d='M3 10.6 2 21.4M4.3 10.6 3.9 21.8M5.7 10.6 6.1 21.8M7 10.6 8 21.4' stroke-width='.75'/%3E%3C/g%3E%3Cpath d='M3.3 7.4h3.4l.7 3.3H2.6z'/%3E%3C/svg%3E") center/contain no-repeat}
@keyframes rb{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ribbon .rb-track{animation-duration:260s!important}}
.rb-track span{unicode-bidi:isolate}
html[lang=ar] .rb-row:not(.rb-rev) .rb-track span{direction:rtl}

/* ---------- accessory shapes (tassel designs): one row + a picking grid ---------- */
.acc-shapes{flex:none;height:38px;padding:0 16px;font-size:14px}
.acc-body .acc-picked{display:flex;align-items:center;gap:4px;margin-top:6px}
.acc-picked i{display:block;flex:none;width:22px;height:28px;border-radius:3px;background:var(--ivory-2) center/cover no-repeat;border:1px solid var(--line)}
.acc-body .acc-picked small{margin-inline-start:6px;font-size:12px;color:var(--gold-deep)}
@media (max-width:560px){.acc .acc-shapes{grid-column:2;justify-self:start}}
.sheet-shapes .sheet-card{max-width:760px}
.sheet-shapes h3{font:500 22px/1.3 var(--display);color:var(--ink);margin:0 0 4px}
.shape-lead{margin:0 0 16px;font-size:14px}
.shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
@media (min-width:700px){.shape-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.shape{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 6px 10px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper);text-align:center}
.shape.on{box-shadow:inset 0 0 0 2px var(--ink);border-color:var(--ink)}
.shape-img{width:100%;aspect-ratio:4/5;border-radius:3px;overflow:hidden;background:var(--ivory-2)}
.shape-img img{width:100%;height:100%;object-fit:cover;display:block}
.shape>b{font:500 13px/1.3 var(--body);color:var(--ink);margin-top:4px}
.shape>span{font-size:12.5px;color:var(--muted)}
.shape .stepper-n{gap:4px;margin-top:4px}
.shape .stepper-n button{width:30px;height:30px;border-radius:var(--r);font-size:16px}
.sheet-shapes .btn-block{position:sticky;bottom:0}

/* accessories tab in the collection */
.chips.sub{margin-top:-6px;margin-bottom:22px}
.chips.sub .chip{font-size:13.5px;min-height:34px;padding:5px 12px}
.acard{display:block;width:100%;text-align:start;font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
.acard .fcard-img{aspect-ratio:4/5;display:grid;place-items:center}
.acard .fcard-img img{width:100%;height:100%;object-fit:cover}
.acard-ph{display:grid;place-items:center;width:100%;height:100%;color:var(--muted)}
.acard-ph .ic{width:36px;height:36px;opacity:.5}
.acard h3{font-size:18px;letter-spacing:0}
.acard .price{font-size:14px}
/* accessory second photo (the piece on its own): hover on desktop, a slow cross-fade on phones */
.acard .fcard-img { position: relative; }
.acard .fcard-img .alt { position: absolute; inset: 0; }
@media (hover: none) {
  .acard .fcard-img.has-alt .alt { animation: acc-alt 7s var(--ease) infinite; }
}
@keyframes acc-alt { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .acard .fcard-img.has-alt .alt { animation: none; } }

/* accessory note for the customer (e.g. the colour follows the curtain) */
.acc-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gold-deep); }
.acc-body small.acc-note { display: block; }
.shape-note { margin: -4px 0 12px; }
/* accessories as folders: collage cover of the designs inside */
.acc-collage{position:absolute;inset:0;display:grid;gap:3px;background:var(--paper,#F6F2EC)}
.acc-collage img{width:100%;height:100%;object-fit:cover;min-height:0}
.acc-collage.n2{grid-template-columns:1fr 1fr}
.acc-collage.n3{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.acc-collage.n3 img:first-child{grid-row:span 2}
.acc-collage.n4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.acard.folder .fcard-img{position:relative;overflow:hidden}
.folder-count{position:absolute;inset-block-end:10px;inset-inline-start:10px;min-width:30px;height:30px;padding:0 9px;border-radius:15px;display:grid;place-items:center;background:rgba(19,38,56,.82);color:#fff;font-size:13.5px;font-weight:600}
.acard.folder:hover .acc-collage img{transform:scale(1.03)}
.acc-collage img{transition:transform .5s var(--ease,ease)}
.acc-crumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.acc-crumb strong{font-size:18px}
.acc-crumb small{color:var(--muted,#7A7366)}
.back-arr{display:inline-block}:dir(ltr) .back-arr{transform:scaleX(-1)}
.acard .fcard-img .acc-collage img{position:static;inset:auto;width:100%;height:100%;min-width:0}
.acc-grid{align-items:start}

/* the fabrics list the server writes before the script draws the cards (search engines read it) */
.ssr-list { list-style: none; padding: 0; margin: 0; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.ssr-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ssr-list b { font: 500 17px/1.3 var(--latin); }
.ssr-list small { display: block; color: var(--muted); font-size: 13px; }

/* the three promises: warranty, delivery time, deposit (home under the hero, /how; /book has them next to the deposit) */
body:not(.v-home) main > .promise-home { display: none; }
.promise-home { padding-block: 26px 4px; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.promise li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.promise svg { width: 28px; height: 28px; flex: none; color: var(--gold-deep); margin-top: 2px; }
.promise b { display: block; font: 500 16px/1.4 var(--display); color: var(--ink); }
.promise span { display: block; font-size: 14px; color: var(--muted); }
.promise.on-navy { margin-top: 28px; }
.promise.on-navy li { background: transparent; border-color: rgba(255,255,255,.18); }
.promise.on-navy b { color: #fff; }
.promise.on-navy span { color: var(--navy-haze, #CFD6DE); }
.promise.on-navy svg { color: var(--gold); }
.dep-more { margin: -6px 0 16px; font-size: 13.5px; color: var(--muted); }
