/*
Theme Name: ninetwlve
Theme URI: https://ninetwlve.org
Author: ninetwlve
Description: Independent media platform, visual archive, record label, and digital publication. Custom theme with chaotic archive homepage, dedicated WooCommerce store, artist profiles, and QRIS-ready checkout.
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: ninetwlve
*/


  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@300;400&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --black: #0a0a0a;
    --white: #f4f3f0;
    --grey: #888;
    --light-grey: #bbb;
    --red: #D94F3D;
    --red-hover: #bf3d2c;
    --nav-h: 44px;
    --font: 'DM Sans', sans-serif;
    --mono: 'DM Mono', monospace;

    /* retro palette */
    --c1: #D94F3D; /* brick red */
    --c2: #E8B84B; /* mustard */
    --c3: #3B5B8C; /* cobalt */
    --c4: #2D6A4F; /* forest */
    --c5: #C4763A; /* burnt orange */
    --c6: #7B4F8C; /* dusty violet */
    --c7: #1A1A1A; /* near black */
    --c8: #8C6B3E; /* tan brown */
  }

  html { background: var(--white); color: var(--black); }

  body {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: var(--white);
    overflow-x: hidden;
  }

  /* ── GRAIN OVERLAY (global) ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
  }

  /* ── NAV ── */
  #nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--white);
    gap: 16px;
  }

  #nav-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
  }

  /* square SVG logo */
  #logo {
    flex-shrink: 0;
    display: block;
    width: 46px;
    height: 46px;
    color: var(--red);
    text-decoration: none;
    transition: color 0.15s;
    line-height: 0;
  }
  #logo svg { display: block; width: 100%; height: 100%; }
  #logo:hover { color: var(--red-hover); }
  #logo .logo-sub {
    display: block;
    font-weight: 300;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--grey);
    text-align: center;
    margin-top: 3px;
    line-height: 1;
  }

  /* stacked column: filters (may wrap to two lines) + tools row below */
  #nav-left-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
    min-width: 0;
  }

  #filter-bar {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    max-width: 360px;
    line-height: 1.5;
  }
  #filter-bar .filter-link { display: inline-block; margin: 0; }
  /* forced line break → filters always split into two lines (then tools = 3rd line) */
  #filter-bar .filter-break { flex-basis: 100%; height: 0; }

  .nav-link, .filter-link {
    font-size: 12px;
    font-weight: 300;
    color: var(--red);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.15s, opacity 0.15s;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font);
    letter-spacing: 0.01em;
    opacity: 0.65;
  }

  .nav-link:hover, .filter-link:hover { opacity: 1; color: var(--red-hover); }
  .filter-link.active { opacity: 1; color: var(--red); font-weight: 500; }
  .nav-link.active-mode { opacity: 1; color: var(--red); font-weight: 500; }

  #search-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
  }

  #search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8d5d0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--black);
    padding: 2px 0 3px;
    width: 84px;
    outline: none;
    letter-spacing: 0.04em;
    transition: width 0.25s, border-color 0.15s;
    border-radius: 0;
    -webkit-appearance: none;
  }
  #search-input:focus { width: 160px; border-bottom-color: var(--red); }
  #search-input::placeholder { color: var(--light-grey); letter-spacing: 0.08em; }

  #nav-divider {
    width: 1px;
    height: 13px;
    background: #d8d5d0;
    align-self: center;
    flex-shrink: 0;
    margin: 0;
  }

  #nav-right {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-shrink: 0;
    padding-top: 2px;
  }
  #nav-right a,
  #nav-right .nav-link {
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  /* cart bag sits snug after the store link */
  #nav-right button.nav-cart-count {
    margin-left: -8px;
    padding: 0;
    line-height: 0;
  }

  /* ── ARCHIVE — column masonry, natural aspect ratios, zero gaps ── */
  #archive {
    position: relative;   /* JS absolutely-positions .item children */
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .item {
    position: absolute;   /* placed by the masonry engine */
    top: 0; left: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    /* width/height/transform set inline by JS */
  }
  .item:hover { z-index: 2; }

  /* grid-guide overlay — overlays ON TOP of thumbnails via pseudo-element */
  #archive-wrap {
    position: relative;
    padding-top: calc(var(--nav-h) + 0px);
  }
  #grid-guide {
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--nav-h) + 0px);
    pointer-events: none;
    z-index: 50;
    display: none;
  }
  #grid-guide.visible { display: block; }
  /* pure X/Y rule lines — blue */
  #grid-guide .gl { position: absolute; background: rgba(40,90,220,0.8); }
  #grid-guide .gl-v { top: 0; bottom: 0; width: 1px; }
  #grid-guide .gl-h { left: 0; right: 0; height: 1px; }
  /* nav margin/padding marker lines (blue, slightly stronger) */
  #grid-guide .gl-margin { position: absolute; background: rgba(40,90,220,0.55); }

  /* grid ON: no masking/dimming of imagery — lines only, over the content */
  #archive.grid-on .item .item-meta,
  #archive.grid-on .item .type-badge { opacity: 0; }

  /* ── NAV GRID OVERLAY (fixed, on top — reveals navbar item structure) ── */
  #nav-grid-guide {
    position: fixed;
    inset: 0;
    z-index: 130;            /* above the nav (100), below panels/drawers */
    pointer-events: none;
    display: none;
  }
  #nav-grid-guide.visible { display: block; }
  #nav-grid-guide .ngl { position: absolute; }
  #nav-grid-guide .ngl-v { top: 0; bottom: 0; width: 1px; }
  #nav-grid-guide .ngl-h { left: 0; right: 0; height: 1px; }
  /* content column lines through the nav — faint */
  #nav-grid-guide .ngl-col { background: rgba(40,90,220,0.30); }
  /* nav item edge markers — prominent */
  #nav-grid-guide .ngl-item { background: rgba(40,90,220,0.85); }
  /* nav bottom boundary */
  #nav-grid-guide .ngl-h { background: rgba(40,90,220,0.85); }

  /* Grid readout label removed per design — grid is lines only. */

  /* archive controls (size +/-, shuffle, grid) — in the nav */
  #archive-controls {
    display: inline-flex;
    align-items: center;
    gap: 0 12px;
    margin-left: 0;
  }
  .ctrl-btn {
    font-size: 13px;
    font-weight: 400;
    font-family: var(--mono);
    color: var(--grey);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 0.04em;
    transition: color 0.15s;
    line-height: 1.6;
    min-width: 12px;
  }
  .ctrl-btn.ctrl-glyph { font-size: 14px; }
  .ctrl-btn:hover { color: var(--red); }
  .ctrl-btn.active { color: var(--red); }
  .ctrl-sep {
    width: 1px; height: 11px;
    background: #d8d5d0;
    display: inline-block;
    flex-shrink: 0;
  }

  /* color block placeholder — fills its grid cell */
  .item-block {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    height: 100%;
  }

  /* grain texture on each block */
  .item-block::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    mix-blend-mode: multiply;
  }

  /* subtle vignette */
  .item-block::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.22) 100%);
  }

  .item-meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 36px 12px 13px;
    background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    z-index: 3;
  }

  .item:hover .item-meta { opacity: 1; }

  .item-title {
    font-size: 11px;
    font-weight: 400;
    color: #f4f3f0;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  .item-artist {
    font-size: 10px;
    font-weight: 300;
    color: rgba(244,243,240,0.65);
    margin-top: 2px;
    font-family: var(--mono);
  }

  /* ══════ DEDICATED STORE LAYOUT ══════ */
  #store {
    display: none;
    padding: calc(var(--nav-h) + 40px) 18px 100px;
    max-width: 1400px;
    margin: 0 auto;
  }
  #store.active { display: block; }
  #archive.hidden { display: none; }

  #store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  /* If WooCommerce ever injects its ul.products wrapper, make IT the grid
     instead and neutralise default float/list styling. Covers both cases. */
  #store-grid ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  #store-grid ul.products::before,
  #store-grid ul.products::after { content: none !important; display: none !important; }
  #store-grid ul.products > li.product,
  #store-grid > li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  .product-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: transparent;
  }

  .product-card-img {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .product-card-img::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .product-card-img-inner {
    width: 100%; height: 100%;
  }

  .product-card-badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--red);
    color: var(--white);
    padding: 3px 7px;
    z-index: 2;
  }
  .product-card-soldout {
    position: absolute;
    inset: 0;
    background: rgba(244,243,240,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
    z-index: 2;
  }

  .product-card-cat {
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 4px;
  }
  .product-card-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
  }
  .product-card-rating {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--grey);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .stars { color: var(--red); letter-spacing: 1px; }
  .product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .price-after { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
  .price-before {
    font-size: 11px;
    font-weight: 300;
    color: var(--light-grey);
    text-decoration: line-through;
  }

  /* store empty / heading */
  /* Endless marketing ticker — red running text, no border, no container */
  #store-ticker {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 32px;
    width: 100%;
  }
  #store-ticker .ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: nv-ticker 60s linear infinite;
  }
  #store-ticker .ticker-item {
    color: var(--red);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    padding: 0 2px;
  }
  #store-ticker .ticker-dot {
    color: var(--red);
    font-weight: 500;
    font-size: 15px;
    padding: 0 18px;
    opacity: 0.6;
  }
  #store-ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes nv-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* track is duplicated → seamless loop */
  }
  @media (prefers-reduced-motion: reduce) {
    #store-ticker .ticker-track { animation: none; }
  }

  /* ══════ PRODUCT DETAIL VIEW ══════ */
  #product-view {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: var(--white);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto;
  }
  #product-view.open { opacity: 1; pointer-events: all; }

  /* On the actual product PAGE (not the quick-view overlay), keep the real
     site navbar visible and on top — sit the product view BELOW it. */
  #product-view.static-product {
    position: static;
    z-index: 1;
    opacity: 1;
    pointer-events: all;
    min-height: 100vh;
    padding-top: var(--nav-h);
  }
  #product-view.static-product #pv-header { display: none; } /* real nav replaces it */

  #pv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #d8d5d0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
  }
  #pv-logo { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--red); }
  #pv-close {
    font-size: 12px; font-weight: 300; color: var(--grey);
    cursor: pointer; background: none; border: none; font-family: var(--font);
  }
  #pv-close:hover { color: var(--black); }

  #pv-body {
    display: grid;
    grid-template-columns: 1fr 440px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
  }

  #pv-media {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
  }
  #pv-media-inner { position: absolute; inset: 0; }
  #pv-media-inner::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: multiply;
  }

  #pv-info {
    padding: 48px 40px;
    border-left: 1px solid #d8d5d0;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .pv-cat {
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
  }
  #pv-name {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-top: -8px;
  }
  #pv-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--mono);
    color: var(--grey);
  }

  #pv-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #d8d5d0;
    border-bottom: 1px solid #d8d5d0;
  }
  #pv-price-after { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
  #pv-price-before { font-size: 14px; font-weight: 300; color: var(--light-grey); text-decoration: line-through; }
  #pv-discount-tag {
    font-size: 10px;
    font-family: var(--mono);
    background: var(--red);
    color: var(--white);
    padding: 3px 8px;
    letter-spacing: 0.06em;
  }

  .pv-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pv-meta { display: flex; flex-direction: column; gap: 4px; }
  .pv-meta-label {
    font-size: 9px; font-family: var(--mono);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-grey);
  }
  .pv-meta-value { font-size: 12px; font-weight: 300; color: var(--black); }

  #pv-desc { font-size: 12.5px; font-weight: 300; line-height: 1.7; color: #444; }

  /* variations */
  #pv-variations { display: none; flex-direction: column; gap: 8px; }
  .pv-var-label {
    font-size: 9px; font-family: var(--mono);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-grey);
  }
  .pv-var-options { display: flex; flex-wrap: wrap; gap: 6px; }
  .pv-var-opt {
    font-family: var(--mono);
    font-size: 11px;
    border: 1px solid #d8d5d0;
    padding: 7px 14px;
    cursor: pointer;
    background: transparent;
    color: var(--black);
    transition: all 0.15s;
    letter-spacing: 0.02em;
  }
  .pv-var-opt:hover { border-color: var(--black); }
  .pv-var-opt.selected { background: var(--black); color: var(--white); border-color: var(--black); }

  #pv-stock {
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
    color: var(--grey);
  }
  #pv-stock.low { color: var(--red); }

  #pv-atc {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.2s;
  }
  #pv-atc:hover { background: var(--red); }
  #pv-atc:disabled { opacity: 0.3; cursor: default; background: var(--black); }

  /* reviews */
  #pv-reviews { display: flex; flex-direction: column; gap: 0; }
  #pv-reviews-title {
    font-size: 9px; font-family: var(--mono);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-grey);
    margin-bottom: 12px; padding-top: 8px;
    border-top: 1px solid #d8d5d0; padding-top: 18px;
  }
  .pv-review {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .pv-review-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
  }
  .pv-review-name { font-size: 11px; font-weight: 400; }
  .pv-review-stars { font-size: 10px; color: var(--red); letter-spacing: 1px; }
  .pv-review-text { font-size: 11.5px; font-weight: 300; line-height: 1.6; color: #555; }

  /* TYPE BADGE */
  .type-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 9px;
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(244,243,240,0.9);
    background: rgba(10,10,10,0.42);
    padding: 2px 7px;
    text-transform: uppercase;
    z-index: 3;
  }

  /* ── OVERLAY ── */
  #overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--white);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  #overlay.open { opacity: 1; pointer-events: all; }

  #overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #d8d5d0;
    flex-shrink: 0;
  }

  #overlay-logo {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--red);
  }

  #overlay-close {
    font-size: 12px;
    font-weight: 300;
    color: var(--grey);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    transition: color 0.15s;
    padding: 0;
  }
  #overlay-close:hover { color: var(--black); }

  #overlay-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    flex: 1;
    overflow: hidden;
  }

  #overlay-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  /* overlay media uses color block too */
  #overlay-color-block {
    width: 100%; height: 100%;
    position: absolute;
    inset: 0;
  }

  #overlay-color-block::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: multiply;
  }

  #overlay-info {
    padding: 36px 24px;
    overflow-y: auto;
    border-left: 1px solid #d8d5d0;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  #overlay-title {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .meta-block { display: flex; flex-direction: column; gap: 5px; }

  .meta-label {
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-grey);
  }

  .meta-value {
    font-size: 12px;
    font-weight: 300;
    color: var(--black);
    line-height: 1.55;
  }

  .meta-tags { display: flex; flex-wrap: wrap; gap: 5px; }

  .meta-tag {
    font-size: 10px;
    font-family: var(--mono);
    border: 1px solid #d8d5d0;
    padding: 2px 8px;
    color: var(--grey);
    letter-spacing: 0.04em;
  }

  #overlay-related-title {
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-grey);
    margin-bottom: 10px;
  }

  #overlay-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }

  .related-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }

  .related-thumb-block {
    width: 100%; height: 100%;
    position: absolute; inset: 0;
  }


  /* ── SIDE PANEL ── */
  #panel {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
  }
  #panel.open { opacity: 1; pointer-events: all; }

  #panel-backdrop {
    flex: 1;
    background: rgba(10,10,10,0.4);
    cursor: pointer;
  }

  #panel-content {
    width: 460px;
    max-width: 92vw;
    background: var(--white);
    padding: 60px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transform: translateX(40px);
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
  }
  #panel.open #panel-content { transform: translateX(0); }

  #panel-close {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 12px;
    font-weight: 300;
    color: var(--grey);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
    transition: color 0.15s;
  }
  #panel-close:hover { color: var(--black); }

  #panel-heading {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  #panel-body {
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
  }

  .panel-rule { border: none; border-top: 1px solid #d8d5d0; }

  /* ── ADD TO CART BUTTON ── */
  #overlay-atc {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
  }
  #overlay-atc:hover { background: var(--red); }

  /* ── CART PANEL ── */
  #cart-panel {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
  }
  #cart-panel.open { opacity: 1; pointer-events: all; }

  #cart-backdrop {
    flex: 1;
    background: rgba(10,10,10,0.4);
    cursor: pointer;
  }

  #cart-content {
    width: 400px;
    max-width: 94vw;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(40px);
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  }
  #cart-panel.open #cart-content { transform: translateX(0); }

  #cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #d8d5d0;
    flex-shrink: 0;
  }

  #cart-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  #cart-close {
    font-size: 12px;
    font-weight: 300;
    color: var(--grey);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
  }
  #cart-close:hover { color: var(--black); }

  #cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid #eee;
  }

  .cart-item-swatch {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .cart-item-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    mix-blend-mode: multiply;
  }

  .cart-item-info { display: flex; flex-direction: column; gap: 3px; }

  .cart-item-name {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .cart-item-artist {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--grey);
  }

  .cart-item-price {
    font-size: 11px;
    font-weight: 400;
    color: var(--black);
    margin-top: 4px;
  }

  .cart-item-remove {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--light-grey);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    align-self: start;
    transition: color 0.15s;
  }
  .cart-item-remove:hover { color: var(--red); }

  #cart-empty {
    padding: 60px 22px;
    font-size: 11px;
    font-family: var(--mono);
    color: var(--light-grey);
    letter-spacing: 0.06em;
    text-align: center;
  }

  #cart-footer {
    border-top: 1px solid #d8d5d0;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
  }

  #cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  #cart-total-label {
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
  }

  #cart-total-amount {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  #cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: var(--black);
    color: var(--white);
    border: none;
    text-decoration: none;
    text-align: center;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
  }
  #cart-checkout-btn:hover { background: var(--red); color: var(--white); }
  #cart-checkout-btn.is-disabled { opacity: 0.3; cursor: default; pointer-events: none; background: var(--black); }

  /* cart: shopping-bag icon + count badge, beside the store link.
     The bag is drawn by the BUTTON's own ::before, so it always shows even if
     WooCommerce's cart-fragment script swaps the button's inner HTML. */
  #cart-count, .nav-cart-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    color: var(--red);
    margin-left: 2px;
    cursor: pointer;
    line-height: 0;
    transition: color 0.15s, transform 0.15s;
  }
  #cart-count::before, .nav-cart-count::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background-color: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8h12l-1 12.5a1 1 0 0 1-1 .9H8a1 1 0 0 1-1-.9L6 8z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 8h12l-1 12.5a1 1 0 0 1-1 .9H8a1 1 0 0 1-1-.9L6 8z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* hide any legacy inline icon span (now drawn via ::before) */
  .nav-cart-count .cart-bag-icon { display: none; }
  #cart-count:hover::before, .nav-cart-count:hover::before { background-color: var(--red-hover); }
  .nav-cart-count .cart-count-num {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    border: 1.5px solid var(--white);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1;
  }
  #cart-count:hover, .nav-cart-count:hover { color: var(--red-hover); transform: scale(1.08); }
  /* pop animation when count changes */
  #cart-count.bump, .nav-cart-count.bump { animation: nv-bump 0.4s ease; }
  @keyframes nv-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }

  /* ── CHECKOUT OVERLAY ── */
  #checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--white);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto;
  }
  #checkout-overlay.open { opacity: 1; pointer-events: all; }

  #checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #d8d5d0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
    flex-shrink: 0;
  }

  #checkout-logo { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--red); }

  #checkout-back {
    font-size: 12px; font-weight: 300; color: var(--grey);
    cursor: pointer; background: none; border: none; font-family: var(--font);
  }
  #checkout-back:hover { color: var(--black); }

  #checkout-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: calc(100vh - 48px);
  }

  #checkout-form-col {
    padding: 48px 40px;
    border-right: 1px solid #d8d5d0;
  }

  #checkout-summary-col {
    padding: 48px 36px;
    background: #f0ede8;
  }

  .checkout-section-title {
    font-size: 10px;
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8d5d0;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-row.full { grid-template-columns: 1fr; }

  .form-group { display: flex; flex-direction: column; gap: 6px; }

  .form-label {
    font-size: 9px;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
  }

  .form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8d5d0;
    padding: 8px 0;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 300;
    color: var(--black);
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
    border-radius: 0;
  }
  .form-input:focus { border-bottom-color: var(--black); }
  .form-input::placeholder { color: var(--light-grey); }

  .checkout-section { margin-bottom: 40px; }

  /* QRIS block */
  #qris-block {
    border: 1px solid #d8d5d0;
    padding: 28px;
    text-align: center;
    margin-top: 20px;
  }

  #qris-placeholder {
    width: 180px;
    height: 180px;
    background: #eee;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: var(--mono);
    color: var(--grey);
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
  }

  /* QR grid pattern */
  #qris-placeholder::before {
    content: '';
    position: absolute;
    inset: 12px;
    background-image:
      repeating-linear-gradient(0deg, #ccc 0, #ccc 1px, transparent 1px, transparent 8px),
      repeating-linear-gradient(90deg, #ccc 0, #ccc 1px, transparent 1px, transparent 8px);
    opacity: 0.5;
  }

  #qris-amount {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }

  #qris-note {
    font-size: 10px;
    font-family: var(--mono);
    color: var(--grey);
    letter-spacing: 0.04em;
    line-height: 1.6;
  }

  #place-order-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 0;
    cursor: pointer;
    margin-top: 28px;
    transition: background 0.2s;
  }
  #place-order-btn:hover { background: var(--red); }

  /* order summary in checkout */
  .co-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #d8d5d0;
    gap: 12px;
  }
  .co-item-name { font-size: 12px; font-weight: 300; flex: 1; line-height: 1.4; }
  .co-item-price { font-size: 12px; font-weight: 400; white-space: nowrap; }

  .co-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--black);
  }

  .co-total-label { font-size: 10px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
  .co-total-amount { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }

  /* order confirmed */
  #order-confirmed {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px;
  }
  #order-confirmed.show { display: flex; }
  #order-confirmed .conf-logo { font-size: 13px; font-weight: 500; color: var(--red); }
  #order-confirmed .conf-title { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }
  #order-confirmed .conf-sub { font-size: 12px; font-weight: 300; color: var(--grey); line-height: 1.7; max-width: 360px; }
  #order-confirmed .conf-id { font-size: 10px; font-family: var(--mono); color: var(--grey); letter-spacing: 0.1em; }
  #order-confirmed .conf-back {
    font-size: 12px; font-weight: 300; color: var(--grey);
    cursor: pointer; background: none; border: none; font-family: var(--font);
    margin-top: 12px; letter-spacing: 0.04em; text-transform: uppercase;
    transition: color 0.15s;
  }
  #order-confirmed .conf-back:hover { color: var(--black); }

  @media (max-width: 760px) {
    #checkout-body { grid-template-columns: 1fr; }
    #checkout-summary-col { border-top: 1px solid #d8d5d0; }
    #checkout-form-col { padding: 32px 20px; }
    #checkout-summary-col { padding: 32px 20px; }
  }

  .artist-roster-intro {
    font-size: 11.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 8px;
  }

  .artist-list { display: flex; flex-direction: column; }

  .artist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .artist-item:hover { opacity: 0.65; }
  .artist-item:last-child { border-bottom: none; }

  .artist-row-swatch {
    width: 40px; height: 40px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  .artist-row-swatch::after {
    content:''; position:absolute; inset:0; opacity:0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 90px 90px; mix-blend-mode: multiply;
  }
  .artist-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .artist-name { font-size: 13px; font-weight: 400; letter-spacing: -0.01em; }
  .artist-role { font-size: 10px; font-family: var(--mono); color: var(--grey); letter-spacing: 0.02em; }
  .artist-count {
    font-size: 10px; font-family: var(--mono); color: var(--light-grey);
    flex-shrink: 0;
  }

  /* ── ARTIST PROFILE ── */
  .artist-portrait {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    margin-bottom: 4px;
  }
  .artist-portrait::after {
    content:''; position:absolute; inset:0; opacity:0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px; mix-blend-mode: multiply;
  }
  .artist-profile-role {
    font-size: 10px; font-family: var(--mono); color: var(--grey);
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 18px;
  }
  .artist-about-block {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px 0;
    border-top: 1px solid #e0ddd7;
    border-bottom: 1px solid #e0ddd7;
    margin-bottom: 18px;
  }
  .artist-about-label {
    font-size: 9px; font-family: var(--mono); letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--light-grey);
  }
  .artist-profile-bio {
    font-size: 13px; font-weight: 300; line-height: 1.8; color: #3a3a3a;
    margin: 0;
  }
  .artist-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
  .artist-link {
    font-size: 11px; font-family: var(--mono); color: var(--red);
    text-decoration: none; letter-spacing: 0.02em; transition: color 0.15s;
  }
  .artist-link:hover { color: var(--red-hover); }

  .artist-recent { display: flex; flex-direction: column; gap: 8px; }
  .artist-recent-label {
    font-size: 9px; font-family: var(--mono); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--light-grey);
  }
  .artist-work-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .artist-work-thumb { aspect-ratio: 1; position: relative; overflow: hidden; }
  .artist-work-thumb::after {
    content:''; position:absolute; inset:0; opacity:0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 80px 80px; mix-blend-mode: multiply;
  }

  .artist-profile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .artist-action-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 13px 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
  }
  .artist-action-btn:hover { background: var(--red); }

  .artist-back {
    font-size: 11px; font-family: var(--mono); color: var(--grey);
    background: none; border: none; cursor: pointer; padding: 0;
    letter-spacing: 0.04em; transition: color 0.15s; align-self: flex-start;
  }
  .artist-back:hover { color: var(--black); }

  /* LOADING */
  #load-sentinel { height: 1px; }
  #loading-indicator {
    text-align: center;
    padding: 40px;
    font-size: 10px;
    font-family: var(--mono);
    color: var(--light-grey);
    letter-spacing: 0.1em;
  }

  #empty {
    display: none;
    padding: 120px 18px;
    font-size: 12px;
    font-weight: 300;
    color: var(--light-grey);
    font-family: var(--mono);
    letter-spacing: 0.06em;
  }

  /* RESPONSIVE */
  @media (max-width: 1100px) {
    #store-grid { grid-template-columns: repeat(3, 1fr); }
    #pv-body { grid-template-columns: 1fr 380px; }
  }
  @media (max-width: 760px) {
    #store-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    #pv-body { grid-template-columns: 1fr; }
    #pv-media { min-height: 56vh; }
    #pv-info { border-left: none; border-top: 1px solid #d8d5d0; padding: 32px 20px; }
    #overlay-body { grid-template-columns: 1fr; grid-template-rows: 52vh 1fr; }
    #overlay-media { overflow: hidden; }
    #overlay-info { border-left: none; border-top: 1px solid #d8d5d0; }
    #panel-content { padding: 48px 24px; }
    #nav { padding: 10px 14px; gap: 10px; }
    .nav-link, .filter-link { font-size: 11px; }
    #logo { width: 38px; height: 38px; }
    #filter-bar { max-width: 200px; gap: 2px 12px; }
    #archive-controls { gap: 0 14px; }
    #nav-right { gap: 12px; }
    #search-input { width: 64px; }
    #search-input:focus { width: 120px; }
  }
  @media (max-width: 480px) {
    #store-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  }


/* ============================================================
   CART DRAWER ITEMS (custom .nv-cart markup — full control)
   ============================================================ */
#cart-items { }
.nv-cart-list { list-style: none; margin: 0; padding: 0; }
.nv-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 44px 16px 22px;
  border-bottom: 1px solid #e6e3de;
  position: relative;
}
.nv-cart-thumb { flex: 0 0 60px; width: 60px; height: 60px; background: #ece9e4; overflow: hidden; }
.nv-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.nv-cart-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nv-cart-name {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
a.nv-cart-name:hover { color: var(--red); }
.nv-cart-qty {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--grey);
  letter-spacing: 0.04em;
}
.nv-cart-remove {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 16px;
  color: var(--light-grey);
  text-decoration: none;
  transition: color 0.15s;
}
.nv-cart-remove:hover { color: var(--red); }
.nv-cart-empty {
  padding: 60px 22px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--light-grey);
  letter-spacing: 0.06em;
  text-align: center;
}

/* store pagination */
#store-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
#store-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}
#store-pagination .page-numbers li a,
#store-pagination .page-numbers li span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid #d8d5d0;
  color: var(--grey);
  text-decoration: none;
  transition: all 0.15s;
}
#store-pagination .page-numbers li span.current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
#store-pagination .page-numbers li a:hover { border-color: var(--black); color: var(--black); }

/* single-product WooCommerce ATC form styling to match prototype */
#pv-info form.cart {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#pv-info form.cart .variations {
  width: 100%;
  border-collapse: collapse;
}
#pv-info form.cart .variations td,
#pv-info form.cart .variations th {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 0 8px;
}
#pv-info form.cart .variations th label {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
}
#pv-info form.cart select {
  width: 100%;
  background: transparent;
  border: 1px solid #d8d5d0;
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--black);
  border-radius: 0;
  -webkit-appearance: none;
  margin-top: 4px;
}
#pv-info form.cart .quantity input {
  width: 64px;
  background: transparent;
  border: 1px solid #d8d5d0;
  padding: 10px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 0;
}
#pv-info form.cart button.single_add_to_cart_button {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
#pv-info form.cart button.single_add_to_cart_button:hover { background: var(--red); }

/* WooCommerce notices on-brand */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: var(--mono);
  font-size: 11px;
  border-left: 2px solid var(--red);
  background: #f0ede8;
  padding: 12px 16px;
  list-style: none;
}

/* ============================================================
   THE NINETWLVE FUND — donation page with interactive bar
   ============================================================ */
#fund {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 120px;
}

#fund-hero { margin-bottom: 56px; }
.fund-kicker {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
#fund-title {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
#fund-cause {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
  max-width: 560px;
}

/* PROGRESS */
#fund-progress-wrap { margin-bottom: 56px; }
#fund-figures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.fund-fig { display: flex; flex-direction: column; gap: 4px; }
.fund-fig-right { text-align: right; }
.fund-fig-num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fund-fig-right .fund-fig-num { color: var(--grey); font-weight: 400; }
.fund-fig-label {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
}

#fund-bar-track {
  position: relative;
  width: 100%;
  height: 44px;
  background: #e8e6e2;
  overflow: hidden;
  border: 1px solid #d8d5d0;
}
#fund-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--red);
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
/* grain on the fill */
#fund-bar-grain {
  position: absolute; inset: 0;
  opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* preview overlay (lighter, shows projected new total) */
#fund-bar-preview {
  position: absolute;
  top: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(217,79,61,0.45) 0 8px, rgba(217,79,61,0.25) 8px 16px);
  width: 0%;
  transition: left 0.25s, width 0.25s;
  pointer-events: none;
}
#fund-bar-marker {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
#fund-bar-pct {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  padding: 2px 7px;
  white-space: nowrap;
  transform: translateX(8px);
}

#fund-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--grey);
}

/* TIERS */
#fund-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.fund-tier {
  text-align: left;
  background: transparent;
  border: 1px solid #d8d5d0;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font);
}
.fund-tier:hover { border-color: var(--black); }
.fund-tier.selected { border-color: var(--red); background: rgba(217,79,61,0.04); }
.fund-tier-amount {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fund-tier-label {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.fund-tier-note {
  font-size: 11.5px;
  font-weight: 300;
  color: #555;
  line-height: 1.5;
}
.fund-tier-custom { cursor: default; }
.fund-custom-input {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid #d8d5d0;
  padding: 6px 0;
}
.fund-custom-input span { font-size: 14px; color: var(--grey); font-family: var(--mono); }
.fund-custom-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  outline: none;
  -webkit-appearance: none;
}

/* CTA */
#fund-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid #d8d5d0;
  border-bottom: 1px solid #d8d5d0;
  margin-bottom: 40px;
}
#fund-selected { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fund-selected-label {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
}
#fund-selected-amount {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
#fund-contribute {
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
#fund-contribute:hover { background: var(--red); }
#fund-preview-note {
  flex-basis: 100%;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--light-grey);
  letter-spacing: 0.04em;
}

/* IMPACT SLIDER */
#fund-impact { margin-bottom: 48px; }
.fund-impact-label {
  font-size: 9px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-grey);
  display: block;
  margin-bottom: 14px;
}
#fund-impact-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #d8d5d0;
  outline: none;
  margin-bottom: 12px;
}
#fund-impact-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--red);
  cursor: pointer;
  border-radius: 0;
}
#fund-impact-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--red);
  cursor: pointer;
  border: none;
  border-radius: 0;
}
#fund-impact-text {
  font-size: 11.5px;
  font-weight: 300;
  color: #555;
  line-height: 1.6;
}
#fund-impact-text strong { color: var(--red); font-weight: 500; }

#fund-body {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
}

@media (max-width: 600px) {
  #fund-title { font-size: 30px; }
  #fund-tiers { grid-template-columns: 1fr; }
  #fund-cta { flex-direction: column; align-items: stretch; }
  #fund-contribute { text-align: center; }
}

/* ============================================================
   ADD-TO-CART TOAST
   ============================================================ */
#nv-toast {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 18px;
  left: auto;
  bottom: auto;
  transform: translateX(20px);
  z-index: 200;
  background: #1a1a1a;
  color: #f4f3f0;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
#nv-toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
#nv-toast .nv-toast-msg { line-height: 1.4; }
#nv-toast .nv-toast-msg strong { color: #fff; font-weight: 500; }
#nv-toast button {
  background: #D94F3D;
  color: #fff;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
#nv-toast button:hover { background: #c0432f; }

@media (max-width: 560px) {
  #nv-toast { left: 16px; right: 16px; max-width: none; transform: translateY(-20px); }
  #nv-toast.show { transform: translateY(0); }
}
