/* sadeem.css — Sadeem's own look (2026-11-15): "layer by layer", the visual language of 3D printing.
   Loaded after fx.css. Colors come from brand.css / fx.css tokens. */
body { background-image: radial-gradient(color-mix(in srgb, var(--fx-a) 9%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; }
body::before { background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--fx-a) 22%, transparent), transparent 40%),
  radial-gradient(ellipse at 0% 30%, color-mix(in srgb, var(--fx-b) 10%, transparent), transparent 30%); }

/* section heads: start-aligned, with a stack of "layers" before the eyebrow */
.sd-head { align-items: end; gap: 12px; }
.sd-head h1, .sd-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; margin: 2px 0 0; line-height: 1.25; }
.sd-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--c-accent-text); font-weight: 800; font-size: 13.5px; }
.sd-head .eyebrow::before { content: ""; width: 18px; height: 10px; background: repeating-linear-gradient(0deg, var(--fx-a) 0 2px, transparent 2px 4px); border-radius: 2px; }
.sd-head .sub { color: var(--c-muted); margin: 6px 0 0; max-width: 620px; }

/* ---------- hero ---------- */
.sd-hero { padding: 40px 0 28px; }
.sd-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.sd-hero .eyebrow { color: var(--c-accent-text); font-weight: 800; margin: 0 0 8px; }
.sd-hero h1 { font-family: var(--font-heading); font-size: clamp(38px, 5.6vw, 68px); line-height: 1.12; margin: 0; font-weight: 900; letter-spacing: -.5px; }
.sd-hero h1::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 14px; border-radius: 3px;
  background: repeating-linear-gradient(0deg, transparent 0 2px, var(--c-bg) 2px 3px), linear-gradient(90deg, var(--fx-a), var(--fx-b)); }
.sd-hero .slogan { font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; margin: 16px 0 10px;
  background: linear-gradient(90deg, var(--fx-a), var(--fx-c) 55%, var(--fx-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-hero .intro { color: var(--c-muted); font-size: 16px; max-width: 560px; margin: 0 0 20px; }
.sd-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sd-promise { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.sd-promise li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c-surface) 80%, transparent); border: 1px solid var(--fx-line); }

/* print bed: each photo is "printed" bottom-up under a glowing nozzle line, then the next one */
.sd-bed { position: relative; }
.sd-bed-frame { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 1px solid var(--fx-line);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fx-a) 16%, var(--c-surface)), var(--c-surface) 70%);
  box-shadow: 0 30px 60px rgb(0 0 0 / .25), inset 0 0 0 6px color-mix(in srgb, var(--c-surface-2) 70%, transparent); }
.sd-print { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.sd-print.on { opacity: 1; }
.sd-print img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.sd-print.on img { animation: sdBuild 2.6s steps(26, end) forwards; }
.sd-print.on::after { content: ""; position: absolute; inset-inline: 0; height: 3px; bottom: 0; animation: sdNozzle 2.6s steps(26, end) forwards;
  background: linear-gradient(90deg, transparent, var(--fx-b), #fff, var(--fx-b), transparent); box-shadow: 0 0 16px var(--fx-b); }
@keyframes sdBuild { to { clip-path: inset(0 0 0 0); } }
@keyframes sdNozzle { 0% { bottom: 0; opacity: 1; } 96% { bottom: calc(100% - 3px); opacity: 1; } 100% { bottom: calc(100% - 3px); opacity: 0; } }
.sd-print figcaption { position: absolute; inset-inline: 14px; bottom: 14px; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; opacity: 0;
  background: color-mix(in srgb, var(--c-bg) 72%, transparent); backdrop-filter: blur(8px); color: var(--c-text); transition: opacity .4s ease 2.4s; }
.sd-print.on figcaption { opacity: 1; }
.sd-bed-plate { position: absolute; inset-inline: 8%; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--fx-a) 40%, transparent) 0 6px, transparent 6px 12px); opacity: .5; }
.sd-bed-note { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; background: color-mix(in srgb, var(--c-bg) 70%, transparent); backdrop-filter: blur(8px); z-index: 2; }
.sd-bed-note i { width: 8px; height: 8px; border-radius: 50%; background: #3fd18b; animation: sdLive 1.6s infinite; }
@keyframes sdLive { 0% { box-shadow: 0 0 0 0 #3fd18b99; } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- spaces bento (shop by space) ---------- */
.sd-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 12px; }
.sd-tile { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--fx-line); background: var(--c-surface-2); text-decoration: none; color: #fff; isolation: isolate; }
.sd-tile.big { grid-column: span 2; grid-row: span 2; }
.sd-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--fx-ease); z-index: -1; }
.sd-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(5 8 25 / .82), rgb(5 8 25 / .1) 60%); }
.sd-tile:hover img { transform: scale(1.07); }
.sd-tile .lbl { position: absolute; inset-inline: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.sd-tile .lbl b { font-size: 17px; } .sd-tile.big .lbl b { font-size: 24px; }
.sd-tile .lbl small { opacity: .85; font-weight: 700; }
.sd-tile::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 5px; background: var(--accent); border-radius: 0 0 6px 0; z-index: 1; transition: width .5s var(--fx-ease); }
.sd-tile:hover::before { width: 100%; }

/* ---------- product card: second photo on hover + favourite heart ---------- */
.p-card .media { position: relative; display: block; }
.p-card .media img.alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.p-card.has-alt:hover .media img.alt { opacity: 1; }
.fav-btn { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c-surface) 85%, transparent); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
.fav-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--c-text); stroke-width: 2; transition: fill .2s, stroke .2s; }
.fav-btn[aria-pressed="true"] svg { fill: #ff3b6b; stroke: #ff3b6b; }
.fav-btn.pop svg { animation: sdPop .4s ease; }
@keyframes sdPop { 50% { transform: scale(1.35); } }
.fav-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pdp-actions .fav-btn, .pdp-actions .share-btn { position: static; width: auto; height: 38px; padding: 0 14px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center;
  font: 700 14px var(--font-body); color: var(--c-text); text-decoration: none; border: 1px solid var(--fx-line); background: var(--c-surface); box-shadow: none; }
.pdp-actions svg { width: 18px; height: 18px; }
.sd-eta { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--fx-c) 50%, var(--c-border));
  background: color-mix(in srgb, var(--fx-c) 7%, transparent); margin: 10px 0; font-weight: 700; }
.sd-eta small { display: block; color: var(--c-muted); font-weight: 600; }

/* ---------- gift band, story, steps, ugc, cta ---------- */
.sd-gift { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px 30px; border-radius: 26px; text-decoration: none; color: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, var(--fx-a) 22%, var(--c-surface)), color-mix(in srgb, var(--fx-c) 14%, var(--c-surface)));
  border: 1px solid var(--fx-line); transition: transform .3s var(--fx-ease), box-shadow .3s; }
.sd-gift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px color-mix(in srgb, var(--fx-a) 22%, transparent); }
.sd-gift h2 { margin: 2px 0 6px; font-size: clamp(22px, 3vw, 32px); } .sd-gift p { margin: 0; color: var(--c-muted); max-width: 560px; }
.sd-gift .eyebrow { color: var(--c-accent-text); font-weight: 800; }
.sd-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.sd-story h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 4px 0 10px; line-height: 1.3; }
.sd-story .eyebrow { color: var(--c-accent-text); font-weight: 800; margin: 0; }
.sd-story .sub { color: var(--c-muted); font-size: 16px; line-height: 1.95; margin: 0 0 16px; }
.sd-story .layers { position: relative; aspect-ratio: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 6px; padding: 30px;
  border-radius: 28px; background: var(--fx-panel); border: 1px solid var(--fx-line); overflow: hidden; }
.sd-story .layers i { height: 9%; border-radius: 8px; width: calc(100% - var(--k) * 7%); margin-inline: auto; opacity: 0;
  background: linear-gradient(90deg, var(--fx-a), var(--fx-c), var(--fx-b)); animation: sdStack 4.5s ease-in-out infinite; animation-delay: calc(var(--k) * .28s); }
@keyframes sdStack { 0%, 8% { opacity: 0; transform: translateY(-14px); } 18%, 80% { opacity: .85; transform: none; } 100% { opacity: 0; } }
.sd-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.sd-steps li { position: relative; padding: 0 14px; text-align: center; }
.sd-steps li::before { content: ""; position: absolute; top: 24px; inset-inline-start: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--fx-line) 0 6px, transparent 6px 12px); }
.sd-steps li:last-child::before { display: none; }
.sd-steps .no { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font: 900 20px var(--font-heading); color: #fff;
  background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); transform: rotate(-6deg); }
.sd-steps h3 { margin: 14px 0 6px; } .sd-steps p { margin: 0; color: var(--c-muted); font-size: 14px; }
.sd-ugc { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 28px; border-radius: 22px; border: 1.5px dashed var(--fx-line); }
.sd-ugc h2 { margin: 0 0 6px; } .sd-ugc p { margin: 0; color: var(--c-muted); max-width: 640px; }
.sd-cta { text-align: center; padding: 38px 24px; border-radius: 28px; border: 1px solid var(--fx-line);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--fx-a) 24%, var(--c-surface)), var(--c-surface) 70%); }
.sd-cta img { margin: 0 auto 10px; } .sd-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); } .sd-cta p { color: var(--c-muted); max-width: 620px; margin: 0 auto 14px; }
.sd-cta .hero-cta { justify-content: center; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- gift quiz ---------- */
.sd-quiz { max-width: 900px; margin: 0 auto; text-align: center; }
.sd-quiz h2 { font-size: clamp(22px, 3vw, 30px); margin: 4px 0 18px; }
.sd-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sd-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 18px; border: 1px solid var(--fx-line); background: var(--fx-panel);
  font: 800 15px var(--font-body); color: var(--c-text); cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.sd-choice:hover, .sd-choice:focus-visible { transform: translateY(-3px); border-color: var(--fx-a); box-shadow: 0 12px 26px color-mix(in srgb, var(--fx-a) 20%, transparent); }
.sd-choice .e { font-size: 30px; }
.sd-quiz .grid.products { text-align: start; }

/* ---------- "need help?" helper ---------- */
.sd-helper { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sd-helper-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 0; cursor: pointer; font: 800 14px var(--font-body);
  color: #062b17; background: linear-gradient(110deg, #25d366, #5be38f); box-shadow: 0 12px 30px rgb(37 211 102 / .4); }
.sd-helper-btn svg { width: 20px; height: 20px; }
.sd-helper-panel { width: min(330px, calc(100vw - 32px)); padding: 16px; border-radius: 20px; background: var(--c-surface); border: 1px solid var(--fx-line); box-shadow: 0 24px 50px rgb(0 0 0 / .3); }
.sd-helper-panel .hd b { display: block; font-size: 17px; } .sd-helper-panel .hd span { color: var(--c-muted); font-size: 13px; }
.sd-helper-panel .qs { display: grid; gap: 6px; margin: 12px 0; }
.sd-helper-panel .qs a { padding: 9px 12px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.sd-helper-panel .qs a:hover { background: color-mix(in srgb, #25d366 18%, var(--c-surface-2)); }
.sd-note { position: fixed; left: 50%; bottom: 84px; z-index: 70; transform: translate(-50%, 16px); padding: 10px 18px; border-radius: 999px; font-weight: 800;
  background: var(--fx-grad); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.sd-note.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sd-hero-in, .sd-story { grid-template-columns: 1fr; }
  .sd-bed { max-width: 360px; margin: 6px auto 0; width: 100%; }
  .sd-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .sd-steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .sd-steps li::before { display: none; }
}
@media (max-width: 560px) {
  .sd-hero { padding-top: 20px; }
  .sd-bento { grid-auto-rows: 130px; }
  .sd-helper-btn span { display: none; }
  .sd-helper-btn { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-print.on img, .sd-print.on::after, .sd-story .layers i { animation: none !important; }
  .sd-print.on img { clip-path: none; }
  .sd-story .layers i { opacity: .8; }
}

/* header: categories dropdown */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; border: 1px solid transparent; border-radius: 12px; padding: 7px 11px; font-weight: 700; color: var(--c-muted); }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: " ▾"; font-size: 11px; }
.nav-drop[open] summary, .nav-drop summary:hover { color: var(--c-text); border-color: color-mix(in srgb, var(--fx-a) 60%, transparent); }
.nav-drop-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 80; min-width: 250px; padding: 8px; border-radius: 16px;
  background: var(--c-surface); border: 1px solid var(--fx-line); box-shadow: 0 20px 44px rgb(0 0 0 / .28); display: grid; gap: 2px; }
.nav-drop-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--c-text) !important; text-decoration: none; font-weight: 700; border: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
.nav-drop-panel a:hover { background: var(--c-surface-2) !important; }
.nav-drop-panel small { margin-inline-start: auto; color: var(--c-muted); font-weight: 700; }
@media (max-width: 900px) { .nav-drop-panel { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; } }
@media (min-width: 901px) { .sd-tile.w2 { grid-column: span 2; } .sd-tile.w4 { grid-column: span 4; } }
@media (max-width: 900px) { .sd-tile.m2 { grid-column: span 2; } }
