/* laptop.css - Harmonized and Optimized Version */
/* ==========================================================================
    1. Base Styles
    ========================================================================== */
    :root {
        --primary-color: #e74c3c;
        --secondary-color: #c0392b;
        --text-color: #5a4a42;
        --text-secondary: #7a6a62;
        --background-light: #fff9f5;
        --background-gray: #f9f9f9;
        --white: #ffffff;
        --shadow-light: rgba(0, 0, 0, 0.1);
        --shadow-medium: rgba(0, 0, 0, 0.15);
    }
    
    * {
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Inter', 'Montserrat', 'Roboto', sans-serif;
        margin: 0;
        padding: 0;
        color: var(--text-color);
        background-color: var(--background-light);
        line-height: 1.6;
        padding-top: 80px;
    }
    
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    /* ==========================================================================
        2. Header Styles
        ========================================================================== */
    header {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--white);
        padding: 20px 0;
        box-shadow: 0 4px 20px var(--shadow-medium);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .branding {
        display: flex;
        align-items: center;
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--white);
    }
    
    .logo-container:hover {
        opacity: 0.9;
    }
    
    .logo-container img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        border-radius: 12px;
        box-shadow: 0 3px 7px var(--shadow-medium);
    }
    
    .company-name-container {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .company-name.top-layer {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.8em;
        font-weight: 700;
        color: var(--white);
        text-shadow: 1px 1px 4px var(--shadow-medium);
        white-space: nowrap;
        letter-spacing: 0.5px;
    }
    
    .company-name.bottom-layer {
        font-family: 'Inter', sans-serif;
        font-size: 1em;
        font-weight: 500;
        color: #eee;
        text-shadow: 1px 1px 3px var(--shadow-light);
        white-space: nowrap;
        letter-spacing: 0.3px;
    }
    
    .navlist ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
    }
    
    .navlist ul li {
        margin-left: 30px;
    }
    
    .navlist ul li:first-child {
        margin-left: 0;
    }
    
    .navlist ul li a {
        color: var(--white);
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        padding: 12px 20px;
        border-radius: 30px;
        transition: all 0.3s ease;
        font-size: 1.05em;
    }
    
    .navlist ul li a:hover,
    .navlist ul li a[aria-current="page"] {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-3px);
        box-shadow: 0 2px 5px var(--shadow-light);
    }
    
    /* ==========================================================================
        3. Main Content Styles
        ========================================================================== */
    .main-content {
        display: flex;
        width: 100%;
        margin-top: 70px;
    }
    
    .sidebar {
        width: 260px;
        padding: 25px;
        background-color: var(--white);
        border-right: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 10px var(--shadow-light);
        position: fixed;
        top: 80px;
        left: 0;
        height: calc(100vh - 80px - 260px);
        overflow-y: auto;
        z-index: 50;
    }
    
    .sidebar h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        color: var(--text-color);
        font-weight: 700;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
    }
    
    #category-list {
        list-style: none;
        padding: 0;
    }
    
    #category-list li {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        color: var(--text-color);
        border-radius: 6px;
    }
    
    #category-list li:last-child {
        border-bottom: none;
    }
    
    #category-list li:hover {
        background-color: var(--primary-color);
        color: var(--white);
        padding-left: 20px;
        box-shadow: 0 2px 5px var(--shadow-light);
    }
    
    .products {
        flex: 1;
        margin-left: 260px;
        padding: 0 5px;
    }
    
    .products h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
        font-weight: 700;
        text-align: center;
    }
    
    .introduction {
        font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        line-height: 1.7;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 35px;
        margin-bottom: 3.5rem;
    }
    
    .product-card {
        background: var(--white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 20px var(--shadow-light);
        transition: all 0.3s ease;
        padding: 20px;
        display: flex;
        flex-direction: column;
        height: 100%;
        text-align: left;
    }
    
    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px var(--shadow-medium);
    }
    
    .product-slider {
        position: relative;
        height: 320px;
        background: var(--background-gray);
        border-bottom: 1px solid #eee;
        margin-bottom: 1rem;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .product-slider-images {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
        width: 100%;
    }
    
    .product-slider-images img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 25px;
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .slider-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--primary-color);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px var(--shadow-light);
        transition: all 0.3s ease;
    }
    
    .slider-btn:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: scale(1.1);
    }
    
    .slider-indicators {
        position: absolute;
        bottom: 10px;
        left: 25px;
        display: flex;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .slider-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-indicator.active {
        background-color: var(--primary-color);
        transform: scale(1.3);
    }
    
    .product-card h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        color: var(--text-color);
        font-weight: 700;
    }
    
    .product-card p {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
        line-height: 1.7;
    }
    
    .product-card .price {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }
    
    .product-specs {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .product-specs h4 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 0.8rem;
    }
    
    .product-specs ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .product-specs li {
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.6;
        padding: 0.4rem 0;
        position: relative;
        padding-left: 1.2rem;
    }
    
    .product-specs li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        font-size: 1.2rem;
    }
    
    .add-to-cart {
        display: inline-block;
        width: auto;
        padding: 14px 30px;
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: auto;
    }
    
    .add-to-cart:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
    }
    
    .faq-section {
        margin-top: 4rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .faq-section h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
        font-weight: 700;
        text-align: center;
    }
    
    .faq-item {
        margin-bottom: 1.5rem;
        background: var(--white);
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 8px var(--shadow-light);
        transition: all 0.3s ease;
    }
    
    .faq-item:hover {
        box-shadow: 0 4px 12px var(--shadow-light);
    }
    
    .faq-item h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--text-color);
        cursor: pointer;
        font-weight: 700;
        transition: color 0.3s ease;
    }
    
    .faq-item h3:hover {
        color: var(--primary-color);
    }
    
    .faq-item p {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.7;
        display: none;
    }
    
    .faq-item.active p {
        display: block;
    }
    
    /* ==========================================================================
        4. Footer Styles
        ========================================================================== */
    footer {
        background: var(--secondary-color);
        color: var(--white);
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }
    
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section {
        text-align: left;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: var(--white);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .footer-section p {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.7;
        margin: 0;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.6rem;
    }
    
    .footer-section ul li a {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 400;
        color: #f3d2c1;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-section ul li a:hover {
        color: var(--white);
    }
    
    .footer-section address {
        font-style: normal;
        margin: 0;
    }
    
    .footer-section address p {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.7;
        margin-bottom: 0.6rem;
    }
    
    .footer-section address a {
        color: #f3d2c1;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-section address a:hover {
        color: var(--white);
    }
    
    .social-links {
        display: flex;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: var(--white);
        text-decoration: none;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        background: var(--primary-color);
        transform: scale(1.1);
    }
    
    .copyright {
        text-align: center;
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.7);
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin: 1rem 0 0;
    }
    
    /* ==========================================================================
        5. Animations & Utilities
        ========================================================================== */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .fade-in {
        animation: fadeIn 0.6s ease-out forwards;
    }
    
    .view-all-button {
        display: inline-block;
        background: var(--primary-color);
        color: var(--white);
        padding: 0.8rem 1.8rem;
        border-radius: 40px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
        border: none;
        cursor: pointer;
        font-size: 1rem;
        margin-top: 2rem;
        text-align: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .view-all-button:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(192, 57, 43, 0.5);
    }
    
    /* ==========================================================================
        6. Responsive Adjustments
        ========================================================================== */
    @media (max-width: 1024px) {
        .sidebar {
            width: 220px;
            height: calc(100vh - 80px - 260px);
        }
    
        .products {
            margin-left: 220px;
            padding: 0 5px;
        }
    
        .products-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    
        .slider-indicators {
            left: 20px;
        }
    }
    
    @media (max-width: 768px) {
        .container {
            width: 95%;
        }
    
        .header-container {
            flex-direction: column;
            align-items: flex-start;
        }
    
        .navlist ul {
            margin-top: 10px;
            flex-wrap: wrap;
        }
    
        .navlist ul li {
            margin: 5px 15px 5px 0;
        }
    
        .logo-container img {
            width: 50px;
            height: 50px;
        }
    
        .company-name.top-layer {
            font-size: 1.4em;
        }
    
        .company-name.bottom-layer {
            font-size: 0.85em;
        }
    
        .main-content {
            flex-direction: column;
        }
    
        .sidebar {
            position: static;
            width: 100%;
            margin-bottom: 20px;
            height: auto;
            border-right: none;
            border-bottom: 1px solid #e0e0e0;
        }
    
        .products {
            margin-left: 0;
            padding: 0 5px;
        }
    
        .product-slider {
            height: 280px;
        }
    
        .slider-indicators {
            left: 15px;
        }
    
        .product-card {
            padding: 15px;
        }
    
        .add-to-cart {
            width: 100%;
            padding: 14px;
        }
    
        .footer-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
            text-align: center;
        }
    
        .footer-section {
            padding: 0;
        }
    
        .footer-section h3 {
            font-size: 1rem;
        }
    
        .footer-section p,
        .footer-section ul li a,
        .footer-section address p {
            font-size: 0.85rem;
        }
    
        .social-links {
            justify-content: center;
            margin-top: 0.8rem;
        }
    }
    
    @media (max-width: 576px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    
        .product-slider {
            height: 240px;
        }
    
        .product-card h3 {
            font-size: 1.3rem;
        }
    
        .product-card .price {
            font-size: 1.6rem;
        }
    
        .product-specs h4 {
            font-size: 1.1rem;
        }
    
        .product-specs li {
            font-size: 0.9rem;
        }
    
        .company-name.top-layer {
            font-size: 1.5rem;
        }
    
        .company-name.bottom-layer {
            font-size: 0.8rem;
        }
    
        .navlist ul li a {
            padding: 10px 15px;
            font-size: 0.95rem;
        }
    
        .footer-section h3 {
            font-size: 0.95rem;
        }
    
        .footer-section p,
        .footer-section ul li a,
        .footer-section address p {
            font-size: 0.8rem;
        }
    
        .social-links a {
            width: 28px;
            height: 28px;
            font-size: 0.9rem;
        }
    
        .copyright {
            font-size: 0.8rem;
        }
    }