/* Cinedesign V3 - Cinematic Industrial Theme */

:root {
    --cine-black: #000000;
    --cine-dark-grey: #111111;
    --cine-yellow: #F76C04;
    --cine-orange: #F76C04;
    --cine-text-main: #FFFFFF;
    --cine-text-muted: #CCCCCC;
    --cine-border: #333333;
}

/* --- Fonts --- */
/* PP Nikkei Journal - Ultrabold Italic for headers */
@font-face {
    font-family: 'PPNikkeiJournal';
    src: url('../fonts/journal/PPNikkeiJournal-UltraboldItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'PPNikkeiMaru-Regular';
    src: url('../fonts/PPNikkeiMaru-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Display/title font (2026 redesign) */
@font-face {
    font-family: 'CineTitle';
    src: url('../fonts/title-font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--cine-black);
    color: var(--cine-text-main);
    margin: 0;
    font-family: 'PPNikkeiMaru-Regular', sans-serif;
    position: relative;
}

/* Fixed Top Orange Bar */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--cine-orange);
    z-index: 9999;
}

/* --- Typography --- */
h1, h2, h3, .cine-header {
    font-family: 'CineTitle', 'PPNikkeiJournal', sans-serif;
    margin: 0;
    line-height: 0.9em;
}

/* --- Global Reset & Utils --- */
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

/* Centered Content Container */
.cine-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px; /* Add padding to prevent edge collision if constrained */
}

/* --- Layout: Split Screen (Product) --- */
.split-layout {
    display: flex;
    max-width: 1200px;
    margin: 120px auto 0;
    width: 100%;
    position: relative;
    height: auto;
    overflow: visible;
}

.split-left {
    flex: 1; /* 50% width */
    position: relative;
}
.split-left::-webkit-scrollbar { display: none; }

.split-left .image-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.split-left .image-stack img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.split-right {
    flex: 1; /* 50% width */
    position: sticky; /* Keep static while scrolling */
    top: 120px;
    height: fit-content;
    background-color: transparent;
    padding: 0 0 0 60px;
    z-index: 10;
}

.split-right .cine-container {
    max-width: 100%; /* Fill the column width */
    margin-left: 0;
    padding: 0;
}

/* --- Components --- */

/* Tag Holder */
.cine-tag-holder {
    position: relative;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center items */
    margin-bottom: 24px;
}

/* Fitment Icon (Gradient SVG) */
.fitment-icon {
    max-height: 48px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Product Page Title */
.product-title {
    font-size: 9em;
    font-family: 'CineTitle', 'PPNikkeiJournal', sans-serif;
    font-weight: 900;
    line-height: 0.85em;
    margin-bottom: 24px;
    color: #fff;
}

.product-bullets {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-size: 18px; /* Adjustable */
    font-weight: 900;
    font-style: italic;
    line-height: 1.4em;
    padding-left: 20px;
}

/* Full Menu Overlay */
#full-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 8, 0, 0.95); /* Dark semi-transparent as requested */
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#full-menu-overlay.active {
    display: flex;
}
.menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.menu-link {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-size: 80px; /* Large size */
    font-style: italic;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 0.9em;
    transition: color 0.2s ease, transform 0.2s ease;
}
.menu-link:visited {
    color: #fff;
}
.menu-link:hover {
    color: var(--cine-orange);
    transform: scale(1.05);
}
.menu-link.view-all {
    margin-top: 40px;
    color: #666; /* Muted for View All initially */
}
.menu-link.view-all:hover {
    color: #fff;
}

/* Badge: NEW (Stenciled) */
.cine-badge-new {
    color: var(--cine-black);
    background-color: var(--cine-yellow);
    font-family: 'PPNikkeiJournal', sans-serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
    padding: 2px 8px;
    margin-left: auto; /* Push to the right in flex container */
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.price-tag {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    margin-right: auto; /* Pushes buttons to the right if needed, or keep inline */
}
.cine-btn-v3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px; /* Reduced padding */
    border-radius: 999px;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-size: 18px; /* Reduced font size */
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.cine-btn-v3.primary {
    background: linear-gradient(90deg, var(--cine-yellow), var(--cine-orange));
    color: var(--cine-black);
}

.cine-btn-v3.secondary {
    background-color: #333;
    color: #999;
}
.cine-btn-v3.secondary:hover {
    color: #fff;
    background-color: #444;
}

/* Specs Table (Rounded & Bordered) - Smaller version */
.specs-container {
    border: 1px solid var(--cine-border);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-weight: 900;
    font-style: italic;
    margin-top: 24px;
    max-width: 100%; /* Fill available space */
}

.specs-row {
    display: flex;
    border-bottom: 1px solid var(--cine-border);
}
.specs-row:last-child {
    border-bottom: none;
}

.specs-col {
    padding: 10px 16px; /* Reduced padding */
    font-size: 14px;    /* Reduced font size */
    text-transform: uppercase;
}

.specs-label {
    flex: 0 0 40%;
    color: var(--cine-text-muted);
    border-right: 1px solid var(--cine-border);
    font-weight: bold; /* Bold column */
}


/* --- Home / Catalog View --- */
.hero-scroll-container {
    height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    background-color: var(--cine-black);
}
.hero-scroll-container::-webkit-scrollbar { display: none; }

.hero-card {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen per card */
    scroll-snap-align: start;
    overflow: hidden;
    background-color: var(--cine-dark-grey);
}

/* Background Image with Zoom Effect */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease; /* Subtle zoom */
}
.hero-card:hover .hero-bg {
    transform: scale(1.05);
}

/* Dark Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

/* Home-Specific Titles */
.hero-title {
    font-size: 170px; /* Big impact */
    line-height: 0.8em;
    color: #fff;
    max-width: 1000px;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Home Tag positioning */
.hero-tag-pos {
    margin-bottom: 12px;
    width: 300px;
}

/* Home Buttons Row */
.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    opacity: 0; /* Hidden by default or animated in */
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.hero-card:hover .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.cine-nav {
    position: fixed;
    top: 20px; /* Moved up from 30px */
    right: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 500; /* Increased z-index */
    font-family: 'PPNikkeiJournal', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 14px;
    text-transform: uppercase;
    color: #bbb;
}
.cine-nav a:hover {
    color: #fff;
}
.cine-nav .active {
    color: #fff;
}
.nav-hamburger {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* Force Logo White & Sizing */
.logo-holder, .logo-holder .cine, .logo-holder .design {
    color: #FFF !important;
}
.logo-holder {
    background-image: url('/cinedesign.ca/static/imgs/cinedesign-logo-2026.svg');
    width: 115px;       /* 2026 logo aspect ~170x71 */
    display: inline-block;
    height: 48px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    position: fixed;
    top: 18px;
    left: 40px;
    z-index: 500; /* Increased z-index to be on top of everything */
}
/* 2026 logo is a full lockup (text baked into the SVG) — hide the legacy text spans */
.logo-holder .cine, .logo-holder .design { display: none !important; }
/* Center the logo at the top on non-catalog pages (home / showcase) */
.nav-header:not(.catalogv2) .logo-holder {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    background-position: center center;
    z-index: 600;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.75));  /* keep readable on bright photos */
}
.logo-holder .cine {
    position: absolute;
    top: 3px;
    left: 1px;
    font-style: italic;
    font-weight: bold;
    font-size: 25px;
    letter-spacing: -0.01em;
}
.logo-holder .design {
    position: absolute;
    top: 26px;
    right: 8px;
    font-style: italic;
    font-weight: bold;
    font-size: 25px;
    letter-spacing: -0.01em;
}

/* The nav-header was creating a stacking context at z-index:1, trapping the
   fixed logo below the hero panels. Keep it fixed (out of flow) but lift it. */
.nav-header:not(.catalogv2) { position: fixed; z-index: 700; }

/* Home/showcase logo — explicit <img>, centered top (reliable, no bg cascade) */
.site-logo-2026 {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    display: block;
    line-height: 0;
}
.site-logo-2026 img {
    height: 48px;
    width: 115px;   /* explicit — SVG has width="100%" so width:auto collapses to 0 */
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.75));
}

/* --- Home panels (2026 redesign) --- */
/* Full-bleed: override the legacy `.main { max-width:1500px; margin:0 auto }`
   that otherwise centers + clips the panels on wide screens. */
.main-fullbleed {
    max-width: none !important;
    width: 100vw;
    margin: 0 !important;
    overflow-x: hidden;
}
.hero-scroll-container, .hero-card, .home-panel { width: 100vw; max-width: 100vw; }
/* First panel is shorter so ~5% of the next peeks in — a scroll hint */
.home-panel:first-child { height: 95vh; }
.home-panel .hero-bg {
    width: 100vw;
    background-size: cover;
    background-position: center center;
}
/* Video slide background — fills the panel like a cover image */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Per-section media: stacked slides that cross-fade */
.hero-media { position: absolute; inset: 0; }
.hero-slide {
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.home-panel .hero-overlay {
    gap: 8px;
    /* Top vignette (for the centered logo) + two WIDE side gradients (mockup) */
    background:
        linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.0) 16%),
        linear-gradient(90deg,
            rgba(0,0,0,0.95) 0%,
            rgba(0,0,0,0.65) 24%,
            rgba(0,0,0,0.00) 46%,
            rgba(0,0,0,0.00) 54%,
            rgba(0,0,0,0.65) 76%,
            rgba(0,0,0,0.95) 100%);
}
.home-more {
    margin-top: 16px;
    font-size: 14px !important;
    padding: 6px 20px !important;
}

/* Spec badge strip */
.spec-badges {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 28px;
}
.spec-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.spec-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 92px;
}
.spec-badge-icon img { max-height: 92px; width: auto; display: block; }
.spec-badge-icon-text {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 26px;
    color: var(--cine-orange);
    line-height: 1;
}
.spec-badge-title {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.1;
}
.spec-badge-sub {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 14px;            /* same size as the title line */
    text-transform: uppercase;
    color: var(--cine-text-muted);
    line-height: 1.1;
}

/* Pagination dots (fixed, bottom-right) */
.pagination-dots {
    position: fixed;
    right: 40px;
    bottom: 36px;
    display: flex;
    gap: 12px;
    z-index: 500;
}
.page-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--cine-orange);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}
.page-dot.active { background: var(--cine-orange); }

/* --- Category page: product carousel (2026 redesign) --- */
.cat-product {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 45%, #1a1a1a 0%, #0a0a0a 70%, #000 100%);
}
.cat-product-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Centered icon + title block */
.cat-title-block {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 64%;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.cat-fit-icon { height: 60px; width: auto; display: block; }
.cat-product-title {
    text-align: center;
    color: #fff;
    font-size: clamp(64px, 7vw, 200px);
    line-height: 0.82em;
    text-transform: none;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
/* Hover an image: zoom it in and fade the title block out (reverses on hover-out) */
.cat-product-stage:has(.cat-strip-img:hover) .cat-title-block { opacity: 0; }
/* Horizontal strip of the product's images; the next image peeks (~half) */
.cat-img-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4vw;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 24vw;            /* lets the first/last center; neighbors peek */
    scrollbar-width: none;
}
.cat-img-strip::-webkit-scrollbar { display: none; }
.cat-strip-slide {
    flex: 0 0 52vw;            /* slide width — smaller => more of next peeks */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}
.cat-strip-img {
    max-height: 88vh;
    max-width: 65vw;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
    transition: transform 0.45s ease;
    will-change: transform;
    cursor: pointer;
}
.cat-strip-img:hover { transform: scale(1.12); }
.cat-strip-link { display: flex; align-items: center; justify-content: center; }
.cat-more {
    position: absolute;
    left: 50%;
    top: 62%;                 /* just under the centered title */
    transform: translateX(-50%);
    z-index: 4;
    font-size: 14px !important;
    padding: 6px 20px !important;
    transition: opacity 0.35s ease;
}
/* Hide More Info too while hovering an image */
.cat-product:has(.cat-strip-img:hover) .cat-more { opacity: 0; pointer-events: none; }
.cat-badges {
    position: absolute;
    left: 40px;
    bottom: 28px;
    z-index: 4;
}
.cat-badges .spec-badges { margin-top: 0; }

/* Prev/next IMAGE arrows (thin chevrons, flanking the product image) */
.cat-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    line-height: 0;
    z-index: 510;
    transition: color 0.2s ease, transform 0.2s ease;
}
.cat-arrow:hover { color: var(--cine-orange); transform: translateY(-50%) scale(1.2); }
.cat-arrow svg { width: 30px; height: 30px; display: block; }
.cat-arrow-left { left: 210px; }     /* clear of the nav rail */
.cat-arrow-right { right: 290px; }   /* clear of the sibling peek */

/* Right-side sibling "category menu" peek */
.cat-peek {
    position: fixed;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    text-align: right;
    max-width: 220px;
}
.cat-peek-title {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--cine-orange);
    margin-bottom: 4px;
}
.cat-peek-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.cat-peek-item:hover { opacity: 0.85; }
.cat-peek-item.active { opacity: 1; }
.cat-peek-name {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.cat-peek-thumb {
    width: 40px; height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    background: #222 center/cover no-repeat;
    border: 1px solid #333;
}
.cat-peek-item.active .cat-peek-thumb { border-color: var(--cine-orange); }

/* Product page: icons-only menu, dim → brighter on box hover → full on item hover */
.cat-peek.icons-only .cat-peek-title { display: none; }
.cat-peek.icons-only .cat-peek-item { opacity: 0.6; transition: opacity 0.25s ease; position: relative; }
/* product name revealed to the left of the icon on hover (absolute = no layout shift) */
.cat-peek.icons-only .cat-peek-name {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(0,0,0,0.65);
    padding: 4px 9px;
    border-radius: 5px;
    transition: opacity 0.2s ease;
}
.cat-peek.icons-only:hover .cat-peek-name { opacity: 0.5; }   /* all names show dimmed when approaching the box */
.cat-peek.icons-only .cat-peek-item:hover .cat-peek-name { opacity: 1; }   /* full on the hovered one */
.cat-peek.icons-only:hover .cat-peek-item { opacity: 0.55; }
.cat-peek.icons-only .cat-peek-item.active { opacity: 1; }
.cat-peek.icons-only .cat-peek-item:hover { opacity: 1 !important; }
/* make the icon tiles clearly visible (dark renders on near-black were invisible) */
.cat-peek.icons-only .cat-peek-thumb {
    width: 50px; height: 50px; flex-basis: 50px;
    background-color: #333;
    background-size: contain;
    border: 1px solid #666;
}

@media (max-width: 900px) {
    .cat-peek { display: none; }
    .cat-badges { left: 24px; }
}

/* --- Admin: product image manager (2026) --- */
.img-manager { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.img-tile {
    position: relative;
    width: 140px;
    height: 140px;
    border: 1px solid var(--cine-border);
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}
.img-tile.is-main { border-color: var(--cine-orange); }
.img-tile-pic { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; }
.img-tile-badge {
    position: absolute; top: 6px; left: 6px;
    background: var(--cine-orange); color: #000;
    font-family: 'PPNikkeiJournal', sans-serif; font-style: italic; font-weight: 900;
    font-size: 10px; padding: 2px 6px; border-radius: 4px; z-index: 2;
}
.img-tile-actions {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; gap: 4px; padding: 6px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
    opacity: 0; transition: opacity 0.15s ease;
}
.img-tile:hover .img-tile-actions { opacity: 1; }
.img-tile-actions .cine-btn { font-size: 10px; padding: 3px 7px; cursor: pointer; background: #222; color: #fff; border-radius: 4px; }
.img-tile-actions .cine-btn.red { background: #7a1f1f; }
.img-upload { display: flex; align-items: center; justify-content: center; border-style: dashed; cursor: pointer; }
.img-upload:hover { border-color: var(--cine-orange); }
.img-upload-label { cursor: pointer; color: #999; text-align: center; font-family: 'PPNikkeiJournal', sans-serif; font-style: italic; font-weight: 900; }
.img-empty { display: flex; align-items: center; justify-content: center; color: #666; }
.img-tools { margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; }

/* --- Product page (2026 redesign) --- */
.prod-v4 {
    display: flex;
    gap: 10px;
    height: 100vh;                    /* fixed to viewport so only the images scroll */
    align-items: stretch;
    overflow: hidden;
    padding: 120px 180px 0 160px;  /* top clears logo, left near nav rail, right clears (now narrow) icon peek; no bottom gap */
    background: radial-gradient(120% 90% at 50% 45%, #1a1a1a 0%, #0a0a0a 70%, #000 100%);
}
.prod-left {
    flex: 1.9;
    min-width: 0;
    height: 100%;
    overflow-y: auto;                 /* the image stack scrolls inside this column */
    overflow-x: hidden;
}
.prod-left::-webkit-scrollbar { display: none; }
.prod-left .image-stack { display: flex; flex-direction: column; gap: 0; }
/* overlap the renders' transparent padding so they sit closer together */
.prod-left .image-stack img { margin-bottom: -48px; }
.prod-left .image-stack img:last-child { margin-bottom: 0; }
.prod-left .image-stack img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.prod-right {
    flex: 1.35;
    min-width: 0;
    align-self: flex-start;   /* stays put while the image column scrolls */
    margin-left: -30px;       /* pull info slightly into the image's transparent right padding */
    margin-top: 44px;         /* lower the info a bit so the logo has room to breathe */
    z-index: 5;
}
.prod-tag {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}
.prod-tag-icon svg { width: 22px; height: 22px; color: #fff; display: block; }
.prod-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.prod-right .product-title { font-size: clamp(44px, 5vw, 110px); overflow-wrap: normal; word-break: normal; }
.prod-title-block .cat-fit-icon { height: 38px; }   /* smaller fitment tag above the product title */
/* smaller spec badges on the product page */
.prod-right .spec-badges { gap: 22px; }
.prod-right .spec-badge-icon { min-width: 52px; height: 52px; }
.prod-right .spec-badge-icon img { max-height: 52px; }
.prod-right .spec-badges { justify-content: flex-start; margin-top: 0; }

.prod-tabs {
    display: flex;
    gap: 26px;
    margin: 30px 0 18px;
    border-bottom: 1px solid var(--cine-border);
}
.prod-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    color: #888;
    padding: 0 0 10px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}
.prod-tab:hover { color: #fff; }
.prod-tab.active { color: var(--cine-orange); border-bottom-color: var(--cine-orange); }
.prod-tab-panel { display: none; max-width: 600px; }
.prod-tab-panel.active { display: block; }
.prod-kf-title {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}
.prod-kf { padding-left: 18px; line-height: 1.5; margin: 0 0 16px; }
.prod-kf li { margin-bottom: 6px; }
.prod-desc { color: var(--cine-text-muted); line-height: 1.6; }
.prod-downloads { display: flex; flex-direction: column; gap: 10px; }
.prod-dl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--cine-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.prod-dl:hover { border-color: var(--cine-orange); background: #161616; }
.prod-dl-type {
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 12px;
    color: var(--cine-orange);
    background: #1a1a1a;
    padding: 3px 8px;
    border-radius: 5px;
}
.prod-dl-label { font-size: 14px; color: #fff; }

@media (max-width: 900px) {
    .prod-v4 { flex-direction: column; padding: 100px 24px 60px; height: auto; overflow: visible; }
    .prod-left { height: auto; overflow: visible; }
    .prod-right { position: static; margin-left: 0; }
}

/* --- Global Left Nav Rail (2026 redesign) --- */
.nav-rail {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 500;
}
.nav-rail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cfcfcf;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: color 0.15s ease;
}
.nav-rail-item:hover { color: #fff; }
.nav-rail-item.active { color: var(--cine-orange); }
/* keep visited links the right color (override legacy magicstyle a:visited) */
.nav-rail-item:visited, .nav-rail-item.parent:visited, .nav-rail-item.child:visited { color: #cfcfcf; }
.nav-rail-item.active:visited { color: var(--cine-orange); }
.nav-rail-item:hover:visited { color: #fff; }
.nav-rail-item.active .nav-rail-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nav-rail-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.nav-rail-icon svg { width: 100%; height: 100%; display: block; }
.nav-rail-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-rail-label {
    white-space: nowrap;
    opacity: 0.45;                /* dim the text... */
    transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-rail-icon { opacity: 1; }    /* ...but keep the icon full strength */
.nav-rail-item:hover .nav-rail-label { opacity: 1; color: #fff; }
.nav-rail-item.active .nav-rail-label { opacity: 1; }

/* Hierarchy: categories are children of the "Accessories" parent (pushed right) */
.nav-rail-group { display: flex; flex-direction: column; gap: 0; }
.nav-rail-item.parent { cursor: pointer; }
.nav-rail-caret {
    margin-left: 6px;
    font-size: 11px;
    line-height: 1;
    display: inline-block;
    color: var(--cine-orange);
    transition: transform 0.2s ease;
}
.nav-rail-group.open .nav-rail-caret,
.nav-rail-group:hover .nav-rail-caret { transform: rotate(90deg); }

/* Collapsible children — hidden until the group is .open */
.nav-rail-children {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 28px;   /* indent sub-categories */
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
}
.nav-rail-group.open .nav-rail-children,
.nav-rail-group:hover .nav-rail-children {
    max-height: 640px;
    margin-top: 14px;
    opacity: 1;
    pointer-events: auto;
}
.nav-rail-item.child { font-size: 14px; }
.nav-rail-item.child .nav-rail-icon { width: 22px; height: 22px; flex-basis: 22px; }

/* Mobile: rail is replaced by a different pattern in the responsive pass */
@media (max-width: 768px) {
    .nav-rail { display: none; }
}

/* Specific Logo Overrides for header-login context */
.nav-header.catalogv2 .logo-holder span.cine {
    letter-spacing: 0.1em !important;
    font-size: 15px !important;
    left: -5px !important;
    top: 15px !important;
}

.nav-header.catalogv2 .logo-holder span.design {
    letter-spacing: 0.1em !important;
    font-size: 15px !important;
    right: -1px !important;
    top: 28px !important;
}

/* ============================================================
   All-products grid page (/products) — 2026
   Category-grouped grid of product cards (see products.html /
   all-card.html). Mirrors the nav-rail + centered-logo layout.
   ============================================================ */
.all-page { padding: 132px 48px 90px; }
.all-wrap { max-width: 1120px; margin: 0 auto; }

.all-cat { margin: 0 0 72px; }
.all-cat-title {
    text-align: center;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 56px;
    line-height: 1;
    color: #e9e9e9;
    margin: 28px 0 44px;
}

.all-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 32px;
}

.all-card-link { display: block; text-decoration: none; }
.all-card {
    position: relative;
    background: #1c1c1c;
    border-radius: 22px;
    aspect-ratio: 1 / 0.82;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.all-card-link:hover .all-card {
    transform: translateY(-4px);
    background: #232323;
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.all-card-img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    display: block;
}
.all-fit-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    height: 40px;
    width: auto;
    z-index: 2;
}
.all-card-name {
    text-align: center;
    font-family: 'PPNikkeiJournal', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 21px;
    color: #cfcfcf;
    margin: 16px 0 0;
    transition: color .18s ease;
}
.all-card-link:hover .all-card-name { color: #fff; }

@media (max-width: 1000px) {
    .all-page { padding: 116px 24px 64px; }
    .all-grid { grid-template-columns: repeat(2, 1fr); }
    .all-cat-title { font-size: 42px; }
}
@media (max-width: 620px) {
    .all-grid { grid-template-columns: 1fr; }
}
