/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated gradient background for the whole website */
body {
    background: linear-gradient(135deg, #f0f4f8, #e0e7ff);
    background-size: 400% 400%;
    /* makes gradient bigger for smooth animation */
    animation: gradientShift 15s ease infinite;
    /* 15s loop, infinite */
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Keyframes for smooth gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Keep cards readable on animated background */
.container,
.compare-table,
.laptop-card {
    background-color: rgba(255, 255, 255, 0.9);
    /* semi-transparent white */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}


/* Optional: headings and badges stand out */
h2,
h4 {
    color: #1e3a8a;
    /* deep blue headings */
}

.badge {
    background-color: #ff6600;
    /* accent orange */
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
}

/* ===== Base Navbar ===== */
.navbar {
    background: #fff;
    /* Amazon dark blue */
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: stretch;
    /* make all children same height */
    justify-content: flex-start;
    /* keep items flowing left-to-right */
    gap: 20px;
    /* space between items */
    width: 100%;
}

/* Logo fixed left */
.nav-container .logo {
    flex: 0 0 auto;
}

/* Search bar takes up middle space */
.nav-container .search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Nav links stick after search bar */
.nav-container .nav-links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Contact icons aligned right end */
.nav-container .contact-links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}


/* ===== Logo ===== */
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo img {
    height: 150px;
    width: auto;
    display: block;
    padding: 5px;
    max-width: 100%;
}

/* ===== Nav Links ===== */
/* ===== Navbar (Amazon-style) ===== */
.navbar {
    padding: 8px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* allow wrapping on small screens */
    gap: 15px;
    width: 100%;
}

/* ===== Logo ===== */
.logo img {
    height: 70px;
    width: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 50px;
        margin: 0 auto;
    }
}

/* ===== Search Wrapper ===== */
.search-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

/* ===== Nav Links ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ff9900;
}

/* ===== Mobile Navbar ===== */
.hamburger {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 10px;
        transition: left 0.3s ease-in-out;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li a {
        font-size: 16px;
        color: #fff;
        display: block;
        padding: 10px 0;
    }

    .nav-links li a:hover {
        border-radius: 4px;
    }

    .search-wrapper {
        order: 3; /* search bar appears below menu */
        width: 100%;
    }

    .logo {
        order: 1;
    }

    .hamburger {
        order: 2;
    }
}

/* ===== Contact Icons ===== */
.contact-links a {
    font-size: 16px;
    color: #ff9900;
    /* Amazon orange */
    padding: 5px;
}

.contact-links a:hover {
    color: #ffa733;
}

/* ===== Dropdown ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 160px;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: #37475a;
}

/* Desktop hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== Mobile Dropdown (Collapsible) ===== */
@media (max-width: 768px) {
    .dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 20px;
        color: #fff;
        text-decoration: none;
    }

    /* ▼ arrow toggle */
    .dropdown>a::after {
        content: "▼";
        font-size: 12px;
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .dropdown.open>a::after {
        transform: rotate(180deg);
    }

    /* Collapsible menu hidden by default */
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        background: #232f3e;
        transition: max-height 0.3s ease;
    }

    /* Expand smoothly when open */
    .dropdown.open .dropdown-menu {
        max-height: 500px;
        /* enough to show items */
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
        color: #fff;
        border-bottom: 1px solid #37475a;
    }

    .dropdown-menu li a:hover {
        background: #37475a;
    }
}



/* ===== Mobile Styles ===== */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: #131921;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding-top: 20px;
        gap: 10px;
        transition: left 0.3s ease;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li {
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        background: #fff;
        box-shadow: none;
    }

    .hamburger {
        display: block;
    }
}


/* ===== Hero Video ===== */
.hero-video {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.hero-video video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    color: white;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 12px;
}

.hero-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.1rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }
}

/* ===== Delivery Banner ===== */
.delivery-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: #f8f9fa;
    gap: 20px;
}

.delivery-content {
    flex: 1;
    max-width: 50%;
}

.delivery-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.delivery-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.delivery-image {
    flex: 1;
    max-width: 50%;
    text-align: right;
}

.delivery-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .delivery-banner {
        flex-direction: column;
        text-align: center;
    }

    .delivery-content,
    .delivery-image {
        max-width: 100%;
    }

    .delivery-image {
        margin-top: 20px;
        text-align: center;
    }
}


/* ===== Featured Laptops (New Section) ===== */
.featured-laptops {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
}

.featured-laptops h2 {
    margin-bottom: 25px;
    font-size: 2em;
    color: #222;
    font-weight: bold;
}

/* Flex container */
.featured-laptops .featured-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual card */
.featured-laptops .featured-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    width: 240px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.featured-laptops .featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Images */
.featured-laptops .featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* Titles */
.featured-laptops .featured-card h3 {
    font-size: 1.2em;
    margin: 10px 0 6px;
    color: #333;
}

/* Text */
.featured-laptops .featured-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 12px;
}

/* Button */
.featured-laptops .featured-card .btn {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
    transition: background 0.3s ease;
}

.featured-laptops .featured-card .btn:hover {
    background: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-laptops .featured-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .featured-laptops .featured-card {
        width: 100%;
    }
}


/* ===== Footer ===== */
.footer {
    background-color: #131921;
    color: #fff;
    padding: 30px 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
}

.footer h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: whitesmoke;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #ff6600;
}

.footer p {
    font-size: 0.9em;
    color: whitesmoke;
}

.footer-social a {
    font-size: 1.5rem;
    color: whitesmoke;
    transition: color 0.3s ease;
    margin-right: 15px;
}

.footer-social a:hover {
    color: #ff6600;
}

.footer-social a.whatsapp {
    color: #25D366;
    /* WhatsApp official green */
}

.footer-social a.whatsapp:hover {
    color: #1ebe5d;
    /* darker green on hover */
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-logo img {
        height: 40px;
    }
}

/* 🔍 Search Form Styling */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Wider professional size for desktop */
    height: 50px; /* Taller input for desktop */
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
    height: 100%;
    border-radius: 30px 0 0 30px;
}

.search-form button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    height: 100%;
    border-radius: 0 30px 30px 0;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #e55a00; /* Slightly darker orange on hover */
}

.search-form:focus-within {
    border-color: #ff6600;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .search-wrapper {
        padding: 0 10px; /* Add padding to prevent the form from touching screen edges */
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-form {
        max-width: 90%; /* Reduce width to fit smaller screens */
        height: 40px; /* Smaller height for mobile */
        margin: 10px auto; /* Reduced margin */
        border-radius: 25px; /* Slightly smaller border radius */
    }

    .search-form input[type="text"] {
        font-size: 14px; /* Smaller font size */
        padding: 0 10px; /* Reduced padding */
    }

    .search-form button {
        font-size: 14px; /* Smaller font size */
        padding: 0 15px; /* Reduced padding */
    }
}

@media (max-width: 480px) {
    .search-form {
        max-width: 95%; /* Further reduce width for very small screens */
        height: 36px; /* Even smaller height */
        border-radius: 20px; /* Smaller border radius */
    }

    .search-form input[type="text"] {
        font-size: 12px; /* Smaller font size for tiny screens */
        padding: 0 8px;
    }

    .search-form button {
        font-size: 12px; /* Smaller font size */
        padding: 0 10px;
    }

    .search-form button i {
        font-size: 14px; /* Adjust icon size */
    }
}

/* 🌟 Hero Banner (Image) */
.hero-banner {
    position: relative;
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
}

.hero-banner img {
    width: 100%;
    height: 200%;
    object-fit: cover;
    filter: brightness(70%);
}

.hero-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-banner-text h1 {
    font-size: 2.5rem;
    margin: 0;
}

.hero-banner-text p {
    font-size: 1.2rem;
}

/* Carousel indicator dots */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    /* white */
    border: 1px solid #333;
    /* dark border for contrast */
}

.carousel-indicators .active {
    background-color: #ff6600;
    /* blue for active dot */
}

/* Hero images */
.hero-img {
    height: 400px;
    /* adjust height for banner */
    object-fit: cover;
    /* crop instead of stretching */
    height: 450px;
    /* Fixed height for all hero images */
    object-fit: cover;
    /* Crop instead of squishing */
    object-position: center;
    /* Center the focus */
    width: 100%;
    /* Full width */
    border-radius: 8px;
    /* Optional: rounded corners */
}

/* Fix carousel indicators (dots) */
.carousel-indicators {
    bottom: 15px;
    /* push them down */
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #333;
}

.carousel-indicators .active {
    background-color: #ff6600;
}

.carousel-item img {
    max-height: 500px;
    /* adjust height */
    object-fit: cover;
    /* crop nicely */
}

/* 🔹 Hero caption styling */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    border-radius: 10px;
    padding: 15px 20px;
    bottom: 20%;
    /* move it up from the bottom */
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Optional: fade-in effect */
.carousel-caption {
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* view details */
.product-details {
    display: flex;
    justify-content: center;
    margin: 2rem;
}

.product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 400px;
    border-radius: 12px;
}

.product-info {
    flex: 1;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
}

.order-btn {
    background: #25d366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

.back-btn {
    display: inline-block;
    margin-top: 1rem;
    margin-left: 1rem;
    background: #444;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
}

/* ===== Custom Buttons ===== */

/* WhatsApp Order Now */
.order-btn {
    background: #25d366;
    color: white;
    padding: 10px 16px;
    margin: 6px 4px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background: #1ebc57;
}

/* DHL Ship Button */
.ship-btn {
    background: #ffcc00;
    color: #000;
    padding: 10px 16px;
    margin: 6px 4px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ship-btn:hover {
    background: #e6b800;
}

.btn btn-success w-100 {
    background: #1ebc57;
}

/* DHL Tracking Button */
.track-btn {
    background: #0074d9;
    color: white;
    padding: 10px 16px;
    margin: 6px 4px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
}

.track-btn:hover {
    background: #005fa3;
}

/* Back button */
.back-btn {
    background: #555;
    color: white;
    padding: 10px 16px;
    margin: 6px 4px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #333;
}

/* Tracking form */
.tracking-form {
    margin-top: 12px;
}

.tracking-form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 6px;
    width: 220px;
}


/* Navbar wrapper */
.navbar {
    display: flex;
    flex-direction: column;
    /* stack logo, search, then nav */
    align-items: center;
    padding: 10px 20px;
}

/* Logo at the top */

/* Center navbar items */
.nav-links {
    display: flex;
    justify-content: center;
    /* center horizontally */
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

/* Links styling */
.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: #ff6600;
}

.navbar .logo img {
    height: 120px;
    width: auto;
    display: block;
    padding: 5px;
    max-width: 100%;
}

/* Wizard Result Section */
.wizard-result-section {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
    animation: wizardFadeIn 1s ease-in-out;
}

/* Title */
.wizard-result-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(111, 66, 193, 0.9);
}

/* Details (purpose, budget) */
.wizard-result-detail {
    font-size: 1.1rem;
    margin: 6px 0;
    color: #ddd;
}

/* Result Box */
.wizard-result-box {
    margin: 30px 0;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #6f42c1;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.8);
    min-height: 60px;
    transition: transform 0.3s ease;
}

.wizard-result-box:hover {
    transform: scale(1.05);
}

/* Try Again Button */
.wizard-result-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    background: transparent;
    border: 2px solid #00c6ff;
    color: #00c6ff;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.6);
    animation: glowCycleWizard 3s infinite ease-in-out;
}

.wizard-result-btn:hover {
    background: linear-gradient(90deg, #00c6ff, #6f42c1);
    color: #fff;
    box-shadow: 0 0 20px rgba(111, 66, 193, 0.9);
    border: none;
}

/* Search Wrapper */
.wizard-search-wrapper-unique {
    margin-top: 25px;
    text-align: center;
}

/* Search Form */
.wizard-search-form-unique {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d47a1, #6a1b9a);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

.wizard-search-form-unique:hover {
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.9);
}

/* Input */
.wizard-search-input-unique {
    border: none;
    outline: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 220px;
}

.wizard-search-input-unique::placeholder {
    color: #bbb;
}

/* Button */
.wizard-search-btn-unique {
    border: none;
    background: #ff4081;
    color: #fff;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.3s ease;
}

.wizard-search-btn-unique:hover {
    background: #f50057;
    transform: scale(1.1);
}

/* Animations */
@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowCycleWizard {
    0% {
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
        border-color: #00c6ff;
    }

    50% {
        box-shadow: 0 0 20px rgba(111, 66, 193, 0.9);
        border-color: #6f42c1;
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
        border-color: #00c6ff;
    }
}

/* ============================
   🚀 Finder Wizard Styles
   ============================ */
/* Wizard Neon Styling */
.finder-wizard-content-unique {
    background: rgba(10, 15, 30, 0.95);
    padding: 40px;
    border-radius: 20px;

    color: #fff !important;
}

.finder-wizard-title-unique {
    font-size: 2rem;
    font-weight: bold;
    color: #00f2fe !important;

}

.finder-wizard-subtitle-unique {
    color: #ccc !important;
    margin-bottom: 20px;
}

.finder-wizard-label-unique {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4facfe !important;
}

.finder-wizard-select-unique {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #00f2fe;
    background: #0a0f1e;
    color: #fff !important;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.finder-wizard-select-unique:hover,
.finder-wizard-select-unique:focus {
    border-color: #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.9);
}

.finder-wizard-btn-unique {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1rem;

    transition: all 0.3s ease;
}

.finder-wizard-btn-unique:hover {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(79, 172, 254, 1), 0 0 35px rgba(0, 242, 254, 1);
}

.finder-wizard-icon-unique {
    margin-left: 8px;
    color: #fff !important;
}

/* ============================
   🚀 Finder Wizard Styles (Isolated)
   ============================ */
.finder-wizard-section-unique {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #091540, #13293d, #1c448e);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.5);
    animation: finderFadeInUnique 1s ease-in-out;
}

/* Title */
.finder-wizard-title-unique {
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.9);
}

/* Steps */
.finder-wizard-step-unique {
    margin-bottom: 25px;
    text-align: left;
}

.finder-wizard-label-unique {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    color: #d1e8ff;
}

/* Select Dropdown */
.finder-wizard-select-unique {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #00c6ff;
    border-radius: 10px;
    background: #0a192f;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.3);
}

.finder-wizard-select-unique:hover {
    border-color: #6f42c1;
    box-shadow: 0 0 16px rgba(111, 66, 193, 0.7);
}

.finder-wizard-select-glow-unique {
    border-color: #6f42c1 !important;
    box-shadow: 0 0 22px rgba(111, 66, 193, 0.9) !important;
}

/* Submit Button */
.finder-wizard-btn-unique {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #00c6ff;
    color: #00c6ff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.7);
    animation: finderGlowCycleUnique 3s infinite ease-in-out;
}

.finder-wizard-btn-unique:hover {
    background: linear-gradient(90deg, #00c6ff, #6f42c1);
    color: #fff;
    box-shadow: 0 0 25px rgba(111, 66, 193, 0.9);
    border: none;
}

/* Animations */
@keyframes finderFadeInUnique {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes finderGlowCycleUnique {
    0% {
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
        border-color: #00c6ff;
    }

    50% {
        box-shadow: 0 0 20px rgba(111, 66, 193, 0.9);
        border-color: #6f42c1;
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
        border-color: #00c6ff;
    }
}

.futuristic-card {
    background: #0d1117;
    color: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.futuristic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 200, 0.3);
}

.futuristic-header {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
}

.futuristic-summary {
    background: linear-gradient(90deg, #1f1c2c, #928dab);
    color: #fff;
    font-size: 1.2rem;
}

.futuristic-img {
    object-fit: cover;
    height: 280px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.futuristic-list .list-group-item {
    background: transparent;
    color: #f8f9fa;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.futuristic-btn {
    background: linear-gradient(90deg, #1ebc57, #28a745);
    border: none;
    color: #fff;
}

.futuristic-btn:hover {
    background: linear-gradient(90deg, #28a745, #1ebc57);
}

.futuristic-payment {
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/*test banner*/
.test-banner {
    background: repeating-linear-gradient(45deg,
            #ff0000,
            #ff0000 10px,
            #ffff00 10px,
            #ffff00 20px);
    color: black;
    font-weight: bold;
    padding: 10px;
    text-transform: uppercase;
}

/* Pulsing yellow for Pending badge */
.pending-badge {
    animation: pulse-yellow 1.5s infinite;
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Breathing green for Pay button */
.pay-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgba(25, 135, 84, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/*  Smooth fade + slide-up */
@keyframes fadeSlideUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.flash-auto.hide {
    animation: fadeSlideUp 0.6s forwards;
}

.compare-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.compare-tray {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff8e1;
    padding: 12px 20px;
    border: 2px solid #ff6600;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.compare-tray.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.compare-tray {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #ff6600;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

.compare-table {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.compare-table .laptop {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
}

.compare-table {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.compare-table .laptop {
    flex: 1;
    max-width: 300px;
    /* optional: keep cards balanced */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.compare-table .laptop img {
    width: 220px;
    /* force same width */
    height: 160px;
    /* force same height */
    object-fit: contain;
    /* keep aspect ratio inside box */
    margin-bottom: 10px;
}

/* --- Laptop spec table --- */
.spec-table {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
}

.spec-table div {
    display: flex;
    justify-content: space-between;
    background: #fafafa;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.spec-table span {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

/* --- Score section --- */
.score-section {
    margin-top: 15px;
    text-align: center;
}

.score-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.score-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 4px 0;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.score-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* --- VS Divider --- */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.vs-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6600;
    animation: pulse 1.8s infinite;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .spec-table div {
        flex-direction: column;
        align-items: flex-start;
    }
    .vs-divider {
        margin: 20px 0;
    }
}


.back-link {
    display: inline-block;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #555;
    text-decoration: underline;
}

/* ✅ Mobile view */
@media (max-width: 768px) {
    .compare-table {
        grid-template-columns: 1fr;
        /* stack vertically */
    }
}

.badge {
    display: inline-block;
    background: #ffc107;
    /* Bootstrap yellow-like */
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    margin: 5px 0 10px;
}

@media (max-width: 768px) {
    .carousel-img {
        max-width: 80px;
        max-height: 80px;
    }
}



.carousel-img:hover {
    transform: scale(1.1);
}

.carousel-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.carousel-item .flex-fill {
    flex: 1 1 0;
    /* each product stretches evenly */
}

.img-wrapper {
    width: 180px;
    /* fixed width for layout */
    height: 180px;
    /* fixed height for layout */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: auto;
    border-radius: 8px;
    /* optional */
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    /* scales proportionally */
    height: auto;
    /* scales proportionally */
    object-fit: contain;
    /* ensures whole image is visible */
    display: block;
}




/* Make sections appear seamless */
.main-content section {
    padding-top: 2rem;
    /* reduces huge top spacing */
    padding-bottom: 2rem;
    /* reduces huge bottom spacing */
    margin: 0;
    /* remove extra margins between sections */
}

.main-content section+section {
    margin-top: 0;
    /* no extra space between sections */
}

.wizard-product-view {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
}

.wizard-product-img-wrapper,
.wizard-product-ar-wrapper {
    flex: 1 1 300px;
    max-width: 500px;
}

.wizard-product-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.toggle-container {
    text-align: center;
    margin-bottom: 1rem;
}

.wizard-toggle-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.wizard-toggle-btn:hover {
    background: #45a049;
}

.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff6600;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

.card-img-top {
    height: 220px; /* consistent image height */
    object-fit: cover; /* crop to fill without distortion */
    transition: transform 0.3s ease-in-out;
}

.card:hover .card-img-top {
    transform: scale(1.05); /* subtle hover zoom effect */
}

.card-title {
    min-height: 2.5em; /* keeps titles aligned */
}

.card-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745; /* bootstrap success green */
}

.btn-view {
    margin-top: auto; /* push button to bottom */
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-img {
    height: 500px;
    object-fit: cover;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

footer {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

/* ===========================================
   🎯 Global Product & Discount Styling
   =========================================== */


/* ============================================
   🔔 Flash Message Animation & Transitions
   ============================================ */
.flash-message,
.alert {
    transition: all 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.flash-message.fade-out,
.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/*quantity selector*/
.quantity-wrapper {
  justify-content: center;
}
.quantity-wrapper .btn {
  width: 32px;
  height: 32px;
  line-height: 16px;
  font-size: 18px;
  padding: 0;
}

/* 💅 Smooth Cart Badge Styling */
.cart-link {
  position: relative;
  display: inline-block;
  color: #333;
  text-decoration: none;
}
.cart-link:hover {
  color: #0d6efd;
}
.cart-badge {
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  text-align: center;
  color: #fff;
  background-color: #dc3545;
  border-radius: 50%;
  top: -5px;
  right: -10px;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cart-badge.hidden {
  opacity: 0;
  transform: scale(0);
  display: none;
}

/* Product Details Section */
.product-details {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    background-color: #f7f7f7;
    min-height: 100vh;
}

/* Product Card */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Image on left, details on right */
    max-width: 1000px;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-card img {
    width: 100%;
    max-height: 500px; /* Constrain height to prevent oversized images */
    object-fit: contain; /* Preserve aspect ratio without cropping */
    border-radius: 12px 0 0 12px;
    background-color: #f9f9f9; /* Background for empty space if image doesn't fill */
    padding: 1rem; /* Optional padding to center image */
    box-sizing: border-box;
}

/* Ensure image container has a defined aspect ratio */
.product-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Adjust based on your images' typical aspect ratio */
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

/* Product Info */
.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.product-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6600;
}

/* Product Description */
.product-description {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-description h4.description-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #ff6600;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 1rem;
}

.product-description p.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

.product-description p.description-text a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-description p.description-text a:hover {
    color: #e55b00;
    text-decoration: underline;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-control button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.quantity-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-success {
    background-color: #28a745;
    border: none;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-btn {
    background-color: #ff6600;
    color: #fff;
    border: none;
}

.back-btn:hover {
    background-color: #e55b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Products Section */
.related-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.related-products h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.card-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
}

.text-decoration-line-through {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card img {
        border-radius: 12px 12px 0 0;
        max-height: 300px; /* Smaller height for mobile */
        padding: 0.5rem;
    }

    .product-card .image-container {
        border-radius: 12px 12px 0 0;
        aspect-ratio: 4 / 3; /* Maintain aspect ratio on mobile */
    }
}

/* Brand Page General Styling */
.brand-laptops {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    background-color: #f7f7f7; /* Matches item.html */
}

/* Brand Heading */
.brand-laptops h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Product Card */
.card {
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Matches item.html */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px); /* Matches item.html hover */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.card-img-top {
    width: 100%;
    height: 220px; /* Default for two-per-row on mobile */
    object-fit: contain; /* Matches item.html to prevent distortion */
    background-color: #f9f9f9;
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #28a745; /* Matches item.html price */
    margin: 0;
}

/* View Details Button */
.btn-outline-primary {
    border: 1px solid #ff6600; /* Matches item.html accent */
    color: #ff6600;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #ff6600;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #fff;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.page-link:hover {
    background-color: #ff6600;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-item.active .page-link {
    background-color: #ff6600;
    color: #fff;
    border: none;
}

.page-item.disabled .page-link {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* Tablet and Mobile: 2 per row */
@media (max-width: 991px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card-img-top {
        height: 180px; /* Balanced for tablet/mobile */
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 1.3rem;
    }
}

/* Very small mobile: adjust padding, spacing, and heading size */
@media (max-width: 576px) {
    .col-6 {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .card-img-top {
        height: 160px; /* Smaller for tight space */
        padding: 1rem;
    }

    .card-body {
        padding: 0.9rem;
    }

    .brand-laptops {
        padding: 2rem 0.5rem;
    }

    .brand-laptops h2 {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 1.2rem;
    }
}

/* Featured Laptops Grid */
.featured-laptops {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
    background-color: #f7f7f7;
}

.featured-laptops h2, .featured-laptops h3 {
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
}

.featured-laptops .card {
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-laptops .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}



.featured-laptops .card-body {
    padding: 1.5rem;
    text-align: center;
}

.featured-laptops .card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.featured-laptops .card-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.btn-outline-primary {
    border: 1px solid #ff6600;
    color: #ff6600;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

.btn-outline-primary:hover {
    background-color: #ff6600;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .featured-laptops .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .col-6 {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .featured-laptops .card-img-top {
        height: 160px;
        padding: 1rem;
    }
    .featured-laptops h2 {
        font-size: 1.6rem;
    }
}

/*view details--->brand.html*/
.btn-view-details {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #ff6600;
    color: #ff6600;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view-details:hover {
    background-color: #ff6600;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/*index page

/* ====== FINDER WIZARD SHOWCASE ====== */
.finder-wizard-showcase {
  background: #f8f9fc;
  padding: 50px 20px;
  border-radius: 10px;
}

.finder-wizard-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* desktop view */
  gap: 30px;
  align-items: stretch; /* equal height across sections */
  justify-content: center; /* centers layout within container */
}

/* ====== DISCOUNTED LAPTOPS (LEFT & RIGHT) ====== */
.discounted-laptops {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center; /* centers each card horizontally */
  align-content: start; /* avoids weird vertical gaps */
}

.discount-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 240px; /* keeps uniform width for clean alignment */
  width: 100%;
}

.discount-card:hover {
  transform: translateY(-4px);
}

.discount-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
  height: 180px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.new-price {
  color: #e63946;
  font-weight: bold;
}

.discount-badge {
  background: #ff9900;
  color: white;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  margin-left: 5px;
}

.discount-btn {
  background: #ff6600;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.discount-btn:hover {
  background: #e55a00;
}


/* ====== RESPONSIVE LAYOUT ====== */

/* ✅ Tablet (2 per row for discounts, all centered) */
@media (max-width: 992px) {
  .finder-wizard-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    justify-items: center;
  }

  .left-discounts,
  .right-discounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 15px;
    justify-content: center;
  }

  .discount-card {
    max-width: 220px;
  }

  .finder-wizard-content-unique {
    order: 1;
  }
}

/* ✅ Mobile (2 per row centered) */
@media (max-width: 768px) {
  .finder-wizard-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .discounted-laptops {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 12px;
    justify-content: center;
  }

  .discount-card img {
    height: 150px;
  }

  .discount-card h5 {
    font-size: 14px;
  }

  .finder-wizard-title-unique {
    font-size: 20px;
  }

  .finder-wizard-subtitle-unique {
    font-size: 14px;
  }

  .finder-wizard-btn-unique {
    font-size: 14px;
    padding: 10px;
  }
}

/* ✅ Extra Small Mobile (1 per row, centered) */
@media (max-width: 480px) {
  .discounted-laptops {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .finder-wizard-content-unique {
    padding: 20px;
  }

  .finder-wizard-btn-unique {
    width: 100%;
  }
}

/*cart page*/

/* ========== CART PAGE STYLING ========== */
#cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#cart-table th, #cart-table td {
  text-align: center;
  vertical-align: middle;
}

#cart-summary {
  text-align: right;
  margin-top: 30px;
}

.quantity-wrapper button {
  width: 32px;
  height: 32px;
}

/* ====== Responsive Table Wrapper ====== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====== Make the Cart Table Scrollable on Tablet ====== */
@media (max-width: 992px) {
  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ====== Mobile View (Card Layout) ====== */
@media (max-width: 576px) {
  #cart-table,
  #cart-table thead,
  #cart-table tbody,
  #cart-table th,
  #cart-table td,
  #cart-table tr {
    display: block;
  }

  #cart-table thead {
    display: none; /* hide table header */
  }

  #cart-table tr {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  #cart-table td {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: none;
    font-size: 14px;
  }

  #cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
  }

  #cart-table td.price::before { content: "Price"; }
  #cart-table td:nth-child(3)::before { content: "Quantity"; }
  #cart-table td.row-total::before { content: "Total"; }
  #cart-table td:last-child::before { content: "Action"; }

  .quantity-wrapper {
    flex-wrap: nowrap;
  }

  #cart-summary {
    text-align: center;
    margin-top: 20px;
  }

  #checkout-btn {
    width: 100%;
  }
}
 /*admin_layout*/

 body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      font-family: "Segoe UI", Roboto, sans-serif;
      background-color: #f8f9fa;
  }

  #admin-wrapper {
      display: flex;
      min-height: 100vh;
      flex-wrap: nowrap;
  }

  #sidebar {
      width: 240px;
      background: #212529;
      color: white;
      transition: transform 0.3s ease;
      z-index: 1000;
  }

  #sidebar a {
      color: white;
      text-decoration: none;
      display: block;
      padding: 10px 15px;
      border-radius: 4px;
  }

  #sidebar a:hover, 
  #sidebar .nav-link.active {
      background: #343a40;
  }

  #page-content {
      flex: 1;
      padding: 20px;
      background: #f8f9fa;
      overflow-x: hidden;
  }

  /* 🔸 Card and Table responsiveness */
  .card {
      border-radius: 12px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  table.table {
      font-size: 0.9rem;
      width: 100%;
  }

  .table-responsive {
      overflow-x: auto;
  }

  /* ✅ Sidebar toggle on mobile */
  @media (max-width: 992px) {
      #sidebar {
          position: fixed;
          top: 0;
          left: 0;
          height: 100vh;
          transform: translateX(-100%);
          width: 240px;
          overflow-y: auto;
      }

      #sidebar.active {
          transform: translateX(0);
      }

      #page-content {
          padding: 15px;
      }

      .navbar-brand {
          font-size: 1rem;
      }
  }

  /* ✅ Better small-screen dashboard cards (like Amazon) */
  @media (max-width: 768px) {
      .card .card-body {
          text-align: center;
      }

      .card .fs-2 {
          font-size: 1.6rem !important;
      }

      .row {
          margin: 0;
      }

      h2 {
          font-size: 1.4rem;
      }
  }


/*admin dashboard*/
/* 📱 Universal responsive table tweaks */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scrollbars from hiding headers */
.table thead th {
  white-space: nowrap;
}

/* ✅ Compact cells on small screens */
@media (max-width: 768px) {
  table.table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    vertical-align: middle;
    word-break: break-word;
  }

  /* Stack long spec column (laptops) nicely */
  #laptopsTable td:nth-child(5) {
    max-width: 160px;
    white-space: normal;
  }

  /* Center buttons vertically & limit their width */
  #laptopsTable td:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* Allow horizontal scrolling when too many columns */
  #usersTable,
  #ordersTable,
  #laptopsTable {
    min-width: 600px; /* keep structure intact */
  }

  /* Optional – make badge & buttons smaller */
  .badge {
    font-size: 0.75rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* ✅ Slight hover highlight for clarity on small screens */
.table-hover tbody tr:hover {
  background-color: #f1f3f5;
}

/* 🧱 Prevent entire page from horizontal scrolling */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* 🧩 Ensure the layout grid never causes horizontal overflow */
.container, .container-fluid, .row {
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* 🚫 Tables or images that are wider than screen should scroll internally, not push page */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

img, table, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🪶 Small optimization: prevent small grid gaps causing overflow */
* {
  box-sizing: border-box;
}

/*whatsapp widget*/
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

/* ✨ Floating circular toggle */
.chat-toggle {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.7);
  cursor: pointer;
  animation: pulseGlow 2s infinite;
  transition: all 0.3s ease;
}
.chat-toggle:hover {
  transform: scale(1.1);
}

/* 💬 Chat box container */
.chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: #1e1e1e;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}

.chat-header {
  background: #25D366;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  padding: 15px;
  background: #f8f9fa;
}

.chat-welcome {
  color: #333;
  font-size: 14px;
  margin-bottom: 10px;
}

#chatMessage {
  resize: none;
  font-size: 14px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 25px rgba(37,211,102,1); }
  100% { box-shadow: 0 0 10px rgba(37,211,102,0.5); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
  .chat-box { width: 90vw; right: 5vw; bottom: 80px; }
  .chat-toggle { width: 50px; height: 50px; font-size: 24px; }
}

.chat-box.chat-appear {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Optional subtle entry animation for toggle icon (if you ever re-enable it) */
.chat-toggle {
  animation: pulseGlow 2s infinite, floaty 3s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- Floating AI Assistant Box --- */
  #aiConcierge {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 260px;
    background: rgba(17, 25, 40, 0.95);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,255,150,0.3);
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }

  #aiConcierge.visible {
    opacity: 1;
    transform: translateY(0);
  }

  #aiConcierge h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #00ffae;
    text-shadow: 0 0 5px #00ffae;
  }

  #aiConcierge .typing {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    border-right: 2px solid #00ffae;
    animation: blink 0.7s infinite;
  }

  @keyframes blink {
    0%, 50% { border-color: #00ffae; }
    51%, 100% { border-color: transparent; }
  }

  #aiConcierge audio {
    display: none;
  }

  #chatBox {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
#chatBox.active {
  opacity: 1;
  transform: translateY(0);
}

/* 🌟 Chat Widget Core Layout */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

/* Floating WhatsApp Button */
.chat-toggle {
  background-color: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Chat Box */
.chat-box {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 10000;
  animation: fadeInUp 0.4s ease forwards;
}

.chat-box.chat-appear {
  display: flex !important;
}

/* Header */
.chat-header {
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chat Body */
.chat-body {
  padding: 12px;
  background-color: #f8f9fa;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-welcome {
  font-size: 15px;
  background: #e1ffc7;
  padding: 8px 12px;
  border-radius: 8px;
  align-self: flex-start;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

/* Input Area */
#chatMessage {
  resize: none;
  font-size: 14px;
}
#chatSend {
  background-color: #25D366;
  border: none;
}
#chatSend:hover {
  background-color: #1ebe5d;
}

/* AI Concierge */
#aiConcierge {
  position: fixed;
  bottom: 140px;
  right: 25px;
  background: #111;
  color: #00ffcc;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,204,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  z-index: 99999;
  font-family: 'Courier New', monospace;
}
#aiConcierge.visible {
  opacity: 1;
  transform: translateY(0);
}
#aiMessage.typing {
  border-right: 2px solid #00ffcc;
  white-space: pre-wrap;
  overflow: hidden;
}

/* Fade Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chat-box {
    width: 92%;
    right: 4%;
    bottom: 80px;
  }
  #aiConcierge {
    right: 10px;
    bottom: 120px;
    font-size: 14px;
  }
}
