:root {
    --primary-color: #396CF1;
    --primary-hover: #2955c4;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f7f6;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #fcfcfc;
}

a {
    text-decoration: none;
}

/* ----- Navbar & Header ----- */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

/* Desktop Menu Link Hover */
.desktop-nav .nav-link {
    transition: 0.3s;
}

.desktop-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Desktop Search */
.search-form {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-form input {
    border-radius: 30px;
    padding-right: 45px;
    border: 1px solid #ddd;
    height: 42px;
}

.search-form input:focus {
    box-shadow: 0 0 0 0.25rem rgba(57, 108, 241, 0.15);
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

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

.nav-icon {
    cursor: pointer;
    transition: 0.3s;
}

.nav-icon:hover i {
    color: var(--primary-color) !important;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 3px 6px;
    font-weight: bold;
}

/* Dropdown Hover for Desktop Only */
/* @media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
} */

/* ----- Mobile Offcanvas Menu (Left) ----- */
#mobileMenu .offcanvas-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list>li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-list>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
}

.mobile-menu-list>li>a:hover {
    color: var(--primary-color);
    background: #f9f9f9;
}

/* Toggle icon state (Plus/Minus) */
.mobile-menu-list .collapse-icon::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f068";
    /* Minus icon */
    font-size: 14px;
    color: #333;
}

.mobile-menu-list .collapsed .collapse-icon::after {
    content: "\f067";
    /* Plus icon */
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    background: #fdfdfd;
}

.mobile-sub-menu>li>a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
    transition: 0.3s;
}

.mobile-sub-menu>li>a:hover {
    color: var(--primary-color);
    padding-left: 45px;
}

/* ----- Hero Slider Section ----- */
.heroSwiper {
    margin-bottom: 50px;
    width: 100%;
    overflow: hidden;
}

.hero-slide-item {
    background: linear-gradient(135deg, #e3eeff 0%, #f4f7f6 100%);
    padding: 80px 0;
    width: 100%;
}

.hero-slide-item.bg-2 {
    background: linear-gradient(135deg, #eef2f3 0%, #d8e5ff 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px !important;
    }

    .hero-slide-item {
        padding: 25px 0 20px 0;
        text-align: center;
    }

    .hero-slide-item .mb-5 {
        margin-bottom: 20px !important;
    }

    .hero-slide-item p.fs-5 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        line-height: 1.4;
    }

    .hero-slide-item img {
        max-height: 220px;
        width: auto;
        object-fit: contain;
        margin-top: 10px;
    }

    .heroSwiper {
        margin-bottom: 25px;
    }
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.3);
}

/* ----- Section Titles ----- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
    font-size: 32px;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ----- Services ----- */
.service-box {
    text-align: center;
    padding: 35px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: 0.4s;
    height: 100%;
}

.service-box:hover {
    box-shadow: 0 15px 30px rgba(57, 108, 241, 0.08);
    transform: translateY(-8px);
    border-color: #d1dfff;
}

.service-icon {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Mobile adjustment for Services Height */
@media (max-width: 768px) {
    .service-box {
        padding: 15px;
        /* Reduced Padding */
    }

    .service-icon {
        font-size: 32px;
        /* Smaller Icon */
        margin-bottom: 10px;
    }

    .service-box h5 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .service-box p {
        font-size: 13px;
    }
}

/* ----- Category Slider ----- */
.category-card {
    text-align: center;
    padding: 25px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    cursor: pointer;
}

.category-card:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(57, 108, 241, 0.3);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 45px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: 0.3s;
}

.category-card:hover i {
    color: #fff;
}

/* Custom Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}


/* ----- Product Card (Fixed Heights) ----- */
.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.4s;
    position: relative;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #fff;
}

.product-img-wrap {
    padding: 10px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #f9f9f9;
}

.product-img {
    height: 220px;
    border-radius: 10px;
    object-fit: contain;
    width: 100%;
    transition: 0.5s ease-in-out;
}

@media (max-width: 576px) {
    .product-img {
        height: 160px;
    }

    .product-img-wrap {
        padding: 15px;
    }
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    padding-bottom: 65px;
    /* Fixed space for absolutely positioned button */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stars {
    color: #ffb800;
    font-size: 13px;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Add to Cart Button Fix */
.add-to-cart-btn {
    background: rgba(57, 108, 241, 0.1);
    color: var(--primary-color);
    border: none;
    width: calc(100% - 40px);
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    bottom: 15px;
    left: 20px;
    opacity: 0;
    transform: translateY(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    visibility: hidden;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2;
}

/* ----- Banners ----- */
.banner-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

@media (max-width: 768px) {
    .banner-box img {
        height: 110px;
    }

    .banner-content {
        left: 15px !important;
    }

    .banner-content h4 {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .banner-content h6 {
        font-size: 11px;
        margin-bottom: 3px !important;
    }

    .banner-content a {
        font-size: 11px;
        margin-top: 3px !important;
        padding-bottom: 0 !important;
    }
}

.banner-box:hover img {
    transform: scale(1.08);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 2;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* ----- Cart Sidebar Enhancements ----- */
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.cart-item-remove {
    color: #dc3545;
    cursor: pointer;
    margin-left: auto;
    background: #ffeaea;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: #fff;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

/* ----- Blog Section ----- */
.blog-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-info {
    padding: 25px;
}

.blog-date {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(57, 108, 241, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ----- Newsletter ----- */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4bb5 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 50px;
}

.newsletter input {
    border-radius: 30px 0 0 30px;
    padding: 15px 25px;
    border: none;
    height: 55px;
}

.newsletter button {
    border-radius: 0 30px 30px 0;
    background: #222;
    color: white;
    border: none;
    padding: 0 35px;
    font-weight: 600;
    transition: 0.3s;
}

.newsletter button:hover {
    background: #111;
}


/* ----- Breadcrumb ----- */
.breadcrumb-section {
    background-color: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eef0f2;
    margin-bottom: 40px;
}

.breadcrumb {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-light);
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* ----- Login Page Specific Styles ----- */
.auth-container {
    margin-bottom: 80px;
}

.auth-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: #e0e6f7;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.auth-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #eef0f2;
    padding: 12px 15px;
    font-size: 14px;
    background-color: #fdfdfd;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(57, 108, 241, 0.1);
    border-color: var(--primary-color);
    background-color: #fff;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    transition: 0.3s;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
    }
}

/* ----- Registration Page Specific Styles ----- */
.auth-container {
    margin-bottom: 80px;
}

.auth-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: #e0e6f7;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.auth-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #eef0f2;
    padding: 12px 15px;
    font-size: 14px;
    background-color: #fdfdfd;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(57, 108, 241, 0.1);
    border-color: var(--primary-color);
    background-color: #fff;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
}

.section-sub-heading {
    font-size: 18px;
    color: var(--text-dark);
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
    }

    .action-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .action-footer .btn-primary-custom {
        width: 100%;
    }
}

/* ----- Main Cart Page Styles ----- */
.cart-container {
    margin-bottom: 80px;
}

.cart-header {
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cart-item-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: #e0e6f7;
}

.item-img-wrap {
    width: 110px;
    height: 110px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.item-title:hover {
    color: var(--primary-color);
}

.item-category {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #eef0f2;
    border-radius: 30px;
    overflow: hidden;
    width: 110px;
    height: 40px;
    background: #f8f9fa;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 35px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-dark);
}

.qty-btn:hover {
    background: #e2e6ea;
    color: var(--primary-color);
}

.qty-input {
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid #eef0f2;
    border-right: 1px solid #eef0f2;
    text-align: center;
    font-weight: 600;
    background: #fff;
    pointer-events: none;
    color: var(--text-dark);
}

.item-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 90px;
    text-align: right;
}

.btn-delete {
    background: #fff0f0;
    color: #dc3545;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.05);
}

/* Order Summary Card */
.summary-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f6f8;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f4f6f8;
}

.btn-checkout {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    margin-top: 25px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
    color: #fff;
}

/* Coupon Box */
.coupon-box {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eef0f2;
}

.coupon-box label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 14px;
}

.coupon-box input {
    border-radius: 8px 0 0 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    height: 45px;
    border-right: none;
}

.coupon-box input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.coupon-box button {
    border-radius: 0 8px 8px 0;
    background: #222;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 500;
    transition: 0.3s;
}

.coupon-box button:hover {
    background: var(--primary-color);
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    display: none;
}

.empty-cart i {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 25px;
}

.empty-cart h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .cart-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .item-img-wrap {
        width: 100%;
        height: 160px;
    }

    .item-details {
        width: 100%;
    }

    .qty-total-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .btn-delete {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

/* ----- Checkout Page Specific Styles ----- */
.checkout-container {
    margin-bottom: 80px;
}

.checkout-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.checkout-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #e0e6f7;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f6f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #eef0f2;
    padding: 12px 15px;
    font-size: 14px;
    background-color: #fdfdfd;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(57, 108, 241, 0.1);
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Payment Methods */
.payment-method {
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 15px;
    background-color: #fdfdfd;
    transition: 0.3s;
    cursor: pointer;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background-color: #f4f7f9;
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(57, 108, 241, 0.05);
}

.payment-method label {
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-icons img,
.payment-icons i {
    height: 25px;
    margin-left: 10px;
}

.online-payment-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

/* Order Summary Sidebar */
.summary-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 35px 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 5px;
    background: #fdfdfd;
}

.summary-item-info {
    flex-grow: 1;
    padding: 0 15px;
}

.summary-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.summary-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f4f6f8;
}

.btn-confirm {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    margin-top: 25px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-confirm:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
    color: #fff;
}

@media (max-width: 768px) {
    .checkout-card {
        padding: 20px;
    }

    .summary-card {
        margin-top: 30px;
        padding: 20px;
    }

    .summary-item-title {
        max-width: 130px;
    }

    .payment-icons {
        display: none;
    }

    /* Hide extra icons on small screens for clean look */
}


/* Category Banner */
.category-banner {
    /* background: url('https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat; */
    border-radius: 12px;
    padding: 50px 40px;
    position: relative;
    margin-bottom: 30px;
    color: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(57, 108, 241, 0.9) 0%, rgba(30, 60, 140, 0.6) 100%);
    z-index: 1;
}

.category-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.category-banner h1 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 32px;
}

.category-banner p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .category-banner {
        padding: 30px 20px;
    }

    .category-banner h1 {
        font-size: 24px;
    }

    .category-banner p {
        font-size: 13px;
    }
}

/* Sidebar Filter Styles */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4f6f8;
}

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

.widget-list li {
    margin-bottom: 12px;
}

.widget-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
    transition: 0.3s;
    font-weight: 500;
}

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

.widget-list li a span {
    background: #f4f6f8;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
    transition: 0.3s;
}

.widget-list li a.active span {
    background: var(--primary-color);
    color: #fff;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 10px;
    cursor: pointer;
}

/* Mobile Offcanvas for Filters */
@media (max-width: 991.98px) {
    #shopSidebar {
        max-width: 300px;
    }

    .sidebar-widget {
        border: none;
        box-shadow: none;
        padding: 15px 20px;
        border-bottom: 1px solid #eef0f2;
        border-radius: 0;
        margin-bottom: 0;
    }
}

/* Top Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.toolbar-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.sort-by-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by-wrap label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* ----- Modern Product Card Layout ----- */

/* Pagination */
.pagination {
    margin-top: 40px;
    justify-content: center;
    gap: 8px;
}

.page-item .page-link {
    border: 1px solid #eef0f2;
    color: var(--text-dark);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}

.page-item.active .page-link,
.page-item .page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* PRODUCT DETAILS PAGE */

/* ----- Product Details Specific Styles ----- */
.product-details-container {
    margin-bottom: 60px;
}

/* Main Image & Gallery */
.main-image-box {
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 30px;
    background: #fff;
    text-align: center;
    margin-bottom: 15px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.main-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-box {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-box.active,
.thumbnail-box:hover {
    border-color: var(--primary-color);
}

/* Product Info */
.product-brand {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-title-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.product-rating .stars {
    color: #ffb800;
    font-size: 14px;
}

.product-rating .reviews-count {
    font-size: 14px;
    color: var(--text-light);
}

.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f2;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.product-price-old {
    font-size: 20px;
    text-decoration: line-through;
    color: #aab2bd;
    margin: 0;
}

.stock-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

.product-short-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.meta-list li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.meta-list li span {
    font-weight: 600;
    color: var(--text-dark);
    width: 100px;
    display: inline-block;
}

/* Action Area (Qty & Buttons) */
.action-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.qty-control-large {
    display: flex;
    align-items: center;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    overflow: hidden;
    width: 130px;
    height: 50px;
    background: #fff;
}

.qty-btn-large {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-dark);
    font-size: 18px;
}

.qty-btn-large:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.qty-input-large {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid #eef0f2;
    border-right: 1px solid #eef0f2;
    text-align: center;
    font-weight: 600;
    background: #fff;
    pointer-events: none;
    color: var(--text-dark);
    font-size: 16px;
}

.btn-add-cart-large {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 50px;
    padding: 0 35px;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
    color: #fff;
}

.btn-buy-now-large {
    background: #E56F04;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 50px;
    padding: 0 35px;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-buy-now-large:hover {
    background: #b45903;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(57, 108, 241, 0.25);
    color: #fff;
}

.btn-wishlist {
    height: 50px;
    width: 50px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 18px;
    transition: 0.3s;
}

.btn-wishlist:hover {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eef0f2;
    padding-top: 20px;
}

.social-share span {
    font-weight: 600;
    font-size: 14px;
}

.social-share a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: 0.3s;
}

.social-share a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Tabs Section */
.product-tabs {
    margin-top: 60px;
    margin-bottom: 60px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    padding: 15px 30px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-color);
}

.nav-tabs .nav-link:hover:not(.active) {
    color: var(--text-dark);
}

.tab-content {
    padding: 40px 0;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Specification Table */
.spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
}

@media (max-width: 768px) {
    .main-image-box {
        height: 300px;
    }

    .product-title-large {
        font-size: 24px;
    }

    .action-area {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ----- 404 Page Specific Styles ----- */
.error-page-container {
    flex: 1;
    /* Pushes footer to bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.error-content-box {
    max-width: 600px;
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(57, 108, 241, 0.1);
    /* Floating Animation */
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.error-icon {
    font-size: 60px;
    color: #ff4757;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.error-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn-back-home {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(57, 108, 241, 0.2);
}

.btn-back-home:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(57, 108, 241, 0.3);
}

@media (max-width: 576px) {
    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-content-box {
        padding: 40px 20px;
    }
}

/* ----- Footer Fixes ----- */
footer {
    background: #111;
    color: #ddd;
    padding: 70px 0 20px;
}

footer h5,
footer h2 {
    color: #fff !important;
    margin-bottom: 25px;
    font-weight: 600;
}

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

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: #bbb;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-icons a i {
    color: #bbb;
    transition: 0.3s;
}

.social-icons a:hover i {
    color: var(--primary-color);
}


/* ----- Shop by Category (Image Based Style) ----- */
.category-item {
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 10px;
}

.category-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    padding: 0;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-item:hover .category-img-wrap {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(57, 108, 241, 0.25);
    transform: translateY(-8px);
}

.category-item:hover .category-img-wrap img {
    transform: scale(1.1);
}

.category-title-text {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.category-item:hover .category-title-text {
    color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

@media (max-width: 576px) {
    .category-img-wrap {
        width: 90px;
        height: 90px;
    }

    .category-title-text {
        font-size: 12px;
    }
}