@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    color: var(--color_heading);
}

:root {
    /* Primary Colors - Blue Theme */
    --main_color: #2563eb;
    --main_color_hover: #1d4ed8;
    --main_color_light: #eff6ff;
    --main_color_dark: #1e40af;

    /* Secondary Colors */
    --p_color: #64748b;
    --bg_color: #f1f5f9;
    --white_color: #fff;
    --color_heading: #0f172a;
    --border_color: #e2e8f0;
    --Sale_color: #dc2626;

    /* Status Colors */
    --success_color: #059669;
    --warning_color: #d97706;
    --error_color: #dc2626;

    /* Border Radius */
    --radius_xs: 4px;
    --radius_sm: 8px;
    --radius_md: 12px;
    --radius_lg: 16px;
    --radius_xl: 24px;
    --radius_full: 9999px;

    /* Shadows - Enhanced */
    --shadow_sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow_md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow_lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow_xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    padding-top: 140px;
    background: var(--bg_color);
    line-height: 1.6;
}

span {
    color: var(--main_color);
}

p {
    color: var(--p_color);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color_heading);
    font-family: "DM Sans", sans-serif;
    line-height: 1.3;
}

img {
    width: 100%;
    display: block;
}

input,
select,
button {
    border: none;
    outline: none;
    font-family: inherit;
}

.btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Auth Buttons */
header .bottom_header .login_signup.btns {
    gap: 10px;
}

header .bottom_header .login_signup .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius_md);
}

header .bottom_header .login_signup .user_dropdown {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    text-transform: capitalize;
    border-radius: 4px;
    cursor: pointer;
    background: var(--main_color);
    color: var(--white_color);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.btn i {
    color: var(--white_color);
}

.btn:hover {
    background: var(--main_color_hover);
    box-shadow: var(--shadow_md);
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1350px;
}

@media (max-width:1350px) {
    .container {
        width: 90%;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color_heading);
    color: var(--white_color);
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--success_color);
}

.toast-error {
    background: var(--error_color);
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border_color);
    border-top-color: var(--main_color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Start Header */
header {
    background: var(--white_color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 1px 0 var(--border_color);
    z-index: 1000;
}

header .top_header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 30px;
}

header .top_header .logo {
    width: 140px;
    flex-shrink: 0;
}

header .top_header .search_box {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    border: 2px solid var(--border_color);
    background: var(--white_color);
    overflow: hidden;
    transition: border-color 0.2s;
}

header .top_header .search_box:focus-within {
    border-color: var(--main_color);
}

header .top_header .search_box input {
    height: 46px;
    flex: 1;
    padding: 0 15px;
    background: transparent;
    font-size: 14px;
}

header .top_header .search_box input::placeholder {
    color: var(--p_color);
}

header .top_header .search_box .select_box {
    position: relative;
    display: none;
}

header .top_header .search_box .select_box::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 1px;
    height: 60%;
    background: var(--border_color);
}

header .top_header .search_box select {
    height: 46px;
    width: 150px;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    padding-left: 15px;
    color: var(--p_color);
}

header .top_header .search_box select option {
    font-size: 14px;
}

header .top_header .search_box button {
    height: 46px;
    width: 50px;
    background: var(--main_color);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

header .top_header .search_box button:hover {
    background: var(--main_color_hover);
}

header .top_header .search_box button i {
    color: var(--white_color);
}

header .top_header .header_icons {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

header .top_header .header_icons .icon {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg_color);
    transition: all 0.2s;
}

header .top_header .header_icons .icon:hover {
    background: var(--main_color_light);
}

header .top_header .header_icons .icon:hover i {
    color: var(--main_color);
}

header .top_header .header_icons .icon i {
    font-size: 20px;
    transition: color 0.2s;
}

header .top_header .header_icons .icon .count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    background: var(--Sale_color);
    color: var(--white_color);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius_full);
}


header .bottom_header {
    border-top: 1px solid var(--border_color);
    background: var(--white_color);
}

header .bottom_header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .bottom_header nav {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 50px;
}

header .bottom_header .category_nav {
    width: 200px;
    position: relative;
    height: 100%;
}

header .bottom_header .category_nav .category_btn {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--main_color);
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 10px;
}

header .bottom_header .category_nav .category_btn:hover {
    background: var(--main_color_hover);
}

header .bottom_header .category_nav .category_btn p {
    color: var(--white_color);
    font-weight: 600;
    font-size: 14px;
}

header .bottom_header .category_nav .category_btn i {
    color: var(--white_color);
    font-size: 14px;
}

header .bottom_header .category_nav .category_nav_list {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white_color);
    width: 100%;
    border: 1px solid var(--border_color);
    border-top: 0;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 0.2s ease-in-out;
    box-shadow: var(--shadow_lg);
}

header .bottom_header .category_nav .category_nav_list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

header .bottom_header .category_nav .category_nav_list a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border_color);
    font-size: 14px;
    transition: all 0.2s;
}

header .bottom_header .category_nav .category_nav_list a:last-child {
    border-bottom: 0;
}

header .bottom_header .category_nav .category_nav_list a:hover {
    background: var(--main_color_light);
    color: var(--main_color);
    padding-left: 20px;
}

header .bottom_header .nav_links {
    display: flex;
    gap: 30px;
}

header .bottom_header .nav_links li a {
    color: var(--color_heading);
    transition: 0.2s;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .bottom_header .nav_links li a i {
    display: none;
}

.mobile-only-footer {
    display: none;
}

header .bottom_header .nav_links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main_color);
    transition: width 0.2s;
}

header .bottom_header .nav_links li:hover a::after,
header .bottom_header .nav_links li.active a::after {
    width: 100%;
}

header .bottom_header .nav_links li:hover a,
header .bottom_header .nav_links li.active a {
    color: var(--main_color);
}


/* Slide */
.slider {
    position: relative;
    margin-bottom: 30px;
}

.slider .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.slider .banner_2 {
    width: 280px;
    flex-shrink: 0;
}

.slider .banner_2 a {
    display: block;
    height: 100%;
    border-radius: var(--radius_md);
    overflow: hidden;
}

.slider .banner_2 a img {
    height: 100%;
    object-fit: cover;
}

.slider .container .slide-swp {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius_md);
}

.swiper-wrapper {
    height: auto !important;
}

.slider .container .slide-swp .swiper-pagination {
    bottom: 15px !important;
}

.slider .container .slide-swp .swiper-pagination span {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--white_color) !important;
    width: 30px !important;
    height: 10px !important;
    border-radius: var(--radius_full) !important;
}

/* banners_4 */
.banners_4 {
    margin: 30px 0;
}

.banners_4 .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.banners_4 .container .box {
    background: linear-gradient(135deg, var(--main_color_light) 0%, var(--white_color) 100%);
    border: 1px solid var(--border_color);
    border-radius: var(--radius_md);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
}

.banners_4 .container .box:hover {
    border-color: var(--main_color);
    box-shadow: var(--shadow_lg);
    transform: translateY(-2px);
}

.banners_4 .container .box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.banners_4 .container .box:hover img {
    transform: scale(1.1);
}

.banners_4 .container .box .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banners_4 .container .box .text h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color_heading);
    margin: 0;
    line-height: 1.3;
}

.banners_4 .container .box .text h5:first-child {
    color: var(--p_color);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banners_4 .container .box .sale {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.banners_4 .container .box .sale p {
    font-size: 11px;
    line-height: 1.2;
    color: var(--p_color);
    font-weight: 500;
}

.banners_4 .container .box .sale span {
    font-size: 28px;
    font-weight: 800;
    color: var(--Sale_color);
    line-height: 1;
}

.banners_4 .container .box .text h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--main_color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.banners_4 .container .box .link_btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
}


/* Start Slide Products */
.slide {
    margin-bottom: 50px;
}

.top_slide {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border_color);
    padding-bottom: 12px;
}

.top_slide h2 {
    text-transform: uppercase;
    color: var(--color_heading);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top_slide h2::before {
    display: none;
}

.top_slide h2 i {
    color: var(--main_color);
    font-size: 18px;
}

.top_slide .view_all_link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main_color);
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: var(--radius_full);
    background: var(--main_color_light);
}

.top_slide .view_all_link:hover {
    background: var(--main_color);
    color: var(--white_color);
}

.top_slide .view_all_link i {
    font-size: 11px;
    transition: transform 0.3s;
}

.top_slide .view_all_link:hover i {
    transform: translateX(3px);
    color: var(--white_color);
}

.slide .container {
    position: relative;
}

.slide .container .mySwiper {
    padding: 5px 0 10px;
    position: relative;
}

.slide .container .mySwiper .btn_Swip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white_color);
    color: var(--color_heading);
    font-weight: bold;
    height: 35px;
    width: 35px;
    border: 1px solid var(--border_color);
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slide .container .mySwiper .btn_Swip:hover {
    background: var(--main_color);
    color: white;
    border-color: var(--main_color);
}

.slide .container .mySwiper .btn_Swip::after {
    font-size: 14px;
    font-weight: 700;
}

.slide .container .mySwiper .btn_Swip.swiper-button-next {
    right: 10px;
}

.slide .container .mySwiper .btn_Swip.swiper-button-prev {
    left: 0px;
    right: auto;
}


/* product card style - Shopify-like Design */
.mySwiper {
    overflow: hidden;
}

.product {
    background: var(--white_color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.product .sale_present {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product .img_product {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    background: #f8fafc;
}

.product .img_product::before {
    content: none;
}

.product .img_product a {
    display: block;
    width: 100%;
    height: 100%;
}

.product .img_product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product:hover .img_product img {
    transform: scale(1.05);
}

/* Wishlist button on image */
.product .img_product .wishlist_btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product:hover .img_product .wishlist_btn {
    opacity: 1;
    transform: translateY(0);
}

.product .img_product .wishlist_btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product .img_product .wishlist_btn i {
    font-size: 16px;
    color: #6b7280;
    transition: all 0.3s;
}

.product .img_product .wishlist_btn:hover i,
.product .img_product .wishlist_btn.active i {
    color: #ef4444;
}

.product .img_product .wishlist_btn.active {
    background: white;
    opacity: 1;
}

.product .img_product .wishlist_btn.active i {
    font-weight: 900;
}

/* Product content */
.product .product_content {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.product .name_product {
    margin-bottom: 0;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.product .name_product a {
    color: inherit;
    transition: color 0.2s;
}

.product .name_product a:hover {
    color: var(--main_color);
}

.stars {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 13px;
}

.stars i.empty {
    color: #e5e7eb;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price p {
    color: #111827;
    font-weight: 700;
    font-size: 18px;
}

.price .old_price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
}

.product .icons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product .icons .icon_product {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #f8fafc;
    border-radius: 8px;
    flex-shrink: 0;
}

.product .icons .icon_product:hover {
    border-color: var(--main_color);
    background: var(--main_color_light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
}

.product .icons .icon_product.active {
    background: #fef2f2;
    border-color: #fecaca;
}

.product .icons .icon_product:hover i {
    color: var(--main_color);
}

.product .icons .icon_product.active i {
    color: #ef4444;
}

.product .icons .icon_product i {
    font-size: 16px;
    transition: all 0.2s;
    color: #6b7280;
}

.product .icons .btn_add_cart {
    flex: 1;
    background: linear-gradient(135deg, var(--main_color) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.product .icons .btn_add_cart i {
    color: white;
    pointer-events: none;
    font-size: 15px;
    transition: transform 0.2s;
}

.product .icons .btn_add_cart:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.product .icons .btn_add_cart:hover i {
    transform: scale(1.05);
}

.product .icons .btn_add_cart.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product .icons .btn_add_cart.active:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.product .icons .btn_add_cart.active i {
    color: white;
}


/* banners */
.banners {
    margin: 40px 0;
}

.banners .banners_boxs {
    display: flex;
    gap: 20px;
}

.banners .banners_boxs .box {
    flex: 1;
    border-radius: var(--radius_md);
    overflow: hidden;
    transition: all 0.2s;
}

.banners .banners_boxs .box:hover {
    box-shadow: var(--shadow_lg);
}

.banners .banners_boxs .box img {
    transition: transform 0.3s;
}

.banners .banners_boxs .box:hover img {
    transform: scale(1.03);
}

.banners .banners_boxs.banner_3_img .box {
    flex: 1;
}

/* Start Footer */
footer {
    background: #0f172a;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    padding: 50px 0 40px;
    gap: 30px;
}

footer .container .big_row {
    width: 28%;
}

footer .container .big_row .logo_footer {
    width: 140px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

footer .container .big_row p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

footer .container .big_row .icons_footer {
    display: flex;
    gap: 8px;
}

footer .container .big_row .icons_footer a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

footer .container .big_row .icons_footer a:hover {
    background: var(--main_color);
}

footer .container .big_row .icons_footer a i {
    color: var(--white_color);
    font-size: 16px;
}

footer .container .row {
    width: 20%;
}

footer .container .row h4 {
    color: var(--white_color);
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .container .row .links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .container .row .links a {
    color: #94a3b8;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer .container .row .links a i {
    color: var(--main_color);
    font-size: 10px;
    transition: 0.2s;
}

footer .container .row .links a:hover {
    color: var(--white_color);
}

footer .container .row .links a:hover i {
    transform: translateX(3px);
}

footer .bottom_footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .bottom_footer .container {
    align-items: center;
    padding: 15px 0;
}

footer .bottom_footer p {
    color: #94a3b8;
    font-size: 13px;
}

footer .bottom_footer p span {
    color: var(--main_color);
}

footer .bottom_footer .payment_img {
    width: 300px;
    opacity: 0.7;
}


/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    right: -420px;
    bottom: 0;
    z-index: 1100;
    background: var(--white_color);
    width: 400px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
    box-shadow: var(--shadow_xl);
}

.cart.active {
    right: 0;
}

.cart .top_cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border_color);
}

.cart .top_cart .close_cart i {
    cursor: pointer;
    font-size: 28px;
    transition: color 0.2s;
    color: var(--p_color);
}

.cart .top_cart .close_cart i:hover {
    color: var(--Sale_color);
}

.cart .top_cart h3 {
    font-size: 16px;
    font-weight: 600;
}

.cart .top_cart h3 span {
    color: var(--main_color);
    font-weight: 700;
}

.cart .items_in_cart {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
}

.cart .items_in_cart .empty_cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--p_color);
}

.cart .items_in_cart .item_cart {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border_color);
}

.cart .items_in_cart .item_cart:last-child {
    border-bottom: 0;
}

.cart .items_in_cart .item_cart img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background: var(--bg_color);
}

.cart .items_in_cart .item_cart h4 {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.cart .items_in_cart .item_cart .delete_item {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.cart .items_in_cart .item_cart .delete_item i {
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--p_color);
}

.cart .items_in_cart .item_cart .delete_item i:hover {
    color: var(--Sale_color);
}

.cart .items_in_cart .item_cart .quantity_control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    border: 1px solid var(--border_color);
    width: fit-content;
}

.cart .items_in_cart .item_cart .quantity_control span {
    font-size: 14px;
    min-width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.cart .items_in_cart .item_cart .quantity_control button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    border: none;
    background: var(--bg_color);
    transition: all 0.2s;
}

.cart .items_in_cart .item_cart .quantity_control button:hover {
    background: var(--main_color);
    color: white;
}

.cart .bottom_cart {
    padding: 20px;
    border-top: 1px solid var(--border_color);
    background: var(--bg_color);
}

.cart .bottom_cart .total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart .bottom_cart .total p {
    font-weight: 600;
    color: var(--color_heading);
}

.cart .bottom_cart .price_cart_toral {
    color: var(--main_color);
    font-size: 18px;
    font-weight: 700;
}

.cart .bottom_cart .button_cart {
    display: flex;
    gap: 10px;
}

.cart .bottom_cart .button_cart .btn_cart {
    text-transform: uppercase;
    border: 2px solid var(--main_color);
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
    text-align: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 15px;
}

.cart .bottom_cart .button_cart .trans_bg {
    background: transparent;
    color: var(--main_color);
}

.cart .bottom_cart .button_cart .trans_bg:hover {
    background: var(--main_color_light);
}


/* Mobile Menu */
.menu-overlay {
    display: none;
}

.close_menu,
.open_menu {
    display: none;
}

/* Responsive */
@media (max-width:1100px) {
    body {
        padding-top: 180px;
    }

    header .top_header .container {
        flex-wrap: wrap;
    }

    header .top_header .search_box {
        order: 3;
        width: 100%;
        margin-top: 15px;
        max-width: none;
    }

    header .top_header .logo {
        width: 120px;
    }

    header .bottom_header .nav_links {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        background: var(--white_color);
        width: 320px;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1200;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        display: flex;
        overflow-y: auto;
    }

    header .bottom_header .nav_links.active {
        left: 0;
    }

    /* Mobile Menu Header */
    /* Mobile Menu Header Replacement */
    header .bottom_header .nav_links::before {
        content: '';
        display: block;
        width: 100%;
        height: 180px;
        background: linear-gradient(135deg, var(--main_color) 0%, var(--main_color_dark) 100%);
        margin-bottom: 20px;
        background-image: url('../img/electro-logo.png');
        /* Fallback or just branding */
        background-repeat: no-repeat;
        background-position: center;
        background-size: 140px;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1199;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    header .bottom_header .nav_links li {
        width: 100%;
        padding: 0 20px;
    }

    header .bottom_header .nav_links li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 600;
        color: var(--color_heading);
        border-radius: var(--radius_md);
        transition: all 0.3s ease;
        margin-bottom: 5px;
        border: 1px solid transparent;
    }

    header .bottom_header .nav_links li a i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        font-size: 18px;
        color: var(--main_color);
        transition: all 0.3s ease;
    }

    header .bottom_header .nav_links li a:hover {
        background: var(--main_color_light);
        color: var(--main_color);
        transform: translateX(5px);
    }

    header .bottom_header .nav_links li.active a {
        background: var(--main_color_light);
        color: var(--main_color);
        border-color: rgba(37, 99, 235, 0.1);
    }

    header .bottom_header .nav_links li.active a i {
        color: var(--main_color);
    }

    header .bottom_header .nav_links li a::before,
    header .bottom_header .nav_links li a::after {
        display: none;
    }

    /* Mobile Menu Footer Redesign */
    .mobile-only-footer {
        display: flex !important;
        margin-top: auto !important;
        padding: 30px 20px !important;
        background: #f8fafc;
        border-top: 1px solid var(--border_color);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mobile-menu-socials {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 15px;
        width: 100%;
    }

    .mobile-menu-socials a {
        width: 42px;
        height: 42px;
        background: var(--white_color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color_heading);
        font-size: 18px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border_color);
    }

    .mobile-menu-socials a:hover {
        background: var(--main_color);
        color: var(--white_color);
        border-color: var(--main_color);
        transform: translateY(-3px);
    }

    .mobile-menu-copyright {
        font-size: 12px;
        color: var(--p_color);
        font-weight: 500;
        margin: 0;
    }

    .close_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        cursor: pointer;
        color: var(--white_color);
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transition: all 0.3s;
        z-index: 100;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .close_menu:hover {
        background: var(--white_color);
        color: var(--Sale_color);
        transform: rotate(90deg);
    }

    .open_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        cursor: pointer;
        background: var(--main_color_light);
        border-radius: var(--radius_md);
        transition: all 0.2s;
    }

    .open_menu:hover {
        background: var(--main_color);
    }

    .open_menu i {
        color: var(--main_color);
        font-size: 18px;
        transition: color 0.2s;
    }

    .open_menu:hover i {
        color: var(--white_color);
    }

    /* Mobile Auth Buttons */
    header .bottom_header .login_signup.btns {
        gap: 8px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    header .bottom_header .login_signup .btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: var(--radius_sm);
        white-space: nowrap;
    }

    header .bottom_header .login_signup .btn i {
        display: none;
    }

    header .bottom_header .login_signup .btn-logout i {
        display: inline-block;
    }

    header .bottom_header .category_nav {
        width: auto;
    }

    header .bottom_header .category_nav .category_btn p {
        font-size: 13px;
    }

    header .bottom_header nav {
        gap: 15px;
    }

    .banners_4 .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .banners_4 .container .box {
        padding: 15px 12px;
        min-height: 100px;
    }

    .banners_4 .container .box img {
        width: 60px;
        height: 60px;
    }

    .banners_4 .container .box .text h5 {
        font-size: 12px;
    }

    .banners_4 .container .box .sale span {
        font-size: 22px;
    }
}


@media (max-width:1000px) {
    .slider .banner_2 {
        display: none;
    }

    .slider .container .slide-swp {
        width: 100%;
    }

    footer .container {
        flex-wrap: wrap;
    }

    footer .container .big_row {
        width: 100%;
        margin-bottom: 30px;
    }

    footer .container .row {
        width: 30%;
    }
}

@media (max-width:800px) {
    .top_slide h2 {
        font-size: 14px;
    }

    .slide .container .mySwiper .btn_Swip {
        height: 28px;
        width: 28px;
        top: -38px;
    }

    .slide .container .mySwiper .btn_Swip::after {
        font-size: 10px;
    }

    .slide .container .mySwiper .btn_Swip.swiper-button-prev {
        right: 34px;
    }

    .product .img_product {
        aspect-ratio: 1 / 1;
    }

    .product .product_content {
        padding: 10px 12px;
        gap: 4px;
    }

    .product .name_product {
        font-size: 13px;
        min-height: 36px;
    }

    .price {
        margin-bottom: 10px;
    }

    .price p {
        font-size: 16px;
    }

    .price .old_price {
        font-size: 12px;
    }

    .product .icons {
        gap: 6px;
    }

    .product .icons .icon_product {
        width: 40px;
        height: 40px;
    }

    .product .icons .btn_add_cart {
        font-size: 12px;
        height: 40px;
        padding: 0 12px;
    }

    .banners .banners_boxs {
        flex-wrap: wrap;
        gap: 15px;
    }

    .banners .banners_boxs .box {
        width: 100%;
        flex: none;
    }

    .banners .banners_boxs.banner_3_img .box {
        width: calc(50% - 8px);
        flex: none;
    }

    footer .container .row {
        width: 45%;
        margin-bottom: 25px;
    }

    footer .bottom_footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width:500px) {
    body {
        padding-top: 130px;
    }

    /* Hide search bar on mobile */
    header .top_header .search_box {
        display: none !important;
    }

    header .bottom_header .category_nav {
        display: none;
    }

    header .bottom_header .nav_links {
        width: 100%;
        left: -100%;
    }

    .cart {
        width: 100%;
        right: -100%;
    }

    .banners_4 .container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banners_4 .container .box {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 20px;
        min-height: 85px;
        gap: 15px;
    }

    .banners_4 .container .box img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .banners_4 .container .box .text {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .banners_4 .container .box .text h5:first-child {
        font-size: 11px;
        color: var(--p_color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin: 0;
    }

    .banners_4 .container .box .text h5:nth-child(2) {
        display: none;
    }

    .banners_4 .container .box .sale {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    .banners_4 .container .box .sale p {
        font-size: 10px;
        line-height: 1.2;
        color: var(--p_color);
        font-weight: 500;
        margin: 0;
    }

    .banners_4 .container .box .sale span {
        font-size: 22px;
        font-weight: 800;
        color: var(--Sale_color);
        line-height: 1;
    }

    .banners_4 .container .box .text h6 {
        font-size: 12px;
        font-weight: 700;
        color: var(--white_color);
        background: var(--main_color);
        padding: 8px 14px;
        border-radius: var(--radius_xs);
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .banners .banners_boxs.banner_3_img .box {
        width: 100%;
    }

    /* Product cards mobile */
    .slide .container .mySwiper .btn_Swip {
        height: 28px;
        width: 28px;
    }

    .slide .container .mySwiper .btn_Swip::after {
        font-size: 10px;
    }

    .slide .container .mySwiper .btn_Swip.swiper-button-prev {
        left: 0;
        right: auto;
    }

    .product .img_product {
        aspect-ratio: 1 / 1;
    }

    .product .img_product .wishlist_btn {
        opacity: 1;
        transform: translateY(0);
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .product .img_product .wishlist_btn i {
        font-size: 14px;
    }

    .product .sale_present {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .product .product_content {
        padding: 10px;
        gap: 4px;
    }

    .product .name_product {
        font-size: 12px;
        min-height: 34px;
    }

    .stars {
        margin-bottom: 4px;
    }

    .stars i {
        font-size: 12px;
    }

    .price {
        margin-bottom: 10px;
        gap: 6px;
    }

    .price p {
        font-size: 15px;
    }

    .price .old_price {
        font-size: 11px;
    }

    .product .icons {
        gap: 6px;
    }

    .product .icons .icon_product {
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }

    .product .icons .icon_product i {
        font-size: 14px;
    }

    .product .icons .btn_add_cart {
        font-size: 11px;
        height: 38px;
        padding: 0 10px;
        border-radius: 6px;
    }

    .product .icons .btn_add_cart i {
        font-size: 13px;
    }

    footer .container .row {
        width: 100%;
    }
}