:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-mute: #6b6b6b;
  --accent: #E30613;
  --accent-2: #ff2030;
  --success: #22c55e;
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6), 0 12px 24px -8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
#root, #app { height: 100%; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* vanilla icon wrapper — keeps SVGs aligned inside flex/grid buttons */
.i { display: inline-flex; align-items: center; justify-content: center; }
.i > svg { display: block; }

/* hidden attribute must win over explicit display values (grid/flex/etc.) */
[hidden] { display: none !important; }

/* ============ APP SHELL ============ */
.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

/* Top bar */
.topbar {
  position: absolute;
  width:100%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 65px;
  backdrop-filter: blur(6.949999809265137px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
}
.spacer {
    color: #fff;
    margin:0 8px;
}
.breadcrumb {
  display: flex; 
  align-items: center; 
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
}
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current{border-bottom: 2px solid #E30D18;padding-bottom:5px;margin-top:5px;}
.breadcrumb button {
  font-size: 13px;
  padding: 4px 8px;
  display:flex;
  align-items:center;
  line-height:20px;
}
.breadcrumb button:hover { color: var(--text); background: var(--bg-2); }

.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.icon-btn {
  display: grid; place-items: center;
  border-radius: 2px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn .badge {
  position: absolute;
  top: 3px; right: 3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
}

.page-title-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 20px;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}
.page-title-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(227,6,19,0.15);
}

/* ============ STAGE ============ */
.stage {
    display: none;
}
.stage.active-stage {
    display: block;
}
.stage.stage-enter {
    animation: stageEnter 0.7s ease forwards;
}
@keyframes stageEnter {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}

/* Scene layer */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
}
.scene.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.scene.zooming-out {
  opacity: 0;
  transform: scale(1.4);
}
.scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 65%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Scene meta overlay (title, info) */
.scene-caption {
  position: absolute;
  left: 65px;
  bottom: 40px;
  z-index: 5;
  max-width: 526px;
  animation: captionIn 0.6s var(--ease-out) 0.3s both;
}
@keyframes captionIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.scene-caption .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  margin-bottom: 14px;
  color: #FFF;
  font-family: "Roboto-Regular";
  font-size: 13px;
  font-weight: 400;
  border-radius: 4px;
  background: #ED1C24;
}
.scene-caption h1 {
  color: #FFF;
  font-family: "Roboto-Medium";
  font-size: 26px;
  font-weight: 500;
  line-height: 15px;
  margin-bottom:12px;
}
.scene-caption p {
  color: #FFF;
  font-family: "Roboto-Light";
  font-size: 14px;
  font-weight: 300;
  line-height: 17px;
}
/*.scene-counter {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 8px;
}
.scene-counter .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }*/

/* ============ HOTSPOTS ============ */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: hotspotIn 0.5s var(--ease-out) both;
}
@keyframes hotspotIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Zoom-in hotspot (large, invites to go deeper) */
.hotspot-zoom {
  width: 64px; height: 64px;
}
.hotspot-zoom button {
  width: 100%; height: 100%;
  position: relative;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.hotspot-zoom button:hover { transform: scale(1.08); }

.hotspot-zoom .ring-outer, .hotspot-prod .ring-outer, .hotspot-prod .ring-mid,
.hotspot-zoom .ring-mid {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
.hotspot-zoom .ring-mid, .hotspot-prod .ring-mid { animation-delay: 0.8s; }
.hotspot-zoom .core {
  position: relative;
  width: 41px; height: 41px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.2s;
}
.hotspot-zoom button:hover .core {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(227,6,19,0.5), 0 4px 12px rgba(0,0,0,0.5);
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hotspot-zoom .label, .hotspot-prod  .label {
  color: #1B1B19;
  font-family: "Roboto-Light";
  font-size: 13px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  border-radius: 4px;
  background: #FFF;
  box-shadow: 0 0 21.9px 0 rgba(0, 0, 0, 0.14);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px;
}
.hotspot-prod .label {
    background: rgba(27, 27, 25, 0.79);
    color: #FFF;
}
.hotspot-zoom:hover .label, .hotspot-prod:hover .label {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Product hotspot (smaller, opens product cards panel) */
.hotspot-prod {
  width: 64px; height: 64px;
}

/* ===== Product cards panel (hover / tap on +) ===== */
.hotspot-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 20px);
  transform: translate(-50%, 10px);
  width: 340px;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 22px 50px -12px rgba(0,0,0,0.6), 0 8px 18px rgba(0,0,0,0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.26s var(--ease-out);
  z-index: 14;
  overflow: hidden;
}
/* invisible bridge so cursor can travel from + to panel without closing */
.hotspot-panel::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 24px;
}
.hotspot-panel::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.18));
}
.hotspot-prod:hover .hotspot-panel,
.hotspot-prod.open .hotspot-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.hp-close {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #8a8a8a;
  transition: all 0.15s;
}
.hp-close:hover { background: #efefef; color: #0a0a0a; }

.hp-grid {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hp-grid::-webkit-scrollbar { height: 6px; }
.hp-grid::-webkit-scrollbar-track { background: #f2f2f2; border-radius: 3px; }
.hp-grid::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 3px; }
.hp-grid::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }
.hp-card {
  flex: 0 0 138px;
  width: 138px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-card:hover { border-color: rgba(0,0,0,0.18); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.22); }
.hp-card.added { border-color: var(--success); }
.hp-thumb {
  position: relative;
  height: 100px;
  background: #f2f2f2;
  overflow: hidden;
}
.hp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.hp-card:hover .hp-thumb img { transform: scale(1.06); }
.hp-cat {
  position: absolute;
  top: 7px; left: 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(6px);
  padding: 3px 6px;
  border-radius: 3px;
}
.hp-incart {
  position: absolute;
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.hp-incart svg { width: 13px; height: 13px; }
.hp-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  flex: 1;
}
.hp-price {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}
.hp-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, gap 0.15s;
}
.hp-detail svg { width: 13px; height: 13px; transition: transform 0.15s var(--ease-out); }
.hp-detail:hover { background: var(--accent); }
.hp-detail:hover svg { transform: translateX(3px); }

/* Edge-aware panel positioning */
.hotspot-prod[data-edge="right"] .hotspot-panel { left: auto; right: -8px; transform: translate(0, 10px); }
.hotspot-prod[data-edge="right"]:hover .hotspot-panel,
.hotspot-prod[data-edge="right"].open .hotspot-panel { transform: translate(0, 0); }
.hotspot-prod[data-edge="right"] .hotspot-panel::after { left: auto; right: 22px; transform: none; }
.hotspot-prod[data-edge="left"] .hotspot-panel { left: -8px; transform: translate(0, 10px); }
.hotspot-prod[data-edge="left"]:hover .hotspot-panel,
.hotspot-prod[data-edge="left"].open .hotspot-panel { transform: translate(0, 0); }
.hotspot-prod[data-edge="left"] .hotspot-panel::after { left: 22px; transform: none; }

@media (max-width: 767px) {
  .hotspot-panel { width: 290px; }
  .hp-card { flex: 0 0 124px; width: 124px; }
  .hp-thumb { height: 86px; }
  .hp-name { font-size: 11px; }
}
.hotspot-prod button {
  width: 100%; height: 100%;
  position: relative;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.hotspot-prod button:hover { transform: scale(1.12); }
.hotspot-prod .ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
.hotspot-prod .core {
    width: 41px;
    height: 41px;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15, 15, 15, 0.22);
    font-weight: 700;
    transition: all 0.2s;
}
.hotspot-prod button:hover .core { background: #ED1C24; color: white; border-color:  #ED1C24; }

.hotspot-prod.active .core {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.hotspot-prod.added .core {
  background: var(--success);
  color: #fff;
  border-color: #fff;
  animation: addedPop 0.5s var(--ease-out);
}
@keyframes addedPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* crosshair decoration */
.hotspot-prod .cross-h,
.hotspot-prod .cross-v {
  position: absolute;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
}
.hotspot-prod .cross-h { left: -20px; right: -20px; top: 50%; height: 1px; transform: translateY(-0.5px); }
.hotspot-prod .cross-v { top: -20px; bottom: -20px; left: 50%; width: 1px; transform: translateX(-0.5px); }
.hotspot-prod .cross-h::before,
.hotspot-prod .cross-h::after,
.hotspot-prod .cross-v::before,
.hotspot-prod .cross-v::after {
  content: ''; position: absolute; background: rgba(255,255,255,0.7);
}
.hotspot-prod .cross-h::before { left: 0; top: -2px; width: 1px; height: 5px; }
.hotspot-prod .cross-h::after { right: 0; top: -2px; width: 1px; height: 5px; }
.hotspot-prod .cross-v::before { top: 0; left: -2px; width: 5px; height: 1px; }
.hotspot-prod .cross-v::after { bottom: 0; left: -2px; width: 5px; height: 1px; }

/* ============ PRODUCT SHEET (bottom sheet / side panel) ============ */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 50;
  opacity: 0;
  animation: fadeIn 0.25s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.product-sheet {
  position: absolute;
  z-index: 51;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* desktop: right-side panel */
@media (min-width: 768px) {
  .product-sheet {
    top: 20px; right: 20px; bottom: 20px;
    width: 400px;
    border-radius: 4px;
    animation: slideInRight 0.35s var(--ease-out) both;
  }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* mobile: bottom sheet */
@media (max-width: 767px) {
  .product-sheet {
    left: 0; right: 0; bottom: 0;
    max-height: 82vh;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.35s var(--ease-out) both;
  }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-handle {
  display: none;
}
@media (max-width: 767px) {
  .sheet-handle {
    display: block;
    width: 40px; height: 4px;
    background: var(--line-2);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
}

.sheet-hero {
  position: relative;
  height: 200px;
  background: var(--bg-3);
  overflow: hidden;
  flex-shrink: 0;
}
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-hero .code-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 8px;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.1);
}
.sheet-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.15s;
}
.sheet-close:hover { background: #fff; color: #000; }

.sheet-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.sheet-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sheet-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.sheet-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.sheet-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.spec-item {
  background: var(--bg-2);
  padding: 10px 12px;
}
.spec-item .k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.spec-item .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.qty-row .lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.qty-stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line-2);
}
.qty-stepper button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--text);
  transition: all 0.15s;
}
.qty-stepper button:hover { background: var(--bg-3); }
.qty-stepper .val {
  min-width: 44px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  padding: 0 4px;
}

.sheet-foot {
  padding: 14px 22px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  background: var(--bg-2);
  flex-shrink: 0;
}
.btn {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s;
  border: 1px solid var(--line-2);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.primary.added {
  background: var(--success);
  border-color: var(--success);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
}
.btn.ghost:hover { background: var(--bg-3); }
.btn-compact { flex: 0 0 48px; padding: 0; }

/* ============ MINI CART ============ */
.mini-cart {
  z-index: 30;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.body-foot-area{
    position:absolute;
    width:405px;
    left:auto;
    right:65px;
    top:53px;
    border-radius: 8px;
    /*border: 1px solid #696A6C;*/
    background: linear-gradient(0deg, rgba(15, 15, 15, 0.89) 0%, rgba(15, 15, 15, 0.89) 100%), rgba(83, 83, 83, 0.70);

}
.mini-cart.collapsed {
  width: auto;
}

.mc-head {
  display: flex; 
  align-items: center; 
  gap: 8px;
  width:244px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  cursor: pointer;
  user-select: none;
}
.mini-cart.collapsed .mc-head { border-bottom: none; }
.mc-head:hover { background: var(--bg-3); filter: brightness(1.1); }
.mc-head .title {
  font-size: 14px;
  font-family:"Roboto-Regular";
  font-weight:400;
  color:#fff;
}
.mc-head .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  border-radius:50%;
}
.mc-head .spacer { flex: 1; }
.mc-head .chev { color: var(--text-dim); transition: transform 0.2s; }
.mini-cart:not(.collapsed) .mc-head .chev { transform: rotate(180deg); }

.mc-buttons {
    padding: 15px 0;
    margin: 0 15px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    color: #FFF;
    font-family: "Roboto-Light";
    font-size: 11px;
    border-bottom: 1px solid #5F6368;
    font-weight: 300;
}
.custom-checkbox input{display:none;}
.custom-checkbox label {padding-left:25px;}
.custom-checkbox label:before{
    content: "";
    position: absolute;
    left: 15px;
    top: 12px;
    width: 16px;
    height: 16px;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    background: rgba(92, 90, 90, 0.41);
}
.custom-checkbox input[type="checkbox"]:checked+label:before {
    background: url(../images/checkbox.svg) no-repeat center center;
    border:0;
    background-color: #fff;
}
.mc-item .custom-checkbox label:before{
    top:36px;
}
.mc-body {
    max-height: 320px;
    overflow-y: auto;
    transition: max-height 0.3s var(--ease), opacity 0.2s;
    max-height: 290px;
}
.mini-cart.collapsed .mc-body,
.mini-cart.collapsed .mc-buttons,
.mini-cart.collapsed .mc-foot { display: none; }

.mc-item {
  display: flex; align-items: center; gap: 12px;
  margin: 0 15px;
  border-bottom: 1px solid #5F6368;
  padding: 12px 0;
  transition: background 0.15s;
  animation: itemIn 0.35s var(--ease-out) both;
  background:transparent;
}
.mini-cart .mc-item .custom-checkbox label:before{
    left:0;
}
.mc-item .check{
    width:auto;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.mc-item .thumb {
  width: 44px; height: 44px;
  background: var(--bg-3);
  overflow: hidden;
  flex-shrink: 0;
}
.mc-item .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius:4px;}
.mc-item .info { flex: 1; min-width: 0; }
.mc-item .name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
  color: #FFF;
  font-family: "Roboto-Medium";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 15px; /* 107.143% */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-item .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  display:none;
}
.mc-item .info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:8px;
}
.mc-item .info-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mc-item .qty-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
}
.mc-stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mc-stepper button {
  width: 26px; height: 28px;
  display: grid; place-items: center;
  color: var(--text);
  background: transparent;
  transition: background 0.12s, color 0.12s;
  border-radius: 2.667px;
  border: 0.667px solid #5F6368;
  background: rgba(92, 90, 90, 0.41);
  color: #FFF;
  text-align: center;
  font-family: "Roboto-Light";
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 8px;
}
.mc-item .rm img {
    filter: brightness(0) saturate(100%) invert(66%) sepia(0%) saturate(0%) hue-rotate(149deg) brightness(90%) contrast(86%);
}
.mc-item .external-code {
    border-radius: 4px;
    background: rgba(92, 90, 90, 0.72);
    box-shadow: 0 0 21.9px 0 rgba(0, 0, 0, 0.14);
    padding:8px;
    color: #FFF;
    font-family: "Roboto-Light";
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
}
.mc-stepper button:hover { background: var(--bg-3); }
.mc-stepper button svg { width: 12px; height: 12px; }
.mc-qty {
  min-width: 26px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.mc-item .rm {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--text-mute);
  border-radius: 50%;
  transition: all 0.15s;
}
.mc-item .rm:hover { color: var(--accent); }

.mc-empty {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-family: "Roboto-Regular";
  color: #FFF;
}
.mc-empty img{
  margin-bottom:8px;
}
.mc-empty .hint {
  margin-top: 8px;
  color: #DADADA;
  font-family: "Roboto-Light";
  font-size: 13px;
  font-weight: 300;
  line-height: 125.188%;
}

.mc-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.mc-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.mc-total-row .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mc-total-row .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
}
.mc-confirm {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFF;
  font-family: "Roboto-Bold";
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  background: #ED1C24;
  padding:16px;
}
.mc-confirm:hover { background: var(--accent-2); }
.mc-confirm:disabled { background: var(--line-2); cursor: not-allowed; }

/* ============ TOAST ============ */
.toast-stack {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--success);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  animation: toastIn 0.3s var(--ease-out), toastOut 0.3s var(--ease-out) 2.2s forwards;
  pointer-events: auto;
}
.toast.confirm { border-left-color: var(--accent); }
.toast svg { color: var(--success); flex-shrink: 0; }
.toast.confirm svg { color: var(--accent); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-10px); }
}
/* ============ SCENE CHOOSER POPUP ============ */
.scene-chooser-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scene-chooser-backdrop[hidden] {
    display: none;
}
.scene-chooser-modal {
    background: #fff;
    border-radius: 4px;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), rgba(83, 83, 83, 0.70);
    box-shadow: 0 4px 49.4px 0 rgba(254, 254, 254, 0.27);
    backdrop-filter: blur(7.199999809265137px);
    max-width: 608px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
}
.scene-chooser-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.scene-chooser-head .title {
    color: #1B1B19;
    font-family: "Roboto-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 125.188%;
    margin-bottom:16px;
}
.scene-chooser-modal .text {
    color: #1B1B19;
    font-family: "Roboto-Light";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 134%; /* 18.76px */
}
.scene-chooser-body {
    padding: 16px 0 0 0;
    overflow: hidden;
}
.scene-chooser-swiper {
    width: 100%;
    padding-bottom: 60px !important;
}
.scene-chooser-slide.is-active {
    border: 1px solid #ED1C24;
}
.scene-chooser-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scene-chooser-slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.scene-chooser-confirm {
    display: flex;
    height: 44px;
    height:50px;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 8px;
    align-self: stretch;
    flex-wrap: wrap;
    border-radius: 8px;
    background: #ED1C24;
    color: #FFF;
    font-family: "Roboto-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    width: 100%;
}
.scene-chooser-confirm img {
    transform: rotate(180deg);
    filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(0%) hue-rotate(136deg) brightness(110%) contrast(100%);
}
.scene-chooser-slide {
    display: flex;
    flex-direction: column;
    aspect-ratio: unset !important;
    border-radius: 8px;
    border: 1px solid rgba(217, 217, 217, 0.85);
    background: #F9FAFB;
    padding: 24px 16px !important;
    min-height:220px;
}

.scene-chooser-slide-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    justify-content: center;
}
.scene-chooser-slide-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.scene-chooser-slide.is-active .scene-chooser-slide-checkbox {
    background: #ED1C24;
    border-color: #ED1C24;
}
.scene-chooser-slide.is-active .scene-chooser-slide-checkbox::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}
.scene-chooser-slide-title {
    color: #3B3B3B;
    text-align: center;
    font-family: "Roboto-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px; /* 112.5% */
}
.scene-chooser-slide-subtitle {
    color: #979494;
    text-align: center;
    font-family: "Roboto-Regular";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 114.286% */
    padding-bottom: 16px;
}
.scene-chooser-slide-img {
    width: 100%;
    aspect-ratio: 15/10;
    object-fit: cover;
    display: block;
    border-radius:8px;
}

/* ===== SWIPER NAV & PAGINATION ===== */
.scene-chooser-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.scene-nav {
    display: flex;
    gap: 8px;
}
.scene-chooser-swiper .swiper-button-prev,
.scene-chooser-swiper .swiper-button-next {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #1B1B19;
    background: #1B1B19;
    margin: 0;
    bottom: 20px !important;
    top: auto;
}

.scene-chooser-swiper .swiper-button-prev {
    left: auto !important;
    right: 40px !important;
}

.scene-chooser-swiper .swiper-button-next {
    right: 0 !important;
}

    .scene-chooser-swiper .swiper-button-prev::after,
    .scene-chooser-swiper .swiper-button-next::after {
        font-size: 12px !important;
        color: #fff;
        font-weight: 700;
    }

    .scene-chooser-swiper .swiper-button-next.swiper-button-disabled,
    .scene-chooser-swiper .swiper-button-prev.swiper-button-disabled {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #D9D9D9;
        background: rgba(255, 255, 255, 0.29);
        margin: 0;
        bottom: 20px !important;
        top: auto;
    }
    .scene-chooser-swiper .swiper-button-next.swiper-button-disabled:after,
    .scene-chooser-swiper .swiper-button-prev.swiper-button-disabled:after {
        color: #111;
    }
.scene-chooser-swiper .swiper-pagination {
    bottom: 8px;
    left: 50% !important;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.scene-chooser-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 2px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    margin: 0 !important;
    transition: all 0.2s;
}

.scene-chooser-swiper .swiper-pagination-bullet-active {
    background: #ED1C24;
    width: 16px;
    border-radius: 4px;
}
/* ============ CONFIRM MODAL ============ */
.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  animation: fadeIn 0.25s;
  padding: 20px;
}
.confirm-modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-2);
  padding: 12px 16px 16px 16px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s var(--ease-out);
  border-radius:4px;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.confirm-modal h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.confirm-modal .items {
  padding: 12px 0;
  max-height: 40vh;
  overflow-y: auto;
}
.confirm-modal .item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
}
.confirm-modal .item .thumb {
  width: 48px; height: 48px;
  background: var(--bg-3);
  flex-shrink: 0;
  overflow: hidden;
}
.confirm-modal .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.confirm-modal .item .name { flex: 1; font-size: 14px; font-weight: 600; }
.confirm-modal .item .code { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); }
.confirm-modal .item .qty {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
}
.confirm-modal .foot {
  padding-top:12px;
  display: flex; gap: 10px;
}
.confirm-modal .head {
    color: #999;
    font-family: "Roboto-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.confirm-modal .close-icon {
    display: flex;
    width: 26px;
    height: 26px;
    justify-content: center;
    align-items: center;
    gap: 41px;
    border-radius: 13px;
    background: rgba(92, 90, 90, 0.72);
    cursor: pointer;
}
#confirmSignUpModal .close-icon img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(0%) hue-rotate(136deg) brightness(110%) contrast(100%);
}
.confirm-modal .body {
    text-align: center;
}
.confirm-modal .title {
    color: #FFF;
    text-align: center;
    font-family: "Roboto-Medium";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px; /* 125% */
    padding: 0px 48px;
    margin-bottom: 12px;
}
.confirm-modal .desc {
    color: #FFF;
    text-align: center;
    font-family: "Roboto-Light";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 125.188%; /* 20.03px */
    margin-bottom: 12px;
}
.confirm-modal .desc u {
    color: #FFF;
    font-family: "Roboto-Medium";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 125.188%;
}
.confirm-modal .foot a {
    border-radius: 8px;
    background: #ED1C24;
    display: flex;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
    flex-wrap: wrap;
    color: #FFF;
    font-family: "Roboto-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: capitalize;
    letter-spacing: normal;
}
#successModal.confirm-modal-backdrop .foot .btn.confirmCancel {
    color: #FFF;
    font-family: "Roboto-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background: transparent;
    border: 1px solid #5F6368;
}
.confirm-modal .foot img {
    transform: rotate(181deg);
    filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(0%) hue-rotate(136deg) brightness(110%) contrast(100%);
}
#confirmSignUpModal .person-icon {
    border-radius: 78px;
    border: 2px solid rgba(255, 255, 255, 0.00);
    backdrop-filter: blur(6.5px);
    width: 62px;
    height: 62px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
#successModal.confirm-modal-backdrop .person-icon{
    margin-top:24px;
}
#successModal.confirm-modal-backdrop .person-icon img{
    margin: 0 auto;
}
#successModal.confirm-modal-backdrop .title{
    font-size:26px;
    margin-top:12px;
}
#successModal.confirm-modal-backdrop .desc{
    color: #DADADA;
    text-align: center;
    font-family: "Roboto-Light";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 125.188%;
}

@media(max-width:767px) {
    .confirm-modal .head{
        font-size:13px;
    }
    .confirm-modal .title {
        font-size: 16px;
    }
    .confirm-modal .desc {
        font-size: 13px;
    }
    .confirm-modal .desc u {
        font-size: 13px;
    }
    .confirm-modal .foot a {
        font-size: 14px;
    }
}
/* ============ HINTS ============ */
.hint-hud {
  position: absolute;
  z-index: 20;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: captionIn 0.5s var(--ease-out) 0.8s both;
  pointer-events: none;
}
.hint-hud .kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
}
.hint-hud.bottom-left-variant { left: 24px; transform: none; }
.mc-head .title{
  color: #FFF;
  font-family: "Roboto-Regular";
  font-size: 14px;
  font-weight: 400;
}
.mc-head .title .totalPrice{    
  font-family: "Roboto-Bold";
  font-weight: 900;
}
@media(max-width:1024px){
    .topbar{ padding:12px 24px; }
    .scene-caption{ left:24px; }
    .scene-chooser-confirm{height:44px;}
    .scene-chooser-modal{max-width:508px;padding:16px;}
    .scene-chooser-slide-img{aspect-ratio: 14 / 10;}
    .scene-chooser-head .title{margin-bottom:12px;}
    .scene-chooser-body{padding:12px 0 0 0;}
    .body-foot-area{right: 24px;}
}


/* ============ MOBILE ADJUSTMENTS ============ */
@media (max-width: 767px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand { font-size: 12px; }  
  .page-title-tag { display: none; }
  .breadcrumb { font-size: 12px; margin-left: 0; }
  .scene-caption { left: 16px; right: 16px; bottom: 80px; max-width: none; }
  .scene-caption .eyebrow{font-size:12px;}
  .scene-caption h1 { font-size: 24px; }
  .scene-caption p { font-size: 12px; }
/*  .scene-counter { top: 14px; right: 14px; }*/
  .hotspot-zoom { width: 52px; height: 52px; }
  .hotspot-zoom .core { width: 30px; height: 30px; }
  .hotspot-prod { width: 38px; height: 38px; }
  .hotspot-prod .core { width: 28px; height: 28px; }
  .mini-cart {
    bottom: 14px; right: 14px; left: 14px;
    width: auto;
  }
  .mini-cart.collapsed { left: auto; }
  .hint-hud { bottom: 84px; font-size: 11px; }
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

/* ============ PRODUCT POPUP (centered modal) ============ */
.popup-backdrop {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.22s;
}
.popup {
  width: max-content;
  max-width: 750px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 0.3s var(--ease-out);
  padding: 8px 0 12px 0;
}
.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  flex-shrink: 0;
}
.popup-eyebrow {
    color: #FFF;
    font-family: "Roboto-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}
.popup-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.popup-close:hover { background: var(--bg-2); color: var(--text); }
.popup-grid::-webkit-scrollbar { height: 8px; }
.popup-grid::-webkit-scrollbar-track { background: var(--bg-3); border-radius: 4px; }
.popup-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.popup-grid::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

/* ----- single-row horizontal scroll list ----- */
.popup-grid {
  display: flex;
  gap: 12px;
  padding: 14px 16px 16px;
  overflow-x: auto;
  overflow-y: hidden;
}
.pp-card {
    flex: 0 0 215px;
    width: 215px;
    display: flex;
    flex-direction: column;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #696A6C;
}
.pp-card.added { border-color: var(--success); }
.pp-thumb {
  position: relative;
  height: 104px;
  background: #0e0e0e;
  overflow: hidden;
}
.pp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.pp-card:hover .pp-thumb img { transform: scale(1.05); }
.pp-cat {
  position: absolute;
  top: 7px; left: 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(6px);
  padding: 3px 6px;
  border-radius: 3px;
}
.pp-incart {
  position: absolute;
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.pp-incart svg { width: 13px; height: 13px; }

.pp-body {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  flex: 1;
}
.pp-codeline {
  color: #979797;
  font-family: "Roboto-Regular";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px; /* 121.429% */
}
.pp-name {
    color: #FFF;
    font-family: "Roboto-Medium";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 15px; /* 107.143% */
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-stock {
    color: #3EAF3F;
    font-family: "Roboto-Medium";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 15px; /* 107.143% */
    margin-bottom:12px;
}
.pp-stock svg { width: 13px; height: 13px; }
.pp-stock.no { color: var(--text-mute); }
.pp-divider {
  height: 1px;
  background: var(--line);
  margin: 9px 0;
}
.pp-taksit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #5a5a5a;
  margin-bottom: 9px;
}
.pp-taksit .q,
.pp-kdv .q {
  display: inline-grid;
  place-items: center;
  width: 13px; height: 13px;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #9a9a9a;
}
.pp-pricerow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  min-width: 0;
}
.pp-badge {
    display: inline-flex;
    align-items: center;
    background: #ED1C24;
    padding: 6px 14px 6px 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    color: #FFF;
    text-align: center;
    font-family: "Roboto-Bold";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px; /* 100% */
    border-radius: 4px;
}
.pp-pricecol {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  flex: 1;
}
.pp-pricecol div{
     display: flex !important;
    flex-wrap: wrap;
    flex-direction: row !important;
}
.pp-old {
  font-size: 10px;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-bottom: 1px;
}
.pp-new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.pp-kdv {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0;
}
.pp-adet-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.pp-stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 9px;
}
.pp-stepper button {
  height: 36px;
  display: grid; place-items: center;
  color: var(--text);
  background: var(--bg-2);
  transition: background 0.12s;
}
.pp-stepper button:hover { background: var(--bg-3); }
.pp-stepper button svg { width: 13px; height: 13px; }
.pp-stepper span {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  height: 36px;
  display: grid;
  place-items: center;
}
.pp-addbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    color: #FFF;
    font-family: "Roboto-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    transition: background 0.15s;
}
.pp-card .step-quantity {
    background: transparent !important;
    color: #FFF;
    text-align: center;
    font-family: "Roboto-Regular";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px; /* 100% */
    margin-bottom: 12px;
    border: none;
}
.pp-card .numberbox.narrow input {
    height: 35px !important;
    color: #FFF;
    text-align: center;
    font-family: "Roboto-Bold";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px; /* 85.714% */
}
.pp-card .numberbox.sided .numberbox-button {
    border-radius: 4px;
    border: 1px solid #5F6368;
    background: rgba(92, 90, 90, 0.41);
    border-radius: 4px;
    border: 1px solid #5F6368 !important;
    background: rgba(92, 90, 90, 0.41);
    height: 35px !important;
    width: 3.5rem !important;
    color: #fff !important;
}
.pp-card .numberbox .numberbox-button:hover, .pp-card .numberbox .numberbox-button:active, .pp-card .numberbox .numberbox-button:focus {
    background: transparent !important;
}
.pp-card .numberbox.sided .numberbox-button img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(170deg) brightness(108%) contrast(102%);
}
.pp-card .numberbox.sided input, .pp-card .wrap-quantity, .pp-card .numberbox.narrow {
    background: transparent !important;
    border: none !important;
}
.pp-card .price.discount-price, .pp-card .vatrateplus {
    color: #FFF;
    font-family: "Roboto-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 15px; /* 93.75% */
}
.pp-card .old-price {
    color: #8B8B8B !important;
    font-family: "Roboto-Light";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 15px; /* 107.143% */
    text-decoration-line: line-through;
    width:100%;
}
.pp-addbtn svg {
    width: 15px;
    height: 15px;
}
.pp-addbtn:hover:not(:disabled) { background: var(--accent-2); }
.pp-addbtn:disabled { background: var(--line-2); cursor: not-allowed; }

@media (max-width: 767px) {
  .popup-backdrop { padding: 0;}
  .popup {
    max-width: none;
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
  }
  .popup-grid { padding: 12px; }
  .pp-card { flex: 0 0 168px; width: 168px; }
  .pp-thumb { height: 92px; }
  .pp-name { font-size: 12px; }
  .pp-new { font-size: 16px; }
}

/* ===== Vanilla build · entrance-animation fix =====
   Elements built in one synchronous pass can leave their delayed entrance
   animation stuck in a pending state (holding the hidden 'from' frame).
   Make the visible end-state the base, and replay the entrance only when JS
   adds .enter to the active scene (rAF-gated — the normal, reliable path). */
.scene-caption { opacity: 1; transform: none; animation: none; }
.hint-hud { opacity: 1; animation: none; }
.hotspot { animation: none; }

/* crosshair toggle (tweaks) */
.app.no-crosshair .hotspot-prod .cross-h,
.app.no-crosshair .hotspot-prod .cross-v { display: none; }

.scene.active.enter .scene-caption { animation: captionIn 0.6s var(--ease-out) 0.15s both; }
.scene.active.enter .hotspot-zoom { animation: hotspotIn 0.5s var(--ease-out) both; }
.scene.active.enter .hotspot-prod { animation: hotspotIn 0.5s var(--ease-out) both; }

#rotateWarningModal {
    display: none;
}
.numberbox.sided .numberbox-button.number-decrease{
    left:0px!important
}
.numberbox .numberbox-button{
    right:0px;
}
#sceneChooserBackdrop .icon-btn{top:-10px;}
@media (max-width:1199px){
    .scene-chooser-slide {
        padding: 12px !important;
    }
    .scene-chooser-slide-title {
        font-size: 12px !important;
    }
    .scene-chooser-slide-subtitle {
        font-size: 12px !important;
    }
}
@media (max-width: 1024px) {
    .popup {
        max-width: 530px;
    }
    .pp-name {
        padding: 2px 0;
    }
    .pp-pricerow {
        margin-bottom: 4px;
    }
    .pp-card .step-quantity{
        margin-bottom:8px;
    }
    .pp-card .numberbox.sided input, .pp-card .wrap-quantity, .pp-card .numberbox.narrow{
        height:23px !important;
    }
    .numberbox.narrow, .step-quantity .sided, .pp-card .numberbox.sided .numberbox-button, .pp-card .numberbox.narrow input {
        height: 23px !important;
    }
    .pp-card .numberbox.narrow input{
        font-size:9px;
    }
    .pp-card .numberbox.sided .numberbox-button{
        font-size:8px;
        width:2.5rem;
    }
    .numberbox.sided .numberbox-button {
        font-size: 8px;
    }
    .pp-stock {
        margin-bottom: 0px;
    }
    .pp-name, .pp-codeline, .pp-stock, .pp-card .old-price {
        font-size: 9px;
    }
    .pp-card .price.discount-price, .pp-card .vatrateplus{
        font-size:10px;
    }
    .pp-addbtn {
        font-size: 11px;
        height: 29px;
        margin-top: 8px;
    }
    .popup-grid {
        gap: 4px;
        padding: 8px;
    }
    .popup-head {
        padding: 4px 8px;
    }
    .pp-card {
        padding: 4px;
        flex: 0 0 155px;
        width: 155px;
    }
    .pp-body {
        padding-top: 4px;
    }
    .popup-eyebrow {
        font-size: 14px;
    }
    .pp-badge {
        padding: 3px 7px 3px 5px;
        clip-path: polygon(0 0, calc(100% - 7.5px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    }
    .badge-discount{
        font-size:8px;
    }
}
@media (max-width: 843px) {
    #rotateWarningModal {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media(max-width:884px){
    .topbar{ padding:8px 16px; }
    .scene-caption{ left:16px; }
    .mc-head .title{ font-size: 13px; }
    .scene-caption h1 { font-size: 24px; }    
    .scene-chooser-confirm{height:32px;font-size:13px;}
    .scene-chooser-head .title{font-size:16px;}
    .scene-chooser-modal .text{font-size:12px;}
    .scene-chooser-modal{max-width:353px;padding:12px;}
    .scene-chooser-slide{min-height:135px;padding:8px!important;}
    .scene-chooser-slide.is-active .scene-chooser-slide-checkbox::after{width:5px;height:2px;}
    .scene-chooser-swiper{padding-bottom:42px;}    
    .body-foot-area{right: 16px;}
    .scene-chooser-body{padding:8px 0 0 0;}
    .scene-chooser-swiper .swiper-button-next.swiper-button-disabled, .scene-chooser-swiper .swiper-button-prev.swiper-button-disabled {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 1px solid #D9D9D9;
        background: rgba(255, 255, 255, 0.29);
        margin: 0;
        bottom: 12px !important;
        top: auto;
    }
    .scene-chooser-swiper .swiper-button-prev, .scene-chooser-swiper .swiper-button-next {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 1px solid #1B1B19;
        background: #1B1B19;
        margin: 0;
        bottom: 12px!important;
        top: auto;
    }
    .scene-chooser-swiper .swiper-button-prev {
        left: auto !important;
        right: 22px !important;
    }
    .swiper-pagination-bullets{bottom:20px!important}
    .scene-chooser-swiper {
        padding-bottom: 38px !important;
    }
    .scene-chooser-slide-top{gap:4px}
    .scene-chooser-slide-checkbox{width:12px;height:12px;border: 1px solid #ccc}
    .scene-chooser-slide-title{font-size:11px!important}
    .scene-chooser-slide-subtitle{font-size:10px!important}
    .scene-chooser-slide-subtitle{line-height:0;padding-bottom:12px;}
    .scene-chooser-slide-img{aspect-ratio: 15 / 10;}
    .scene-chooser-swiper .swiper-button-prev::after, .scene-chooser-swiper .swiper-button-next::after{font-size:8px!important;}
}
@media (orientation: landscape) and (max-width: 884px) {
    .mc-body {
        max-height: 178px;
    }
}