
  :root,
  [data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-2: #141414;
    --bg-3: #1c1c1c;
    --ink: #f2f0eb;
    --mute: #6b6b6b;
    --rule: #262626;
    --accent: #c4ff3d;
    --accent-soft: rgba(196, 255, 61, 0.15);
    --accent-rgb: 196, 255, 61;
    --nav-bg: rgba(10, 10, 10, 0.6);
    --bottom-bg: rgba(10, 10, 10, 0.85);
  }
  [data-theme="light"] {
    --bg: #f0ede5;
    --bg-2: #e6e2d8;
    --bg-3: #ddd8cc;
    --ink: #15141a;
    --mute: #847d72;
    --rule: #c9c3b6;
    --accent: #d94f1a;
    --accent-soft: rgba(217, 79, 26, 0.15);
    --accent-rgb: 217, 79, 26;
    --nav-bg: rgba(240, 237, 229, 0.75);
    --bottom-bg: rgba(240, 237, 229, 0.88);
  }

  body, nav, footer, .product-view, .product-info-panel,
  .option, .qty-btn, .cart-drawer, .cart-item,
  .checkout-btn, .theme-toggle, .breadcrumb {
    transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; background: var(--bg); }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 11px;
  }

  /* Grain */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  [data-theme="light"] body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background-image:
      linear-gradient(rgba(21, 20, 26, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(21, 20, 26, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
  }

  /* NAV — simplified for product page */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 28px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--rule);
  }
  .logo {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
  }
  .logo-mark {
    width: 38px; height: 38px;
    background: var(--accent);
    -webkit-mask: url('assets/logo.png') center/contain no-repeat;
            mask: url('assets/logo.png') center/contain no-repeat;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .logo:hover .logo-mark { transform: scale(1.08); }

  .nav-back {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mute);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.3s;
  }
  .nav-back:hover { color: var(--accent); }
  .nav-back svg { transition: transform 0.3s; }
  .nav-back:hover svg { transform: translateX(-3px); }

  .nav-actions { justify-self: end; display: flex; gap: 12px; align-items: center; }

  /* Theme toggle */
  .theme-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .theme-toggle svg {
    position: absolute;
    transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .theme-toggle[data-theme="dark"] .ico-sun { opacity: 1; transform: rotate(0); }
  .theme-toggle[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(-90deg); }
  .theme-toggle[data-theme="light"] .ico-sun { opacity: 0; transform: rotate(90deg); }
  .theme-toggle[data-theme="light"] .ico-moon { opacity: 1; transform: rotate(0); }

  /* Cart icon button */
  .cart-icon {
    width: auto;
    padding: 0 16px;
    height: 36px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: border-color 0.3s, color 0.3s;
  }
  .cart-icon:hover { border-color: var(--accent); color: var(--accent); }
  .cart-icon .count {
    background: var(--accent);
    color: var(--bg);
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
  }

  /* MAIN PRODUCT LAYOUT */
  .product-main {
    padding: 100px 28px 60px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
  }

  .breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .breadcrumb a, .breadcrumb span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mute);
    text-decoration: none;
    transition: color 0.3s;
  }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb .current { color: var(--ink); }
  .breadcrumb .sep { color: var(--mute); }

  /* LEFT: 3D VIEWER */
  .product-view {
    position: sticky;
    top: 100px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/5;
    /* Stay viewport-friendly on tall windows so the buy button isn't pushed below the fold. */
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
  }

  .view-canvas-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
  }

  .view-canvas-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  [data-theme="light"] .view-canvas-wrap::before {
    background-image:
      linear-gradient(rgba(21, 20, 26, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(21, 20, 26, 0.03) 1px, transparent 1px);
  }

  #product-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
  }

  .view-overlay {
    position: absolute;
    top: 20px; left: 20px; right: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
  }
  .view-overlay .mono { color: var(--mute); }
  .view-overlay .live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
  }
  .view-overlay .live::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
  }

  .view-controls {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
  }
  .view-hint {
    color: var(--mute);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 6px 12px;
  }
  .view-buttons {
    display: flex;
    gap: 4px;
    pointer-events: auto;
  }
  .view-btn {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    width: 32px; height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
  }
  .view-btn:hover, .view-btn.active { border-color: var(--accent); color: var(--accent); }

  /* SPEC STRIP under viewer */
  .view-spec {
    padding: 16px 20px;
    border-top: 1px solid var(--rule);
    background: var(--bg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    font-size: 11px;
  }
  .view-spec .col .mono { color: var(--mute); display: block; margin-bottom: 4px; font-size: 9px; }
  .view-spec .col .val { font-weight: 600; }

  /* RIGHT: PRODUCT INFO */
  .product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .product-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .product-meta-row .mono { color: var(--mute); }
  .badge-limited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .badge-limited::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
  }

  .product-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-top: 8px;
  }
  .product-title em {
    font-style: italic;
    font-family: 'Archivo Narrow', sans-serif;
    font-weight: 400;
    color: var(--accent);
  }

  .product-sub {
    font-family: 'Archivo Narrow', sans-serif;
    font-style: italic;
    font-size: 20px;
    color: var(--mute);
    margin-top: 4px;
  }

  .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .price {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .price .amount {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .price .currency {
    color: var(--mute);
    font-size: 14px;
    font-weight: 500;
  }
  .price-tax {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .description {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
  }
  .description p + p { margin-top: 12px; }
  .description .mute { color: var(--mute); }

  /* OPTIONS */
  .option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .option-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .option-label .mono { color: var(--mute); }
  .option-label .selected {
    font-family: 'Archivo Narrow', sans-serif;
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
  }
  .options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .option {
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
  }
  .option:hover {
    border-color: var(--mute);
    transform: translateY(-2px);
  }
  .option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .option .swatch {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--rule);
  }
  .option .name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  /* Quantity */
  .qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rule);
    border-radius: 999px;
    overflow: hidden;
  }
  .qty-btn {
    width: 40px; height: 40px;
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
  }
  .qty-btn:hover { background: var(--accent); color: var(--bg); }
  .qty-val {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
  }

  /* Actions */
  .actions-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .add-to-cart {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 18px 28px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .add-to-cart:hover { background: #d5ff5e; }
  [data-theme="light"] .add-to-cart:hover { background: #ef6a30; }
  .add-to-cart.added {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
  }

  /* SPECS TABLE */
  .specs-section {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .specs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
  }
  .specs-header .mono { color: var(--mute); }
  .specs-header h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }
  .specs-table dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 32px;
  }
  .specs-table dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mute);
    padding-top: 4px;
  }
  .specs-table dd {
    font-weight: 500;
    font-size: 15px;
  }

  /* SHIPPING NOTE */
  .shipping-note {
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--mute);
    line-height: 1.5;
  }
  .shipping-note .icon {
    width: 32px; height: 32px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
  }
  .shipping-note strong { color: var(--ink); display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; }

  /* CART DRAWER */
  .cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s 0.4s;
  }
  .cart-drawer-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.4s; }

  .cart-drawer {
    position: fixed;
    top: 0; right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: var(--bg);
    border-left: 1px solid var(--rule);
    z-index: 600;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  .cart-drawer.open { transform: translateX(0); }

  .cart-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-head h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .cart-close {
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 18px;
    transition: color 0.3s;
    font-family: inherit;
  }
  .cart-close:hover { color: var(--accent); }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
  }
  .cart-empty {
    color: var(--mute);
    font-style: italic;
    text-align: center;
    margin-top: 60px;
  }
  .cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    align-items: center;
  }
  .cart-item:last-child { border-bottom: none; }
  .cart-item-thumb {
    width: 60px; height: 60px;
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cart-item-info { display: flex; flex-direction: column; gap: 2px; }
  .cart-item-name { font-weight: 600; font-size: 14px; }
  .cart-item-variant { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
  .cart-item-price { font-weight: 600; font-size: 14px; }
  .cart-item-remove {
    background: transparent;
    border: none;
    color: var(--mute);
    font-size: 11px;
    margin-top: 4px;
    text-align: left;
    padding: 0;
    transition: color 0.3s;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
  }
  .cart-item-remove:hover { color: var(--accent); }

  .cart-foot {
    border-top: 1px solid var(--rule);
    padding: 24px 28px;
    background: var(--bg-2);
  }
  .cart-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }
  .cart-row .mono { color: var(--mute); }
  .cart-row.total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--rule);
    font-size: 18px;
    font-weight: 700;
  }
  .checkout-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 16px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .checkout-btn:hover { background: #d5ff5e; }
  [data-theme="light"] .checkout-btn:hover { background: #ef6a30; }

  /* RELATED */
  .related {
    padding: 80px 28px 100px;
    border-top: 1px solid var(--rule);
  }
  .related-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
  .related-head h3 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1;
  }
  .related-head h3 em { font-style: italic; font-family: 'Archivo Narrow', sans-serif; font-weight: 400; color: var(--accent); }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .rel-card {
    background: var(--bg-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.3s, transform 0.4s;
    display: flex;
    flex-direction: column;
  }
  .rel-card:hover { border-color: var(--accent); transform: translateY(-4px); }
  .rel-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .rel-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  .rel-img svg { position: relative; z-index: 1; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); color: var(--ink); }
  .rel-card:hover .rel-img svg { transform: rotate(8deg) scale(1.1); }
  .rel-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
  .rel-meta { display: flex; justify-content: space-between; }
  .rel-meta .mono { color: var(--mute); }
  .rel-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .rel-foot {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .rel-price { font-weight: 700; font-size: 16px; }
  .rel-price .currency { color: var(--mute); font-size: 11px; margin-right: 3px; }
  .rel-arrow {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ink);
    color: var(--bg);
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 800;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
  .toast.show { transform: translateX(-50%) translateY(0); }
  .toast::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .product-main { grid-template-columns: 1fr; gap: 40px; padding: 100px 18px 60px; }
    .product-view { position: relative; top: 0; aspect-ratio: 1; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .options { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 600px) {
    body { cursor: auto; }
    nav { padding: 14px 18px; grid-template-columns: 1fr auto; }
    .nav-back { display: none; }
    .related-grid { grid-template-columns: 1fr; }
    .related { padding: 60px 18px 80px; }
    .options { grid-template-columns: repeat(2, 1fr); }
    .cart-drawer { width: 100%; }
  }


  /* SVG HERO (for non-3D product pages) */
  .svg-hero-wrap { position: relative; }
  .svg-hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--ink);
  }
  .svg-hero svg {
    width: 75%;
    height: 75%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .svg-hero .hero-rotate {
    animation: heroRotate 80s linear infinite;
    transform-origin: 200px 200px;
  }
  @keyframes heroRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  .svg-hero-wrap .glow-bg {
    position: absolute;
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
  }

/* ====================================================================
   CHECKOUT FORM (Phase 3)
==================================================================== */
.checkout-form-wrap { padding: 4px 4px 8px; }
.cart-back {
  background: none; border: none; color: var(--mute);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; padding: 0; margin: 0 0 16px;
}
.cart-back:hover { color: var(--ink); }
.checkout-heading { margin: 0 0 6px; font-size: 22px; }
.checkout-note {
  color: var(--mute); font-size: 12px; line-height: 1.5;
  margin: 0 0 18px; font-family: 'JetBrains Mono', monospace;
}
.ck-field { display: block; margin: 0 0 12px; }
.ck-field > span {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 4px;
}
.ck-field > input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-2); border: 1px solid var(--rule);
  color: var(--ink); padding: 10px 12px; border-radius: 4px;
  font-family: inherit; font-size: 14px;
}
.ck-field > input:focus {
  outline: none; border-color: var(--accent);
}
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; margin: 12px 0 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.ck-summary > strong { font-size: 18px; }
.checkout-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 4px;
  background: rgba(255, 80, 80, 0.1); border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff9090; font-size: 13px;
}
.checkout-success { padding: 24px 4px; text-align: center; }
.checkout-success h3 {
  margin: 0 0 12px; font-size: 24px; color: var(--accent);
}
.checkout-success .success-id {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  color: var(--ink); margin: 0 0 16px;
  padding: 8px 12px; background: var(--bg-2);
  border-radius: 4px; border: 1px solid var(--rule);
  display: inline-block;
}

/* ====================================================================
   CART REMOVE × button (Phase 5 polish)
==================================================================== */
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-item-x {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--mute);
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cart-item-x:hover {
  border-color: #ff6b3a;
  color: #ff6b3a;
  background: rgba(255, 107, 58, 0.08);
}
