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

:root {
    --primary-dark: #FAF5EA;
    --secondary-dark: #FFFFFF;
    --panel-dark: #FFFCF6;
    --accent-blue: #D91B34;
    --accent-purple: #8C1029;
    --accent-teal: #B3122C;
    --text-primary: #241512;
    --text-secondary: #5B5049;
    --text-tertiary: #756A61;
    --border-color: rgba(36, 21, 18, 0.12);
    --success: #0F7A50;
    --warning: #A15D00;
    --error: #C2410C;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --navy-deep: #170609;
    --navy: #2A0C11;
    --gold: #D91B34;
    --gold-bright: #B3122C;
    --gold-deep: #8C1029;
    --glass-panel: rgba(255, 255, 255, 0.6);
    --text-on-dark: #F6EFE2;
    --text-on-dark-secondary: #D8CCC0;
}

html { font-size: 17px; }

#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#bg3d {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, #FFFDF7 0%, #FAF5EA 60%, #F3EADA 100%);
    overflow: hidden;
}

#bg3d canvas { display: block; }

header, main, footer {
    position: relative;
    z-index: 1;
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER & NAVIGATION */
header {
    background: rgba(255, 253, 247, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(217, 27, 52, 0.28);
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

.logo-text p {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 1px;
}

.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-center a:hover {
    color: var(--accent-blue);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    width: 250px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(217, 27, 52, 0.14);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-blue);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================================
   RUBY MASCOT + SIGN IN / SIGN UP
   ============================================================ */
.ruby-mascot-outer {
    animation: rubyBob 3.4s ease-in-out infinite;
}
@keyframes rubyBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.ruby-wing {
    transform-box: fill-box;
    transform-origin: 78% 32%;
    animation: rubyWave 6s ease-in-out infinite;
}
@keyframes rubyWave {
    0%, 68% { transform: rotate(0deg); }
    73% { transform: rotate(-24deg); }
    78% { transform: rotate(10deg); }
    83% { transform: rotate(-18deg); }
    88% { transform: rotate(6deg); }
    94%, 100% { transform: rotate(0deg); }
}

.ruby-header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.ruby-header-btn:hover {
    box-shadow: 0 4px 14px rgba(217, 27, 52, 0.28);
    transform: translateY(-2px);
    background: var(--panel-dark);
}
.ruby-header-tooltip {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--navy-deep);
    border: 1px solid rgba(246, 239, 226, 0.18);
    color: var(--text-on-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}
.ruby-header-btn:hover .ruby-header-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.user-greeting {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.user-greeting.show { display: flex; }
.user-greeting strong { color: var(--text-primary); }
.user-greeting .logout-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.15rem;
}

/* AUTH MODAL */
.auth-modal-content { max-width: 440px; }
.ruby-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
}
.speech-bubble {
    position: relative;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
    max-width: 300px;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--secondary-dark) transparent transparent transparent;
}
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--panel-dark);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.5rem;
}
.auth-tab {
    border: none;
    background: transparent;
    padding: 0.6rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab.active {
    background: var(--panel-dark);
    color: var(--gold-bright);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn 0.25s ease; }
.auth-fineprint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.9rem;
}
.auth-fineprint a { color: var(--accent-blue); text-decoration: none; }
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0.75rem 0 0.2rem;
}
.auth-terms input { margin-top: 3px; width: auto; }
.auth-success { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.auth-success.show { display: block; animation: fadeIn 0.3s ease; }
.auth-success h3 { font-family: var(--font-display); margin-bottom: 0.4rem; }
.auth-success p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem; }
.auth-full-page-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    text-decoration: none;
}
.auth-full-page-link:hover { color: var(--accent-blue); }

/* MAIN CONTENT */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.hero h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 1px 2px rgba(36, 21, 18, 0.08));
    background: linear-gradient(90deg, var(--text-primary), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--primary-dark);
}

.store-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.toolbar-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-search-wrap {
    position: relative;
    flex: 1;
    max-width: 440px;
    min-width: 240px;
}

.toolbar-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.toolbar-search {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.7rem;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.toolbar-search:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(217, 27, 52, 0.12);
}

.toolbar-sort {
    padding: 0.8rem 1.1rem;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-sort:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.no-results {
    text-align: center;
    color: var(--text-tertiary);
    padding: 3rem 1rem;
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

/* ============================================================
   CATALOG WINDOW — scrollable "sub-window" housing the grid
   ============================================================ */
.catalog-window {
    position: relative;
    border: 1px solid rgba(217, 27, 52, 0.32);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 244, 232, 0.92));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px rgba(217, 27, 52, 0.06), 0 20px 50px rgba(36, 21, 18, 0.1), 0 0 40px rgba(217, 27, 52, 0.04);
    overflow: hidden;
    margin-top: 0.5rem;
}

.catalog-window-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid rgba(217, 27, 52, 0.2);
    background: rgba(217, 27, 52, 0.045);
}

.catalog-window-dots { display: flex; gap: 6px; flex-shrink: 0; }
.catalog-window-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: 0.85; }
.catalog-window-dots span:nth-child(1) { background: #f0546a; }
.catalog-window-dots span:nth-child(2) { background: #f5b942; }
.catalog-window-dots span:nth-child(3) { background: #34d399; }

.catalog-window-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--gold-bright);
}

.catalog-window-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.catalog-window-body {
    max-height: 78vh;
    overflow-y: auto;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(36, 21, 18, 0.06);
}

.catalog-window-body::-webkit-scrollbar { width: 11px; }
.catalog-window-body::-webkit-scrollbar-track { background: rgba(36, 21, 18, 0.04); }
.catalog-window-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    border-radius: 6px;
    border: 2px solid rgba(255, 253, 247, 0.9);
    background-clip: padding-box;
}

@media (max-width: 720px) {
    .catalog-window-body { max-height: 70vh; padding: 1.25rem; }
    .catalog-window-bar { padding: 0.75rem 1rem; }
}

/* PRODUCT GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease;
}

.product-card {
    background: linear-gradient(180deg, var(--panel-dark), var(--secondary-dark));
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 45px rgba(10, 3, 5, 0.09);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: saturate(1.05) contrast(1.02);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,9,13,0) 45%, rgba(30,9,13,0.85) 100%);
    pointer-events: none;
}

.product-image-label {
    position: relative;
    z-index: 2;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-image-label .p-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

.product-image-label .p-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-on-dark);
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    letter-spacing: 0.3px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.product-badge.flagship {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: var(--primary-dark);
}

.product-badge.pinned {
    background: linear-gradient(135deg, #A6182E, #6e1220);
    color: #ffffff;
}

.product-badge.new {
    background: linear-gradient(135deg, #34d399, #0f9b6e);
    color: #05170f;
}

.preview-hint {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(21, 6, 9, 0.75);
    color: var(--text-on-dark-secondary);
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    z-index: 2;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    color: var(--accent-teal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.product-features li {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(217, 27, 52, 0.3);
}

/* SHOPPING CART PANEL */
.cart-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--secondary-dark);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(10, 3, 5, 0.1);
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--text-primary);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent-teal);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-item-remove {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #dc2626;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    box-shadow: 0 10px 30px rgba(217, 27, 52, 0.32);
    transform: scale(1.02);
}

/* PRODUCT DETAIL CAROUSEL */
.carousel { margin-bottom: 1.5rem; }
#detailImageWrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--primary-dark);
}
#detailImage {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(246, 239, 226, 0.2);
    background: rgba(21, 6, 9, 0.75);
    color: var(--text-on-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.carousel-arrow:hover {
    background: var(--accent-blue);
    color: var(--primary-dark);
    border-color: var(--accent-blue);
}
.carousel-arrow.left { left: 12px; }
.carousel-arrow.right { right: 12px; }
.carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(21, 6, 9, 0.75);
    color: var(--text-on-dark-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}
.carousel-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}
.carousel-dots .dot.active {
    background: var(--accent-teal);
    transform: scale(1.3);
}
.carousel-expand-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(246, 239, 226, 0.2);
    background: rgba(21, 6, 9, 0.75);
    color: var(--text-on-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.carousel-expand-btn:hover {
    background: var(--accent-teal);
    color: var(--primary-dark);
    border-color: var(--accent-teal);
}

/* FULLSCREEN LIGHTBOX */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 3, 4, 0.96);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-overlay.active { display: flex; }
.lightbox-stage {
    position: relative;
    width: min(92vw, 1400px);
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-stage img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
    transform-origin: center center;
}
.lightbox-zoom-controls {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(21, 6, 9, 0.82);
    border: 1px solid rgba(246, 239, 226, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    backdrop-filter: blur(4px);
}
.lightbox-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-on-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.lightbox-zoom-btn:hover { background: var(--accent-teal); color: var(--primary-dark); }
.lightbox-zoom-level {
    min-width: 3.2em;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-on-dark-secondary);
    font-family: var(--font-mono);
}
.lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--panel-dark);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.lightbox-close:hover {
    background: var(--error);
    color: #fff;
    border-color: var(--error);
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(246, 239, 226, 0.2);
    background: rgba(21, 6, 9, 0.75);
    color: var(--text-on-dark);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}
.lightbox-arrow:hover {
    background: var(--accent-teal);
    color: var(--primary-dark);
    border-color: var(--accent-teal);
}
.lightbox-arrow.left { left: -26px; }
.lightbox-arrow.right { right: -26px; }
.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-on-dark-secondary);
    font-size: 0.9rem;
    text-align: center;
}
@media (max-width: 900px) {
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-arrow.left { left: 4px; }
    .lightbox-arrow.right { right: 4px; }
    .lightbox-close { top: 8px; right: 8px; }
}

/* CHECKOUT MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    margin: 0 auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: var(--font-display);
    color: var(--accent-blue);
    font-size: 1.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(217, 27, 52, 0.14);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--primary-dark);
}

.payment-option:hover {
    border-color: var(--accent-blue);
}

.payment-option.selected {
    border-color: var(--accent-blue);
    background: rgba(217, 27, 52, 0.06);
}

.payment-option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-option-label {
    font-weight: 600;
    color: var(--text-primary);
}

.email-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.email-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.email-option label {
    cursor: pointer;
    color: var(--text-secondary);
    flex-grow: 1;
    margin: 0;
}

.order-summary {
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(15, 122, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(15, 122, 80, 0.3);
}

.security-badge svg {
    flex-shrink: 0;
}

/* SOFTWARE LICENSE AGREEMENT MODAL */
.license-sheet {
    background: #fdfcf8;
    color: #1b2333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.license-letterhead {
    background: linear-gradient(135deg, #C81C34, #7A0F22);
    color: #f4f0e4;
    padding: 1.35rem 1.5rem 1.15rem;
    border-bottom: 3px solid var(--accent-blue);
}
.license-brand {
    font-family: var(--font-display);
    letter-spacing: 1.5px; font-size: 0.7rem; text-transform: uppercase;
    color: var(--accent-blue); margin-bottom: 0.4rem;
}
.license-title { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.3px; }
.license-sub { font-size: 0.72rem; color: #c9cfda; margin-top: 0.4rem; }
.license-parties {
    font-size: 0.83rem; background: #f6f4ec; border-bottom: 1px solid #e3ded0;
    border-left: 4px solid var(--accent-blue); padding: 0.85rem 1.5rem; line-height: 1.55;
}
.license-parties b { color: #0b1220; }
.license-products {
    font-size: 0.82rem; padding: 0.75rem 1.5rem; background: #f0f5ff;
    border-bottom: 1px solid #e3ded0; line-height: 1.6;
}
.license-products .lic-prod-row { display: flex; justify-content: space-between; gap: 1rem; }
.license-products .lic-prod-total { font-weight: 700; border-top: 1px dashed #c7cede; margin-top: 0.4rem; padding-top: 0.4rem; }
.license-body {
    max-height: 260px; overflow-y: auto; padding: 1.1rem 1.5rem 0.4rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.license-body h4 {
    font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.4px; color: #0b1220; margin: 0.9rem 0 0.25rem;
    border-bottom: 1px solid #e3ded0; padding-bottom: 0.25rem;
}
.license-body h4:first-child { margin-top: 0; }
.license-body p { font-size: 0.78rem; line-height: 1.55; text-align: justify; margin: 0 0 0.5rem; color: #2a3142; }
.license-esign-note {
    font-family: var(--font-display); font-size: 0.7rem; color: #5b6472;
    background: #f4f6f9; border-top: 1px dashed #d8dde5; padding: 0.75rem 1.5rem; margin: 0;
}
.lic-sig-wrap { margin: 0.4rem 0 0.2rem; }
#licSigPad {
    border: 1.5px solid var(--border-color); border-radius: 6px; background: #fff;
    touch-action: none; width: 100%; max-width: 100%; height: 140px; cursor: crosshair; display: block;
}
.lic-sig-controls { margin-top: 0.5rem; }
.sms-optin-row {
    display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.9rem 0 0.6rem;
    padding: 0.85rem 1rem; background: var(--primary-dark); border: 1px solid var(--border-color); border-radius: 6px;
}
.sms-optin-row input { margin-top: 0.25rem; flex-shrink: 0; }
.sms-optin-row label { display: block; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; }
.sms-optin-row label strong { display: block; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 0.85rem; }
.sms-optin-row label span { display: block; font-size: 0.72rem; line-height: 1.5; color: var(--text-tertiary); }
.sms-optin-row label a { color: var(--accent-blue); }
.lic-msg {
    display: none; font-size: 0.82rem; margin: 0.75rem 0; padding: 0.65rem 0.85rem; border-radius: 6px;
}
.lic-msg.show { display: block; }
.lic-msg.error { background: rgba(194, 65, 12, 0.12); color: var(--error); border: 1px solid rgba(194, 65, 12, 0.3); }
.lic-msg.success { background: rgba(15, 122, 80, 0.12); color: var(--success); border: 1px solid rgba(15, 122, 80, 0.3); }
.lic-msg.info { background: rgba(217, 27, 52, 0.1); color: var(--accent-blue); border: 1px solid var(--border-color); }



/* FOOTER */
footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-blue);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.success-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .search-box {
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        padding: 1.5rem;
    }

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

/* ============================================================
   DOWNLOAD CENTER + INFO MODAL + AI ASSISTANT + DISCLAIMER (v6)
   ============================================================ */
.download-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--primary-dark); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; gap: 1rem;
}
.download-item-name { font-weight: 600; color: var(--text-primary); }
.download-item-file { font-size: 0.8rem; color: var(--text-tertiary); margin-top: 0.2rem; }
.download-btn {
    background: var(--accent-blue); color: var(--primary-dark); border: none;
    padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 700; cursor: pointer;
    font-family: var(--font-display); white-space: nowrap; flex-shrink: 0;
}
.download-btn:hover { opacity: 0.88; }
.download-btn.secondary { background: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue); }
.download-center-note {
    background: var(--panel-dark); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 1rem; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1rem;
}
.info-modal-body { color: var(--text-secondary); line-height: 1.7; font-size: 0.92rem; max-height: 58vh; overflow-y: auto; padding-right: 0.5rem; }
.info-modal-body h4 { color: var(--text-primary); margin: 1.1rem 0 0.4rem; font-family: var(--font-display); }
.info-modal-body h4:first-child { margin-top: 0; }
.info-modal-body p { margin-bottom: 0.6rem; }
.info-modal-body ul { margin: 0.4rem 0 0.8rem 1.2rem; }

/* NEXUS AI ASSISTANT BUBBLE */
.ai-bubble {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal)); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 1200;
    box-shadow: 0 6px 24px rgba(217, 27, 52,0.3); transition: transform 0.2s ease;
}
.ai-bubble:hover { transform: scale(1.06); }
.ai-bubble svg { width: 26px; height: 26px; color: var(--primary-dark); }
.ai-bubble-pulse {
    position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-blue);
    opacity: 0.6; animation: aiPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes aiPulse { 0% { transform: scale(0.85); opacity: 0.6; } 100% { transform: scale(1.35); opacity: 0; } }
.ai-chat-panel {
    position: fixed; bottom: 96px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
    height: 480px; max-height: calc(100vh - 140px); background: var(--panel-dark);
    border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 12px 48px rgba(10, 3, 5,0.14);
    display: none; flex-direction: column; overflow: hidden; z-index: 1200;
}
.ai-chat-panel.active { display: flex; }
.ai-chat-header {
    background: var(--secondary-dark); padding: 1rem 1.2rem; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--border-color);
}
.ai-chat-header-title { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); font-size: 0.95rem; }
.ai-chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); flex-shrink: 0; }
.ai-chat-close { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.ai-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 10px; font-size: 0.87rem; line-height: 1.5; }
.ai-msg.bot { align-self: flex-start; background: var(--secondary-dark); color: var(--text-primary); border: 1px solid var(--border-color); }
.ai-msg.user { align-self: flex-end; background: var(--accent-blue); color: var(--primary-dark); font-weight: 500; }
.ai-chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; }
.ai-suggestion-chip {
    background: var(--secondary-dark); border: 1px solid var(--border-color); color: var(--text-secondary);
    font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 20px; cursor: pointer;
}
.ai-suggestion-chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.ai-chat-input-row { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--border-color); }
.ai-chat-input-row input {
    flex: 1; background: var(--secondary-dark); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 0.6rem 0.8rem; color: var(--text-primary); font-family: inherit; font-size: 0.85rem;
}
.ai-chat-input-row input:focus { outline: none; border-color: var(--accent-blue); }
.ai-chat-input-row button {
    background: var(--accent-blue); border: none; border-radius: 8px; width: 40px; color: var(--primary-dark);
    cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* LEGAL / LIABILITY DISCLAIMER */
.legal-disclaimer {
    background: var(--panel-dark); border-top: 1px solid var(--border-color);
    padding: 2rem 2rem 2.5rem; color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.65;
}
.legal-disclaimer .legal-inner { max-width: 1100px; margin: 0 auto; }
.legal-disclaimer h5 { color: var(--text-secondary); font-size: 0.85rem; margin: 0 0 0.8rem; font-family: var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.legal-disclaimer p { margin-bottom: 0.7rem; }
.legal-disclaimer a { color: var(--accent-blue); }

@media (max-width: 480px) {
    .ai-chat-panel { right: 12px; bottom: 88px; width: calc(100vw - 24px); }
    .ai-bubble { right: 16px; bottom: 16px; }
}
.arroweye-roi {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0;
    font-weight: 800;
    color: var(--accent-blue);
    text-shadow: none;
    letter-spacing: 0.02em;
    margin-left: 0.12em;
}

/* ============================================================
   HEADER DROPDOWN NAV (Firecrawl-inspired) v9
   ============================================================ */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    background: none; border: none; font: inherit; color: var(--text-secondary);
    font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
    padding: 0; line-height: inherit;
}
.nav-dropdown-trigger:hover, .nav-dropdown.open .nav-dropdown-trigger { color: var(--text-primary); }
.nav-chevron { width: 10px; height: 10px; transition: transform 0.2s ease; flex-shrink: 0; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
    position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--panel-dark); border: 1px solid var(--border-color); border-radius: 12px;
    box-shadow: 0 20px 45px rgba(36, 21, 18, 0.14); padding: 1.25rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 1100;
}
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-grid { display: grid; grid-template-columns: repeat(4, 205px); gap: 1.75rem; }
.nav-dropdown-col { min-width: 210px; }
.nav-dropdown-col-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-tertiary); font-weight: 700; margin-bottom: 0.5rem;
}
.nav-dropdown-col a, .nav-dropdown-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.5rem 0.6rem; margin: 0 -0.6rem; border-radius: 7px;
    color: var(--text-primary); text-decoration: none; font-size: 0.87rem;
    transition: background 0.15s ease;
}
.nav-dropdown-col a:hover, .nav-dropdown-list a:hover { background: var(--secondary-dark); color: var(--accent-blue); }
.nav-dropdown-col a span.price, .nav-dropdown-list a span.price { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 0.75rem; flex-shrink: 0; }
.nav-dropdown-list { min-width: 220px; }

/* ============================================================
   ACCORDION (product detail: overview / problem / unique) v9
   ============================================================ */
.accordion { border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: var(--secondary-dark); border: none; padding: 0.9rem 1.1rem; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--text-primary);
    text-align: left; transition: background 0.15s ease;
}
.accordion-trigger:hover { background: var(--panel-dark); }
.accordion-chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.25s ease; color: var(--text-tertiary); }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--accent-blue); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--panel-dark); }
.accordion-item.open .accordion-panel { max-height: 640px; }
.accordion-panel-inner { padding: 1.1rem 1.1rem 1.3rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* ============================================================
   HOME GRID -- cards now link to /apps/<slug>
   ============================================================ */
.product-image { text-decoration: none; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--accent-blue); }
.product-features li.more-features::before { content: '+'; color: var(--accent-blue); }
.product-features li.more-features a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
.product-actions { display: flex; align-items: center; gap: 0.75rem; }
.details-link { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid transparent; }
.details-link:hover { color: var(--accent-blue); border-bottom-color: currentColor; }
.add-to-cart-btn.in-cart { background: var(--success); }
.add-to-cart-btn.in-cart::before { content: '\2713  '; }
a.cart-item-name { color: var(--text-primary); text-decoration: none; }
a.cart-item-name:hover { color: var(--accent-blue); }
.ai-msg.bot a { color: var(--accent-blue); font-weight: 600; }

/* ============================================================
   PRODUCT PAGE (/apps/<slug>)
   ============================================================ */
main.pp { position: relative; z-index: 1; max-width: none; margin: 0; padding: 0; }
.pp-section, .pp-story-block { scroll-margin-top: 90px; }
.pp-section { max-width: 1180px; margin: 0 auto; padding: 5rem 2rem 0; }
.pp-kicker { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 0.5rem; }
.pp-section-head h2, .pp-story h2, .pp-cta h2 { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); line-height: 1.15; }
.pp-section-head { margin-bottom: 1.75rem; }
.pp-section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

/* Hero */
.pp-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--text-on-dark); isolation: isolate; }
.pp-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center top; filter: blur(34px) saturate(1.2); opacity: 0.45; transform: scale(1.1); z-index: -2; animation: ppDrift 22s ease-in-out infinite alternate; }
.pp-hero-glow { position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 70% at 85% 20%, rgba(217, 27, 52, 0.38), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(140, 16, 41, 0.45), transparent 70%),
        linear-gradient(180deg, rgba(23, 6, 9, 0.35) 0%, rgba(23, 6, 9, 0.92) 100%); }
@keyframes ppDrift { from { transform: scale(1.1) translate3d(-2%, -1%, 0); } to { transform: scale(1.18) translate3d(2%, 1%, 0); } }
.pp-hero-inner { max-width: 1180px; margin: 0 auto; padding: 2rem 2rem 4.5rem; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: var(--text-on-dark-secondary); margin-bottom: 2.5rem; }
.pp-crumbs a { color: var(--text-on-dark-secondary); text-decoration: none; }
.pp-crumbs a:hover { color: #fff; }
.pp-crumbs [aria-current] { color: #fff; }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: center; }
.pp-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pp-chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(246, 239, 226, 0.25); color: var(--text-on-dark); background: rgba(255, 255, 255, 0.06); }
.pp-chip.new { background: linear-gradient(135deg, #34d399, #0f9b6e); color: #05170f; border-color: transparent; }
.pp-chip.flagship { background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal)); color: #fff; border-color: transparent; }
.pp-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.01em; color: #fff; margin-bottom: 1.1rem; text-wrap: balance; }
.pp-lede { font-size: 1.12rem; line-height: 1.6; color: var(--text-on-dark-secondary); max-width: 34rem; margin-bottom: 1.75rem; }
.pp-price-row { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pp-price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; }
.pp-price-note { font-size: 0.85rem; color: var(--text-on-dark-secondary); }
.pp-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.pp-btn { font: inherit; font-weight: 700; font-size: 1rem; padding: 0.95rem 1.7rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.pp-btn:hover { transform: translateY(-2px); }
.pp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pp-btn-primary { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); color: #fff; box-shadow: 0 10px 30px rgba(217, 27, 52, 0.4); }
.pp-btn-primary:hover { box-shadow: 0 14px 38px rgba(217, 27, 52, 0.55); }
.pp-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(246, 239, 226, 0.35); }
.pp-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.pp-btn.small { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
[data-in-cart] .when-in { display: none; }
[data-in-cart].in-cart .when-in { display: inline; }
[data-in-cart].in-cart .when-out { display: none; }
.pp-btn-ghost.in-cart { border-color: #34d399; color: #bbf7d0; }
.pp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; font-size: 0.85rem; color: var(--text-on-dark-secondary); }
.pp-facts strong { color: #fff; font-size: 1rem; }
.pp-hero-shot { position: relative; display: block; padding: 0; border: 1px solid rgba(246, 239, 226, 0.18); border-radius: 16px; overflow: hidden; background: #0d0305; cursor: zoom-in; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03); transition: transform 0.25s ease; will-change: transform; animation: ppRise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.pp-hero-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.pp-hero-shot-hint { position: absolute; right: 12px; bottom: 12px; font-size: 0.75rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 999px; background: rgba(13, 3, 5, 0.75); color: #fff; backdrop-filter: blur(6px); }
.pp-hero-copy > * { animation: ppRise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.pp-hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.pp-hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.pp-hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.pp-hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
.pp-hero-copy > *:nth-child(6) { animation-delay: 0.3s; }
@keyframes ppRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Gallery */
.pp-stage { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy-deep); border: 1px solid var(--border-color); box-shadow: 0 30px 70px rgba(36, 21, 18, 0.16); }
.pp-stage img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0d0305; transition: opacity 0.12s ease; }
.pp-stage img.swap { opacity: 0; }
.pp-stage-arrow, .pp-stage-expand { position: absolute; border: none; cursor: pointer; background: rgba(13, 3, 5, 0.6); color: #fff; backdrop-filter: blur(6px); transition: background 0.18s ease; }
.pp-stage-arrow:hover, .pp-stage-expand:hover { background: rgba(217, 27, 52, 0.85); }
.pp-stage-arrow { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.pp-stage-arrow.left { left: 14px; }
.pp-stage-arrow.right { right: 14px; }
.pp-stage-expand { top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pp-stage-counter { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 0.78rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(13, 3, 5, 0.7); color: #fff; }
.pp-thumbs { display: flex; gap: 0.75rem; overflow-x: auto; padding: 1rem 0.25rem 0.5rem; scroll-snap-type: x proximity; }
.pp-thumb { flex: 0 0 150px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--navy-deep); opacity: 0.6; transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease; scroll-snap-align: start; }
.pp-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.pp-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.pp-thumb.active { opacity: 1; border-color: var(--accent-blue); }

/* Story */
.pp-story { display: grid; gap: 1.25rem; }
.pp-story-block { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2.25rem; border-radius: 16px; background: linear-gradient(180deg, var(--panel-dark), var(--secondary-dark)); border: 1px solid var(--border-color); }
.pp-story-num { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pp-story h2 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.pp-story p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; max-width: 62rem; }

/* Features */
.pp-feature-grid { list-style: none; counter-reset: feat; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.pp-feature { counter-increment: feat; position: relative; padding: 1.4rem 1.4rem 1.4rem 3.6rem; border-radius: 14px; background: var(--secondary-dark); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.pp-feature::before { content: counter(feat, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.35rem; font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; color: var(--accent-blue); }
.pp-feature:hover { border-color: var(--accent-blue); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(36, 21, 18, 0.08); }

/* CTA */
.pp-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.75rem; border-radius: 20px; color: var(--text-on-dark); background: radial-gradient(70% 120% at 100% 0%, rgba(217, 27, 52, 0.45), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); box-shadow: 0 30px 70px rgba(23, 6, 9, 0.3); }
.pp-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.5rem; }
.pp-cta p { color: var(--text-on-dark-secondary); max-width: 36rem; }
.pp-cta-buy { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

/* Related */
.pp-related { padding-bottom: 5rem; }
.pp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.pp-related-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--secondary-dark); border: 1px solid var(--border-color); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pp-related-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); box-shadow: 0 18px 40px rgba(36, 21, 18, 0.1); }
.pp-related-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; background: var(--navy-deep); }
.pp-related-body { padding: 1.1rem 1.2rem 1.3rem; }
.pp-related-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-teal); }
.pp-related-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-primary); margin: 0.25rem 0 0.35rem; }
.pp-related-price { font-weight: 700; color: var(--accent-blue); }
.pp-back { margin-top: 2rem; }
.pp-back a { color: var(--text-secondary); font-weight: 600; text-decoration: none; }
.pp-back a:hover { color: var(--accent-blue); }

/* Sticky buy bar */
.pp-buybar { position: fixed; left: 50%; bottom: 20px; z-index: 950; width: min(760px, calc(100vw - 140px)); transform: translate(-50%, 140%); transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.pp-buybar.show { transform: translate(-50%, 0); }
.pp-buybar-inner { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0.7rem 0.6rem 0.6rem; border-radius: 16px; background: rgba(23, 6, 9, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246, 239, 226, 0.14); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); color: #fff; }
.pp-buybar-thumb { width: 64px; height: 40px; object-fit: cover; object-position: top; border-radius: 8px; flex-shrink: 0; }
.pp-buybar-name { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-buybar-price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .pp-hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .pp-hero-inner { padding-bottom: 3rem; }
    .pp-crumbs { margin-bottom: 1.5rem; }
}
@media (max-width: 640px) {
    .pp-section { padding: 3.5rem 16px 0; }
    .pp-hero-inner { padding: 1.25rem 16px 2.5rem; }
    .pp-actions .pp-btn { flex: 1 1 auto; }
    .pp-story-block { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
    .pp-story-num { font-size: 2.2rem; }
    .pp-stage-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
    .pp-thumb { flex-basis: 110px; }
    .pp-cta { padding: 1.75rem; }
    .pp-cta-buy { width: 100%; }
    .pp-cta-buy .pp-btn { flex: 1 1 auto; }
    .pp-buybar { left: 0; bottom: 0; width: 100%; transform: translateY(110%); }
    .pp-buybar.show { transform: none; }
    .pp-buybar-inner { border-radius: 16px 16px 0 0; padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }
    .pp-buybar-thumb, .pp-buybar .pp-btn-ghost { display: none; }
    .pp-buybar.show ~ .ai-bubble { bottom: 84px; }
    .pp-related { padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pp-hero-bg, .pp-hero-shot, .pp-hero-copy > * { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .pp-buybar, .pp-btn, .pp-feature, .pp-related-card, .pp-thumb { transition: none; }
}
