/* Premium Design System - EYECOM NX */

:root {
    /* Colors */
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #cbd5e1;
    --success: #22c55e;
    --danger: #ef4444;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Transitions */
    --transition: all 0.2s ease-in-out;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* =============================================
   NAVBAR — 2-Row Desktop Layout
   ============================================= */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Row 1 & Row 2 only show on desktop */
.desktop-nav-row {
    display: none;
}

/* Mobile row always visible */
.mobile-navbar-row {
    display: block;
}

/* ---- Desktop breakpoint ---- */
@media (min-width: 1024px) {
    /* Show desktop rows, hide mobile row */
    .desktop-nav-row { display: block; }
    .mobile-navbar-row { display: none; }

    /* Wide container for desktop */
    .navbar .container {
        max-width: 100% !important;
        padding: 0 3rem !important;
    }

    /* ROW 1 — Logo + Search */
    .navbar-row-1 {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar-row-1-grid {
        display: grid !important;
        grid-template-columns: 1fr minmax(200px, 700px) 1fr;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .navbar-row-1-grid .logo-wrapper {
        justify-self: start;
        display: flex;
        align-items: center;
    }

    .navbar-row-1-grid .search-wrapper {
        justify-self: center;
        width: 100%;
    }

    .navbar-row-1-grid .cart-wrapper {
        justify-self: end;
        display: flex;
        align-items: center;
    }

    /* ROW 2 — Nav links */
    .navbar-row-2 {
        background: var(--bg-card);
        border-top: 1px solid var(--border);
    }

    /* Desktop nav menu (row 2) */
    .desktop-nav-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
    }

    /* Each link in row 2 */
    .desk-nav-link {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition: color 0.15s, border-color 0.15s;
        cursor: pointer;
    }

    .desk-nav-link:hover {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    /* Caret icon */
    .desk-caret {
        font-size: 0.7rem;
        transition: transform 0.2s;
    }

    /* ---- Dropdown container ---- */
    .desk-dropdown {
        position: relative;
    }

    .desk-dropdown:hover .desk-caret {
        transform: rotate(180deg);
    }

    /* Dropdown panel — dynamic height, no max-height clamp */
    .desk-dropdown-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        width: max-content; /* grows with content */
        max-width: 320px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-top: 2px solid var(--accent);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: var(--shadow-lg);
        z-index: 500;
        padding: 0.25rem 0;
        /* smooth open */
        animation: dropIn 0.15s ease;
    }

    @keyframes dropIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .desk-dropdown:hover .desk-dropdown-panel {
        display: block;
    }

    /* Items inside dropdown */
    .desk-dropdown-item {
        display: block;
        padding: 0.55rem 1rem;
        font-size: 0.875rem;
        color: var(--text-primary);
        transition: background 0.1s, color 0.1s;
    }

    .desk-dropdown-item:hover {
        background: var(--bg-main);
        color: var(--accent);
    }

    /* Header item (e.g. "All Computer Components") */
    .desk-dropdown-item--header {
        font-weight: 600;
        border-bottom: 1px solid var(--border);
        color: var(--text-secondary);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .desk-dropdown-item--header:hover {
        color: var(--accent);
        background: var(--bg-main);
    }
}

/* ---- Legacy single-row navbar height (mobile) ---- */
.navbar-inner {
    height: 70px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    top: 100%;
    left: 0;
    padding: var(--space-sm) 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--bg-main);
}

.nav-categories-heading {
    display: none;
}

/* Individual Category Dropdowns */
.cat-dropdown {
    position: relative;
    display: inline-block;
}

.cat-dropdown>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    top: 100%;
    left: 0;
    padding: var(--space-sm) 0;
    z-index: 200;
}

.cat-dropdown:hover .cat-dropdown-content {
    display: block;
}

.cat-dropdown-content a {
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    display: block;
    font-size: 0.95rem;
}

.cat-dropdown-content a:hover {
    background-color: var(--bg-main);
    color: var(--accent);
}

/* Mobile category accordion */
.mobile-cat-group {
    width: 100%;
}

.mobile-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    font-family: inherit;
}

.mobile-cat-toggle i {
    transition: transform 0.2s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.mobile-cat-toggle.open i {
    transform: rotate(180deg);
}

.mobile-cat-children {
    display: none;
    flex-direction: column;
    background: #f8fafc;
}

.mobile-cat-children.open {
    display: flex;
}

.mobile-cat-children a {
    padding: 0.6rem var(--space-md) 0.6rem 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #f1f5f9;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem 0;
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
}

/* Product Cards */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image-wrap {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background-color: #f1f5f9;
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.product-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 9999px; /* Pill / Radio Style */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: #ffffff;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
    background-color: rgba(59, 130, 246, 0.05);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #16a34a;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Product Details Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

.gallery-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.product-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
}

.specs-table th,
.specs-table td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.specs-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
}

/* Cart Page */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-lg);
}

.cart-item-amz {
    display: flex;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    gap: var(--space-lg);
}

.cart-item-amz-image {
    width: 150px;
    flex-shrink: 0;
}

.cart-item-amz-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cart-item-amz-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-amz-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f1111;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.cart-item-amz-title:hover {
    color: #c45500;
    text-decoration: underline;
}

.cart-item-amz-stock {
    color: #007600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cart-item-amz-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 1rem;
}

.cart-item-amz-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.cart-qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #14f7ff;
    /* qty border */
    border-radius: 999px;
    background: #f0f2f2;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #e3e6e6;
}

.qty-btn.trash-icon {
    font-size: 1rem;
}

.qty-val {
    padding: 0 0.5rem;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
    background: #fff;
    line-height: 2;
    border-left: 1px solid #d5d9d9;
    border-right: 1px solid #d5d9d9;
}

.cart-action-btn {
    background: transparent;
    border: none;
    color: #007185;
    cursor: pointer;
    font-size: 0.85rem;
    position: relative;
    padding: 0 0.5rem;
}

.cart-action-btn:hover {
    text-decoration: underline;
    color: #c45500;
}

.cart-action-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 12px;
    width: 1px;
    background: #d5d9d9;
}

.cart-summary {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: fit-content;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.cart-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    padding-top: var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-md) 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-4 {
    margin-bottom: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-md);
}

/* Responsive */
@media (max-width: 768px) {

    .product-detail-grid,
    .cart-grid,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-md);
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-section {
        min-height: 250px !important;
    }

    .hero-content {
        padding: var(--space-md);
        text-align: left !important;
        align-items: flex-start !important;
    }

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

    .product-info h1 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

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

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .desktop-search {
        display: none !important;
    }

    .mobile-search-toggle {
        display: block !important;
    }

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

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 70%;
        /* Give it a good portion of screen */
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 5rem var(--space-md) var(--space-md) var(--space-md);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
        gap: 0;
        align-items: flex-start;
    }

    .nav-links a {
        padding: var(--space-md);
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-categories-heading {
        display: block !important;
        margin-top: var(--space-sm);
    }

    .nav-links.active {
        right: 0 !important;
    }

    .cart-item-amz {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cart-item-amz-image {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }

    .contact-card {
        padding: var(--space-lg) var(--space-md) !important;
        text-align: left !important;
        margin: 0 1rem var(--space-xl) 1rem !important;
    }

    /* Featured Products Mobile Grid Override (Amazon/Flipkart Style) */
    #featured .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    #featured .product-card {
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid var(--border) !important;
        background: #ffffff !important;
    }

    #featured .product-image-wrap {
        padding: 0.5rem !important;
        padding-top: 100% !important; /* Square aspect ratio on mobile */
    }

    #featured .product-image-wrap img {
        padding: 0.25rem !important;
    }

    #featured .product-content {
        padding: 8px 10px !important;
    }

    #featured .product-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        min-height: 2.25rem !important;
        margin-bottom: 4px !important;
    }

    #featured .product-price {
        font-size: 1rem !important;
        margin-top: auto !important;
    }

    #featured .product-price span[style*="line-through"] {
        font-size: 0.75rem !important;
    }

    #featured .product-price span[style*="background"] {
        font-size: 0.65rem !important;
        padding: 1px 4px !important;
    }

    #featured .product-price div[style*="display: flex"] {
        gap: 0.25rem !important;
        margin-top: 2px !important;
        flex-wrap: wrap !important;
    }

    #featured .product-content div[style*="color: var(--success)"] {
        font-size: 0.7rem !important;
        margin-top: 2px !important;
    }

    /* Premium Pill-shaped Add to Cart Button for Mobile (Main Grid and Slider Cards) */
    #featured .product-card .add-to-cart-btn,
    .category-products-grid .product-card .add-to-cart-btn {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        margin-top: 10px !important;
        border-radius: 9999px !important; /* Pill style */
        background: linear-gradient(135deg, var(--accent), #2563eb) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    #featured .product-card .add-to-cart-btn i,
    .category-products-grid .product-card .add-to-cart-btn i {
        font-size: 0.95rem !important;
    }

    /* Mobile Category Slider (horizontal scroll) */
    .category-products-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth momentum scrolling on iOS */
        scroll-behavior: smooth !important;
        scrollbar-width: none !important; /* Hide default scrollbar for Firefox */
        gap: 12px !important;
        padding-bottom: 12px !important;
        margin: 0 -16px !important; /* bleed slider to screen edges */
        padding-left: 16px !important;
        padding-right: 16px !important;
        border-radius: 0 !important;
    }

    .category-products-grid::-webkit-scrollbar {
        display: none !important; /* Hide default scrollbar for Chrome/Safari */
    }

    .category-products-grid .product-card {
        flex: 0 0 240px !important; /* Set fixed card width on mobile slider */
        max-width: 240px !important;
        border-radius: 12px !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-sm) !important;
        background: var(--bg-card) !important;
    }

    /* Style inner card elements for mobile slider */
    .category-products-grid .product-image-wrap {
        padding: 0.5rem !important;
        padding-top: 100% !important; /* Square layout on mobile slider */
    }

    .category-products-grid .product-image-wrap img {
        padding: 0.25rem !important;
    }

    .category-products-grid .product-content {
        padding: 12px !important;
    }

    .category-products-grid .product-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        min-height: 2.3rem !important;
        margin-bottom: 6px !important;
    }

    .category-products-grid .product-price {
        font-size: 1.1rem !important;
        margin-top: auto !important;
    }

    .category-products-grid .product-price span[style*="line-through"] {
        font-size: 0.8rem !important;
    }

    .category-products-grid .product-price span[style*="background"] {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    .category-products-grid .product-price div[style*="display: flex"] {
        gap: 0.35rem !important;
        margin-top: 4px !important;
        flex-wrap: wrap !important;
    }

    /* View All Card (End of Slider) */
    .view-all-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 240px !important; /* Matches product card size */
        max-width: 240px !important;
        border: 2px dashed rgba(59, 130, 246, 0.4) !important; /* Dashed accent color border */
        border-radius: 12px !important;
        background: rgba(59, 130, 246, 0.02) !important; /* Subtle tint */
        padding: var(--space-lg) !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
    }

    .view-all-card:hover {
        background: rgba(59, 130, 246, 0.06) !important;
        border-color: var(--accent) !important;
    }

    .view-all-icon-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: rgba(59, 130, 246, 0.1) !important;
        color: var(--accent) !important;
        margin-bottom: var(--space-md) !important;
        font-size: 1.5rem !important;
        transition: transform 0.3s ease !important;
    }

    .view-all-card:hover .view-all-icon-wrap {
        transform: scale(1.1) !important;
        background: var(--accent) !important;
        color: #ffffff !important;
    }

    .view-all-title {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        margin-bottom: 8px !important;
    }

    .view-all-desc {
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
        line-height: 1.4 !important;
    }
}

/* =========================================
   NEW HOMEPAGE STYLES
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    background: #0f172a;
    /* Dark sleek background */
    color: white;
    display: flex;
    align-items: center;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    max-width: 600px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Shop by Category */
.category-scroller {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    scrollbar-width: none;
    /* Firefox */
}

.category-scroller::-webkit-scrollbar {
    display: none;
}

.category-circle-card {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.category-circle-card:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-circle:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Promo Banners */
.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    color: white;
    min-height: 250px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.promo-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.promo-banner:hover img {
    opacity: 0.7;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

/* Updated Product Cards */
.product-card {
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

/* Contact Card (Desktop styling matching Services page cards) */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.minimal-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.product-image-wrap {
    background: transparent;
    padding: var(--space-md);
    padding-top: 85%;
    /* Make it slightly taller */
}

.product-image-wrap img {
    object-fit: contain;
    /* Better for hardware isolated images */
    padding: var(--space-md);
    transition: transform 0.3s ease;
}

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

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.filter-search {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    max-width: 400px;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .filter-search {
        width: 100%;
        max-width: none;
    }

    .filter-sort {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Header Search */
.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.header-search-form:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 50px;
    width: 100%;
}

.header-search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 50%;
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--accent);
    background: #e2e8f0;
}

/* Filter Sheet */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(2px);
}

.filter-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1001;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-lg);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.filter-sheet.active {
    bottom: 0;
}

.filter-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-sm);
}

.filter-group {
    margin-bottom: var(--space-md);
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.filter-btn {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #e2e8f0;
    border-color: var(--text-secondary);
}

/* Mobile Search Container Animation */
.mobile-search-container {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

/* Carousel Indicator Pulse Effect */
.indicator.active {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* =====================================================
   HERO CAROUSEL  —  Responsive Aspect Ratio
   IMAGE SIZE: 1920 × 800 px (12:5 ratio - Professional Standard)
   
   SPECS FOR BANNER CREATION:
   • Dimensions: 1920 x 800 pixels (EXACT SIZE TO USE)
   • Format: JPG (80-85% quality) or WebP (85% quality) for best performance
   • File size: Keep under 250KB per image
   • Behavior: The image will scale perfectly to fit any device size without cropping.
   • Aspect ratio: 12:5 (widescreen standard)
   • DPI: 72 (web standard)
   
   DESIGN TIPS:
   • The carousel will scale down exactly, so fonts baked into the image will be smaller on mobile.
   • Keep your main visual elements large enough to be legible on smaller screens.
   ===================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800; /* Maintains exact ratio on all devices */
    overflow: hidden;
    background: #0f172a;
}

/* Track: flex row, width matches container so % translates work properly */
.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide is exactly 100% of the carousel's viewport width */
.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gradient overlay — only when text is shown */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    padding: 0 7%;
}

.hero-overlay-inner {
    max-width: 600px;
    color: #fff;
}

.hero-badge-pill {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-heading {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.4rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-cta-btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Prev / Next buttons */
.hc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.hc-nav:hover { 
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.4);
}
.hc-prev { left: 28px; }
.hc-next { right: 28px; }

/* Dot indicators */
.hc-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s, background 0.3s, border-radius 0.3s;
}
.hc-dot.active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
}

/* ── Mobile overrides ─────────────────────────────── */
@media (max-width: 768px) {
    /* Height removed so aspect-ratio handles resizing perfectly without crop */

    .hero-heading {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 0.8rem;
    }

    .hero-badge-pill {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 0.5rem;
    }

    .hc-nav {
        display: none !important;
    }
    .hc-prev { left: 10px; }
    .hc-next { right: 10px; }

    .hc-dots { bottom: 12px; }
    .hc-dot  { width: 8px; height: 8px; }
    .hc-dot.active { width: 24px; }

    .hero-cta-btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
    .hero-overlay { padding: 0 5%; }
    .hero-overlay-inner { max-width: 100%; }
}

/* Mobile Brand Grid 2 Columns */
@media (max-width: 768px) {
    .brand-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-sm) !important;
    }

    .brand-card-mobile {
        padding: var(--space-md) !important;
    }

    .brand-card-mobile img {
        height: 60px !important;
    }
}

/* =====================================================
   PRODUCT DETAIL — Amazon-Style 2-Column Spec Panels
   ===================================================== */

/* Full-width section below product hero */
.specs-panels-section {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border);
    padding-top: var(--space-xl);
}

.specs-panels-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-lg);
}

/* 2-column grid for the two panels */
.specs-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* Individual panel card */
.specs-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.specs-panel:hover {
    box-shadow: var(--shadow-md);
}

/* Clickable header row */
.specs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s ease;
}

.specs-panel-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.specs-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.specs-panel-title i {
    font-size: 1.15rem;
    color: var(--accent);
}

.specs-panel-chevron {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.specs-panel.collapsed .specs-panel-chevron {
    transform: rotate(-90deg);
}

/* Animated body */
.specs-panel-body {
    max-height: 9999px;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease;
    opacity: 1;
    padding: 0;
}

.specs-panel.collapsed .specs-panel-body {
    max-height: 0;
    opacity: 0;
}

/* Specs table inside panel */
.specs-panel-body .panel-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-panel-body .panel-specs-table tr:last-child td,
.specs-panel-body .panel-specs-table tr:last-child th {
    border-bottom: none;
}

.specs-panel-body .panel-specs-table th,
.specs-panel-body .panel-specs-table td {
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
}

.specs-panel-body .panel-specs-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 42%;
    background: #fafbfc;
}

.specs-panel-body .panel-specs-table td {
    color: var(--text-primary);
    font-weight: 500;
}

.specs-panel-body .panel-specs-table tr:hover td,
.specs-panel-body .panel-specs-table tr:hover th {
    background: #f8fafc;
}

/* Responsive: stack to 1 column on mobile */
@media (max-width: 768px) {
    .specs-panel-grid {
        grid-template-columns: 1fr;
    }
    .specs-panels-section {
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
    }
}

/* =============================================
   FAQ Section - Premium Accordion Design
   ============================================= */
.faq-section {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.faq-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
    padding-right: var(--space-md);
}

.faq-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item:hover .faq-icon-wrapper {
    color: var(--accent);
    background-color: rgba(59, 130, 246, 0.08);
}

.faq-item.active .faq-icon-wrapper {
    background-color: var(--accent);
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-icon-wrapper i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 1.75rem 1.5rem 1.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item.active .faq-answer-inner {
    border-color: var(--border);
}

/* Responsive adjustment for FAQ */
@media (max-width: 640px) {
    .faq-header h2 {
        font-size: 1.75rem;
    }
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .faq-answer-inner {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Desktop overrides for Category Rows (PC remains unchanged) */
@media (min-width: 769px) {
    .category-products-grid .product-card:nth-child(n+5) {
        display: none !important;
    }
    .view-all-card {
        display: none !important;
    }
}