/* Blossom Inners - 360 view prototype
   Type, colour and button shape follow the live blossominners.com theme. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

:root {
  --ink:    #1C1C1C;
  --ink-2:  #5B5B5B;
  --ink-3:  #8E8E8E;
  --line:   #E3E3E3;
  --line-2: #EFEDEC;
  --bg:     #FFFFFF;
  --bg-2:   #F8F7F6;
  --bg-3:   #F2EFED;
  --sale:   #C2182B;
  --ok:     #1F7A5C;
  --accent: #7C1A57;              /* follows the selected colourway */
  --accent-ink: #5A0F3E;
  --r:      10px;
  --wrap:   1240px;
  --pad:    clamp(16px, 4vw, 32px);
}

body {
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
svg[viewBox] { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* ----------------------------------------------------------------- chrome */

.ribbon {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: center;
  padding: 9px var(--pad); font-size: 12.5px;
  background: #14110F; color: #EDE7E2;
}
.ribbon strong {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px;
  transition: background .35s;
}
.ribbon span { color: #B9B0A9; }
.ribbon a { color: #EDE7E2; text-underline-offset: 3px; }

.announce {
  text-align: center; padding: 9px var(--pad); font-size: 12.5px; letter-spacing: .02em;
  background: var(--bg-3); border-bottom: 1px solid var(--line-2);
}
.announce b { font-weight: 700; }

.site { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
        backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site__in { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); min-height: 64px; }
.site__burger { display: none; width: 24px; height: 24px; color: var(--ink); }

.logo { font-weight: 700; font-size: 19px; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo span { font-weight: 400; color: var(--ink-3); margin-left: .35em; }
.logo--light { color: #fff; font-size: 20px; }
.logo--light span { color: #9A918B; }

.site__nav { display: flex; gap: clamp(10px, 1.8vw, 22px); margin-inline: auto; }
.site__nav a { font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; white-space: nowrap; }
.site__nav a:hover { color: var(--ink); }
.site__nav a.is-active { color: var(--ink); }
.site__nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.site__nav a.is-offer { color: var(--sale); font-weight: 600; }

.site__icons { display: flex; gap: 14px; }
.site__icons button { width: 22px; height: 22px; color: var(--ink); position: relative; }
.has-count::after {
  content: attr(data-count); position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; transition: background .35s;
}

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); padding-block: 16px 4px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- pdp grid */

.pdp {
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  padding-block: 20px 56px;
  align-items: start;
}

/* ------------------------------------------------------------------ media */

.media, .buy { min-width: 0; }
.media { position: sticky; top: 84px; }

.media__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.media__tabs button {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; transition: .18s;
}
.media__tabs button svg { width: 16px; height: 16px; }
.media__tabs button:hover { border-color: var(--ink-3); color: var(--ink); }
.media__tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.stage__box {
  position: relative; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, #FFFFFF 0%, #F7F4F2 55%, #EFEAE7 100%);
  border: 1px solid var(--line-2);
}

.viewer { width: 100%; aspect-ratio: 1 / 1; }

/* progress ring */
.loader {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; justify-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(2px);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2);
  transition: opacity .4s, visibility .4s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke-width: 2.5; }
.loader__track { stroke: var(--line); }
.loader__fill {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 119.4; stroke-dashoffset: 119.4;
  transition: stroke-dashoffset .25s ease, stroke .35s;
}

/* drag affordance */
.hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(28,28,28,.82); color: #fff; font-size: 12px; font-weight: 500;
  letter-spacing: .01em; pointer-events: none;
  transition: opacity .45s, transform .45s;
}
.hint svg { width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
.hint.is-gone { opacity: 0; transform: translate(-50%, 6px); }
@keyframes nudge { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* control bar, kept outside the frame so nothing sits on the garment */
.bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.tools { display: flex; gap: 6px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); transition: .18s;
}
.tool svg { width: 15px; height: 15px; flex: 0 0 auto; }
.tool span { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tool:hover { color: var(--ink); border-color: var(--ink-3); }
.tool.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* rotation dial */
.dial { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dial__track {
  position: relative; width: min(150px, 30vw); height: 3px; border-radius: 999px;
  background: rgba(28,28,28,.13);
}
.dial__track i {
  position: absolute; top: 50%; width: 24px; height: 3px; border-radius: 999px;
  background: var(--accent); transform: translate(-50%, -50%); transition: background .35s;
}
.dial span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3);
             font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* angle thumbnails */
.rail { display: flex; min-width: 0; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.rail button {
  flex: 0 0 auto; width: 74px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; transition: .18s; position: relative;
}
.rail button img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.rail button em {
  display: block; font-size: 9.5px; font-style: normal; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); padding: 3px 0 5px; text-align: center;
}
.rail button:hover { border-color: var(--ink-3); }
.rail button.is-on { border-color: var(--ink); }
.rail button.is-on em { color: var(--ink); }

/* photo pane */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos img { width: 100%; border-radius: 12px; background: var(--bg-2); }
.photos img:first-child { grid-column: 1 / -1; }

/* -------------------------------------------------------------------- buy */

.buy__vendor { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.buy__title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.28; margin: 6px 0 10px; letter-spacing: -.01em; }

.buy__rate { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.buy__rate a { color: var(--ink-2); text-underline-offset: 3px; }
.buy__rate .sep { color: var(--line); }
.buy__rate .sku { color: var(--ink-3); }
.stars { --s: #E8B923; position: relative; width: 80px; height: 14px;
         background: linear-gradient(#DEDAD6 0 0) 0/100% 100% no-repeat;
         -webkit-mask: var(--star-mask); mask: var(--star-mask); }
.stars i { position: absolute; inset: 0; background: var(--s); }
.stars { --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'%3E%3Cg fill='%23000'%3E%3Cpath d='M7 0l2.1 4.4 4.9.7-3.5 3.4.8 4.8L7 11l-4.3 2.3.8-4.8L0 5.1l4.9-.7z'/%3E%3Cpath d='M23 0l2.1 4.4 4.9.7-3.5 3.4.8 4.8L23 11l-4.3 2.3.8-4.8-3.5-3.4 4.9-.7z'/%3E%3Cpath d='M39 0l2.1 4.4 4.9.7-3.5 3.4.8 4.8L39 11l-4.3 2.3.8-4.8-3.5-3.4 4.9-.7z'/%3E%3Cpath d='M55 0l2.1 4.4 4.9.7-3.5 3.4.8 4.8L55 11l-4.3 2.3.8-4.8-3.5-3.4 4.9-.7z'/%3E%3Cpath d='M71 0l2.1 4.4 4.9.7-3.5 3.4.8 4.8L71 11l-4.3 2.3.8-4.8-3.5-3.4 4.9-.7z'/%3E%3C/g%3E%3C/svg%3E"); }

.buy__price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.buy__price b { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.buy__price s { color: var(--ink-3); font-size: 15px; }
.buy__price em {
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sale); background: #FDF0F1; padding: 3px 8px; border-radius: 999px;
}
.buy__tax { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.opt { margin-top: 26px; }
.opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.opt__head h2 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.opt__head h2 b { color: var(--ink); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: 13.5px; }
.link { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.opt__note { font-size: 12px; margin-top: 9px; min-height: 18px; color: var(--ink-2); }
.opt__note.is-low { color: var(--sale); font-weight: 500; }

/* colour swatches */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button {
  --c: #000;
  width: 46px; height: 46px; border-radius: 50%; position: relative;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  transition: transform .18s;
}
.swatches button::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid transparent; transition: border-color .18s;
}
.swatches button:hover { transform: scale(1.05); }
.swatches button[aria-checked="true"]::after { border-color: var(--ink); }

/* size pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills button {
  min-width: 58px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; background: #fff; transition: .16s;
}
.pills button:hover:not(:disabled) { border-color: var(--ink); }
.pills button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills button:disabled {
  color: var(--ink-3); cursor: not-allowed; background: var(--bg-2);
  background-image: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px));
}

/* fabric cards */
.fabrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fabrics button {
  text-align: left; padding: 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fff; transition: .16s; display: grid; gap: 8px;
  align-content: start;
}
.fabrics button:hover { border-color: var(--ink-3); }
.fabrics button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fabrics .sw { height: 40px; border-radius: 7px; background: var(--sw-base); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fabrics .sw::after { content: ""; position: absolute; inset: 0; background-image: var(--sw-weave); opacity: .55; }
.fabrics b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.fabrics small { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.fabrics .delta { font-size: 10.5px; font-weight: 600; color: var(--ok); }

.fabric__detail { margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--bg-2); }
.fabric__detail p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.meters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin-top: 12px; }
.meters div { display: grid; gap: 4px; }
.meters dt { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.meters dd { margin: 0; height: 4px; border-radius: 999px; background: #E4E0DD; overflow: hidden; }
.meters dd i { display: block; height: 100%; border-radius: 999px; background: var(--accent);
               transition: width .5s cubic-bezier(.22,1,.36,1), background .35s; }

/* actions */
.buy__actions { display: flex; gap: 10px; margin-top: 28px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); flex: 0 0 auto; }
.qty button { width: 40px; height: 48px; font-size: 17px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty output { width: 30px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.btn {
  display: block; width: 100%; height: 48px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: .18s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); margin-top: 10px; }
.btn--ghost:hover { background: var(--bg-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.trust li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); }
.trust svg { width: 16px; height: 16px; color: var(--ink-3); flex: 0 0 auto; }

.acc { margin-top: 22px; border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 0; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--ink-3); }
.acc details[open] summary::after { content: "\2212"; }
.acc details > :not(summary) { padding-bottom: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.acc details p + p { padding-top: 8px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg); transition: border-color .35s;
}

/* ---------------------------------------------------------------- sections */

.strip { border-block: 1px solid var(--line-2); background: var(--bg-2); }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 26px; text-align: center; }
.strip__in b { display: block; font-size: 13px; font-weight: 600; }
.strip__in span { font-size: 11.5px; color: var(--ink-3); }

.related { padding-block: 52px; }
.related h2 { font-size: 17px; font-weight: 600; letter-spacing: .01em; margin-bottom: 20px; }
.related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 20px); }
.related__grid article { display: grid; gap: 8px; }
.related__grid img { width: 100%; border-radius: 12px; background: var(--bg-2); }
.related__grid h3 { font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.related__grid b { font-size: 13px; font-weight: 700; }

/* the pitch */
.brief { background: #14110F; color: #E7E1DC; padding-block: clamp(44px, 7vw, 76px); }
.brief__eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
                  filter: brightness(1.85) saturate(1.1); transition: color .35s; }
.brief h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -.015em; margin: 10px 0 14px; max-width: 20ch; }
.brief__lead { max-width: 62ch; color: #B3A9A2; line-height: 1.7; }
.brief__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); margin-top: 38px; }
.brief__grid h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; }
.brief__grid p { font-size: 13px; color: #A79D96; line-height: 1.7; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px;
         padding-top: 32px; border-top: 1px solid #2C2724; }
.stats b { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.stats span { font-size: 11.5px; color: #8E837C; line-height: 1.5; display: block; margin-top: 4px; }

.stats__note { margin-top: 16px; font-size: 12px; color: #8E837C; line-height: 1.65; max-width: 78ch; }

.brief__note { margin-top: 34px; padding: 20px 22px; border-radius: 14px; background: #1D1917; border: 1px solid #2C2724; }
.brief__note h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C9BFB8; margin-bottom: 8px; }
.brief__note p { font-size: 13px; color: #9A908A; line-height: 1.75; max-width: 88ch; }

.foot { background: #1C1917; color: #A79D96; padding-top: 46px; }
.foot__in { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.foot p { font-size: 12.5px; line-height: 1.7; margin-top: 12px; max-width: 46ch; }
.foot h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E7E1DC; margin-bottom: 12px; }
.foot a { display: block; font-size: 12.5px; color: #A79D96; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot__bar { border-top: 1px solid #2C2724; padding: 16px var(--pad); text-align: center; font-size: 11.5px; color: #6F655F; }

/* ------------------------------------------------------------- overlays */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  align-items: center; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky.is-up { transform: none; }
.sticky__info { display: grid; line-height: 1.3; }
.sticky__info b { font-size: 16px; font-weight: 700; }
.sticky__info span { font-size: 11px; color: var(--ink-3); }
.sticky .btn { width: auto; flex: 1; max-width: 230px; margin-left: auto; }

.modal { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 0; }
.modal::backdrop { background: rgba(20,17,15,.55); backdrop-filter: blur(2px); }
.modal__in { padding: 26px; position: relative; }
.modal__x { position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1; color: var(--ink-3); }
.modal h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.modal p { font-size: 12.5px; color: var(--ink-2); }
.modal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12.5px; }
.modal th, .modal td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line-2); }
.modal th { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.modal__note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: .3s;
}
.toast.is-up { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------- spin360 engine */

.sp360 { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; }
.sp360.is-grabbing { cursor: grabbing; }
.sp360.is-zoomed { cursor: move; touch-action: none; }
.sp360__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.sp360__shadow {
  position: absolute; z-index: 0; left: 50%; bottom: 8%;
  width: 58%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38,30,26,.34), rgba(38,30,26,0) 78%);
  filter: blur(5px); transform-origin: 50% 50%; will-change: transform;
}

.sp360__hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .3s; }
.sp360__hotspots.is-hidden { opacity: 0; }
.sp360__hot { position: absolute; width: 24px; height: 24px; will-change: transform, opacity; }
.sp360__dot {
  position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px rgba(28,28,28,.8), 0 2px 5px rgba(0,0,0,.28);
}
.sp360__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(28,28,28,.4); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 70%,100% { transform: scale(1.5); opacity: 0; } }

.sp360__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(var(--tipx, -50%), 4px);
  width: max-content; max-width: 210px; padding: 9px 12px; border-radius: 10px;
  background: rgba(20,17,15,.95); color: #fff; text-align: left;
  opacity: 0; pointer-events: none; transition: .2s;
}
.sp360__tip b { display: block; font-size: 12px; font-weight: 600; }
.sp360__tip i { display: block; font-style: normal; font-size: 11px; line-height: 1.45; color: #B3A9A2; margin-top: 3px; }
.sp360__hot:hover .sp360__tip,
.sp360__hot.is-open .sp360__tip { opacity: 1; transform: translate(var(--tipx, -50%), 0); }
.sp360__hot.tip-l { --tipx: -90%; }
.sp360__hot.tip-r { --tipx: -10%; }

/* Full screen takes the whole pane, not just the frame, so the controls come
   along with it -- and the same rules back the faux fallback for iOS Safari,
   which has no Element.requestFullscreen. */
.stage:fullscreen,
.stage.is-fauxfull {
  background: var(--bg-3); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.stage.is-fauxfull { position: fixed; inset: 0; z-index: 100; }
.stage:fullscreen .stage__box,
.stage.is-fauxfull .stage__box { flex: 1 1 auto; min-height: 0; }
.stage:fullscreen .viewer,
.stage.is-fauxfull .viewer { aspect-ratio: auto; height: 100%; }
.stage:fullscreen .rail,
.stage.is-fauxfull .rail { display: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .site__nav { gap: 14px; }
  .site__nav a { font-size: 12px; }
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .media { position: static; }
  .site__nav { display: none; }
  .site__burger { display: block; }
  .logo { margin-right: auto; }
  .brief__grid, .foot__in { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .related__grid { grid-template-columns: repeat(4, 1fr); }
  .sticky { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .ribbon { gap: 4px 10px; font-size: 11.5px; padding: 8px 12px; }
  .ribbon span { display: none; }
  .hint { bottom: 12px; }
  .viewer { aspect-ratio: 1 / 1; }
  .tool { padding: 7px 9px; }
  .tool span { display: none; }
  .bar { gap: 10px; }
  .strip__in { grid-template-columns: 1fr 1fr; gap: 16px; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .brief__grid, .foot__in { grid-template-columns: 1fr; }
  .fabrics { grid-template-columns: 1fr; }
  .fabrics button { grid-template-columns: 52px 1fr; align-items: center; gap: 12px; }
  .fabrics .sw { height: 44px; }
  .meters { grid-template-columns: 1fr 1fr; }
  .buy__actions { position: relative; }
  .photos { grid-template-columns: 1fr; }
  .photos img:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; }
}
