/* ==========================================================
   SHOP7373 HOME V2
   Homepage Override
========================================================== */

:root {
    --home-bg: var(--theme-background);

    --home-card: #171a21;

    --home-border: #292d37;

    --home-primary: var(--theme-primary);

    --home-primary-hover: var(--theme-primary-hover);

    --home-accent: var(--theme-primary);

    --home-text: var(--theme-text);

    --home-text-light: #b7bcc8;
}

/* ==========================================================
   GLOBAL
========================================================== */

body {
    background: var(--home-bg);

    color: var(--home-text);
}

.store-main {
    background: var(--home-bg);
}

.catalog-section {
    background: var(--home-bg);
}

/* Desktop */

.mobile-header,
.mobile-menu {
    display: none;
}

/* ==========================================================
   HEADER V2
========================================================== */

.store-header {
    background: var(--theme-header);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    position: sticky;

    top: 0;

    z-index: 999;
}

.header-inner {
    max-width: 1400px;

    margin: auto;

    padding: 18px 18px 14px;
}

.header-top {
    display: grid;

    grid-template-columns: 48px auto 60px;

    align-items: center;

    justify-content: start;

    column-gap: 18px;
}

.store-logo {
    color: #fff;

    text-decoration: none;

    font-size: 35px;

    font-weight: 900;

    letter-spacing: 3px;

    white-space: nowrap;

    flex-shrink: 0;

    display: flex;

    align-items: center;
}

.mobile-menu-button {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    background: none;

    border: none;

    color: white;

    font-size: 34px;

    cursor: pointer;
}

.cart-button {
    width: auto;

    height: 34px;

    border: none;

    border-radius: 16px;

    background: #232834;

    color: white;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}

#cartCount {
    position: absolute;

    top: -4px;

    right: -4px;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--theme-primary);

    color: #fff;

    font-size: 11px;

    font-weight: 700;
}

.header-bottom {
    margin-top: 14px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 14px;
}

.customer-session-nav {
    display: flex;

    align-items: center;

    gap: 14px;
}

.customer-session-nav a {
    color: #fff;

    text-decoration: none;

    font-size: 15px;
}

.language-switcher {
    margin-left: auto;
}

#languageSelector {
    min-width: auto;

    width: 65px;

    height: 34px;

    padding: 0 24px 0 10px;

    font-size: 13px;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.store-logo-image {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.store-logo-text {
    color: #fff;

    font-size: 1.9rem;

    font-weight: 800;

    letter-spacing: 2px;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (min-width: 761px) {
    .mobile-menu-button {
        display: none;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 16px;
    }
}

.mobile-logo {
    display: flex;
    align-items: center;

    gap: 8px;

    text-decoration: none;
}

.mobile-logo-image {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.mobile-logo-text {
    color: #fff;

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: 1px;
}

.customer-session-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.customer-name {
    display: flex;
    align-items: center;

    height: 36px;
}

.customer-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    margin: 0;

    align-self: flex-start;
}

/* ==========================================
   HERO V2
========================================== */

.hero-section {
    background:
        radial-gradient(circle at 70% 45%, rgba(212, 175, 55, 0.18), transparent 28%),
        linear-gradient(90deg, #171717 0%, #2b2b2b 55%, #444 100%);
}

.hero-container {
    max-width: 1400px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;

    display: flex;

    justify-content: center;
}

.hero-badge {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: #d4af37;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.hero-title {
    margin: 24px 0;

    font-size: clamp(2.8rem, 5vw, 4.8rem);

    line-height: 1.1;

    font-weight: 800;

    color: #f8fafc;
}

.hero-description {
    max-width: 560px;

    font-size: 1.1rem;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
    margin-top: 40px;
}

.hero-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 16px 36px;

    border-radius: 999px;

    background: var(--theme-primary);

    color: white;

    font-weight: 700;

    text-decoration: none;

    transition: 0.25s;
}

.hero-button:hover {
    transform: translateY(-3px);

    background: var(--theme-primary-hover);
}

.hero-image {
    width: 920px;
    max-width: 100%;
}

.hero-dots {
    display: flex;

    gap: 10px;

    margin-top: 50px;
}

.hero-dots span {
    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.25);
}

.hero-dots .active {
    background: var(--theme-primary);
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;

        text-align: center;

        gap: 40px;
    }

    .hero-description {
        margin: auto;
    }

    .hero-actions {
        display: flex;

        justify-content: center;
    }

    .hero-image {
        width: 300px;
    }

    .hero-dots {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .store-header {
        display: none;
    }

    .mobile-header {
        display: flex;
        flex-direction: column;

        background: var(--theme-header);

        padding: 16px 20px;

        gap: 14px;

        position: sticky;
        top: 0;
        z-index: 1000;

        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .mobile-header-top {
        display: flex;

        align-items: center;

        justify-content: space-between;
    }

    .mobile-logo {
        font-size: 1.7rem;

        font-weight: 900;

        letter-spacing: 3px;

        color: white;

        text-decoration: none;
    }

    .mobile-cart-button {
        position: relative;

        background: var(--theme-primary);

        border: none;

        color: white;

        width: 48px;

        height: 48px;

        border-radius: 12px;

        cursor: pointer;
    }

    #mobileCartCount {
        position: absolute;

        top: -6px;

        right: -6px;

        width: 22px;

        height: 22px;

        border-radius: 50%;

        background: white;

        color: black;

        font-size: 0.75rem;

        display: flex;

        align-items: center;

        justify-content: center;

        font-weight: bold;
    }

    #mobileLanguageSelector {
        width: 60px;

        padding: 5px 8px;

        border-radius: 12px;

        border: 1px solid rgba(255, 255, 255, 0.15);

        background: #1d2230;

        color: white;

        font-size: 0.8rem;
    }
}

/* ==========================================
   Desktop Cart Drawer
========================================== */

@media (min-width: 769px) {
    .cart-drawer {
        width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .cart-drawer {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        max-width: none;

        height: 74vh;

        border-radius: 24px 24px 0 0;

        transform: translateY(100%);
        transition: transform 0.3s ease;

        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    }

    .cart-drawer.open {
        transform: translateY(0);
    }

    .cart-sheet-handle {
        width: 54px;
        height: 6px;

        border-radius: 999px;

        background: #d1d5db;

        margin: 12px auto 6px;
    }

    .cart-header {
        min-height: 64px;
    }

    .cart-items {
        flex: 1;

        overflow-y: auto;
    }

    .cart-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    @media (max-width: 768px) {
        .mobile-header-bottom {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;

            gap: 12px;
        }

        #mobileCustomerSession {
            flex: 1;
            min-width: 0;
        }

        #mobileCustomerSession .customer-session-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        #mobileLanguageSelector {
            flex-shrink: 0;

            align-self: flex-start;

            margin: 0;
        }
    }

    @media (max-width: 768px) {
        #mobileCustomerSession .customer-session-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        #mobileCustomerSession .customer-info {
            display: flex;
            flex-direction: column;
        }

        #mobileCustomerSession .customer-name {
            display: flex;
            align-items: center;

            height: 32px;

            padding: 2px 12px;

            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 999px;

            background: rgba(255, 255, 255, 0.05);

            color: #fff;

            font-weight: 600;

            text-decoration: none;
        }

        #mobileCustomerSession .customer-subtitle {
            margin-top: 4px;

            margin-left: 13px;

            font-size: 0.85rem;

            color: rgba(255, 255, 255, 0.7);
        }

        #mobileCustomerSession .customer-logout-button {
            display: flex;
            align-items: center;
            justify-content: center;

            height: 29px;

            padding: 5px 8px;

            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 999px;

            background: rgba(255, 255, 255, 0.05);

            color: #fff;

            font-size: 0.8rem;
            font-weight: 600;

            margin: 0;

            cursor: pointer;
        }

        .customer-session-nav {
            display: flex;
            align-items: center;
            gap: 12px;

            white-space: nowrap;
        }

        .customer-session-nav a {
            white-space: nowrap;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .products-grid {
                display: grid;

                grid-template-columns: repeat(2, 1fr);

                gap: 16px;
            }

            .product-card {
                min-width: 0;
            }

            .product-image {
                height: 180px;

                object-fit: contain;
            }

            .product-name {
                font-size: 0.95rem;
            }

            .product-price {
                font-size: 1rem;
            }

            .add-cart-button {
                font-size: 0.8rem;

                padding: 8px;
            }
        }

        @media (max-width: 768px) {
            #mobileCustomerSession {
                display: flex;
                align-items: center;
                gap: 12px;

                white-space: nowrap;
                flex-wrap: nowrap;
            }

            #mobileCustomerSession a {
                display: inline-flex;
                align-items: center;

                white-space: nowrap;

                color: #fff;
                text-decoration: none;
                font-weight: 600;
            }

            @media (max-width: 768px) {
                .products-list .product-card {
                    display: flex;
                    align-items: center;

                    gap: 12px;

                    padding: 12px;
                }

                .products-list .product-image-wrapper {
                    flex: 0 0 90px;

                    width: 90px;
                    height: 90px;
                }

                .products-list .product-image {
                    width: 100%;
                    height: 100%;

                    object-fit: contain;
                }

                .products-list .product-info {
                    flex: 1;
                    min-width: 0;
                }

                .products-list .product-name {
                    font-size: 1rem;

                    margin-bottom: 8px;
                }

                .products-list .product-bottom {
                    display: flex;
                    flex-direction: column;

                    gap: 8px;
                }

                .products-list .add-cart-button {
                    width: 100%;
                }

                .products-list .product-image-wrapper {
                    width: 90px;
                    height: 90px;

                    display: flex;
                    align-items: center;
                    justify-content: center;

                    background: transparent;
                }
            }
        }
    }
}
