:root {
    --leo-brown: #8f6b47;
    --flower-pink: #e0d0cf;
    --fish-blue: #98d0dd;
    --button-green: #28a745;
    --bg: #f5f5f5;
    --text: #1a1a1a;
    --text-light: #F8F7F4;
    --text-secondary: #404040;
    --text-tertiary: #595959;
    --text-muted: #737373;
    --muted: #404040;
    --icon: #2F2F2F;
    --divider: #E7E6E4;
    --accent: #262626;
    --gradient-start: #f5f5f5;
    --gradient-end: #1a1a1a;
    --card: #1a1a1a;
    --input-bg: #E7E6E4;
    --add-to-cart-bg: #f5f5f5;
    --add-to-cart-font: #1a1a1a;
    --buy-now-bg: #1a1a1a;
    --panel-bg: #2a2a2a;
    --buy-now-font: #f5f5f5;
    --nav-btn-bg: #f5f5f5;
    --nav-btn-text: #1a1a1a;
    --nav-btn-border: #1a1a1a;
    --checkout-btn-bg: #1a1a1a;
    --checkout-btn-font: #f5f5f5;
    --hero-title-shadow: rgba(0, 0, 0, 0.25);
    --text-shadow: rgba(0, 0, 0, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.14);
}

@media only screen and (max-width: 768px) and (prefers-color-scheme: dark) {
    :root {
    --bg: #121212;
    --text: #f5f5f5;
    --text-light: #e0e0e0;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8c8c8c;
    --text-muted: #737373;
    --muted: #999999;
    --icon: #f5f5f5;
    --divider: #2e2e2e;
    --accent: #ffffff;
    --gradient-start: #1a1a1a;
    --gradient-end: #000000;
    --card: #1a1a1a;
    --input-bg: #2a2a2a;
    --add-to-cart-bg: #2a2a2a;
    --add-to-cart-font: #f5f5f5;
    --buy-now-bg: #ffffff;
    --buy-now-font: #000000;
    --panel-bg: #1a1a1a;
    --nav-btn-bg: #2a2a2a;
    --nav-btn-text: #f5f5f5;
    --nav-btn-border: #f5f5f5;
    --checkout-btn-bg: #ffffff;
    --checkout-btn-font: #000000;
    --hero-title-shadow: rgba(255, 255, 255, 0.15);
    --text-shadow: rgba(0, 0, 0, 0.9);
    --shadow-color: rgba(255, 255, 255, 0.08);        
    }
}

  .inverse-theme-color {
    --leo-brown: #8f6b47;
    --flower-pink: #e0d0cf;
    --fish-blue: #98d0dd;
    --bg: #121212;
    --text: #f5f5f5;
    --text-light: #e0e0e0;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8c8c8c;
    --text-muted: #737373;
    --muted: #999999;
    --icon: #f5f5f5;
    --divider: #2e2e2e;
    --accent: #ffffff;
    --gradient-start: #1a1a1a;
    --gradient-end: #000000;
    --card: #1a1a1a;
    --input-bg: #2a2a2a;
    --add-to-cart-bg: #2a2a2a;
    --add-to-cart-font: #f5f5f5;
    --buy-now-bg: #ffffff;
    --buy-now-font: #000000;
    --panel-bg: #1a1a1a;
    --nav-btn-bg: #2a2a2a;
    --nav-btn-text: #f5f5f5;
    --nav-btn-border: #f5f5f5;
    --checkout-btn-bg: #ffffff;
    --checkout-btn-font: #000000;
    --hero-title-shadow: rgba(255, 255, 255, 0.15);
    --text-shadow: rgba(0, 0, 0, 0.9);
    --shadow-color: rgba(255, 255, 255, 0.08);        
    }

  @media (prefers-color-scheme: dark) {
    .inverse-theme-color {
    --leo-brown: #8f6b47;
    --flower-pink: #e0d0cf;
    --fish-blue: #98d0dd;
    --button-green: #28a745;
    --bg: #f5f5f5;
    --text: #1a1a1a;
    --text-light: #F8F7F4;
    --text-secondary: #404040;
    --text-tertiary: #595959;
    --text-muted: #737373;
    --muted: #404040;
    --icon: #2F2F2F;
    --divider: #E7E6E4;
    --accent: #262626;
    --gradient-start: #f5f5f5;
    --gradient-end: #1a1a1a;
    --card: #1a1a1a;
    --input-bg: #E7E6E4;
    --add-to-cart-bg: #f5f5f5;
    --add-to-cart-font: #1a1a1a;
    --buy-now-bg: #1a1a1a;
    --panel-bg: #2a2a2a;
    --buy-now-font: #f5f5f5;
    --nav-btn-bg: #f5f5f5;
    --nav-btn-text: #1a1a1a;
    --nav-btn-border: #1a1a1a;
    --checkout-btn-bg: #1a1a1a;
    --checkout-btn-font: #f5f5f5;
    --hero-title-shadow: rgba(0, 0, 0, 0.25);
    --text-shadow: rgba(0, 0, 0, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.14);
    }
  }

/* ==================== UNIVERSAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

/* ==================== TOP HEADER ==================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--gradient-start) 100%, var(--gradient-end) 100%);
    backdrop-filter: blur(10px);
}

.top-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    color: var(--text);
    letter-spacing: 0.35px;
    line-height: 1.4;
    text-align: left;
}

.top-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    color: var(--text);
    letter-spacing: 0.35px;
    line-height: 1.4;
    text-align: left;
}

.logo-container {
    display: flex;
    color: var(--text-light);
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-container img:hover {
    transform: scale(1.1);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    height: 100vh;
    background: url('../images/LeoBL.jpg') no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 25%;
    background-attachment: scroll;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 3px 3px 6px var(--hero-title-shadow);
    text-align: left;
    letter-spacing: 0.1em;
    animation: fadeInUp 1.5s ease-out;
    margin-left: 20px;
    padding-left: 20px;
}

.main-nav {
    position: absolute;
    top: 50%; /* keeps vertical middle */
    left: 50%; /* move to center */
    transform: translate(-50%, -50%); 
    display: flex;
    gap: 10px;
}

.main-nav.active {
    display: flex;
}

.nav-btn {
    background-color: none;
    border: none;
    color: var(--text);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
    text-align: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

/* ==================== PRODUCTS SECTION ==================== */
.product-section {
    background: linear-gradient(45deg, var(--gradient-end) 0%, var(--gradient-start) 75%);
    min-height: 80vh;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-section {
    min-height: 80vh;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    height: 600px;
}

.grid-item {
    background: var(--bg);
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

/* ==================== PRODUCT IMAGES ==================== */
.left-side {
    background-size: cover;
    background-position: center;
}

.product-1-left {
    background-image: url('../images/shop/NH8.webp');
}

.product-2-left {
    background-image: url('../images/shop/HDS4.webp');
}

.theme-1-left {
    background-image: url('../images/themes.png');
}

.right-side {
    display: grid;
    grid-template-columns: 1fr;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.right-side h9 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: normal;
    font-style: normal;
    color: var(--text);
    text-shadow: 3px 3px 6px var(--text-shadow);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
}


/* ==================== OVERLAY ==================== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(173, 216, 230, 0.9);
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item:hover .overlay {
    opacity: 1;
}

.overlay h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 3px 3px 6px var(--text-shadow);
    font-family: 'Noto Serif', Georgia, serif;
}

.overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: normal;
    font-style: normal;
    color: var(--text);
    text-shadow: 3px 3px 6px var(--text-shadow);
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
}

.overlay h5 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: normal;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
}

.overlay p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.overlay-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.overlay-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.process-container {
    width: 500px;
    height: 500px;
    overflow: hidden;
}


/* ==================== BUTTONS & INPUTS ==================== */
button,
.btn {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

button:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

button.secondary {
    background: transparent;
    border-color: var(--panel-border);
}

input[type="color"],
select,
input[type="text"] {
    width: 100%;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 8px;
}

label {
    font-size: 12px;
    color: #cbd5e1;
}

/* ==================== UTILITY COMPONENTS ==================== */
.panel h2 {
    font-size: 14px;
    margin: 6px 6px 10px;
    opacity: 0.9;
    letter-spacing: 0.3px;
    color: var(--text);
}

.legend {
    position: absolute;
    right: 8px;
    top: 8px;
    background: rgba(11, 18, 32, 0.8);
    border: 1px solid var(--panel-border);
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--panel-border);
}

.right .row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}


.hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 6px 0 2px;
}

.footer-note {
    font-size: 11px;
    color: #93c5fd;
    opacity: 0.9;
}

/* ==================== THUMBNAILS ==================== */
.dockh {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.striph {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.striph h3 {
    margin: 0;
    padding: 4px 8px;
    font-size: 12px;
    background: #f6f6f6;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.striph .scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    align-items: center;
}

#outlineRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.thumb {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    object-fit: cover;
    background: var(--panel-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.thumb.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
}

.scroll::-webkit-scrollbar {
    height: 6px;
}

.scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* ==================== SVG PARTS ==================== */
.part {
    cursor: pointer;
    pointer-events: bounding-box;
    transition: filter 0.2s ease;
}

.part:hover {
    filter: brightness(1.2);
}

.part-active {
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
    stroke: var(--accent);
    stroke-width: 2px;
}

.part path,
.part polygon,
.part rect,
.part circle {
    pointer-events: visiblePainted;
}

.click-zone {
    cursor: pointer;
    pointer-events: all;
}

.click-zone:hover {
    fill: rgba(34, 211, 238, 0.1) !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FOOTER ==================== */
        .container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 15px;
        }

        footer {
            background: #fff;
            color: #81807f;
        }


        /* Footer Content */
        .footer-content {
            padding: 24px 0;
            border-bottom: 1px solid #ddd;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }

        .footer-section h3 {
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 15px;
        }

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

        .footer-section li {
            padding: 4px 0;
        }

        .footer-section a {
            color: #2d2b2a;
            text-decoration: none;
            font-size: 14px;
        }

        .footer-section a:hover {
            text-decoration: underline;
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .social-icons a {
            display: block;
            width: 34px;
            height: 34px;
        }

        .social-icons img {
            width: 100%;
            height: auto;
        }

        /* Newsletter */
        .newsletter-form {
            margin-top: 15px;
        }

        .newsletter-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            margin-bottom: 10px;
        }

        .newsletter-btn {
            background: #2d2b2a;
            color: #fff;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            text-transform: uppercase;
        }

        .newsletter-btn:hover {
            opacity: 0.8;
        }

        /* Footer Bottom */
        .footer-bottom {
            padding: 15px 0;
        }

        .footer-bottom-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .payment-methods img {
            height: 40px;
            margin-right: 10px;
        }

        .copyright {
            font-size: 12px;
            line-height: 18px;
            text-align: center;
            margin-top: 0;
            padding: 5px;
        }

/* ==================== Policies ==================== */
.tc {
    margin-top: 75px
}

.tc-main-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 346x;
    font-weight: 600;
    font-style: normal;
    color: var(--text);
}

.content-section {
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 20px 20px;
    background-color: var(--bg);
    overflow: hidden;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    color: var(--text);    
}

.content-section p, li {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    color: var(--text);

}


/* ==================== MOBILE (max-width: 767px) ==================== */
@media (max-width: 768px) {
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        background: linear-gradient(135deg, var(--gradient-start) 100%, var(--gradient-end) 100%);
        backdrop-filter: blur(10px);
    }

    .top-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 12px;
        font-weight: 600;
        font-style: normal;
        color: var(--text);
        letter-spacing: 0.35px;
        line-height: 1.4;
        text-align: left;
    }

    .top-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 8px;
        font-weight: 400;
        font-style: normal;
        color: var(--text);
        letter-spacing: 0.35px;
        line-height: 1.4;
        text-align: left;
    }

    .logo-container {
        display: flex;
        color: var(--text-light);
        align-items: center;
        gap: 0px;
    }

    .logo-container img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .logo-container img:hover {
        transform: scale(1.1);
    }

    .scroll {
        max-height: calc(100vh - 140px);
        display: flex;
        flex-direction: column;
        padding: 0px !important;
        margin: 0px !important;
    }

    /* Category styles */
    #outlineRow {
        padding: 0px;
        gap: 0px;
    }

    .category-header {
        padding: 0px 0px;
        font-size: 24px;
        color: var(--text);
        font-weight: 400;
        margin-top: 0px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: none;
        z-index: 100;
        border-bottom: 1px solid var(--panel-border);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
    }

    .category-images {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 2px;
        max-height: 0;
        min-height: 0;
        margin: 0;
        z-index: 1;
        overflow-x: auto;
        overflow-y: hidden;
        visibility: hidden;
    }

    .category-images.open {
        max-height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-shrink: 0;
        z-index: 1;
        visibility: visible;
    }

    .category-images.open .thumb {
        min-width: 100px;
        flex-shrink: 0;
    }

    .category-header.open .category-toggle {
        transform: rotate(-90deg);
    }

    /* Thumbnails */
    .thumb {
        width: 100%;
        object-fit: cover;
        border: 1px solid var(--panel-border);
        border-radius: 8px;
        background: var(--panel-bg);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .thumb:hover {
        transform: scale(1.05);
        border-color: var(--accent);
    }

    .thumb.selected {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3);
    }

    /* Legend */
    .legend {
        position: absolute;
        right: 3px;
        top: 3px;
        background: white;
        backdrop-filter: blur(5px);
        border: none;
        padding: 8px 10px;
        border-radius: 0;
        font-size: 11px;
        z-index: 10;
        max-width: 100px;
        line-height: 1;
        opacity: 0.8;
    }

    /* Design title */
    .design-title {
        display: block;
        top: 30%;
        transform: translateX(-50%) rotate(-90deg);
        transform-origin: center;
        font-size: 14px;
        text-align: center;
        font-weight: 400;
        text-transform: uppercase;
        color: var(--text);
    }

    /* Panel text */
    .panel h2 {
        margin: 4px 4px 6px;
        font-size: 13px;
    }

    .right .row {
        grid-template-columns: 100px 1fr;
        margin: 6px 0;
    }

    /* Fieldsets */
    fieldset {
        margin: 2px 0;
        padding: 3px;
    }

    legend {
        font-size: 11px;
        font-weight: bold;
    }

    .legend div {
        gap: 2px;
        margin: 2px 0;
        font-size: 10px;
    }

    .swatch {
        width: 12px;
        height: 12px;
        border-radius: 0;
        display: inline-block;
        margin-right: 0;
        flex-shrink: 0;
        border: none;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section {
        background-position: calc(100% - 10px) center;
        background-size: 35%;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 3rem;
        margin-left: 10px;
        padding-left: 10px;
    }

    .products-section {
        padding: 60px 20px;
    }

    .main-container {
        gap: 40px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }

    .grid-item {
        height: 300px;
    }

    .right-side {
        gap: 8px;
    }

    .right-side h9 {
        font-family: 'Playfair Display', serif;
        font-size: 38px;
        font-weight: normal;
        font-style: normal;
        color: var(--text);
        text-shadow: 3px 3px 6px var(--text-shadow);
        letter-spacing: 0.5px;
        line-height: 1.4;
        text-align: center;
    }

    .overlay {
        padding: 20px;
    }

    .overlay h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .overlay h4 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .overlay h5 {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .overlay p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .overlay-btn {
        padding: 12px 24px;
        font-size: 1em;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .help-text {
        display: none;
    }
    

}

/* Hide by default on desktop */
.mobile-bottom-bar {
    display: none;
}

/* On mobile, show fixed at bottom */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg, #fff);
        border-top: 1px solid var(--divider, #e7e6e4);
        z-index: 1000;
    }

    .bottom-bar-items {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 4px 0;
    }

    .bar-item {
        flex: 1;
        text-align: center;
        font-size: 12px;
        color: var(--text, #1a1a1a);
    }

    .bar-item svg {
        width: 18px;
        height: 18px;
        display: block;
        margin: 0 auto;
    }

    .cart-count {
        font-size: 10px;
        background: var(--accent, #262626);
        color: #fff;
        border-radius: 50%;
        padding: 2px 5px;
        display: inline-block;
        margin-left: 4px;
    }
}

/* ==================== TOUCH DEVICE SUPPORT ==================== */
@media (hover: none) and (pointer: coarse) {

    /* Ensure button is always clickable on touch devices */
    .overlay-btn {
        pointer-events: auto;
        position: relative;
        z-index: 100;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 768px) {

    /* default hidden for mobile (JS will toggle .active) */
    .main-nav {
        display: none !important;
        position: absolute !important;
        left: 10px !important;
        bottom: -50px;
        transform: translateY(-50%) !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        background: none !important;
        z-index: 9999 !important;
        min-width: 200px;
        max-width: calc(100% - 40px);
    }

    .main-nav.active {
        display: flex !important;
    }

    .main-nav .nav-btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}