/* ==========================================
   SAFENEST STOREFRONT CSS - FULLY REPAIRED
   ========================================== */

/* --- 1. Main Store Wrapper --- */
.store_body {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.store_main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* --- 2. The Glass Navigation Bar --- */
.glass_navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: z-index 0.3s ease;
}

.glass_navbar.nav_open_state {
    z-index: 2000;
}

.nav_container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav_brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav_brand .brand_icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00f0ff, #0ea5e9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060b14;
    font-size: 20px;
}

.nav_brand .brand_name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.nav_links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav_links a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav_links a:hover,
.nav_links a.active {
    color: #00f0ff;
}

/* --- 3. Desktop Actions (Cart & My Account) --- */
.nav_actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    /* Tightened gap so Cart and Account button stay together */
    flex-shrink: 0;
}

/* Upgraded Cart Button Design */
.cart_action {
    position: relative;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart_action i {
    font-size: 1.4rem;
    /* Forces proper icon size */
}

.cart_action:hover {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
}

.cart_badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: #060b14;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.divider_v_small {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* --- 4. Glass Cards & Layouts --- */
.glass_card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass_card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

.flex_between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.section_header {
    margin-bottom: 3rem;
    position: relative;
}

.section_header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 12px 0;
}

.section_header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.view_all_link {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view_all_link:hover {
    color: #fff;
}

/* --- 5. Hero Section --- */
.hero_section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    padding: 6rem 0 4rem;
    position: relative;
    flex-wrap: wrap;
}

.hero_content {
    max-width: 650px;
    z-index: 2;
    flex: 1 1 100%;
}

.hero_headline {
    font-size: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
    margin: 1.5rem 0;
    color: #fff;
}

.hero_headline span {
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero_subheadline {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero_actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge_pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
}

/* --- 6. Product Flex Grid --- */
.product_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.product_grid .glass_card {
    flex: 1 1 280px;
    max-width: calc(30% - 1.5rem);
}

.product_image_wrap {
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.product_image_wrap img {
    max-height: 80%;
    width: auto;
}

.product_brand {
    color: #00f0ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.product_name {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.product_desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.price_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.product_price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* --- 7. The Glass Footer (Restored) --- */
.glass_footer {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer_container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.footer_column {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer_column h4 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer_column a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer_column a:hover {
    color: #00f0ff;
}

.footer_bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    width: 100%;
}

/* ==========================================
   MOBILE RESPONSIVENESS & SIDEBAR FIX
   ========================================== */

.mobile_toggle,
.mobile_close {
    display: none;
}

.sidebar_overlay {
    display: none;
}

@media (min-width: 993px) {
    .nav_wrapper {
        display: flex;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        margin-left: 3rem;
    }
}

@media (max-width: 992px) {
    .nav_wrapper {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #0b1120;
        flex-direction: column;
        padding: 2rem;
        align-items: flex-start;
        transition: left 0.3s ease;
        display: flex;
        z-index: 1002;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        margin-left: 0;
    }

    .nav_wrapper.open {
        left: 0;
    }

    .sidebar_overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1001;
        backdrop-filter: blur(4px);
        display: none;
    }

    .sidebar_overlay.open {
        display: block;
    }

    .nav_links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav_actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 2rem;
        align-items: flex-start;
    }

    .mobile_toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        order: -1;
    }

    .mobile_close {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        align-self: flex-end;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero_section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
    }

    .hero_headline {
        font-size: 2.5rem;
    }

    .hero_subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero_actions {
        justify-content: center;
    }

    .product_grid {
        gap: 0.8rem;
    }

    .product_grid .glass_card {
        flex: 1 1 calc(50% - 0.8rem);
        max-width: calc(50% - 0.4rem);
        padding: 1rem;
    }

    .product_image_wrap {
        height: 120px;
    }

    .product_name {
        font-size: 1rem;
        line-height: 1.2;
        height: 2.4em;
        overflow: hidden;
    }

    .product_desc.mobile_hide {
        display: none;
    }
}