* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Top Bar Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.top-bar .contact-us {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #00e68a;
}

.top-bar .contact-us span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.top-bar .social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar .social-media a {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar .social-media a:hover {
    color: #00e68a;
    transform: scale(1.1);
}

/* Responsive Adjustments for Top Bar */
@media (max-width: 1024px) {
    .top-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
}

/* Hide top bar completely on mobile phones */
@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .top-bar .contact-us,
    .top-bar .social-media {
        width: 100%;
        justify-content: flex-start;
    }
}

h1, h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.product-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease, left 0.3s ease;
}

.product-card h3 a:hover {
    transform: scale(1.05);
    color: #000000;
}

.product-card h3 a:hover::after {
    width: 100%;
    left: 0;
}
p {
    color: #cccccc;
    font-size: large;
    color: var(--text-color) !important;

}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
}

.hero, .products-main, .products1, .image-slider, .contact-form, .brands-section, .support, footer {
    margin: 30px 0;
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 20px;
    text-align: center;
    position: relative;
}

.name-link {
    color: #00ff9d;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
    height: auto;
}

.name-link:hover {
    color: #00e68a;
}

.logo-and-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Round logo styling */
.header-logo {
    width:  65px;                  /* adjust size to taste – 60–90px is common */
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00ff9d;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4);
    background-color: #0d1117;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.12) translateY(-3px);   /* grow + slight lift */
}

.logo-link:hover .header-logo {
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.55);
    filter: brightness(1.15);                   /* subtle brightening */
    border-color: #00ff9d;
}

.name {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1;
    color: #00ff9d;
}

/* Responsive – smaller logo on mobile */
@media (max-width: 768px) {
    .header-logo {
        width:  60px;
        height: 60px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .logo-and-name {
        gap: 10px;
    }
}

/* Navigation */
nav {
    background-color: var(--nav-bg);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative; /* Ensure proper stacking context */
    z-index: 1000; /* Higher z-index to stay above other elements */
}

/* Main Nav Links */
nav > a, nav .dropdown > a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

nav > a:hover, nav .dropdown > a:hover {
    background-color: rgba(0, 255, 157, 0.2);
    color: #ffffff;
    transform: scale(1.05);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0s linear 0.3s, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s linear 0s, transform 0.3s ease;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: var(--accent-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 157, 0.2);
    color: var(--accent-color);

}

/* Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    display: none;
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 9;
    color: var(--accent-color);
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    opacity: 0; /* Start hidden for smooth transition */
    transition: opacity 0.5s ease; /* Smooth fade transition */
}

.slide.active {
    display: flex;
    opacity: 1; /* Fade in when active */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    z-index: 2;
}

.slide h2 {
    margin: 0;
    font-size: clamp(1.5em, 5vw, 2.5em);
}

.slide p {
    margin: 10px 0;
    font-size: clamp(1em, 3vw, 1.2em);
}

.slide a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slide a:hover {
    background-color: #00e68a;
    transform: translateY(-2px);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 1.5em;
    z-index: 3;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.prev:hover, .next:hover {
    background-color: var(--accent-color); /* Change to accent color on hover */
    color: var(--bg-color);
    transform: translateY(-50%) scale(1.1); /* Slight scale up on hover */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 3;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00ff9d;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide {
        min-height: 200px;
    }
    .slide-content {
        padding: 15px;
    }
    .slide h2 {
        font-size: clamp(1.2em, 4vw, 1.8em);
    }
    .slide p {
        font-size: clamp(0.9em, 2.5vw, 1em);
    }
    .prev, .next {
        font-size: 1.2em;
        padding: 8px;
    }
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slide {
        min-height: 150px;
    }
    .slide-content {
        padding: 10px;
    }
    .slide h2 {
        font-size: clamp(1em, 3vw, 1.5em);
    }
    .slide p {
        font-size: clamp(0.8em, 2vw, 0.9em);
    }
    .prev, .next {
        font-size: 1em;
        padding: 6px;
    }
}

/* Contact Form Styles */
.contact-form {
    background: var(--card-bg, #2d2d2d);
    padding: 2rem;
    max-width: 1000px;
    margin: 4rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0,255,157, 0.25);
    border-bottom: 1px solid rgba(0,255,157, 0.25);
    border-left: 2px solid rgba(0,255,157, 0.25);
    border-right: 2px solid rgba(0,255,157, 0.25);
}

.contact-form h2 {
    text-align:center;
    margin-bottom: 2rem;
    color: var(--text-color, #fff);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color, #fff);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg, #3a3a3a);
    border: 1px solid var(--border-color, #555);
    border-radius: 4px;
    color: var(--text-color, #fff);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color, #00e68a);
    box-shadow: 0 0 0 2px rgba(0, 230, 138, 0.2);
}

/* Error states */
.contact-form input.error-field,
.contact-form select.error-field,
.contact-form textarea.error-field {
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.error-message {
    color: #ff4d4d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.25rem;
}

.required {
    color: #ff4d4d;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* Form message */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(0, 230, 138, 0.2);
    color: #00e68a;
    border: 1px solid rgba(0, 230, 138, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
    display: block;
}

/* Button loading state */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: relative;
    display: inline-block;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.cart-link:hover {
    background: rgba(0, 255, 157, 0.1);
}

.cart-counter {
    background-color: #00ff9d;
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    position: relative;
    top: -5px;
    transition: all 0.3s ease;
}

.cart-dropdown-content {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--card-bg);
    min-width: 350px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1002;
    border: 1px solid var(--border-color);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cart-dropdown.active .cart-dropdown-content {
    display: block !important;
    transform: scaleY(1);
    opacity: 1;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

/* Custom scrollbar for cart items */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--nav-bg);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #00e68a;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(0, 255, 157, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: opacity 0.3s ease; /* Smooth transition to reduce flickering */
    opacity: 1;
}

.cart-item > div:first-child {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text-color);
}

.cart-item > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.decrement-btn,
.increment-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.decrement-btn:hover,
.increment-btn:hover {
    background: #00e68a;
}

.cart-item span {
    margin: 0 5px;
    font-weight: bold;
    color: var(--text-color);
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.3s ease;
}

.remove-btn:hover {
    color: #ff3333;
}

.empty-cart {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    padding: 20px 0;
    font-style: italic;
}

.cart-total {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
    text-align: right;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 15px;
}

.cart-actions .button {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.95em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cart-actions .button:hover {
    background: #00e68a;
    transform: translateY(-2px);
}

.cart-actions .checkout-btn {
    background: #ff5555;
    color: #ffffff;
}

.cart-actions .checkout-btn:hover {
    background: #ff3333;
}

.cart-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-close-btn:hover {
    color: #ff5555;
}

.cart-item {
    animation: fadeInItem 0.3s ease;
}

@keyframes fadeInItem {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Authentication Section */
.auth-buttons {
    position: absolute;
    top: 10px;
    right: 60px;
    display: flex;
    gap: 12px;
    z-index: 1001; /* Ensure it stays above other content but below modals */
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: linear-gradient(45deg, #00e68a, #0099ff);
    border: none;
    border-radius: 25px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Changes for small screens */
@media (max-width: 768px) {
    .auth-buttons {
        position: static; /* Reverts to static on small screens to maintain layout */
        margin-left: auto;
    }
    .auth-btn, .profile-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    .auth-btn:has(.fa-sign-out-alt) {
            display: none;   
    }
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 204, 255, 0.5);
}

/* Ensure modals do not overwrite main content like images */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Higher than auth-buttons but allows content to remain visible */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}


.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #00e68a, #0099ff);
    border: none;
    border-radius: 25px;
    color: #000000;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 204, 255, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://images.unsplash.com/photo-1518770660439-4636190af475') center/cover;
    height: 60vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Gaming Background */
.gaming-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://i.ytimg.com/vi/EA0YC9m6D4s/maxresdefault.jpg') center/cover;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gaming-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://wallpapers.com/images/hd/purple-gaming-nepi2tnxp6g0mvz9.jpg') center/cover;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.workstation-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://ied.eu/wp-content/uploads/2018/10/ERP-Business-Intelligence-Wallpaper.png') center/cover;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gpus-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://cdn.asoworld.com/img/substation/trade/contentbcc90c823f3445c59c649778fce1b4a8.png') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gpus-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://i.pcmag.com/imagery/articles/01mP4xPyKGDZe2XIB1XnBSw-1..v1735940069.png') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cpus-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.custompc.com.cy/images/promo/327/Ryzen_9000Series.png') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cpus-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://intelcorp.scene7.com/is/image/intelcorp/rpl-2022-dotcom-2col-nextlevel:1920-1080?wid=864&hei=486&fmt=webp-alpha') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.storage-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://wpengine.com/wp-content/uploads/2022/10/What-Is-SSD-Storage-A-Beginners-Guide-Velocitize-1024x465.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.storage-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://media.licdn.com/dms/image/v2/D5612AQHxBvVCRftLYg/article-cover_image-shrink_720_1280/article-cover_image-shrink_720_1280/0/1713160012816?e=2147483647&v=beta&t=11GxOyWQZZfb-EYdAG3ABYOZ0KeKkiAD_zzzcvVQ7Hw') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cooling-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://cdn.mos.cms.futurecdn.net/SUZM2ZgNQAChMP6BvKogEb.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cooling-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://dlcdnrog.asus.com/rog/media/1504838865887.webp') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ram-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.cyberpowerpc.com/blog/w/wp-content/uploads/2021/08/How-to-Upgrade-RAM-in-Your-Gaming-PC.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ram-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://media.kingston.com/kingston/opengraph/ktc-opengraph-blog-gaming-the-ultimate-ram-guide-for-gamers.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.power-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.jouleperformance.com/media/.renditions/JoulePerformance/LandingPages/Blog/GamingPSU/blog-header-gamingpc-psu.png') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.power-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://gamemaxpc.com/upload/202406/1718264023427342.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.motherboard-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.jagatreview.com/wp-content/uploads/2017/04/ASUS-1.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.motherboard-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://cdn.mos.cms.futurecdn.net/tuFVfX8HebAg7BU5pm5AyK-1200-80.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gaming-laptops-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://research.euro.savills.co.uk/_images/gaming-banner-23.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gaming-laptops-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTqnXk8Hr6fFJsI20bd4kx1EVnfg8lMw3EVzA&s') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.monitors-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://i.dell.com/is/image/DellContent/content/dam/ss2/product-images/page/category/monitor/monitor-buying-guide/mbg-businessbanner-desktop-2800x839.png?fmt=jpg&wid=2800&hei=839') center/cover;
    height: 250px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gaming-monitors-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://storage-asset.msi.com/global/picture/news/2019/monitor/monitor-20190522-1.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.business-monitors-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://i.dell.com/is/image/DellContent/content/dam/ss2/product-images/page/category/monitor/monitor-buying-guide/mbg-businessbanner-desktop-2800x839.png?fmt=jpg&wid=2800&hei=839') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.business-monitors-background2 {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.dell.com/wp-Uploads/2024/05/gettyimages-1434124362-la7450-lw-bl-1280x1280-1-340x240.jpeg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.printers-Consumables-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://onlinecopiers.co.za/img/cms/choosing-an-office-printer.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pc-cases-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://cdn.shopify.com/s/files/1/0700/1505/8226/collections/Category_Page_-_PC_Case.jpg?v=1677506609') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.Networking-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://innovesys.com/wp-content/uploads/2023/07/Networking.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pc-components-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://i.ytimg.com/vi/x-zSLV2nweU/maxresdefault.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.laptops-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.atulhost.com/wp-content/uploads/2024/07/best-laptop-brands.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.Monitors-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.dreamcore.com.sg/wp-content/uploads/MSI-Laptop-Banner.png?ver=1731487735') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.Peripherals-background {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
    url('https://www.neodo-inc.com/wp-content/uploads/2024/07/Computer-Gear-Banner.jpg') center/cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h5 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--accent-color);

}

.products1 {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)),
    url('https://backiee.com/static/wallpapers/1920x1080/275819.jpg') center/cover;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Custom Page */
.products2 {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)),
    url('https://www.hp.com/us-en/shop/app/assets/images/uploads/prod/Why%20Buy%20a%20Workstation%20vs%20Desktop%20for%20Your%20Business1656378094409734.jpg') center/cover;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.products3 {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)),
    url('https://bridgeit.com.au/wp-content/uploads/2022/06/hp-desktop-vs-hp-workstation-scaled-1600x462.jpg') center/cover;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.products4 {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)),
    url('https://www.avaccess.com/eu/wp-content/uploads/2022/09/AV-Access_Blog_Live-Game-Streaming-2.jpg') center/cover;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Products Section */
.products-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
    grid-auto-flow: row;
}

/* Product Description Styling */
#product-description,
#extra-description {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.8;
}

#product-description li,
#extra-description li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-left: 5px;
}

.description-icon {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1.6;
    flex-shrink: 0;
}

.product-card {
    display: block;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    cursor: pointer;
}

.product-card a {
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-card a:hover {
    background-color: #00e68a;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 40px;
    background-color: #2d2d2d;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* Support Section */
.support {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--bg-color);
    background:#1a1a1a;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .support {
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
                url('https://www.qssit.co.uk/wp-content/uploads/2021/09/it-supportbanner.jpg');
}

.Additional-info {
    padding: 1.5rem 1rem;          /* 24px / 16px */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    background-color: var(--bg-color, #1a1a1a);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.Additional-info h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin: 0 0 1rem;
    color: var(--accent-color);
}

@media (min-width: 768px) {    /* most tablets + small laptops */
    .Additional-info {
        padding: 2.5rem 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem;
        margin: 4rem 0;
    }
    
    .Additional-info > * {
        flex: 1 1 45%;           /* roughly two columns */
        min-width: 320px;
    }
}

@media (min-width: 1024px) {
    .Additional-info {
        padding: 3rem 2.5rem;
        max-width: 1300px;
        margin: 5rem auto;
    }
}

/* Delivery Banner */
.delivery-banner {
    background-color: #00ff9d;
    text-align: center;
    color: #1a1a1a;
    padding: 20px;
    margin: 30px 0;
    margin-bottom: 60px;
}

/* Footer Styles */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

footer > div {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 200px;
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

footer .contact-us p {
    margin: 10px 0;
    color: #cccccc;
    font-size: 1rem;
}

footer .quick-links a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 0;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer .quick-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

footer .quick-links a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transition: left 0.3s ease;
}

footer .quick-links a:hover::before {
    left: 0;
}

footer .social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

footer .social-media .icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

footer .social-media a {
    color: #cccccc;
    font-size: 2rem;
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

footer .social-media a:hover {
    color: var(--bg-color);
    background: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
}

footer .social-media a::after {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

footer .social-media a:hover::after {
    opacity: 1;
}

/* Default footer styles (for desktop, unchanged) */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

footer > div {
    flex: 1;
    text-align: center;
}

/* Media query for tablets (up to 768px) */
@media (max-width: 768px) {
    footer {
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center everything */
        padding: 20px; /* Reduce padding */
        margin-top: 20px; /* Space above footer in mobile nav */
    }
    footer > div {
        width: 100%; /* Full width for each section */
        margin-bottom: 20px; /* Space between stacked sections */
    }
}

/* Media query for phones (up to 480px) */
@media (max-width: 480px) {
    footer {
        padding: 15px; /* Further reduce padding */
    }
    footer h3 {
        font-size: 1.2rem; /* Smaller headings */
    }
    footer a {
        font-size: 0.9rem; /* Smaller links */
    }
}

/* Payment Methods */
.payment-methods {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.payment-methods h4 {
    color: #00cc7a;
    margin-bottom: 15px;
    font-size: 1.5em;
}


.payment-method-item {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-item img {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 768px) {
    .payment-method-item {
        width: 80px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .payment-method-item {
        width: 60px;
        height: 36px;
    }
}

.payment-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}

.payment-icons img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

.button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    background-color: #00e68a;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    cursor: pointer;
}

.button-all {
    background-color: #00ff9d;
    color: #000000;
    padding: 10px 35px;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 255, 157, 0.1);
}

/* Search Container */
.search-container {
    max-width: 65%;
    margin: 2rem auto;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2em;
}

.clear-search {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
}

.search-results {
    position: absolute;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    top: 100%;
    left: 0;
    transition: none !important;
}

/* Mobile: Hide search bar when mini-cart is open */
@media (max-width: 767px) {
    body.cart-open .search-container {
        display: none !important;
    }
    
    /* Optional safety: make sure nav toggle & theme button stay accessible */
    body.cart-open .nav-toggle,
    body.cart-open .theme-toggle {
        z-index: 1004 !important;
    }
    
    /* Make cart take priority over everything else on mobile */
    body.cart-open .cart-dropdown-content {
        z-index: 1005 !important;
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 1rem;
}

.search-result-item:hover {
    background: var(--nav-bg);
}

.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.highlight {
    background: rgba(0, 255, 157, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Spinner for loading */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Cooler glowing pulse animation */
@keyframes glowingPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 255, 157, 0.5), 0 0 15px rgba(0, 144, 255, 0.5);
        background: linear-gradient(45deg, #00e68a, #0099ff);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
}

/* Pagination Section */
.pagination-section {
    padding: 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    background-color: var(--nav-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number, .ellipsis {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.page-number {
    background-color: var(--nav-bg);
    color: var(--text-color);
    border: none;
    cursor: pointer;
}

.page-number:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.page-number.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: scale(1.1);
    position: relative;
}

.page-number.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background-color: var(--bg-color);
}

.page-number:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.ellipsis {
    background-color: transparent;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gaming Banner */
.banner-name {
    margin: 20px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    text-align: center;
    color: #00ff9d;
}

/* Brands Section */
.brands-section {
    padding: 40px 20px;
    text-align: center;
}

.brands-section h2 {
    color: #00ff9d;
    margin-bottom: 30px;
    font-size: 2em;
    border-top: 1px solid rgba(0,255,157, 0.25);
    border-bottom: 1px solid rgba(0,255,157, 0.25);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

/* Adjustments for tablets (max-width: 768px) */
@media (max-width: 768px) {
    .brands-grid {
        gap: 15px;
        padding: 10px;
    }
    .brand-item {
        height: 80px;
    }
}

/* Adjustments for phones (max-width: 480px) */
@media (max-width: 480px) {
    .brands-grid {
        gap: 10px;
        padding: 5px;
    }
    .brand-item {
        height: 60px;
    }
}

/* Go to Top */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #00e68a); /* Gradient bg */
    color: var(--bg-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3); /* Neon glow */
    animation: glowingPulseTop 2s ease-in-out infinite; /* Glowing pulse animation */
}

.go-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: glowingPulseTopShow 2s ease-in-out infinite; /* Adjusted for show state */
}

.go-top:hover {
    background: linear-gradient(45deg, #00e68a, #0099ff);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.5), 0 0 12px rgba(0, 144, 255, 0.5);
    animation-play-state: paused; /* Pause animation on hover */
}

.go-top:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Glowing pulse animation for go-to-top */
@keyframes glowingPulseTop {
    0% {
        transform: translateY(20px) scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
    50% {
        transform: translateY(20px) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 255, 157, 0.5), 0 0 15px rgba(0, 144, 255, 0.5);
        background: linear-gradient(45deg, #00e68a, #0099ff);
    }
    100% {
        transform: translateY(20px) scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
}

/* Adjusted glowing pulse when .go-top is visible */
@keyframes glowingPulseTopShow {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
    50% {
        transform: translateY(0) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 255, 157, 0.5), 0 0 15px rgba(0, 144, 255, 0.5);
        background: linear-gradient(45deg, #00e68a, #0099ff);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3), 0 0 10px rgba(0, 144, 255, 0.3);
        background: linear-gradient(45deg, var(--accent-color), #00e68a);
    }
}

/* Mobile Optimization for Go to Top */
@media (max-width: 600px) {
    .go-top {
        width: 40px;
        height: 40px;
        bottom: 85px;
        right: 15px;
        font-size: 1.3em;
        box-shadow: 0 3px 10px rgba(0, 255, 157, 0.2), 0 0 8px rgba(0, 144, 255, 0.2);
    }

    .go-top:hover {
        box-shadow: 0 5px 12px rgba(0, 255, 157, 0.4), 0 0 10px rgba(0, 144, 255, 0.4);
    }
}

@media (max-width: 400px) {
    .go-top {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        bottom: 80px;
        right: 12px;
        box-shadow: 0 2px 8px rgba(0, 255, 157, 0.2), 0 0 6px rgba(0, 144, 255, 0.2);
    }
}

.support-section {
    padding: 40px;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 1200px;
}

.support-category {
    margin-bottom: 40px;
    padding: 25px;
    background: #2d2d2d;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.support-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,255,157,0.1);
}

.service-description {
    color: #cccccc;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 1.1em;
}

.service-features ul {
    columns: 2;
    gap: 20px;
    padding-left: 20px;
}

.service-features li {
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.service-features li::before {
    content: "▹";
    color: #00ff9d;
    position: absolute;
    left: -15px;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    top: 55px;
    left: 10px;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.theme-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-color: #000000;
    --accent-color: #000000;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --border-color: #dee2e6;
}

/* Dark Theme Variables (default) */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #00ff9d;
    --card-bg: #1a1a1a;
    --nav-bg: #2d2d2d;
    --border-color: #3d3d3d;
}

/* Main Product Detail Container */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    margin-bottom: 60px;
    padding: 20px;
    background-color: var(--bg-color); /* Use existing variable for background */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-detail:hover {
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.2); /* Match accent glow */
}

/* Product Images Section */
.product-images {
    flex: 1 1 400px; /* Flexible growth */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Indicate clickable for fullscreen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
}

#main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Ensure image fits nicely */
    transition: transform 0.3s ease;
}

.main-image-container:hover #main-image {
    transform: scale(1.05); /* Zoom effect on hover */
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Center thumbnails */
}

.thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 255, 157, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Info Section */
.product-info {
    flex: 1 1 400px; /* Flexible growth */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00e68a;
    text-shadow: 
        0 0 5px rgba(0, 230, 138, 0.7),
        0 0 10px rgba(0, 230, 138, 0.5),
        0 0 20px rgba(0, 230, 138, 0.3);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Description & Extra Description - Bullet points for clarity */
.product-description,
.more-details p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.product-description,
.more-details p {
    white-space: pre-line; /* preserve newlines */
}

/* Better bullet style for descriptions (using ::before) */
.product-description,
.more-details p {
    position: relative;
    padding-left: 25px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #00e68a;
    text-shadow: 
        0 0 6px rgba(0, 230, 138, 0.8),
        0 0 12px rgba(0, 230, 138, 0.4);
    margin: 15px 0;
}

/* Product Actions (Buttons) */
.product-actions {
    display: flex;
    gap: 15px;
}

.add-to-cart {
    background-color: var(--accent-color); /* #00e68a */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: scale(1.05);
}

/* More Details Link */
.more-details-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-details-link:hover {
    color: darken(var(--accent-color), 10%);
}

.more-details {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 230, 138, 0.03); /* very light neon tint */
    border: 1px solid rgba(0, 230, 138, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 230, 138, 0.08);
}

.more-details h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #00e68a;
    text-shadow: 0 0 8px rgba(0, 230, 138, 0.6);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 230, 138, 0.25);
}

.more-details p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Fullscreen Modal Styles */
#fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1004; /* High z-index for overlay */
    transition: opacity 0.3s ease;
}

#fullscreen-modal.show {
    display: flex;
    opacity: 1;
}

#fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.3); /* Accent glow */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.prev-arrow:hover, .next-arrow:hover {
    background-color: rgba(0, 255, 157, 0.5); /* Accent hover */
}

/* Loading Spinner (if not already styled) */
#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid var(--bg-color);
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments for Product Page */
@media (max-width: 1024px) {
    .product-detail {
        gap: 30px;
    }

    .product-name {
        font-size: 1.8rem;
    }

    .product-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 20px;
    }

    .thumbnails {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .add-to-cart {
        padding: 10px 20px;
    }

    .more-details h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .more-details p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        min-height: 60px;
        background-color: var(--bg-color);
        transition: background-color 0.3s ease, color 0.3s ease;
    }    
    
    /* Name Container */
    .name-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 60px;
        margin-top: 20px;
    }

    .name {
        margin: 0;
    }

    .name-link {
        font-size: 1.3rem;
        color: #00ff9d;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .name-link:hover {
        color: #00e68a;
    }

    .name-container p {
        font-size: 0.8rem;
        color: #cccccc;
        margin: 3px 0 0;
        display: block;
    }

    /* Auth Buttons and Cart */
    .auth-buttons {
        position: absolute;
        right: 10px;
        top: 10px;
        display: flex;
        gap: 8px;
        align-items: center;
        z-index: 1001;
    }

    .auth-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
        background: linear-gradient(45deg, #00e68a, #0099ff);
        border: none;
        border-radius: 25px;
        color: #000000;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 204, 255, 0.5);
    }

    .profile-link {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 44px;
        min-height: 44px;
    }

    .cart-link {
        font-size: 1em;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        color: var(--accent-color);
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .cart-link:hover {
        background: rgba(0, 255, 157, 0.1);
    }

    .cart-dropdown.active .cart-dropdown-content {
        transform: scaleY(1);
        opacity: 1;
    }

    .cart-item img {
        width: 40px;
        height: 40px;
    }

    /* Theme Toggle */
    .theme-toggle {
        display: none;
    }

    /* Other Styles */
    .hero { height: 40vh; min-height: 200px; }
    .hero-content h5 { font-size: 2em; }
    .slides-container { height: 40vh; min-height: 200px; }
    .slide-caption { font-size: 0.9rem; padding: 10px; max-width: 80%; }
    .slider-arrow { padding: 10px; font-size: 18px; }
    .products, .products-main, .products1, .products2, .products3, .products4 {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    .product-card { padding: 15px; }
    .product-card img { height: 180px; }
    .product-card h3 { font-size: 1.3em; }
    .service-grid { grid-template-columns: 1fr; }
    .support { grid-template-columns: 1fr; }
    .footer { grid-template-columns: 1fr; padding: 30px 20px; }
    .footer > div { min-height: auto; }
    .footer .social-media a { font-size: 1.8rem; width: 45px; height: 45px; }
    .payment-icons { grid-template-columns: repeat(2, 1fr); }
    .payment-icons img { max-height: 35px; }
    .search-container { max-width: 90%; }
    .search-input { padding: 10px 40px 10px 15px; font-size: 14px; }
    .chat-box { width: 90vw; max-width: 280px; }
    .chat-button { padding: 12px 20px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-item { height: 80px; padding: 10px; }
    .go-top { bottom: 80px; right: 15px; width: 40px; height: 40px; }
    .support-section { padding: 20px; }
    .service-features ul { columns: 1; }
    .product-detail { flex-direction: column; padding: 20px; }
    .main-image { max-width: 100%; }
    .thumbnail-container { justify-content: center; }
    .more-details-section { margin: 20px auto; padding: 15px; }
}

@media (max-width: 480px) {
    .auth-buttons { right: 10px; top: 10px; }
    .auth-btn { padding: 6px 12px; font-size: 12px; min-width: 40px; min-height: 40px; }
    .profile-link { padding: 6px 12px; font-size: 12px; min-width: 40px; min-height: 40px; }
    .cart-link { font-size: 0.9em; padding: 6px; min-width: 40px; min-height: 40px; }
    .cart-dropdown-content { min-width: 220px; padding: 10px; }
    .cart-item img { width: 35px; height: 35px; }
    .hero-content h5 { font-size: 1.5em; }
    .slide-caption { font-size: 0.8rem; padding: 8px; }
    .product-card img { height: 150px; }
    .product-card h3 { font-size: 1.2em; }
    footer h3 { font-size: 1.2rem; }
    footer .quick-links a { font-size: 0.9rem; padding: 10px 0; }
    footer .social-media a { font-size: 1.6rem; width: 40px; height: 40px; }
    .brands-grid { grid-template-columns: repeat(1, 1fr); }
    .product-info h2 { font-size: 1.5em; }
    .product-info p,
    .more-details-link { font-size: 1em; }
    .thumbnail { width: 60px; height: 60px; }
    .more-details-section h3 { font-size: 1.3em; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/*COPYRIGHTS*/
.printFooter{
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Arial', sans-serif;
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1em;
}

@media (max-width: 1024px) {
    .hero { height: 50vh; min-height: 250px; }
    .products, .products-main, .products1, .products2, .products3, .products4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 30px;
        gap: 15px;
    }
    .product-card { padding: 18px; }
    .product-card img { height: 180px; }
    .brands-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .brand-item { height: 90px; padding: 12px; }
    .search-container { max-width: 85%; }
}

@media (max-width: 768px) {
    .slider-dots .dot {
        width: 15px;
        height: 15px;
    }
    .go-top {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 15px;
    }
    
    .cart-dropdown-content {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 0 !important;
    }
    
    .fullscreen-modal {
        padding: 20px;
    }
}


body {
    font-size: clamp(14px, 4vw, 16px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ensure icons are properly sized */
.auth-btn i, .profile-link i, .cart-link i {
    font-size: 1.2rem;
}

.cart-counter {
    font-size: 0.8rem;
    padding: 2px 5px;
}

/* Media query for tablets and smaller (up to 768px) */
@media (max-width: 768px) {
    .name-link {
        font-size: 1.2rem; /* Smaller site name */
    }
    .name-container p {
        font-size: 0.7rem; /* Smaller taglines */
    }
    .auth-btn span, .profile-link span {
        display: none; /* Hide text, show only icons */
    }
    .auth-btn, .profile-link {
        padding: 10px; /* Reduce button size */
    }
    .cart-link {
        padding: 5px; /* Reduce cart link size */
    }
}

/*RMA/Remote Support Request Form*/
.rma-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.rma-form-container h1,
.rma-form-container p {
    text-align: center;
    color: var(--text-color, #ffffff);
    color:#00ff9d
}

.rma-form {
    background-color: var(--form-bg, #1e1e1e);
    padding: 40px;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
}

.rma-form .form-group {
    margin-bottom: 15px;
}

.rma-form input,
.rma-form textarea {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    background-color: var(--input-bg, #2d2d2d);
    border: 1px solid var(--border-color, #333333);
    border-radius: 5px;
    color: var(--text-color, #ffffff);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rma-form input:focus,
.rma-form textarea:focus {
    border-color: var(--accent-color, #00e68a);
    box-shadow: 0 0 5px rgba(0, 230, 138, 0.5);
    outline: none;
}

.rma-form button {
    background-color: var(--button-bg, #1e90ff);
    color: var(--button-text, #ffffff);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.rma-form button:hover {
    background-color: var(--button-hover-bg, #1c86ee);
    transform: translateY(-2px);
}

/* Adding styles for the newsletter section to match the website's design */
.newsletter-section {
    max-width: 900px;
    margin: 100px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 1s ease-in;
    border-top: 1px solid rgba(0,255,157, 0.25);
    border-bottom: 1px solid rgba(0,255,157, 0.25);
    border-left: 1px solid rgba(0,255,157, 0.25);
    border-right: 1px solid rgba(0,255,157, 0.25);
}

.newsletter-section h3 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-section p {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.newsletter-form .form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background-color: #2d2d2d;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    outline: none;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #00e68a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.newsletter-form button:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 20px;
        margin: 15px;
    }
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 15px;
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .newsletter-section h3 {
        font-size: 1.3em;
    }
    .newsletter-section p {
        font-size: 1em;
    }
    .newsletter-form input,
    .newsletter-form button {
        font-size: 12px;
    }
}

/* Βελτιστοποίηση για μικρότερες οθόνες */
@media (max-width: 768px) {
    .rma-form-container {
        padding: 15px;
    }
    .rma-form {
        padding: 20px;
        margin: 15px;
    }
    .rma-form input,
    .rma-form textarea {
        font-size: 14px;
    }
    .rma-form button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .rma-form-container {
        padding: 10px;
    }
    .rma-form {
        padding: 15px;
        margin: 10px;
    }
    .rma-form input,
    .rma-form textarea {
        font-size: 12px;
    }
    .rma-form button {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: var(--nav-bg);
        padding-top: 60px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: 100vh; /* Ensure nav takes full viewport height */
        padding-bottom: 20px; /* Add padding to ensure content isn't cut off */
    }
    
    nav.active {
        display: block;
        transform: translateX(0);
        opacity: 1;
    }
    
    nav > a, nav .dropdown > a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }
    
    .dropdown-content {
        position: static;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-in-out;
        padding-left: 20px;
        margin-top: 5px;
        background-color: transparent;
        border-left: 2px solid var(--border-color);
    }    
    .dropdown.submenu-open .dropdown-content {
        display: block;
        max-height: 1000px; /* Sufficient height for all submenu items */
    }
    
    .dropdown-content a {
        display: block; /* Ensure each item is on a new line */
        padding: 10px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    /* Ensure other elements don't overlap nav */
    .search-container, .chat-container, .auth-buttons {
        z-index: 900;
    }
}

/* Style for nav-toggle button */
.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 10px 15px;
    background-color: var(--nav-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1002; /* Increased z-index to stay above nav */
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure visibility when nav is active */
.nav-toggle.active {
    opacity: 1;
    visibility: visible;
}

.nav-toggle:hover {
    background-color: var(--hover-bg, #333);
    color: var(--hover-text, #fff);
}

/* Show nav-toggle on mobile screens */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    /* Ensure nav-toggle remains visible when nav is active */
    body.nav-active .nav-toggle {
        display: block;
        opacity: 1;
        visibility: visible;
        z-index: 1002; /* Ensure it stays above nav */
    }
}

/* Hide nav-toggle on homepage for screens > 768px */
@media (min-width: 769px) {
    body.home .nav-toggle {
        display: none;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.2);
    z-index: 1003; /* Above nav (1001), cart-dropdown (1002), and other modals */
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive adjustments for toast */
@media (max-width: 768px) {
    .toast {
        bottom: 80px; /* Avoid overlap with go-top button */
        right: 15px;
        max-width: 80vw;
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .toast {
        bottom: 70px;
        right: 10px;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}