:root {
    --primary: #00CFFF;
    --primary-dark: #009ecc;
    --secondary: #0D1B2A;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --border: #e2e8f0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TOP BAR */
.top-bar {
    background-color: var(--secondary);
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-right a {
    margin-left: 15px;
    color: var(--primary);
    font-weight: 600;
}

.top-bar-right a:hover {
    color: var(--white);
}

/* MAIN HEADER */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo-text strong {
    display: block;
    font-size: 1.4rem;
    color: var(--secondary);
    line-height: 1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SEARCH BAR */
.header-search {
    display: flex;
    flex: 0 1 400px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
}

.header-search button {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* HEADER ICONS */
.header-icons {
    display: flex;
    gap: 25px;
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    position: relative;
}

.icon-btn i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.icon-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* HERO SLIDER SECTION */
.hero-slider-section {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a293b 100%);
    color: var(--white);
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    padding: 15px 0 30px 0;
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary);
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h2 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-text h3 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero-text .btn-primary,
.hero-text .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 15px;
}

.hero-text .btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.hero-text .btn-primary:hover {
    background: var(--primary-dark);
}

.hero-text .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-text .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }

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

    .hero-text .btn-primary,
    .hero-text .btn-secondary {
        margin: 10px 5px;
    }
}

/* CATEGORY NAVIGATION */
.cat-nav {
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

.cat-nav ul::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.cat-nav li a {
    display: block;
    color: var(--white);
    padding: 15px 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.cat-nav li a:hover,
.cat-nav li a.active {
    color: var(--primary);
}

/* HERO SECTION */
.hero-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 500px;
}

.hero-tag {
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 15px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-hero {
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.btn-hero-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

/* SERVICES STRIP */
.services-strip {
    background: var(--white);
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.services-grid {
    display: flex;
    justify-content: space-between;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
}

.service-text strong {
    display: block;
    color: var(--secondary);
    font-size: 1.05rem;
}

.service-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECTION GLOBAL */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.section-title {
    margin: 0;
    font-size: 1.8rem;
    color: var(--secondary);
}

.view-all {
    color: var(--primary-dark);
    font-weight: 600;
}

.view-all:hover {
    color: var(--secondary);
}

/* CATEGORY CARDS */
.cat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.cat-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.cat-card p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* PRODUCT CARDS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-hot {
    background: #ff4757;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-image {
    background: #f8f9fa;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--secondary);
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    background: var(--bg-light);
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

/* NEWSLETTER SECTION */
.newsletter-section {
    background: var(--primary);
    padding: 40px 0;
    color: var(--secondary);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.newsletter-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex: 0 1 500px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* FOOTER */
.footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-text strong {
    color: var(--white);
    display: block;
    font-size: 1.2rem;
}

.footer-logo .logo-text span {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.footer-about {
    line-height: 1.6;
    margin-top: 15px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

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

.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col ul li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: #09131d;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: #888;
}

/* BRANDS GRID */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.brand-item {
    background: var(--white);
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-transform: uppercase;
}

.brand-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 207, 255, 0.3);
    transform: translateY(-8px) scale(1.05);
}

/* =========================================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS (STOREFRONT)
   ========================================================= */

@media (max-width: 768px) {

    /* Top Bar */
    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-bar-left span {
        margin: 0 6px;
        display: inline-block;
        font-size: 0.8rem;
    }

    .top-bar-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 0.8rem;
    }

    .top-bar-right a {
        margin: 0 4px;
    }

    /* Main Header */
    .site-header {
        padding: 12px 0;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo icons"
            "search search";
        gap: 12px;
        align-items: center;
    }

    .site-logo {
        grid-area: logo;
        flex-direction: row;
        text-align: left;
        gap: 8px;
        justify-content: flex-start;
    }

    .logo-icon img {
        height: 40px !important;
    }

    .logo-text strong {
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .logo-text span {
        display: none;
    }

    .header-search {
        grid-area: search;
        width: 100%;
        margin: 0;
    }

    .header-icons {
        grid-area: icons;
        width: auto;
        justify-content: flex-end;
        gap: 15px !important;
    }

    .header-icons .icon-btn span:not(.cart-badge) {
        display: none;
    }

    /* Category Nav hidden on mobile (accessible via mobile slide-out navigation only) */
    .cat-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    /* Hero Section */
    .hero-slider {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn-hero,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
        margin: 6px 0;
        text-align: center;
    }

    /* Services Strip */
    .services-grid {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .service-item {
        width: 100%;
    }

    /* Newsletter Section (Responsive & Compact without right overflow) */
    .newsletter-section {
        padding: 24px 0 !important;
        overflow: hidden !important;
    }

    .newsletter-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 14px !important;
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .newsletter-text {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }

    .newsletter-text h2 {
        font-size: 1.3rem !important;
        margin-bottom: 6px !important;
        word-wrap: break-word !important;
    }

    .newsletter-text p {
        font-size: 0.86rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 4px !important;
        word-wrap: break-word !important;
    }

    .newsletter-form {
        display: flex !important;
        flex-direction: row !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        gap: 0 !important;
        box-sizing: border-box !important;
    }

    .newsletter-form input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        border-radius: 6px 0 0 6px !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    .newsletter-form button {
        flex: 0 0 auto !important;
        width: auto !important;
        border-radius: 0 6px 6px 0 !important;
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    /* Table Responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 600px) {

    /* General mobile container overflow protection */
    .container {
        max-width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    /* 2-Column Product & Catalog Grid on Mobile Phones */
    .products-grid,
    .catalog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-image,
    .product-image-container,
    .product-image-box {
        height: 140px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .product-image img,
    .product-image-container img,
    .product-image-box img,
    .product-card img,
    .product-image-wrapper img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .product-image-wrapper {
        height: 220px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-info,
    .product-details {
        padding: 10px 8px !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .product-name,
    .product-card-name {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        height: 2.5em !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        margin-bottom: 6px !important;
    }

    .product-price,
    .product-card-price {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }

    .btn-add-cart,
    .btn-cart-add {
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .badge-hot {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* =========================================================
   MOBILE NAVIGATION DRAWER STYLES
   ========================================================= */
.mobile-menu-btn {
    display: none;
}

.mobile-nav-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(13, 27, 42, 0.65) !important;
    backdrop-filter: blur(4px);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.mobile-nav-backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 310px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(105%) !important;
    visibility: hidden !important;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease !important;
    overflow: hidden !important;
}

.mobile-nav-drawer.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-drawer-header {
    background: #0D1B2A;
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #00CFFF;
}

.mobile-drawer-logo strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.mobile-drawer-logo span {
    font-size: 0.72rem;
    color: #00CFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-drawer-close:hover {
    background: #ff6b81;
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 0;
}

.mobile-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0 15px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-drawer-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: #0D1B2A;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-drawer-links li a:hover,
.mobile-drawer-links li a:active {
    background: #f1f5f9;
    color: #00CFFF;
}

.mobile-drawer-links li a i {
    width: 20px;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

.mobile-drawer-badge {
    background: #00CFFF;
    color: #0D1B2A;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: auto;
}

.mobile-drawer-section-title {
    padding: 18px 20px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-drawer-categories {
    list-style: none;
    margin: 0;
    padding: 0 15px 20px;
}

.mobile-drawer-categories>li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-categories>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.mobile-drawer-categories>li>a:hover {
    background: #f8fafc;
    color: #0D1B2A;
}

.mobile-drawer-subcats {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 25px;
}

.mobile-drawer-subcats li a {
    display: block;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
}

.mobile-drawer-subcats li a:hover {
    color: #00CFFF;
}

/* LIVE SEARCH RESULTS */
.header-search {
    position: relative;
}

.live-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 5px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.live-search-results.active {
    display: block;
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background-color: #f8fafc;
}

.live-search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.live-search-item-info {
    flex: 1;
}

.live-search-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.live-search-item-price {
    font-size: 13px;
    color: var(--primary, #00CFFF);
    font-weight: 700;
}

.live-search-no-results {
    padding: 15px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* --- NEW HOME PAGE STYLES --- */
.global-cyber-bg {
    background-color: #fbfbfb;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 207, 255, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(0, 207, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 207, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-attachment: fixed;
}

.home-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.home-sidebar {
    width: 25%;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    overflow: hidden;
    height: fit-content;
}

.home-sidebar-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 15px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-sidebar-list li {
    border-bottom: 1px solid var(--border);
}

.home-sidebar-list li:last-child {
    border-bottom: none;
}

.home-sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.home-sidebar-list a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 25px;
}

.home-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.home-main .hero-slider-section {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .home-layout {
        flex-direction: column;
    }

    .home-sidebar {
        display: none;
    }
}

/* --- PREMIUM HOME SEARCH BAR --- */
.home-search-container {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 207, 255, 0.08);
    border: 1px solid rgba(0, 207, 255, 0.15);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00ffcc);
}

.home-search-form {
    display: flex;
    width: 100%;
    gap: 15px;
}

.home-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.home-search-icon {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 1.2rem;
}

.home-search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
    color: var(--secondary);
}

.home-search-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 207, 255, 0.1);
}

.home-search-btn {
    padding: 0 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* --- PREMIUM PRODUCT CARDS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 207, 255, 0.3);
}

.product-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.product-image-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 4rem;
    border-bottom: 1px solid #f1f5f9;
}

.product-info-top {
    padding: 15px;
    padding-bottom: 5px;
    flex: 1;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-name {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4em;
    color: #1e293b;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: var(--primary-dark);
}

.product-info-bottom {
    padding: 15px;
    padding-top: 5px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.product-card:hover .btn-add-cart {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}