/*styles for the INDEX landing page only - overwrites style.css which is also a file meant only for the index page styles*/

/* ================================================================
 * CSS VARIABLES & IMPORTS
 * ================================================================ */
@import url('globals.css');

:root {
    /* Z-index scale */
    --z-background: 0;
    --z-illustration: 100;
    --z-content: 1000;
    --z-header: 2000;
    --z-navigation: 10000;
    
    /* Layout variables */
    --header-logo-mobile: 140px;
    --header-logo-desktop: 100px;
    --hero-padding-top: 3rem;
    --button-min-width: 120px;
}

/* ================================================================
 * HEADER & NAVIGATION
 * ================================================================ */

/* Base header styles */
.site-header {
    z-index: var(--z-header) !important;
    position: relative;
    padding-top: 1rem !important;
    overflow: visible;
}

.site-header .container {
    position: relative;
    z-index: var(--z-header) !important;
    padding: 0 !important;
    overflow: visible;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

.site-header-inner {
    width: auto;
    z-index: var(--z-illustration) !important;
    display: flex;
    justify-content: flex-start !important;
    align-items: left;
}

/* Logo styles */
.header-logo-image {
    width: var(--header-logo-desktop) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin-left: 0 !important;
}

.footer-brand img {
    width: var(--header-logo-desktop) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.header-brand {
    position: relative !important;
    margin-left: 24px !important;
    margin-right: 4rem !important;
    z-index: 21 !important;
}

.header-brand a, 
.footer-brand a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0px !important;
    margin: 0px !important;
}

/* Navigation items */
.site-header .header-nav-items {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: flex-end;
    position: relative;
}

/* Header buttons */
.site-header .header-nav-items .button {
    min-width: unset !important;
    white-space: nowrap !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* Mobile header styles */
@media (max-width: 640px) {
    .site-header .container {
        margin-right: 1rem !important;
        margin-left: 1rem !important;
        width: calc(100% - 2rem) !important;
        justify-content: space-between !important;
    }
    
    .header-logo-image {
        width: var(--header-logo-mobile) !important;
        margin-left: 60px !important;
    }
    
    .footer-brand img {
        width: var(--header-logo-mobile) !important;
    }
    
    .header-brand {
        margin-left: auto !important;
    }
    
    .site-header .header-nav-items {
        gap: 0 !important;
        flex-wrap: wrap !important;
        justify-content: space-evenly !important;
        align-items: center !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .site-header .header-nav-items .button {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.7rem !important;
        min-width: 80px !important;
        flex: 0 0 auto !important;
    }
    
    .site-header .header-nav-items > a.button:first-of-type {
        margin-right: 0 !important;
    }
}

/* Desktop header styles */
@media (min-width: 641px) {
    .header-brand {
        margin-left: 24px !important;
    }
    
    .is-loaded .hero-media-illustration-image {
        margin-bottom: 50px !important;
    }
}

/* ================================================================
 * LIGHTS TOGGLE
 * ================================================================ */

/* Base lights toggle styles */
.site-header .lights-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em !important;
}

.site-header .lights-toggle label[for="lights-toggle"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3em !important;
    padding-left: 0 !important;
    line-height: normal !important;
    height: auto !important;
    cursor: pointer !important;
    width: auto !important;
}

/* Switch track */
.site-header .lights-toggle label[for="lights-toggle"]::before {
    content: '' !important;
    position: relative !important;
    display: block !important;
    width: 4rem !important;
    height: 1.2rem !important;
    border-radius: 8px !important;
    background-color: #E9EDF3 !important;
    transition: background-color .15s ease-out !important;
    order: -1;
}

/* Switch knob */
.site-header .lights-toggle label[for="lights-toggle"]::after {
    content: '' !important;
    position: absolute !important;
    display: block !important;
    width: 0.65rem !important;
    height: 0.65rem !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    top: 0.25rem !important;
    left: 3rem !important;
    transition: left .15s ease-out, background-color .15s ease-out !important;
}   

/* Checked state */
.site-header .lights-toggle input.switch:checked + label[for="lights-toggle"]::before {
    background-color: #535FD7 !important;
}

.site-header .lights-toggle input.switch:checked + label[for="lights-toggle"]::after {
    left: 1rem !important;
}

/* Toggle text */
.site-header .lights-toggle label[for="lights-toggle"] span {
    line-height: 1.1 !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 0.7rem;
}

/* Dark mode toggle text */
.lights-off .site-header .lights-toggle label[for="lights-toggle"] span {
    color: #FFFFFF !important;
}

/* Mobile lights toggle */
@media (max-width: 640px) {
    .site-header .lights-toggle {
        order: 2 !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        justify-content: center !important;
    }
    
    .site-header .lights-toggle label[for="lights-toggle"] {
        font-size: 0.65rem !important;
        padding-left: 45px !important;
        line-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    }
    
    .site-header .lights-toggle label[for="lights-toggle"]::before {
        width: 36px !important;
        height: 20px !important;
        border-radius: 10px !important;
        top: 0 !important;
        left: 0 !important;
        position: absolute !important;
    }
    
    .site-header .lights-toggle label[for="lights-toggle"]::after {
        width: 16px !important;
        height: 16px !important;
        border-radius: 8px !important;
        top: 2px !important;
        left: 2px !important;
        position: absolute !important;
    }
    
    .site-header .lights-toggle input.switch:checked + label[for="lights-toggle"]::after {
        left: 18px !important;
    }
}

/* ================================================================
 * HAMBURGER MENU
 * ================================================================ */

/* Hamburger container */
/* Legacy hamburger container - now handled by .shop-style variants */
.hamburger-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40px !important;
    position: absolute !important;
    left: 0 !important;
    top: 1rem !important;
    z-index: 10 !important;
    width: 40px !important;
}

/* Hamburger label */
.hamburger-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #182538;
    text-transform: uppercase;
    margin-bottom: 2px !important;
    display: block !important;
    text-align: center !important;
    position: relative !important;
    z-index: 5 !important;
}

.lights-off .hamburger-label {
    color: #FFFFFF;
}

/* Hamburger button - for non-shop pages */
.site-header:not(.shop-style) .homepage-hamburger,
.site-header .homepage-hamburger {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.site-header:not(.shop-style) .homepage-hamburger span {
    display: block !important;
    width: 40px !important;
    height: 4px !important;
    background-color: #182538 !important;
    margin: 2px 0 !important;
    transition: 0.3s !important;
    border-radius: 2px !important;
    margin-left: 0 !important;
}

.lights-off .site-header .homepage-hamburger span {
    background-color: #FFFFFF !important;
}

/* Mobile hamburger styles */
@media (max-width: 640px) {
    .hamburger-menu-container {
        margin-right: 0 !important;
        order: -1;
        align-self: center !important;
        position: relative !important;
        margin-left: 0 !important;
        height: 48px !important;
        width: 80px !important;
        flex: 0 0 auto !important;
    }
    
    .hamburger-label {
        margin-right: 0 !important;
        font-size: 0.6rem !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        text-align: left !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .site-header .homepage-hamburger {
        margin-right: 0 !important;
        width: 80px !important;
        height: 32px !important;
        top: 16px !important;
    }
}

/* ================================================================
 * HERO SECTION
 * ================================================================ */

/* Base hero styles */
.hero {
    padding-top: var(--hero-padding-top) !important;
    position: relative !important;
    z-index: var(--z-content) !important;
    text-align: left !important;
}

.hero .container,
.hero-inner,
.hero-media {
    overflow: visible !important;
}

.hero-inner {
    position: relative !important;
    display: flex;
    justify-content: space-between;
}

/* Hero text content */
.hero-title {
    padding-left: 0;
    margin-left: 0;
    position: relative !important;
    z-index: 3 !important;
}

.hero-subtitle {
    font-family: "Heebo", sans-serif !important;
    font-size: 24px !important;
    line-height: 34px !important;
    letter-spacing: -0.1px !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
    position: relative !important;
    z-index: 3 !important;
}

.lights-off .hero-subtitle {
    color: var(--blue-lighter) !important;
}

.hero-paragraph {
    position: relative !important;
    z-index: 3 !important;
}

/* Hero media and video */
.hero .hero-inner .hero-media {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 50% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: var(--z-background) !important;
}

/* Hero video container */
.hero .hero-inner .hero-media .hero-media-container {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    margin-top: 7.5rem !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    max-width: 800px !important;
    overflow: hidden !important;
}

/* Video elements - covers Vimeo divs, direct iframes, and HTML5 video */
.hero-media-container .hero-media-video,
.hero-media-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 30px !important;
    display: block !important;
    z-index: 150 !important;
    transform: perspective(2400px) rotateY(-15deg) !important;
    transform-origin: center center !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
}

/* Iframes inside Vimeo containers */
.hero-media-container .hero-media-video iframe {
    border: none !important;
    border-radius: 30px !important;
    background: transparent !important;
}

/* Hover effects */
.hero-media-container:hover .hero-media-video,
.hero-media-container:hover iframe {
    transform: perspective(2400px) rotateY(2deg) !important;
}

/* Dark mode effects */
.lights-off .hero-media-container .hero-media-video,
.lights-off .hero-media-container iframe {
    box-shadow: 0 4px 8px var(--bg-dark) !important;
    background: var(--bg-dark) !important;
}

/* Light/dark theme variants */
.hero-media-container .hero-media-video.asset-light,
.hero-media-container iframe.asset-light { 
    display: block !important; 
}
.hero-media-container .hero-media-video.asset-dark,
.hero-media-container iframe.asset-dark { 
    display: none !important; 
}
.lights-off .hero-media-container .hero-media-video.asset-light,
.lights-off .hero-media-container iframe.asset-light { 
    display: none !important; 
}
.lights-off .hero-media-container .hero-media-video.asset-dark,
.lights-off .hero-media-container iframe.asset-dark { 
    display: block !important; 
}

.hero-media-image {
    display: none !important;
}

/* Hero illustrations */
.hero-media-illustration {
    position: absolute !important;
    top: -10% !important;
    left: -150px !important;
    width: 150% !important;
    z-index: var(--z-background) !important;
    opacity: 0.7 !important;
}

.hero-media-illustration img,
.hero-media-illustration svg {
    max-width: 150% !important;
    width: 150% !important;
    height: auto !important;
}

/* Mobile hero styles */
@media (max-width: 640px) {
    .hero-inner {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .hero .hero-inner .hero-media {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0 !important;
        order: 2 !important;
    }
    
    .hero .hero-inner .hero-media .hero-media-container {
        max-width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Mobile video styling */
    .hero-media-container .hero-media-video,
    .hero-media-container iframe {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* Hide hero illustration completely on mobile */
    .hero-media-illustration {
        display: none !important;
    }
    
    /* Remove backgrounds from text since no illustration overlap */
    .hero-copy,
    .hero-title,
    .hero-subtitle,
    .hero-paragraph {
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
    }
}

/* ================================================================
 * VARIANT ITEM STYLES
 * ================================================================ */

/* Ensure variant items appear above illustrations */
.variant-item {
    position: relative !important;
    z-index: var(--z-content) !important;
}

/* Ensure button containers appear above illustrations */
.button-container {
    position: relative !important;
    z-index: var(--z-content) !important;
}

/* Desktop hero styles */
@media (min-width: 641px) {
    .hero-copy {
        padding-left: 0 !important;
        padding-top: 40px;
        padding-right: 48px;
        min-width: 50%;
        max-width: 50%;
        position: relative !important;
        z-index: 3 !important;
    }
    
    .hero-subtitle {
        font-size: 28px !important;
        line-height: 38px !important;
        margin-bottom: 40px !important;
    }
    
    .hero-media {
        position: relative !important;
        z-index: 1000 !important;
    }
}

/* ================================================================
 * FEATURES SECTION
 * ================================================================ */

/* Base feature styles */
.feature .feature-icon {
    width: 120px !important;
    height: 120px !important;
    display: inline-flex !important;
    margin-bottom: 16px !important;
        align-items: center !important;
        justify-content: center !important;
}

.feature .feature-icon img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    max-width: none !important;
}

.features-header {
        position: relative !important;
    z-index: 3 !important;
    }
    
.features-header .section-title,
.features-header .section-paragraph {
        position: relative !important;
    z-index: 3 !important;
}

.features-buttons {
        position: relative !important;
    z-index: 3 !important;
    justify-content: center !important;
}

/* Mobile feature styles */
@media (max-width: 640px) {
    .feature .feature-icon,
    .feature .feature-icon img {
        width: 72px !important;
        height: 72px !important;
    }
    
    .features-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-buttons .button {
        width: 80%;
        margin-bottom: 1rem;
    }
}

/* Desktop feature styles */
@media (min-width: 641px) {
    .feature .feature-icon {
        display: block !important;
        margin-top: 8px !important;
        margin-right: 32px !important;
        margin-bottom: 0 !important;
    }
}

/* ================================================================
 * HEADER ILLUSTRATIONS
 * ================================================================ */

/* Base header illustration */
    .header-illustration {
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
    left: 0 !important;
        right: 0 !important;
    width: 100% !important;
    z-index: var(--z-background) !important;
        opacity: 0.7 !important;
        display: block;
    }

    .header-illustration-image {
        display: none !important;
    }
    
    .header-illustration img,
    .header-illustration svg {
    max-width: 200% !important;
        width: 200% !important;
        height: auto !important;
    }

/* Mobile header illustration */
@media (max-width: 640px) {
    .header-illustration {
        display: none !important;
    }
}

/* ================================================================
 * BUTTON SYSTEM
 * ================================================================ */

/* Base button styles */
.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    text-align: center !important;
    min-width: var(--button-min-width) !important;
    white-space: normal !important;
    border: none !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

/* Primary button style */
.button-primary {
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
}

.button-primary:hover {
    background-color: var(--accent-orange-light) !important;
    color: var(--primary-color) !important;
}

/* Secondary button style */
.button-secondary {
    background-color: var(--accent-primary) !important;
    color: var(--bg-white) !important;
}

.button-secondary:hover {
    background-color: var(--accent-orange-light) !important;
    color: var(--primary-color) !important;
}

/* Dark mode button styles */
.lights-off .button-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
}

.lights-off .button-primary:hover {
    background-color: var(--primary-light) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35),
                inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.lights-off .button-secondary {
    background-color: var(--accent-orange-light) !important;
    color: var(--primary-color) !important;
}

.lights-off .button-secondary:hover {
    background-color: var(--accent-color) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35),
                inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* Button containers */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.product-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* Mobile button styles */
@media (max-width: 640px) {
    .button-group,
    .hero-cta,
    .product-button-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .button {
    width: 100% !important;
        min-width: unset !important;
        margin-right: 0;
        padding: 0.75rem 1rem !important;
    }
    
    .hero-cta .lights-toggle {
        width: 100%;
        margin-top: 20px;
    display: flex;
    align-items: center;
        justify-content: center;
        margin-left: 0; 
        padding-left: 0; 
    }
    
    .hero-cta .lights-toggle label {
        white-space: nowrap;
    }
}

/* Desktop button styles */
@media (min-width: 641px) {
    .hero-cta {
        align-items: center;
        padding-left: 0 !important;
        justify-content: center;
    }
    
    .hero-cta .button {
        min-width: var(--button-min-width) !important;
    }
    
    .hero-cta .button:first-child {
        margin-right: 1rem;
    }
}

/* ================================================================
 * NAVIGATION PANEL (HAMBURGER MENU)
 * ================================================================ */

/* Base tocPanel styles */
.body-wrap > .tocPanel {
    position: fixed;
    top: 0;
    left: -19rem;
    width: 19rem;
    height: 100vh;
    background: var(--bg-white, #fff);
    color: var(--text-color, #39332f);
    overflow-y: auto;
    z-index: var(--z-navigation);
    text-align: left;
    box-shadow: inset -1px 0 0 var(--primary-color, #d1e7f5);
    transition: left 0.5s ease;
    display: block;
}

.body-wrap > .tocPanel.show {
    left: 0;
}

.lights-off .body-wrap > .tocPanel {
    background: #182538;
    color: #8595AE;
    box-shadow: inset -1px 0 0 #304057;
}

/* Panel inner container */
.body-wrap > .tocPanel .inner {
    padding-right: 0.5rem;
    padding-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: calc(100% - 3rem);
    width: calc(100% - 2rem);
}

.body-wrap > .tocPanel .inner > * {
    border-bottom: solid 2px var(--primary-color, #d1e7f5);
    margin: 2rem 0 0 0;
    padding: 0 0 2rem 0;
}

.body-wrap > .tocPanel .inner > * > :last-child {
    margin-bottom: 0;
}

.body-wrap > .tocPanel .inner > *:last-child {
    border-bottom: 0;
}

.body-wrap > .tocPanel .inner > .alt {
    background-color: transparent;
    border-bottom: 0;
    margin: 0 0 2rem 0;
    padding: 0;
}

.lights-off .body-wrap > .tocPanel .inner > * {
    border-bottom-color: #304057;
}

/* Close button */
.body-wrap > .tocPanel::before {
    content: '×';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #39332f;
    cursor: pointer;
    z-index: 1100;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

.body-wrap > .tocPanel::before:hover {
    background: rgba(0,0,0,0.1);
}

.lights-off .body-wrap > .tocPanel::before {
    color: #FFFFFF;
    background: rgba(255,255,255,0.1);
}

.lights-off .body-wrap > .tocPanel::before:hover {
    background: rgba(255,255,255,0.2);
}

/* Panel logo */
.body-wrap > .tocPanel .toc-logo {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.body-wrap > .tocPanel .toc-logo a {
    display: inline-block !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.body-wrap > .tocPanel .toc-logo img {
    width: 80% !important;
    height: auto !important;
    padding-bottom: 1rem !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Panel auth section */
.body-wrap > .tocPanel #toc-header {
    text-align: center;
    border-bottom: solid 2px var(--primary-color, #d1e7f5);
    padding-bottom: 1rem;
    margin: auto;
    display: block;
}

.lights-off .body-wrap > .tocPanel #toc-header {
    border-bottom-color: #304057;
}

.body-wrap > .tocPanel .auth-buttons-container {
    margin: 0;
}

.body-wrap > .tocPanel .auth-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.body-wrap > .tocPanel .button {
    font-size: 14px;
    height: fit-content;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    min-width: var(--button-min-width);
}

.body-wrap > .tocPanel .button-primary {
    background-color: #0C2E7E;
    color: white;
    border: none;
}

.body-wrap > .tocPanel .button-primary:hover {
    background-color: #0A2664;
    color: white;
    text-decoration: none;
}

.body-wrap > .tocPanel .button-secondary {
    background-color: #e8f3ca;
    color: #0C2E7E;
    border: 1px solid #0C2E7E;
}

.body-wrap > .tocPanel .button-secondary:hover {
    background-color: #d1e7f5;
    color: #0C2E7E;
    text-decoration: none;
}

.lights-off .body-wrap > .tocPanel .button-primary {
    background-color: #61EFFD;
    color: #182538;
}

.lights-off .body-wrap > .tocPanel .button-primary:hover {
    background-color: #4DDDE6;
    color: #182538;
}

.lights-off .body-wrap > .tocPanel .button-secondary {
    background-color: #304057;
    color: #61EFFD;
    border-color: #61EFFD;
}

.lights-off .body-wrap > .tocPanel .button-secondary:hover {
    background-color: #3A4A5F;
    color: #61EFFD;
}

/* Mobile panel styles */
@media (max-width: 768px) {
    .body-wrap > .tocPanel.show .toc-logo {
        display: none;
    }
    
    .body-wrap > .tocPanel .inner {
        padding: 0.5rem;
        width: calc(100% - 2rem);
    }
}

/* ================================================================
 * NAVIGATION MENU STYLES
 * ================================================================ */

/* Menu headings */
.body-wrap > .tocPanel #menu h2 {
    color: var(--primary-color, #0C2E7E);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.lights-off .body-wrap > .tocPanel #menu h2 {
    color: #61EFFD;
}

/* Menu lists */
.body-wrap > .tocPanel #menu ul {
    color: var(--text-color, #39332f);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lights-off .body-wrap > .tocPanel #menu ul {
    color: #8595AE;
}

.body-wrap > .tocPanel #menu ul a,
.body-wrap > .tocPanel #menu ul span {
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.65;
    padding: 0.5rem 0;
    text-decoration: none;
    outline: 0;
}

.body-wrap > .tocPanel #menu ul a:hover,
.body-wrap > .tocPanel #menu ul span:hover {
    color: var(--accent-primary, #0C2E7E);
}

.lights-off .body-wrap > .tocPanel #menu ul a:hover,
.lights-off .body-wrap > .tocPanel #menu ul span:hover {
    color: #61EFFD;
}

/* Menu items with dropdowns */
.body-wrap > .tocPanel #menu ul a.opener,
.body-wrap > .tocPanel #menu ul span.opener {
    line-height: 1.65;
    padding-right: 1.5rem;
    position: relative;
}

.body-wrap > .tocPanel #menu ul a.opener:before,
.body-wrap > .tocPanel #menu ul span.opener:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.7rem;
    transition: transform 0.2s ease;
    border-top: 0.4rem solid var(--text-color, #39332f);
    border-left: 0.25rem solid transparent;
    border-right: 0.25rem solid transparent;
    transform: rotate(0deg);
}

.lights-off .body-wrap > .tocPanel #menu ul a.opener:before,
.lights-off .body-wrap > .tocPanel #menu ul span.opener:before {
    border-top-color: #8595AE;
}

.body-wrap > .tocPanel #menu ul a.opener:hover:before,
.body-wrap > .tocPanel #menu ul span.opener:hover:before {
    border-top-color: var(--accent-primary, #0C2E7E);
}

.lights-off .body-wrap > .tocPanel #menu ul a.opener:hover:before,
.lights-off .body-wrap > .tocPanel #menu ul span.opener:hover:before {
    border-top-color: #61EFFD;
}

.body-wrap > .tocPanel #menu ul a.opener.active:before,
.body-wrap > .tocPanel #menu ul span.opener.active:before {
    transform: rotate(90deg);
    border-top-color: var(--accent-primary, #0C2E7E);
}

.lights-off .body-wrap > .tocPanel #menu ul a.opener.active:before,
.lights-off .body-wrap > .tocPanel #menu ul span.opener.active:before {
    border-top-color: #61EFFD;
}

.body-wrap > .tocPanel #menu ul a.active,
.body-wrap > .tocPanel #menu ul span.active {
    color: var(--accent-primary, #0C2E7E);
    font-weight: 600;
}

.lights-off .body-wrap > .tocPanel #menu ul a.active,
.lights-off .body-wrap > .tocPanel #menu ul span.active {
    color: #61EFFD;
}

.body-wrap > .tocPanel #menu > ul > li {
    border-top: solid 1px var(--primary-color, #d1e7f5);
    margin: 0.35rem 0 0 0;
    padding: 0.35rem 0 0 0;
}

.lights-off .body-wrap > .tocPanel #menu > ul > li {
    border-top-color: #304057;
}

.body-wrap > .tocPanel #menu > ul > li > ul {
    color: var(--text-color, #39332f);
    display: none;
    margin: 0.5rem 0 1.5rem 0;
    padding-left: 1rem;
}

.lights-off .body-wrap > .tocPanel #menu > ul > li > ul {
    color: #8595AE;
}

.body-wrap > .tocPanel #menu > ul > li > ul a,
.body-wrap > .tocPanel #menu > ul > li > ul span {
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.body-wrap > .tocPanel #menu > ul > li:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Contact section */
.body-wrap > .tocPanel section h2 {
    color: var(--primary-color, #0C2E7E);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.lights-off .body-wrap > .tocPanel section h2 {
    color: #61EFFD;
}

.body-wrap > .tocPanel section p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
}

.body-wrap > .tocPanel section p a {
    color: var(--accent-primary, #0C2E7E);
    text-decoration: none;
}

.body-wrap > .tocPanel section p a:hover {
    text-decoration: underline;
}

.lights-off .body-wrap > .tocPanel section p a {
    color: #61EFFD;
}

/* Social icons */
.body-wrap > .tocPanel ul.icons {
    cursor: default;
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.body-wrap > .tocPanel ul.icons li {
    display: inline-block;
    margin-right: 0.75rem;
}

.body-wrap > .tocPanel ul.icons li:last-child {
    margin-right: 0;
}

.body-wrap > .tocPanel ul.icons li .icon-link {
    color: var(--text-color, #39332f);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.lights-off .body-wrap > .tocPanel ul.icons li .icon-link {
    color: #8595AE;
}

.body-wrap > .tocPanel ul.icons li .icon-link:hover {
    color: var(--accent-primary, #0C2E7E);
}

.lights-off .body-wrap > .tocPanel ul.icons li .icon-link:hover {
    color: #61EFFD;
}

.body-wrap > .tocPanel ul.icons li .icon-link svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

/* DM icon: use descendant selector so it matches (tocPanel is inside .site-content, not direct child of .body-wrap) */
.body-wrap .tocPanel ul.icons li .icon-link .icon-link-img {
    width: auto;
    height: 1rem;
    margin-left: 0rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

.body-wrap > .tocPanel ul.icons li .icon-link .label {
    font-size: 0.9rem;
}

/* Footer in navigation */
.body-wrap > .tocPanel #footer .copyright {
    color: var(--text-color, #39332f);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.lights-off .body-wrap > .tocPanel #footer .copyright {
    color: #8595AE;
}

.body-wrap > .tocPanel #footer .copyright a {
    color: var(--accent-primary, #0C2E7E);
    text-decoration: none;
}

.body-wrap > .tocPanel #footer .copyright a:hover {
    text-decoration: underline;
}

.lights-off .body-wrap > .tocPanel #footer .copyright a {
    color: #61EFFD;
}

/* ================================================================
 * FOOTER SYSTEM
 * ================================================================ */

/* Grid system variables */
:root {
    --width-full: 100%;
    --width-max: 1200px;
    --width-grid-max: var(--width-max);
    --gutter-lg: 2rem;
    --gutter-md: 1.8rem;
    --gutter-mob: 1rem;
    --footer-padding-top: 4rem;
    --footer-padding-bottom: 3rem;
    --footer-text-size: 1.6rem;
    --footer-line-height: 2.8rem;
    --footer-heading-size: 1.8rem;
    --footer-border-color: var(--primary-color, #d1e7f5);
}

/* Grid system */
.row {
    width: 92%;
    max-width: var(--width-grid-max);
    margin: 0 auto;
    display: flex;
    flex-flow: row wrap;
}

.row .row {
    width: auto;
    max-width: none;
    margin-left: calc(var(--gutter-lg) * -1);
    margin-right: calc(var(--gutter-lg) * -1);
}

.column {
    flex: 1 1 0%;
    padding: 0 var(--gutter-lg);
}

.collapse>.column, .column.collapse {
    padding: 0;
}

/* Column sizes */
.large-1 { flex: 0 0 8.33333%; max-width: 8.33333%; }
.large-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
.large-3 { flex: 0 0 25%; max-width: 25%; }
.large-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.large-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
.large-6 { flex: 0 0 50%; max-width: 50%; }
.large-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
.large-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.large-9 { flex: 0 0 75%; max-width: 75%; }
.large-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
.large-11 { flex: 0 0 91.66667%; max-width: 91.66667%; }
.large-12 { flex: 0 0 100%; max-width: 100%; }

/* Base footer styles */
.s-footer {
    padding: 2.5rem 0 1.9rem;
    font-size: 1rem;
    line-height: 1.75rem;
    color: var(--text-color, #39332f);
    background: var(--bg-white, #ffffff);
    position: relative;
    z-index: 10;
}

.lights-off .s-footer {
    background: #182538;
    color: #8595AE;
    border-top-color: #304057;
}

.s-footer .row {
    max-width: var(--width-max);
    margin: 0 auto;
}

.s-footer [class*="column"] {
    margin-bottom: 0;
}

.s-footer a {
    color: var(--accent-primary, #0C2E7E);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.s-footer a:hover, .s-footer a:focus {
    color: var(--accent-primary, #61EFFD);
    text-decoration: underline;
}

.lights-off .s-footer a {
    color: #61EFFD;
}

.lights-off .s-footer a:hover,
.lights-off .s-footer a:focus {
    color: #4DDDE6;
}

.s-footer h5 {
    font-family: var(--font-1, "Crimson Text", serif);
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: inherit;
}

.s-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s-footer li {
    margin-bottom: 0.75rem;
    padding: 0;
}

/* Footer main section */
.s-footer__main {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-dark, #d1e7f5);
}

.s-footer__main ul li {
    margin-bottom: 0.75rem;
}

.s-footer__main ul a {
    display: block;
    font-size: 0.7rem;
    line-height: 1.1;
    color: inherit;
}

.s-footer__main ul a:hover, .s-footer__main ul a:focus {
    color: var(--accent-primary, #61EFFD);
}

.lights-off .s-footer__main {
    border-bottom: 1px solid var(--border-color-dark, #304057);
}

/* Footer info section */
.s-footer__info p {
    margin-bottom: 1rem;
    font-size: 0.7rem;
    line-height: 1.1;
}

/* Footer logo */
.s-footer__logo .footer-logo {
    text-align: right;
}

.s-footer__logo .footer-logo a {
    display: inline-block;
}

.s-footer__logo .footer-logo img {
    height: 7rem;
    width: auto;
    margin-right:0;
}

/* Dark mode footer logo styling */
.lights-off .s-footer__logo .footer-logo img {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 0.1rem !important;
}

/* Footer bottom section */
.s-footer__bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--footer-border-color);
}

.lights-off .s-footer__bottom {
    border-top-color: #304057;
}

/* Copyright */
.ss-copyright span {
    display: inline-block;
    font-size: 0.7rem;
    line-height: 1.1;
    margin-right: 1.5rem;
    color: var(--text-color-2, #8595AE);
}

.ss-copyright span::after {
    content: "|";
    padding-left: 1.2rem;
    color: var(--border-color, #d1e7f5);
}

.ss-copyright span:last-child::after {
    display: none;
}

/* Go to top button */
.ss-go-top {
    position: absolute;
    bottom: 5rem;
    right: 4rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    height: 2rem;
    width: 2rem;
    display: block !important;
    text-align: center;
    font-size: 0;
    line-height: 1;
    border-radius: 70%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.ss-go-top a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.ss-go-top a:hover, .ss-go-top a:focus {
    background-color: var(--color-1-darker, #3ac4d0);
}

.ss-go-top svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: #ffffff;
}

.ss-go-top.link-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4rem);
}

/* Site footer paragraph - attribution link */
.site-footer p {
    font-size: 14px !important;
    line-height: 20px !important;
    color: #8595AE !important;
    margin-top: 8px !important;
    text-align: left !important;
    width: 90% !important;
}

.site-footer p a.attribution-link {
    color: #8595AE !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-weight: normal !important;
}

a.attribution-link:link,
a.attribution-link:visited,
a.attribution-link:hover,
a.attribution-link:active {
    color: #8595AE !important;
    text-decoration: underline !important;
}

.lights-off .site-footer p {
    color: var(--blue-lighter) !important;
}

.lights-off .site-footer p a.attribution-link,
.lights-off a.attribution-link:link,
.lights-off a.attribution-link:visited,
.lights-off a.attribution-link:hover,
.lights-off a.attribution-link:active {
    color: var(--blue-lighter) !important;
}

/* Mobile footer styles */
@media (max-width: 640px) {
    .site-footer .container p,
    .site-footer-inner p {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Stack footer columns vertically and center */
    .s-footer .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .s-footer [class*="column"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .s-footer__logo .footer-logo {
        text-align: center;
    }
    
    .s-footer__main ul,
    .s-footer h5 {
        text-align: center;
    }
    
    /* Make footer top border more obvious on mobile */
    .s-footer {
        border-top: 4px solid var(--primary-color, #0C2E7E) !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .lights-off .s-footer {
        border-top: 4px solid #61EFFD !important;
        box-shadow: 0 -2px 8px rgba(255, 255, 255, 0.1);
    }
}

/* Responsive footer adjustments */
@media screen and (max-width: 1200px) {
    .row .row {
        margin-left: calc(var(--gutter-md) * -1);
        margin-right: calc(var(--gutter-md) * -1);
    }
    .column {
        padding: 0 var(--gutter-md);
    }
}

@media screen and (max-width: 800px) {
    .s-footer {
        padding: 3rem 0 2rem;
    }
    .row {
        padding: 0 var(--gutter-md);
    }
    .ss-go-top {
        right: 2rem;
        height: 4rem;
        width: 4rem;
    }
    .ss-go-top svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    .row {
        padding: 0 var(--gutter-mob);
    }
    .row .row {
        margin-left: calc(var(--gutter-mob) * -1);
        margin-right: calc(var(--gutter-mob) * -1);
    }
    .column {
        padding: 0 var(--gutter-mob);
    }
    .s-footer__bottom {
        padding: 2rem 0 0;
    }
    .ss-copyright span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .ss-copyright span::after {
        display: none;
    }
    .ss-go-top {
        right: 1.5rem;
    }
}

/* ================================================================
 * UTILITY CLASSES
 * ================================================================ */

/* Text visibility fixes */
.cta .section-inner,
.section-inner {
    position: relative !important;
    z-index: 10 !important;
}

.cta .section-title,
.section-title {
    position: relative !important;
    z-index: 100 !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
}

.lights-off .cta .section-title,
.lights-off .section-title {
    background: rgba(24, 37, 56, 0.9) !important;
}

.cta .section-paragraph,
.section-paragraph {
    position: relative !important;
    z-index: 15 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px) !important;
}

.lights-off .cta .section-paragraph,
.lights-off .section-paragraph {
    background: rgba(24, 37, 56, 0.95) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ================================================================
 * WEBSHOP-STYLE ADDITIONS FOR HOMEPAGE
 * ================================================================ */

/* Shop Color Variables - Using site-wide color scheme */
:root {
    --shop-primary: var(--primary-color);
    --shop-primary-light: var(--primary-light);
    --shop-primary-dark: var(--primary-dark);
    --shop-accent-orange: var(--accent-orange);
    --shop-accent-orange-light: var(--accent-orange-light);
    --shop-accent-teal: #5fb3b3;
    --shop-accent-pink: #ffd4e5;
    --shop-bg-white: var(--bg-white);
    --shop-bg-cream: #faf8f5;
    --shop-bg-gray: #f5f5f5;
    --shop-text-dark: var(--text-color);
    --shop-text-gray: #666;
    --shop-text-light: #999;
    --shop-border: #e0e0e0;
    --shop-border-light: #f0f0f0;
    --shop-success: #6fbe44;
    --shop-shadow-sm: rgba(0, 0, 0, 0.04);
    --shop-shadow-md: rgba(0, 0, 0, 0.08);
    --shop-shadow-lg: rgba(0, 0, 0, 0.12);
}

/* Shop-style Header Adjustments */
.site-header.shop-style {
    background: var(--shop-bg-white);
    box-shadow: 0 2px 12px var(--shop-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.shop-style .logo {
    display: flex;
    align-items: center;
}

.shop-style .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.shop-style .logo img {
    height: 5rem;
    width: auto;
    display: block;
}

.shop-style .hamburger-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0.75rem;
    margin-right: 1.5rem;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

.shop-style .hamburger-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--shop-text-dark);
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1;
}

.shop-style .homepage-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.shop-style .homepage-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--shop-text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.shop-style .homepage-hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.shop-style .homepage-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.shop-style .homepage-hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.shop-style .header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.shop-style .balance-indicator {
    font-size: 0.9rem;
    color: var(--shop-text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--shop-bg-gray);
    position: relative;
    cursor: help;
    transition: all 0.3s;
}

.shop-style .balance-indicator:hover {
    background: var(--shop-primary-light);
}

.shop-style .balance-indicator.logged-out {
    color: var(--shop-text-light);
    opacity: 0.6;
}

.shop-style .balance-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--shop-text-dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1001;
}

.shop-style .balance-indicator:hover .balance-tooltip {
    opacity: 1;
}

.shop-style .account-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--shop-border);
    background: transparent;
    color: var(--shop-text-gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-style .account-button:hover {
    color: var(--shop-primary);
    border-color: var(--shop-primary);
    background: var(--shop-primary-light);
}

.shop-style .account-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.shop-style .cart-button {
    position: relative;
    background: transparent;
    color: var(--shop-text-dark);
    border: 1px solid var(--shop-border);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-style .cart-button:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
    background: var(--shop-primary-light);
}

.shop-style .cart-icon {
    width: 18px;
    height: 18px;
}

.shop-style .cart-count {
    background: var(--shop-accent-orange);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Cart and Studio Panels */
.cart-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: var(--shop-bg-white);
    box-shadow: -4px 0 24px var(--shop-shadow-md);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--shop-primary-dark);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--shop-text-light);
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.close-cart .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--shop-bg-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--shop-border-light);
}

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

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--shop-primary-light);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    font-weight: 600;
    color: var(--shop-text-dark);
    font-size: 0.95rem;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--shop-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.cart-quantity-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--shop-border);
    background: white;
    color: var(--shop-text-dark);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cart-quantity-btn:hover {
    background: var(--shop-primary);
    color: white;
    border-color: var(--shop-primary);
}

.cart-quantity-number {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: var(--shop-text-dark);
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    border: none;
    color: var(--shop-text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.remove-item:hover {
    color: #ff4444;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--shop-border-light);
    background: var(--shop-bg-cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-label {
    color: var(--shop-text-gray);
}

.cart-total-amount {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--shop-primary-dark);
    font-size: 1.5rem;
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background: var(--shop-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shop-shadow-md);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--shop-text-gray);
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.2;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.empty-cart p {
    margin-bottom: 0.5rem;
}

/* Notification */
#notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--shop-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shop-shadow-lg);
    z-index: 3000;
    animation: slideUp 0.3s ease, fadeOut 0.4s ease 2.6s;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

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

/* Featured Products Section */
.featured-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
}

.featured-header {
    margin-bottom: 2rem;
    text-align: center;
}

/* Learning Path Sections */
.learning-path {
    width: 100%;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.learning-path.hidden {
    display: none;
}

.path-header {
    margin-bottom: 1.5rem;
}

.path-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--shop-primary-dark);
    margin-bottom: 0.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.path-description {
    color: var(--shop-text-gray);
    font-size: 0.95rem;
}

/* Hero List Styling */
.hero-list {
    max-width: 700px;
    margin: 0 0 2rem 0;
    text-align: left;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.hero-list li {
    margin-bottom: 0.5rem;
}

.hero-button-group {
    max-width: 700px;
    margin: 2rem 0 0 0;
    display: flex;
    justify-content: flex-start;
}


.featured-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2rem;
    color: var(--shop-primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.featured-description {
    color: var(--shop-text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Cards Container */
.products-scroll {
    padding: 1rem 0;
    position: relative;
}

.products-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

/* Styled scrollbar */
.products-container::-webkit-scrollbar {
    height: 8px;
}

.products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scroll Controls */
.scroll-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 20;
    pointer-events: none;
}

.scroll-controls > * {
    pointer-events: auto;
}

.scroll-arrow {
    background: #fe7e1f;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-arrow:hover {
    background: #e56d0f;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
}

.scroll-left {
    position: absolute;
    left: -60px;
}

.scroll-right {
    position: absolute;
    right: -60px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    min-width: 340px;
    max-width: 340px;
    background: var(--shop-bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--shop-border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shop-shadow-lg);
    border-color: var(--shop-border);
}

.product-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--shop-primary-light), var(--shop-accent-pink));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--shop-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.9rem;
    color: var(--shop-text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: var(--shop-bg-gray);
    color: var(--shop-text-gray);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--shop-border-light);
    min-height: 5rem;
}

.product-link {
    padding: 0.5rem 1rem;
    background: var(--shop-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: var(--shop-primary-dark);
    transform: translateY(-1px);
}

/* Badges */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.badge-free {
    background: rgba(111, 190, 68, 0.95);
    color: white;
}

.badge-new {
    background: rgba(255, 153, 102, 0.95);
    color: white;
}

.badge-bilingual {
    background: rgba(95, 179, 179, 0.95);
    color: white;
}

.badge-languages {
    background: rgba(44, 95, 124, 0.95);
    color: white;
}

.badge-indevelopment {
    background: rgba(121, 44, 124, 0.95);
    color: white;
}

.badge-ready-to-print {
    background: rgba(44, 124, 95, 0.95);  /* Green-teal color */
    color: white;
}

/* Quick Add Button - Top Right Corner */
.quick-add-wrapper {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quick-add {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--shop-primary);
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.quick-add:hover {
    background: var(--shop-primary);
    color: white;
    border-color: var(--shop-primary);
}

/* Details Arrow - Bottom Right */
.details-arrow {
    width: 36px;
    height: 36px;
    background: var(--shop-bg-gray);
    color: var(--shop-text-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-4px);
}

.product-card:hover .details-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--shop-primary);
    color: white;
}

/* Generate button (replaces details arrow for generate products) */
.generate-action {
    padding: 0.5rem 1rem;
    background: var(--shop-accent-teal);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-4px);
}
a.generate-action {
    text-decoration: none;
    display: inline-block;
}

.product-card:hover .generate-action {
    opacity: 1;
    transform: translateX(0);
}

/* Price info for generate/customize products */
.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 4.5rem;
}

.price-note {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--shop-text-gray);
    font-weight: 500;
    min-height: 1.96rem;
}

.price {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--shop-primary-dark);
    letter-spacing: -0.02em;
}

.price.free {
    color: var(--shop-success);
}

/* Responsive Product Cards */
@media (max-width: 768px) {
    .product-card {
        min-width: 300px;
        max-width: 300px;
    }
    
    .featured-section {
        padding: 0 1rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
    
    /* Hide scroll controls on mobile - users can swipe */
    .scroll-controls {
        display: none;
    }
    
    /* Mobile Header Adjustments */
    .shop-style .header-content {
        padding: 1rem 1.5rem;
        flex-wrap: nowrap;
    }
    
    .shop-style .hamburger-menu-container {
        margin-left: 0.5rem;
    }
    
    .shop-style .logo img {
        height: 36px;
    }
    
    .shop-style .header-actions {
        gap: 0.5rem;
    }
    
    .shop-style .balance-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .shop-style .cart-button {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .shop-style .header-actions .button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    /* Hero adjustments for shop style */
    .hero {
        padding: 2rem 1rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero .hero-paragraph {
        font-size: 0.9rem;
    }
}

/* ===== Phone portrait (480px) ===== */
@media (max-width: 480px) {
    /* Stack product cards vertically instead of horizontal scroll */
    .products-container {
        flex-direction: column;
        overflow-x: visible;
        align-items: stretch;
        gap: 1rem;
        padding-bottom: 0;
    }

    .product-card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .products-scroll {
        overflow: visible;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    /* Hero: reduce vertical space */
    .hero {
        padding: 1.5rem 1rem 1rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Cart panel: full-width overlay */
    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: 1.25rem;
    }

    .cart-items {
        padding: 1rem;
    }

    .cart-footer {
        padding: 1.25rem;
    }

    .checkout-button {
        min-height: 48px;
        font-size: 1rem;
    }

    .close-cart {
        width: 44px;
        height: 44px;
    }

    /* Featured section */
    .featured-section {
        padding: 0 0.75rem;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    /* Path headers */
    .path-title {
        font-size: 1.2rem;
    }

    .path-description {
        font-size: 0.85rem;
    }

    /* Toast notifications */
    .toast-notification {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
}

/* ===== Touch devices: make hover-gated controls always visible ===== */
@media (hover: none) {
    .quick-add {
        opacity: 1;
        transform: translateY(0);
    }

    .card-quantity.active {
        opacity: 1;
        transform: translateY(0);
    }

    .details-arrow {
        opacity: 1;
        transform: translateX(0);
        background: var(--shop-primary);
        color: white;
    }

    .generate-action {
        opacity: 1;
        transform: translateX(0);
    }

    /* Disable card hover lift on touch — it sticks after tap */
    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-image img {
        transform: none;
    }
}
