@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Cairo", "Poppins", sans-serif;
    color: var(--color_heading);
}

:root {
    --main_color: #ff6b35;
    --secondary_color: #f7931e;
    --accent_color: #ff8c42;
    --p_color: #2c3e50;
    --bg_color: #fafafa;
    --white_color: #ffffff;
    --color_heading: #2c3e50;
    --border_color: #e8ecf0;
    --sale_color: #e74c3c;
    --success_color: #27ae60;
    --warning_color: #f39c12;
    --dark_color: #34495e;
    --light_gray: #ecf0f1;
    --shadow_light: rgba(0, 0, 0, 0.08);
    --shadow_medium: rgba(0, 0, 0, 0.12);
    --shadow_dark: rgba(0, 0, 0, 0.2);
    --gradient_primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient_secondary: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

body {
    padding-top: 180px;
    background: #fafafa;
    line-height: 1.6;
    font-weight: 400;
}

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: "Cairo", sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

img {
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input, select, button {
    border: none;
    outline: none;
    font-family: inherit;
}

.btons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    text-transform: capitalize;
    border-radius: 50px;
    cursor: pointer;
    background: var(--gradient_primary);
    color: var(--white_color);
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px var(--shadow_light);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    color: var(--white_color);
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow_medium);
}

.btn:hover i {
    transform: scale(1.1);
}

/* ===== DESKTOP & LARGE SCREENS OPTIMIZATION ===== */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        width: 85%;
    }
    
    /* Header improvements for large screens */
    header .top_headar .container {
        padding: 25px 0;
    }
    
    header .top_headar .search_box {
        width: 700px;
    }
    
    header .top_headar .search_box input {
        width: 600px;
        font-size: 18px;
        height: 60px;
    }
    
    /* Products grid - 6 columns for large screens */
    .slide_product .products.swiper-wrapper,
    .slide_product #swiper_items_sale,
    .slide_product #swiper_kashri,
    .slide_product #swiper_kabida,
    .slide_product #swiper_mix,
    .slide_product #swiper_sweet,
    .slide_product #swiper_add,
    .slide_product #swiper_top,
    .slide_product #swiper_mobiles,
    .slide_product #swiper_tt {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 25px !important;
    }
    
    .product {
        padding: 20px;
    }
    
    .product .img_product {
        height: 220px;
    }
    
    /* Slider improvements */
    .slider .container {
        gap: 25px;
    }
    
    .slied-swp {
        width: 75%;
    }
    
    .banner_2 {
        width: 23%;
    }
}

/* Standard Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        width: 88%;
    }
    
    /* Products grid - 5 columns */
    .slide_product .products.swiper-wrapper,
    .slide_product #swiper_items_sale,
    .slide_product #swiper_kashri,
    .slide_product #swiper_kabida,
    .slide_product #swiper_mix,
    .slide_product #swiper_sweet,
    .slide_product #swiper_add,
    .slide_product #swiper_top,
    .slide_product #swiper_mobiles,
    .slide_product #swiper_tt {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 22px !important;
    }
    
    .product .img_product {
        height: 200px;
    }
    
    /* Header adjustments */
    header .top_headar .search_box {
        width: 650px;
    }
    
    header .top_headar .search_box input {
        width: 550px;
    }
}

/* ===== TABLET OPTIMIZATION (iPad & Similar) ===== */

/* Large Tablet - iPad Pro (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        width: 92%;
        max-width: 1024px;
    }
    
    body {
        padding-top: 170px;
    }
    
    /* Header for large tablets */
    header .top_headar .container {
        padding: 22px 0;
    }
    
    header .top_headar .search_box {
        width: 500px;
    }
    
    header .top_headar .search_box input {
        width: 420px;
        font-size: 16px;
    }
    
    /* Products grid - 4 columns for large tablets */
    .slide_product .products.swiper-wrapper,
    .slide_product #swiper_items_sale,
    .slide_product #swiper_kashri,
    .slide_product #swiper_kabida,
    .slide_product #swiper_mix,
    .slide_product #swiper_sweet,
    .slide_product #swiper_add,
    .slide_product #swiper_top,
    .slide_product #swiper_mobiles,
    .slide_product #swiper_tt {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
    
    .product {
        padding: 18px;
    }
    
    .product .img_product {
        height: 180px;
    }
    
    /* Slider adjustments */
    .slider .container {
        gap: 20px;
    }
    
    .slied-swp {
        width: 70%;
    }
    
    .banner_2 {
        width: 28%;
    }
    
    /* About section improvements */
    .about-content {
        flex-direction: row;
        gap: 40px;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 1;
        max-width: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Branches section */
    .branches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Standard Tablet - iPad (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: 94%;
    }
    
    body {
        padding-top: 160px;
    }
    
    /* Header for standard tablets */
    header .top_headar .search_box {
        width: 400px;
    }
    
    header .top_headar .search_box input {
        width: 320px;
    }
    
    /* Products grid - 3 columns for standard tablets */
    .slide_product .products.swiper-wrapper,
    .slide_product #swiper_items_sale,
    .slide_product #swiper_kashri,
    .slide_product #swiper_kabida,
    .slide_product #swiper_mix,
    .slide_product #swiper_sweet,
    .slide_product #swiper_add,
    .slide_product #swiper_top,
    .slide_product #swiper_mobiles,
    .slide_product #swiper_tt {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
    
    .product {
        padding: 16px;
    }
    
    .product .img_product {
        height: 160px;
    }
    
    /* Slider adjustments */
    .slider .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .slied-swp,
    .banner_2 {
        width: 100%;
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Branches section */
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1350px;
}

@media (max-width:1350px) {
    .container {
        width: 90%;
    }
}








/* start header */
header {
    background: var(--white_color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px var(--shadow_light);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border_color);
}

header .top_headar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

header .top_headar .logo {
    width: 70px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--shadow_light);
    transition: all 0.3s ease;
}

header .top_headar .logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow_medium);
}

header .top_headar .search_box {
    width: 610px;
    display: flex;
    align-items: center;
    border-radius: 50px;
    background: var(--bg_color);
    box-shadow: 0 4px 15px var(--shadow_light);
    overflow: hidden;
    transition: all 0.3s ease;
}

header .top_headar .search_box:focus-within {
    box-shadow: 0 6px 25px var(--shadow_medium);
    transform: translateY(-2px);
}

header .top_headar .search_box input {
    height: 55px;
    width:500px;
    padding: 5px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--color_heading);
}

header .top_headar .search_box input::placeholder {
    color: var(--p_color);
    opacity: 0.7;
}

header .top_headar .search_box .select_box {
    position: relative;
}

header .top_headar .search_box .select_box::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 1px;
    height: 50%;
    background: var(--border_color);
}

header .top_headar .search_box select {
    height: 55px;
    width: 190px;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding-left: 10px;
    margin-right: 10px;
    text-align: center;
    color: var(--color_heading);
}

header .top_headar .search_box option {
    font-size: 15px;
    background: var(--white_color);
}

header .top_headar .search_box button {
    height: 55px;
    width: 130px;
    background: var(--gradient_primary);
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

header .top_headar .search_box button:hover {
    background: var(--gradient_secondary);
    transform: scale(1.05);
}

header .top_headar .search_box button i {
    color: var(--white_color);
}

header .top_headar .header_icons {
    display: flex;
    gap: 30px;
}

header .top_headar .header_icons .icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

header .top_headar .header_icons .icon:hover {
    background: var(--bg_color);
    transform: translateY(-2px);
}

header .top_headar .header_icons .icon i {
    font-size: 28px;
    color: var(--main_color);
    transition: all 0.3s ease;
}

header .top_headar .header_icons .icon:hover i {
    color: var(--secondary_color);
    transform: scale(1.1);
}

header .top_headar .header_icons .icon .count {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    background: var(--gradient_primary);
    color: var(--white_color);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--shadow_light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

header .bottom_header {
    border-top: 1px solid var(--border_color);
    background: linear-gradient(135deg, var(--white_color) 0%, var(--bg_color) 100%);
}

header .bottom_header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .bottom_header nav {
    display: flex;
    align-items: center;
    gap: 50px;
    height: 60px;
}

header .bottom_header .category_nav {
    width: 220px;
    position: relative;
    height: 100%;
}

header .bottom_header .category_nav .category_btn {
    height: 100%;
    width: 100%;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient_primary);
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow_light);
}

header .bottom_header .category_nav .category_btn:hover {
    background: var(--gradient_secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow_medium);
}

header .bottom_header .category_nav .category_btn p {
    color: var(--white_color);
    font-weight: 600;
    font-size: 15px;
}

header .bottom_header .category_nav .category_btn i {
    color: var(--white_color);
    transition: transform 0.3s ease;
}

header .bottom_header .category_nav .category_btn:hover i {
    transform: rotate(180deg);
}

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.3s ease-in-out;
    box-shadow: 0 8px 25px var(--shadow_light);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

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.3s ease;
    position: relative;
}

header .bottom_header .category_nav .category_nav_list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient_primary);
    transition: width 0.3s ease;
}

header .bottom_header .category_nav .category_nav_list a:hover::before {
    width: 4px;
}

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(--bg_color);
    color: var(--main_color);
    padding-left: 20px;
}

header .bottom_header .nav_linkc {
    display: flex;
    gap: 35px;
}

header .bottom_header .nav_linkc li a {
    color: var(--color_heading);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

header .bottom_header .nav_linkc li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient_primary);
    transition: left 0.3s ease;
    z-index: -1;
}

header .bottom_header .nav_linkc li:hover a::before,
header .bottom_header .nav_linkc li.active a::before {
    left: 0;
}

header .bottom_header .nav_linkc li:hover a,
header .bottom_header .nav_linkc li.active a {
    color: var(--white_color);
    transform: translateY(-2px);
}








/* Slide */
.slider {
    position: relative;
    margin-bottom: 40px;
}

.slider .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.slider .banner_2 {
    width: 23%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow_light);
    transition: all 0.3s ease;
}

.slider .banner_2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow_medium);
}

.slider .banner_2 a {
    height: 100%;
    width: 100%;
    display: block;
}

.slider .container .slied-swp {
    width: 75%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow_light);
}

.swiper-wrapper {
    height: auto !important;
}

.slider .container .slied-swp .swiper-slide img {
    border-radius: 20px;
    height: 400px;
    object-fit: cover;
}

.slider .container .slied-swp .swiper-pagination {
    bottom: 20px;
}

.slider .container .slied-swp .swiper-pagination span {
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--main_color) !important;
    width: 35px !important;
    height: 12px !important;
    border-radius: 35px !important;
    transform: scale(1.1);
}





/* banners_4 */

.banners_4 {
    margin: 3px 0;
}

.banners_4 .container {
    display: flex;
    justify-content: space-between;

}

.banners_4 .container .box {
    width: 24%;
    background: url(../img/bg_banner3.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 10px;
    position: relative;
}

.banners_4 .container .box img {
    width: 100px;
    transition: 0.3s;
}

.banners_4 .container .box:hover img {
    scale: 1.1;
}

.banners_4 .container .box h5 {
    font-size: 16px;

}

.banners_4 .container .box .sale {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 7px 0;
}

.banners_4 .container .box .sale span {
    font-size: 25px;
    font-weight: bold;
}

.banners_4 .container .box h6 {
    font-size: 14PX;
    font-weight: bold;
}

.banners_4 .container .box .link_btn {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}










/* start style */
.slide {
    margin-bottom: 80px;
    padding: 0 20px;
}

.tpo_slide {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.tpo_slide h2 {
    position: relative;
    text-transform: uppercase;
    background: var(--gradient_primary);
    color: var(--white_color);
    font-size: 24px;
    font-weight: 700;
    padding: 15px 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 25px var(--shadow_light);
    transition: all 0.3s ease;
}

.tpo_slide h2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow_medium);
}

.tpo_slide h2 i {
    color: var(--white_color);
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.slide .container {
    position: relative;
}

.slide .container .mySwiper {
    padding: 20px 0;
}

.slide .container .mySwiper .btn_swip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white_color);
    color: var(--main_color);
    font-weight: bold;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    border: 2px solid var(--main_color);
    box-shadow: 0 4px 15px var(--shadow_light);
    transition: all 0.3s ease;
    z-index: 10;
}

.slide .container .mySwiper .btn_swip:hover {
    background: var(--main_color);
    color: var(--white_color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--shadow_medium);
}

.slide .container .mySwiper .btn_swip::after {
    font-size: 16px;
    font-weight: bold;
}

.slide .container .mySwiper .btn_swip.swiper-button-prev {
    left: -25px;
}

.slide .container .mySwiper .btn_swip.swiper-button-next {
    right: -25px;
}



/* product cart style */
.slider_products {
    padding: 40px;
    background: var(--white_color);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 15px var(--shadow_light);
}

.mySwiper {
    overflow: hidden;
}

.product {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 20px;
    box-shadow: 0 8px 25px var(--shadow_light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px; /* دائري أكثر زي المحلات */
    position: relative;
    transition: all 0.3s ease; /* أسرع زي المحلات */
    overflow: hidden;
    height: 420px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(247, 147, 30, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product:hover::before {
    opacity: 1;
}

.product:hover {
    transform: translateY(-8px); /* حركة أقل زي المحلات */
    box-shadow: 0 15px 35px var(--shadow_medium);
    border-color: var(--main_color);
}

.product .sale_present {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: var(--gradient_primary);
    color: var(--white_color);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    animation: saleGlow 2s infinite alternate;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes saleGlow {
    0% {
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
        transform: scale(1.05);
    }
}

.product .img_product {
    position: relative;
    height: 160px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
    margin-bottom: 15px;
    border: 2px solid rgba(255, 107, 53, 0.1);
    flex-shrink: 0;
}

.product .img_product img {
    transition: all 0.4s ease;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product:hover .img_product {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    border-color: var(--main_color);
}

.product:hover .img_product img {
    transform: scale(1.08);
}

.product .name_product {
    margin-bottom: 12px;
    color: var(--color_heading);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    height: 44px;
    position: relative;
    flex-shrink: 0;
}

.product .name_product a {
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.product .name_product a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient_primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.product .name_product a:hover {
    color: var(--main_color);
    text-decoration: none;
}

.product .name_product a:hover::after {
    width: 100%;
}

.stars {
    margin-bottom: 15px;
    text-align: center;
}

.stars i {
    color: var(--warning_color);
    font-size: 18px;
    margin: 0 3px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

.stars i:hover {
    transform: scale(1.3);
    color: #f39c12;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.price p {
    color: var(--main_color);
    font-weight: 800;
    font-size: 18px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.price .old_price {
    color: var(--p_color);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    position: relative;
}

.price .old_price::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sale_color);
    transform: translateY(-50%);
}

.product .icons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.product .icons .icon_product {
    width: 80px;
    height: 40px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.product .icons .icon_product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.product .icons .icon_product:hover::before {
    left: 100%;
}

.product .icons .icon_product:hover {
    background: var(--gradient_primary);
    border-color: var(--main_color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.product .icons .icon_product i {
    font-size: 16px;
    color: var(--main_color);
    transition: all 0.3s ease;
}

.product .icons .icon_product:hover i {
    color: var(--white_color);
    transform: scale(1.1);
}

.product .icons .btn_add_cart {
    background: var(--gradient_primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white_color);
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid var(--main_color);
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    min-width: 140px;
    white-space: nowrap;
}

.product .icons .btn_add_cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.product .icons .btn_add_cart:hover::before {
    left: 100%;
}

.product .icons .btn_add_cart i {
    color: var(--white_color);
    pointer-events: none;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.product .icons .btn_add_cart:hover {
    transform: translateY(-3px);
    background: var(--gradient_secondary);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.product .icons .btn_add_cart:hover i {
    transform: scale(1.2);
}

.product .icons .btn_add_cart.active {
    color: var(--success_color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 240, 0.95) 100%);
    pointer-events: none;
    border-color: var(--success_color);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.product .icons .btn_add_cart.active i {
    color: var(--success_color);
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}







/* banners 4 */
.banners {
    margin: 60px 0;
    padding: 0 20px;
}

.banners .banners_boxs {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.banners .banners_boxs .box {
    width: 49%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow_light);
    transition: all 0.3s ease;
    position: relative;
}

.banners .banners_boxs .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banners .banners_boxs .box:hover::before {
    opacity: 1;
}

.banners .banners_boxs .box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow_medium);
}

.banners .banners_boxs .box img {
    transition: transform 0.3s ease;
}

.banners .banners_boxs .box:hover img {
    transform: scale(1.05);
}

.banners .banners_boxs.banner_3_img .box {
    width: 31%;
}










/* start footer  */
footer {
    background: linear-gradient(135deg, var(--dark_color) 0%, var(--color_heading) 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

footer .container {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

footer .container .big_row {
    width: 30%;
}

footer .container .big_row .logo_footer {
    width: 500px;
    border-radius: 0%;
    box-shadow: 0 8px 25px var(--shadow_dark);
    transition: all 0.3s ease;
}

footer .container .big_row .logo_footer:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px var(--shadow_dark);
}

footer .container .big_row p {
    width: 90%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    margin: 25px 0;
    font-weight: 400;
}

footer .container .big_row .icon_footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

footer .container .big_row .icon_footer a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient_primary);
    border-radius: 50%;
    position: relative;
    top: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow_light);
}

footer .container .big_row .icon_footer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient_secondary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

footer .container .big_row .icon_footer a:hover::before {
    opacity: 1;
}

footer .container .big_row .icon_footer a:hover {
    top: -8px;
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--shadow_medium);
}

footer .container .big_row .icon_footer a i {
    color: var(--white_color);
    font-size: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

footer .container .big_row .icon_footer a:hover i {
    transform: scale(1.1);
}

footer .container .row {
    width: 22%;
}

footer .container .row h4 {
    color: var(--white_color);
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
}

footer .container .row h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient_primary);
    border-radius: 2px;
}

footer .container .row .links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

footer .container .row .links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    position: relative;
    left: 0;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 5px;
}

footer .container .row .links a i {
    color: var(--main_color);
    font-size: 16px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

footer .container .row .links a:hover {
    left: 10px;
    color: var(--white_color);
    background: rgba(255, 107, 53, 0.1);
    padding-left: 15px;
}

footer .container .row .links a:hover i {
    color: var(--secondary_color);
    transform: scale(1.2);
}

/* end footer */







/* start cart */
.cart {
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    z-index: 1100;
    background: var(--white_color);
    border-left: 1px solid var(--border_color);
    width: 400px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 30px var(--shadow_dark);
    backdrop-filter: blur(10px);
}

.cart.active {
    right: 0;
}

.cart .top_cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border_color);
}

.cart .top_cart .close_cart {
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--bg_color);
}

.cart .top_cart .close_cart:hover {
    background: var(--main_color);
    transform: scale(1.1);
}

.cart .top_cart .close_cart i {
    font-size: 24px;
    color: var(--p_color);
    transition: color 0.3s ease;
}

.cart .top_cart .close_cart:hover i {
    color: var(--white_color);
}

.cart .top_cart h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color_heading);
}

.cart .top_cart h3 span {
    color: var(--main_color);
    background: var(--bg_color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    margin-left: 10px;
}

.cart .items_in_cart {
    padding: 25px 0;
    border-bottom: 2px solid var(--border_color);
    margin-bottom: 25px;
    height: 100%;
    overflow-y: auto;
}

.cart .items_in_cart::-webkit-scrollbar {
    width: 6px;
}

.cart .items_in_cart::-webkit-scrollbar-track {
    background: var(--bg_color);
    border-radius: 10px;
}

.cart .items_in_cart::-webkit-scrollbar-thumb {
    background: var(--main_color);
    border-radius: 10px;
}

.cart .items_in_cart .item_cart {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border_color);
    transition: all 0.3s ease;
}

.cart .items_in_cart .item_cart:hover {
    background: var(--bg_color);
    padding: 20px 15px;
    border-radius: 15px;
    margin: 0 -15px;
}

.cart .items_in_cart .item_cart:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.cart .items_in_cart .item_cart img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow_light);
}

.cart .items_in_cart .item_cart h4 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.cart .items_in_cart .item_cart .delete_item {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart .items_in_cart .item_cart .delete_item:hover {
    background: rgba(237, 5, 5, 0.1);
}

.cart .items_in_cart .item_cart .delete_item i {
    font-size: 20px;
    color: var(--p_color);
    transition: all 0.3s ease;
}

.cart .items_in_cart .item_cart .delete_item:hover i {
    color: #ed0505;
    transform: scale(1.2);
}

.cart .items_in_cart .item_cart .quantity_control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: var(--bg_color);
    border-radius: 25px;
    padding: 5px;
}

.cart .items_in_cart .item_cart .quantity_control span {
    font-size: 16px;
    font-weight: 600;
    min-width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main_color);
}

.cart .items_in_cart .item_cart .quantity_control button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid var(--main_color);
    background: var(--white_color);
    color: var(--main_color);
    transition: all 0.3s ease;
}

.cart .items_in_cart .item_cart .quantity_control button:hover {
    background: var(--main_color);
    color: var(--white_color);
    transform: scale(1.1);
}

.cart .bottom_cart .total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg_color);
    border-radius: 15px;
    border: 2px solid var(--border_color);
}

.cart .bottom_cart .total p {
    font-size: 18px;
    font-weight: 600;
    color: var(--color_heading);
}

.cart .bottom_cart .price_cart_total {
    color: var(--main_color);
    font-size: 22px;
    font-weight: 700;
}

.cart .bottom_cart .botton_cart {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.cart .bottom_cart .botton_cart .btn_cart {
    text-transform: uppercase;
    border: 2px solid var(--main_color);
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 15px 25px;
    text-align: center;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.cart .bottom_cart .botton_cart .btn_cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient_primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.cart .bottom_cart .botton_cart .btn_cart:hover::before {
    left: 0;
}

.cart .bottom_cart .botton_cart .btn_cart:hover {
    color: var(--white_color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow_medium);
}

.cart .bottom_cart .botton_cart .trans_bg {
    background: transparent;
    color: var(--main_color);
}

.cart .bottom_cart .botton_cart .trans_bg:hover {
    background: var(--main_color);
    color: var(--white_color);
}

/* end cart */


/* Mobile menu controls */
.open_menu {
    display: none;
}

.close_menu {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for images */
.product .img_product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product:hover .img_product::after {
    opacity: 1;
}

/* Modern button styles */
.btn-modern {
    background: var(--gradient_primary);
    color: var(--white_color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow_light);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow_medium);
}

/* Enhanced search box */
.search_suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white_color);
    border: 1px solid var(--border_color);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px var(--shadow_light);
}

.search_suggestions.active {
    display: block;
}

.search_suggestions div {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid var(--border_color);
    transition: all 0.3s ease;
}

.search_suggestions div:hover {
    background: var(--bg_color);
    color: var(--main_color);
    padding-left: 30px;
}

.search_suggestions div:last-child {
    border-bottom: none;
}

/* Enhanced product highlight */
.product.highlight {
    outline: 3px solid var(--main_color);
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* Modern form elements */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    background: var(--white_color);
    border: 2px solid var(--border_color);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    border-color: var(--main_color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

/* Enhanced mobile responsiveness - نفس شكل المحلات */
@media (max-width: 768px) {
    .product {
        padding: 15px; /* نفس المحلات */
        border-radius: 20px; /* نفس المحلات */
        height: 300px; /* نفس المحلات */
        display: flex;
        flex-direction: column;
        box-shadow: 0 6px 20px var(--shadow_light); /* نفس المحلات */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .product:hover {
        transform: translateY(-5px); /* نفس المحلات */
        box-shadow: 0 12px 30px var(--shadow_medium);
    }
    
    .product .img_product {
        height: 100px; /* نفس المحلات */
        padding: 8px;
        margin-bottom: 10px;
        flex-shrink: 0;
        border-radius: 15px;
        background: linear-gradient(135deg, var(--bg_color), var(--white_color));
    }

    .product .name_product {
        font-size: 13px; /* نفس المحلات */
        height: 32px; /* نفس المحلات */
        margin-bottom: 8px;
        flex-shrink: 0;
        line-height: 1.2;
        text-align: center;
        font-weight: 600;
        color: var(--color_heading);
    }

    .stars {
        margin-bottom: 8px;
        flex-shrink: 0;
        text-align: center;
    }

    .stars i {
        font-size: 12px; /* نفس المحلات */
        margin: 0 1px;
    }

    .price {
        padding: 8px 10px; /* نفس المحلات */
        margin-bottom: 10px;
        flex-shrink: 0;
        border-radius: 12px;
        background: var(--bg_color);
        text-align: center;
        box-shadow: inset 0 2px 8px var(--shadow_light);
    }

    .price p {
        font-size: 16px; /* نفس المحلات */
        font-weight: 700;
        color: var(--main_color);
    }

    .price .old_price {
        font-size: 11px;
    }

    .product .icons {
        gap: 8px;
        margin-top: auto;
        flex-shrink: 0;
        justify-content: center;
    }

    .product .icons .icon_product {
        width: 32px; /* نفس المحلات */
        height: 32px;
        border-radius: 50%;
        background: var(--gradient_primary);
        color: var(--white_color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .product .icons .icon_product i {
        font-size: 12px;
    }

    .product .icons .btn_add_cart {
        padding: 10px 20px; /* نفس المحلات */
        font-size: 12px;
        gap: 6px;
        min-width: 120px;
        border-radius: 20px; /* دائري زي المحلات */
        background: var(--gradient_primary);
        color: var(--white_color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px var(--shadow_light);
        transition: all 0.3s ease;
    }

    .product .icons .btn_add_cart:hover {
        background: var(--gradient_secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow_medium);
    }

    .product .sale_present {
        padding: 6px 12px; /* نفس المحلات */
        font-size: 10px;
        top: 10px;
        right: 10px;
        border-radius: 15px;
        background: var(--gradient_primary);
        color: var(--white_color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px var(--shadow_light);
    }
    
    .tpo_slide h2 {
        font-size: 18px; /* نفس المحلات */
        padding: 12px 25px;
        border-radius: 20px;
        background: var(--gradient_primary);
        color: var(--white_color);
        text-align: center;
        box-shadow: 0 6px 20px var(--shadow_medium);
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .product {
        padding: 12px;
        border-radius: 15px;
        height: 350px;
        display: flex;
        flex-direction: column;
    }
    
    .product .img_product {
        height: 120px;
        padding: 10px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .product .name_product {
        font-size: 13px;
        height: 36px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .stars {
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .stars i {
        font-size: 14px;
        margin: 0 1px;
    }

    .price {
        padding: 6px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .price p {
        font-size: 15px;
    }

    .price .old_price {
        font-size: 11px;
    }

    .product .icons {
        gap: 6px;
        margin-top: auto;
        flex-shrink: 0;
    }

    .product .icons .icon_product {
        width: 32px;
        height: 32px;
    }

    .product .icons .icon_product i {
        font-size: 12px;
    }

    .product .icons .btn_add_cart {
        padding: 8px 20px;
        font-size: 11px;
        gap: 4px;
        min-width: 100px;
    }

    .product .sale_present {
        padding: 6px 10px;
        font-size: 10px;
        top: 10px;
        right: 10px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg_color: #1a1a1a;
        --white_color: #2d2d2d;
        --color_heading: #ffffff;
        --p_color: #cccccc;
        --border_color: #404040;
    }
}





/* ===== RESPONSIVE DESIGN - MOBILE & TABLET OPTIMIZED ===== */

/* Hide/Show elements based on screen size */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Mobile menu controls */
.open_menu {
    display: none;
}

.close_menu {
    display: none;
}

/* ===== TABLET RESPONSIVE (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding-top: 160px;
    }

    /* Tablet header */
    header .top_headar .container {
        padding: 18px 0;
    }

    header .top_headar .logo {
        width: 65px;
    }

    header .top_headar .search_box {
        width: 500px;
    }

    header .top_headar .search_box input {
        width: 350px;
    }

    /* Tablet slider */
    .slider .container {
        gap: 15px;
    }

    .slider .banner_2 {
        width: 28%;
    }

    .slider .container .slied-swp {
        width: 70%;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 350px;
    }

    /* Tablet products */
    .products.swiper-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .product {
        padding: 18px;
        border-radius: 18px;
        height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    .product .img_product {
        height: 150px;
        padding: 14px;
        margin-bottom: 14px;
        flex-shrink: 0;
    }

    .product .name_product {
        font-size: 15px;
        height: 42px;
        margin-bottom: 11px;
        flex-shrink: 0;
    }

    .stars {
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .stars i {
        font-size: 17px;
        margin: 0 2px;
    }

    .price {
        padding: 9px;
        margin-bottom: 13px;
        flex-shrink: 0;
    }

    .price p {
        font-size: 17px;
    }

    .price .old_price {
        font-size: 13px;
    }

    .product .icons {
        gap: 9px;
        margin-top: auto;
        flex-shrink: 0;
    }

    .product .icons .icon_product {
        width: 37px;
        height: 37px;
    }

    .product .icons .icon_product i {
        font-size: 15px;
    }

    .product .icons .btn_add_cart {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 150px;
        white-space: nowrap;
    }

    .product .sale_present {
        padding: 9px 16px;
        font-size: 12px;
        top: 14px;
        right: 14px;
    }

    .product {
        padding: 15px;
    }

    .product .img_product {
        height: 130px;
    }

    /* Tablet banners */
    .banners .banners_boxs.banner_3_img .box {
        width: 48%;
    }
}

/* ===== MOBILE RESPONSIVE (768px and below) ===== */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
        font-size: 16px;
    }

    /* Mobile header - Fixed and optimized */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    header .top_headar .container {
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    header .top_headar .logo {
        width: 45px;
        flex-shrink: 0;
    }

    header .top_headar .search_box {
        flex: 1;
        margin: 0 15px;
        height: 45px;
        max-width: none;
        width: auto;
    }

    header .top_headar .search_box input {
        height: 45px;
        width: calc(100% - 50px);
        font-size: 16px;
        padding: 0 15px;
    }

    header .top_headar .search_box button {
        height: 45px;
        width: 60px;
    }

    header .top_headar .header_icons {
        flex-shrink: 0;
    }

    header .top_headar .header_icons .icon {
        position: relative;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    header .top_headar .header_icons .icon i {
        font-size: 24px;
        color: var(--main_color);
    }

    header .top_headar .header_icons .icon .count {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
        background: var(--gradient_primary);
        color: var(--white_color);
        border-radius: 50%;
        text-align: center;
    }

    /* Mobile navigation - ثابتة تحت البحث */
    header .bottom_header {
        padding: 1px 0;
        background: var(--white_color);
        border-top: 1px solid var(--border_color);
    }

    header .bottom_header .container {
        justify-content: center;
    }

    /* إخفاء زر الهامبرجر */
    .open_menu {
        display: none !important;
    }

    /* القائمة الثابتة */
    header .bottom_header .nav_linkc {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border: none !important;
        overflow: visible !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        left: 0 !important;
        top: auto !important;
        bottom: auto !important;
    }

    header .bottom_header .nav_linkc::before,
    header .bottom_header .nav_linkc::after {
        display: none !important;
    }

    header .bottom_header .nav_linkc li {
        font-size: 12px;
        margin: 0;
        width: auto;
        position: relative;
        flex: 1;
        max-width: 120px;
    }

    header .bottom_header .nav_linkc li a {
        display: block;
        text-align: center;
        padding: 8px 6px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.95);
        margin: 0;
        transition: all 0.3s ease;
        font-weight: 500;
        color: var(--color_heading);
        border: 1px solid rgba(255, 107, 53, 0.15);
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        font-size: 4px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    header .bottom_header .nav_linkc li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.4s;
    }

    header .bottom_header .nav_linkc li a:hover::before {
        left: 100%;
    }

    header .bottom_header .nav_linkc li a:hover,
    header .bottom_header .nav_linkc li.active a {
        background: var(--gradient_primary);
        color: var(--white_color);
        transform: translateY(-2px);
        border-color: var(--main_color);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    }

    /* تحسينات للشاشات الصغيرة */
    @media (max-width: 480px) {
        header .bottom_header .nav_linkc li {
            font-size: 5px;
            max-width: 100px;
        }

        header .bottom_header .nav_linkc li a {
            padding: 6px 4px;
            font-size: 3px;
            border-radius: 4px;
        }
    }

    /* تحسينات للشاشات الصغيرة جداً */
    @media (max-width: 360px) {
        header .bottom_header .nav_linkc {
            gap: 4px !important;
        }

        header .bottom_header .nav_linkc li {
            font-size: 3px;
            max-width: 80px;
        }

        header .bottom_header .nav_linkc li a {
            padding: 5px 3px;
            font-size: 4px;
            border-radius: 3px;
        }
    }

    header .bottom_header .nav_linkc {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        background: linear-gradient(135deg, var(--white_color), var(--bg_color));
        width: 280px;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        box-shadow: 10px 0 30px var(--shadow_dark);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1200;
        backdrop-filter: blur(10px);
        border-right: 1px solid rgba(255, 107, 53, 0.1);
        position: relative;
        overflow: hidden;
    }

    header .bottom_header .nav_linkc::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(247, 147, 30, 0.02) 100%);
        pointer-events: none;
    }

    header .bottom_header .nav_linkc::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient_primary);
        opacity: 0.8;
    }

    header .bottom_header .nav_linkc.active {
        left: 0;
    }

    /* إضافة overlay للخلفية بس لما القائمة مفتوحة */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* تحسينات للشاشات الصغيرة */
    @media (max-width: 480px) {
        header .bottom_header .nav_linkc {
            width: 280px;
            padding: 80px 20px 30px 20px;
        }

        header .bottom_header .nav_linkc li {
            font-size: 13px; /* خط أصغر للشاشات الصغيرة */
            margin: 6px 0; /* تباعد أقل */
            width: 90%;
        }

        header .bottom_header .nav_linkc li a {
            padding: 10px 16px; /* padding أصغر */
            font-size: 13px; /* حجم خط أصغر */
            border-radius: 6px; /* زوايا أقل استدارة */
        }

        .close_menu {
            top: 25px;
            right: 25px;
            width: 40px;
            height: 40px;
            font-size: 18px;
        }
    }

    /* تحسينات للشاشات الصغيرة جداً */
    @media (max-width: 360px) {
        header .bottom_header .nav_linkc {
            width: 260px;
            padding: 70px 15px 20px 15px;
        }

        header .bottom_header .nav_linkc li {
            font-size: 12px; /* خط أصغر جداً */
            margin: 5px 0; /* تباعد أقل */
        }

        header .bottom_header .nav_linkc li a {
            padding: 8px 12px; /* padding أصغر جداً */
            font-size: 12px; /* حجم خط أصغر جداً */
            border-radius: 5px; /* زوايا أقل استدارة */
        }

        header .bottom_header .nav_linkc.active::before {
            left: 260px;
        }
    }

    .close_menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 20px;
        background: var(--gradient_primary);
        color: var(--white_color);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.2);
        z-index: 10;
    }

    .close_menu:hover {
        background: var(--gradient_secondary);
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
    }

    .close_menu i {
        transition: all 0.3s ease;
    }

    .close_menu:hover i {
        transform: scale(1.1);
    }

    header .bottom_header .nav_linkc li {
        font-size: 14px; /* خط أصغر */
        margin: 8px 0; /* تباعد أقل */
        width: 90%;
        position: relative;
    }

    header .bottom_header .nav_linkc li a {
        display: block;
        text-align: center;
        padding: 12px 20px; /* padding أصغر */
        border-radius: 8px; /* زوايا أقل استدارة - شكل مستطيل */
        background: rgba(255, 255, 255, 0.95);
        margin: 4px 0; /* margin أصغر */
        transition: all 0.3s ease;
        font-weight: 500; /* وزن خط أقل */
        color: var(--color_heading);
        border: 1px solid rgba(255, 107, 53, 0.15);
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        font-size: 14px; /* حجم خط أصغر */
    }

    header .bottom_header .nav_linkc li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.4s;
    }

    header .bottom_header .nav_linkc li a:hover::before {
        left: 100%;
    }

    header .bottom_header .nav_linkc li a:hover,
    header .bottom_header .nav_linkc li.active a {
        background: var(--gradient_primary);
        color: var(--white_color);
        transform: translateX(8px); /* حركة أقل */
        border-color: var(--main_color);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    }

    header .bottom_header .nav_linkc li a:active {
        transform: translateX(10px) scale(0.98);
    }

    /* Mobile slider */
    .slider {
        margin-bottom: 30px;
        margin-top: 20px; /* مسافة إضافية من الهيدر */
    }

    .slider .container {
        flex-direction: column;
        gap: 0;
    }

    .slider .container .slied-swp {
        width: 100%;
        border-radius: 15px;
        overflow: hidden;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 220px;
        object-fit: cover;
        border-radius: 15px;
    }

    /* Mobile products */
    .slide {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .tpo_slide h2 {
        font-size: 18px;
        padding: 12px 25px;
        gap: 10px;
    }

    .tpo_slide h2 i {
        font-size: 16px;
    }

    .products.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 15px 0 !important;
    }

    .products.swiper-wrapper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    .product {
        padding: 12px;
        border-radius: 12px;
        height: auto;
    }

    .product .img_product {
        height: 100px;
        margin: 8px 0;
        border-radius: 8px;
    }

    .product .name_product {
        font-size: 12px;
        margin-bottom: 8px;
        min-height: 30px;
        line-height: 1.2;
    }

    .product .price {
        margin: 8px 0;
    }

    .product .price p {
        font-size: 14px;
    }

    .product .price .old_price {
        font-size: 11px;
    }

    .product .icons {
        flex-direction: row;
        gap: 6px;
        margin-top: 10px;
        justify-content: center;
    }

    .product .icons .icon_product {
        width: 30px;
        height: 30px;
    }

    .product .icons .icon_product i {
        font-size: 12px;
    }

    .product .icons .btn_add_cart {
        padding: 8px 20px;
        font-size: 10px;
        border-radius: 15px;
        min-width: 90px;
        white-space: nowrap;
    }

    /* Mobile banners */
    .banners {
        margin: 30px 0;
        padding: 0 15px;
    }

    .banners .banners_boxs {
        flex-direction: column;
        gap: 15px;
    }

    .banners .banners_boxs .box {
        width: 100%;
        border-radius: 15px;
    }

    .banners .banners_boxs.banner_3_img {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .banners .banners_boxs.banner_3_img .box {
        width: 48%;
    }

    /* Mobile cart */
    .cart {
        width: 100%;
        right: -100%;
        padding: 20px;
        border-radius: 0;
    }

    .cart .top_cart h3 {
        font-size: 16px;
    }

    .cart .items_in_cart .item_cart {
        padding: 15px 10px;
        gap: 10px;
    }

    .cart .items_in_cart .item_cart img {
        width: 60px;
        height: 60px;
    }

    .cart .items_in_cart .item_cart h4 {
        font-size: 13px;
    }

    .cart .bottom_cart .botton_cart {
        gap: 10px;
    }

    .cart .bottom_cart .botton_cart .btn_cart {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Mobile footer */
    footer .container {
        flex-direction: column;
        padding: 30px 0;
        text-align: center;
    }

    footer .container .big_row {
        width: 100%;
        margin-bottom: 25px;
    }

    footer .container .big_row .logo_footer {
        width: 200px;
    }

    footer .container .big_row p {
        font-size: 15px;
        width: 100%;
    }

    footer .container .big_row .icon_footer {
        justify-content: center;
        gap: 15px;
    }

    footer .container .big_row .icon_footer a {
        width: 45px;
        height: 45px;
    }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    body {
        padding-top: 110px;
    }

    header .top_headar .container {
        padding: 10px 0;
    }

    header .top_headar .logo {
        width: 40px;
    }

    header .top_headar .search_box {
        height: 40px;
        margin: 0 12px;
    }

    header .top_headar .search_box input {
        height: 40px;
        font-size: 15px;
    }

    header .top_headar .search_box button {
        height: 40px;
        width: 40px;
    }

    header .top_headar .header_icons .icon i {
        font-size: 22px;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 180px;
    }

    .tpo_slide h2 {
        font-size: 16px;
        padding: 10px 20px;
    }

    .product {
        padding: 12px;
    }

    .product .img_product {
        height: 100px;
        margin: 8px 0;
    }

    .product .name_product {
        font-size: 13px;
        min-height: 32px;
    }

    .product .price p {
        font-size: 15px;
    }

    .product .icons .btn_add_cart {
        padding: 10px 25px;
        font-size: 13px;
        min-width: 130px;
        white-space: nowrap;
    }

    .banners .banners_boxs.banner_3_img {
        flex-direction: column;
    }

    .banners .banners_boxs.banner_3_img .box {
        width: 100%;
    }
}

/* ===== LANDSCAPE ORIENTATION ON MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    body {
        padding-top: 90px;
    }

    header .top_headar .container {
        padding: 8px 0;
    }

    header .bottom_header {
        padding: 5px 0;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 150px;
    }

    .products.swiper-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn, 
    .product .icons .btn_add_cart, 
    .cart .close_cart,
    .open_menu,
    .close_menu {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .product .icons .icon_product {
        min-height: 44px;
        min-width: 44px;
    }

    header .top_headar .header_icons .icon {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/* ===== ADDITIONAL MODERN ENHANCEMENTS ===== */













/* ===== ADDITIONAL MODERN ENHANCEMENTS ===== */














/* checkout page */

.checkout {
    margin: 50px 0;
}

.checkout .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout .ordersummary {
    width: 45%;
    padding: 0 20px;
    border: 1px solid var(--border_color);
    border-radius: 5px;
    box-shadow: 0px 8px 10px #c0bfbf44;
}

.checkout .ordersummary h1 {
    border-bottom: 1px solid var(--border_color);
    padding: 20px 0;
    margin-bottom: 20px;
    color: var(--main_color);
}

.checkout .ordersummary .items {
    height: 350px;
    overflow-y: auto;
}

.checkout .ordersummary .item_cart {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    height: 125px;
    border-bottom: 1px solid var(--border_color);
    padding-right: 20px;
}
.checkout .ordersummary .item_cart:last-child{
    border-bottom: 0;
}

.checkout .ordersummary .item_cart .image_name {
    display: flex;
    align-items: center;
    gap: 20px;

}

.checkout .ordersummary .item_cart img {
    width: 80px;
}

.checkout .ordersummary .item_cart h4 {
    margin-bottom: 10px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.checkout .ordersummary .delete_item i {
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.checkout .ordersummary .delete_item i:hover {
    color: #e51a1a;
    scale: 1.1;
}

.checkout .ordersummary .quantity_control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.checkout .ordersummary .quantity_control span {
    font-size: 18px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--border_color);
    padding: 3px 0;
}

.checkout .ordersummary .quantity_control button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    border-radius: 2px;
    border: 1px solid var(--border_color);
}
.checkout .ordersummary .bottom_summary{
    border-top: 1px solid var(--border_color);
    padding-top: 25px;

}
.checkout .ordersummary .shop_table{
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.checkout .ordersummary .shop_table p{
    font-size: 20px;
    color: var(--color_heading);
    text-transform: capitalize;
}
.checkout .ordersummary .shop_table span{
    font-weight: bold;
    font-size: 20px;
    
}
.checkout .ordersummary .button_div{
    border-top: 1px solid var(--border_color);
    padding: 30px 0;

}
.checkout .ordersummary .button_div button{
    width: 100%;
    background: var(--main_color);
    color: var(--white_color);
    border: 2px solid var(--main_color);
    padding: 15px 0;
    outline: none;
    border-radius: 3px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.checkout .ordersummary .button_div button:hover{
    background: transparent;
    color: var(--main_color);
}


.checkout .input_info{
    width: 45%;
}
.checkout .input_info h2{
    padding: 10px 20px;
    background: var(--main_color);
    text-transform: capitalize;
    color: var(--white_color);
}
.checkout .input_info .address,
.checkout .input_info .coupon{
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border_color);
    box-shadow: 8xp 8xp 10px #c0bfbf44;
}
.checkout .input_info  .button_div{
text-align: center;
padding-bottom: 20px;
}
.checkout .input_info  .button_div button{
   width: 50%;
   background: var(--main_color);
   color: var(--white_color);
   border: 2px solid var(--main_color);
   padding: 12px 0;
   outline: none;
   border-radius: 2px;
   font-size: 18px;
   font-weight: bold; 
   cursor: pointer;
   transition: 0.3s ease-in-out;
}
.checkout .input_info  .button_div button:hover{
    background: transparent;
    color: var(--main_color);
}
.checkout .input_info .inputs{
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
}
.checkout .input_info .inputs label{
    color: var(--color_heading);
    font-size: 14px;
    text-transform: capitalize;
}
.checkout .input_info .inputs input{
    margin: 8px 0 22px;
    padding: 15px 10px;
    outline: none;
    border: 1px solid var(--border_color);
    border-radius: 5px;
    transition: 0.3s;
}
.checkout .input_info .inputs input:focus{
    color: var(--main_color);
    border-color: var(--main_color);
}



/* check uot */

@media (max-width: 1000px){
    .checkout .container{
        flex-direction: column;
        gap: 50px;
    
    }
    .checkout .ordersummary,
    .checkout .input_info{
        width: 80%;
    }


}

@media (max-width: 500px){
   
    .checkout .ordersummary,
    .checkout .input_info{
        width: 100%;
    }
    .checkout .input_info h2{
        font-size:14px ;
    }


}


/* Start Payment Method Section */
.payment-method {
    margin-top: 20px;
}

.payment-method h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color_heading);
}

.payment-options {
    display: flex;
    gap: 25px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--p_color);
    border-radius: 50%;
    position: relative;
    outline: none;
    cursor: pointer;
}

.option input[type="radio"]:checked {
    border-color: var(--main_color);
}

.option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--main_color);
    border-radius: 50%;
}

.option label {
    font-size: 1rem;
    color: var(--color_heading);
    cursor: pointer;
}
/* End Payment Method Section */


/* Start Service Section */
.total_service_table {
     
    display: none; /* Hide by default */
}
/* End Service Section */









:root {
    --bg_color: #ffffff;
    --main_color: #004f49;
    --second_color: #004f49;
    --border_color: #e0e0e0;
    --white_color: #f1f2f3;
    --button_hover_bg: #e9ecef;
}



.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg_color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--main_color);
}

.current-shift-info {
    text-align: center;
    margin-bottom: 20px;
}

.shift-info-text {
    font-weight: bold; 
    font-size: 1.2em; 
    color: var(--main_color);
}

.order-filters, .search-section, .reports-section, .date-filter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn, .report-btn, .search-btn {
    padding: 10px 20px;
    border: 1px solid var(--border_color);
    background-color: var(--bg_color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--main_color);
}

.filter-btn:hover, .report-btn:hover, .search-btn:hover {
    background-color: var(--button_hover_bg);
}

.filter-btn.active {
    background-color: var(--main_color);
    color: var(--white_color);
    border-color: var(--main_color);
}

#shift-search-input, #start-date-input, #end-date-input {
    padding: 10px;
    border: 1px solid var(--border_color);
    border-radius: 25px;
    font-size: 16px;
    width: 200px;
}

.end-shift-btn {
    background-color: #dc3545;
    color: var(--white_color);
    border-color: #dc3545;
}

.end-shift-btn:hover {
    background-color: #c82333;
}

.order-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.order-card {
    background-color: var(--white_color);
    border: 1px solid var(--border_color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-5px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--main_color);
}

.order-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: var(--white_color);
}

.status-new {
    background-color: #007bff;
}

.status-in-progress {
    background-color: #ffc107;
}

.status-received {
    background-color: #28a745;
}

.status-archived {
    background-color: #6c757d;
}

.order-details p {
    margin: 5px 0;
    font-size: 15px;
    color: var(--second_color);
}

.order-details strong {
    color: var(--main_color);
}

.order-details h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--main_color);
    border-bottom: 1px solid var(--border_color);
    padding-bottom: 5px;
}

.order-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.order-details ul li {
    padding: 3px 0;
    font-size: 14px;
    color: var(--second_color);
}

.action-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    color: var(--white_color);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.prepare-btn {
    background-color: #ffc107;
}

.received-btn {
    background-color: #28a745;
}

.print-btn {
    background-color: #007bff;
}

.archive-btn {
    background-color: #6c757d;
}

.prepare-btn:hover {
    background-color: #e0a800;
}
.received-btn:hover {
    background-color: #218838;
}
.print-btn:hover {
    background-color: #0069d9;
}
.archive-btn:hover {
    background-color: #5a6268;
}

/* Style for reports */
.report-content {
    background-color: var(--white_color);
    border: 1px solid var(--border_color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.report-content h3 {
    text-align: center;
    color: var(--main_color);
    margin-top: 0;
}

.report-content p, .report-content h4, .report-content ul {
    color: var(--second_color);
}

.report-content ul {
    list-style-type: disc;
    padding-right: 20px;
}


.filter-btn {
    position: relative; /* مهم جدًا لتحديد موضع العداد */
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff0000;
    color: white;
    border-radius:70%;
    padding: 8px 11px;
    font-size: 16   px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}
/* ===== Products: force Grid layout for all product wrappers including tt ===== */
/* Target only product wrappers inside slide_product to avoid breaking banner swipers */
.slide_product .products.swiper-wrapper,
.slide_product #swiper_items_sale,
.slide_product #swiper_elctronics,
.slide_product #swiper_appliances,
.slide_product #swiper_mobiles,
.slide_product #swiper_tt {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important; /* desktop: 5 */
  gap: 20px !important;
  align-items: start;
  padding: 0 !important;
}

/* make each slide act as a grid item (remove swiper flex/width influence) */
.slide_product .products.swiper-wrapper .swiper-slide,
.slide_product #swiper_items_sale .swiper-slide,
.slide_product #swiper_elctronics .swiper-slide,
.slide_product #swiper_appliances .swiper-slide,
.slide_product #swiper_mobiles .swiper-slide,
.slide_product #swiper_tt .swiper-slide {
  display: block !important;
  width: auto !important;
  flex: none !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* uniform product card layout */
.slide_product .product,
#swiper_items_sale .product,
#swiper_elctronics .product,
#swiper_appliances .product,
#swiper_mobiles .product,
#swiper_tt .product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 360px;          /* hoogte ثابت للكارت — عدّل لو تحب أكبر/أصغر */
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border_color);
}

/* image box */
.product .img_product {
  width: 100%;
  height: 200px;          /* ارتفاع موحد للصور على desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.product .img_product img {
  width: 200% !important;
  height: 80% !important;
  object-fit: cover !important; /* uniform crop — لو تفضل الصورة كاملة استخدم contain */
  display: block;
}

/* name & price */
.product .name_product {
  min-height: 48px;
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.product .price {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* icons/buttons area stay at bottom */
.product .icons {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Breakpoints */
@media (max-width:1200px) {
  .slide_product .products.swiper-wrapper,
  .slide_product #swiper_items_sale,
  .slide_product #swiper_elctronics,
  .slide_product #swiper_appliances,
  .slide_product #swiper_mobiles,
  .slide_product #swiper_tt {
    grid-template-columns: repeat(4, 1fr) !important; /* tablet: 4 */
  }
  .product .img_product { height: 170px; }
  .product { height: 340px; }
}

@media (max-width:768px) {
  .slide_product .products.swiper-wrapper,
  .slide_product #swiper_items_sale,
  .slide_product #swiper_elctronics,
  .slide_product #swiper_appliances,
  .slide_product #swiper_mobiles,
  .slide_product #swiper_tt {
    grid-template-columns: repeat(2, 1fr) !important; /* mobile: 2 */
  }
  .product .img_product { height: 140px; }
  .product { height: auto; } /* خلي الكارت ارتفاع متكيف على الموبايل */
  .product .name_product { font-size: 20px; min-height: auto; }
}


























/* ===== Checkout Bottom Summary ===== */
.bottom_summary {
  border-top: 2px solid var(--border_color);
  padding-top: 20px;
  margin-top: 20px;
}

.bottom_summary .shop_table {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border_color);
}

.bottom_summary .shop_table:last-child {
  border-bottom: none; /* نشيل الخط من آخر صف */
}

.bottom_summary .shop_table p {
  font-size: 16px;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--color_heading);
}

.bottom_summary .shop_table span {
  font-size: 16px;
  font-weight: bold;
  color: var(--main_color);
}

/* total يكون أوضح */
.bottom_summary .shop_table:last-child p,
.bottom_summary .shop_table:last-child span {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}






.search_suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border_color);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
.search_suggestions.active { display: block; }
.search_suggestions div {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.search_suggestions div:hover {
  background: var(--bg_color);
}

/* عند اختيار المنتج وإظهاره */
.product.highlight {
  outline: 3px solid var(--main_color);
  transition: outline 0.3s ease-in-out;
}
.product.highlight {
  outline: 3px solid var(--main_color);
  border-radius: 8px;
  transition: outline 0.3s ease-in-out;
}
/* صندوق الاقتراحات */
.search_suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border_color);
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.search_suggestions.active {
  display: block;
}

.search_suggestions div {
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.search_suggestions div:hover {
  background: #f5f5f5;
}

/* الموبايل: خلي الصندوق بعرض الشاشة */
@media (max-width: 768px) {
  .search_suggestions {
    position: fixed;
    top: 60px; /* تحت الهيدر */
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .search_suggestions div {
    font-size: 16px;
    padding: 12px;
  }
}




/* تنسيق الليبل */
label[for="Area"] {
  display: block;
  font-weight: bold;
  margin: 10px 0 5px;
  font-size: 16px;
  color: #333;
}

/* تنسيق القائمة المنسدلة */
#Area {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  outline: none;
  transition: 0.3s ease;
  appearance: none; /* إخفاء السهم الافتراضي */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* عند التركيز */
#Area:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* الخيارات داخل القائمة */
#Area option {
  padding: 10px;
}








/* === KH FINAL OVERRIDES — Home/Product Cards (2025-10-20) ===
   - صورة الكارت بالحجم الطبيعي (بدون قص) + حد أقصى ذكي للارتفاع
   - الاسم/السعر/الأزرار مرتبين ومتوسّطين
   - الشبكة مرنة لكل المقاسات
   - لا نكسر أي كود قديم: كل القواعد بـ !important وبأهداف دقيقة
=============================================================== */

/* شبكة عامة مرنة (لو wrapper مش Swiper) */
.products, .products-grid{
  display:grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap:16px !important;
}

/* ألغِ القياسات الثابتة للكارت على الديسكتوب إن وُجدت */
.slide_product .product,
#swiper_items_sale .product,
#swiper_elctronics .product,
#swiper_appliances .product,
#swiper_mobiles .product,
#swiper_tt .product{
  height:auto !important;
  border-radius:10px !important;
  box-shadow:0 6px 18px rgba(0,0,0,.06) !important;
  display:flex !important; flex-direction:column !important;
}

/* الصورة: طبيعية بدون قص (contain) + حد أقصى من غير سكرول رأسي */
.product .img_product{
  width:100% !important;
  height:auto !important;
  padding:0 !important;
  margin:0 0 10px 0 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
.product .img_product img{
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;     /* الصورة كاملة */
  object-position:center !important;
  max-height:clamp(170px, 28vh, 340px) !important; /* معقول على الكمبيوتر، آمن للموبايل */
  display:block !important;
}

/* نصوص وأسعار وأزرار في النص */
.product .name_product{ text-align:center !important; margin:8px 0 6px !important; }
.product .price{ justify-content:center !important; align-items:center !important; }
.product .icons{ justify-content:center !important; }

/* الموبايل: عمودين وتباعد مناسب - نفس شكل المحلات */
@media (max-width: 768px){
  .products, .products-grid{ 
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
    gap: 15px !important; /* نفس المحلات */
  }
  .product .img_product img{ 
    max-height: clamp(100px, 25vh, 180px) !important; /* نفس المحلات */
  }
}

/* شاشات صغيرة - تحسينات مناسبة */
@media (max-width: 480px){
  .products, .products-grid{ 
    gap: 12px !important; /* نفس المحلات */
  }
  
  .product {
    height: 280px !important; /* نفس المحلات */
    padding: 12px !important;
    border-radius: 18px !important;
  }
  
  .product .img_product {
    height: 90px !important; /* نفس المحلات */
    margin: 8px !important;
  }
  
  .product .name_product {
    font-size: 12px !important; /* نفس المحلات */
    height: 30px !important;
  }
  
  .product .icons .btn_add_cart {
    padding: 8px 16px !important; /* نفس المحلات */
    font-size: 11px !important;
    min-width: 100px !important;
    border-radius: 18px !important;
  }
  
  .price p {
    font-size: 14px !important; /* نفس المحلات */
  }
}

/* شاشات صغيرة جداً - تحسينات نهائية */
@media (max-width: 360px){
  .products, .products-grid{ 
    gap: 10px !important; /* نفس المحلات */
  }
  
  .product {
    height: 260px !important; /* نفس المحلات */
    padding: 10px !important;
    border-radius: 16px !important;
  }
  
  .product .img_product {
    height: 80px !important; /* نفس المحلات */
    margin: 6px !important;
  }
  
  .product .name_product {
    font-size: 11px !important; /* نفس المحلات */
    height: 28px !important;
  }
  
  .product .icons .btn_add_cart {
    padding: 6px 12px !important; /* نفس المحلات */
    font-size: 10px !important;
    min-width: 80px !important;
    border-radius: 16px !important;
  }
}

/* شاشات عريضة: أعمدة أكبر قليلاً */
@media (min-width: 1280px){
  .products, .products-grid{ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }
}

/* أمان: خلي الصور العامة تتصرف طبيعي */
html body img{ max-width:100% !important; height:auto !important; }




.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0078ff;
  text-decoration: none;
  font-weight: 600;
}
.map-link:hover {
  color: #0056cc;
  text-decoration: underline;
}


/* 🌍 تنسيق خريطة الفرع */
.branch-map {
  width: 100%;
  max-width: 900px;        /* أقصى عرض للخريطة */
  margin: 40px auto;       /* توسيط في منتصف الصفحة */
  background: #fff;        /* خلفية بيضاء ناعمة */
  border-radius: 12px;     /* زوايا ناعمة */
  box-shadow: 0 4px 18px rgba(0,0,0,0.1); /* ظل خفيف */
  padding: 20px;
  text-align: center;
}

.branch-map h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.branch-map h3 i {
  color: #0078ff; /* لون أيقونة الموقع */
}

/* إطار الخريطة نفسه */
.branch-map iframe {
  width: 100%;
  height: 420px;           /* الارتفاع الأساسي */
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* 🌐 تجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
  .branch-map iframe {
    height: 360px;
  }
}

@media (max-width: 600px) {
  .branch-map {
    padding: 12px;
  }
  .branch-map h3 {
    font-size: 16px;
  }
  .branch-map iframe {
    height: 300px;
  }
}






:root{
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --radius: 14px;
}



.container{ max-width:1200px; margin:auto; }

h1{margin-bottom:10px;}
.lead{color:var(--muted); margin-bottom:20px;}

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}

/* البطاقة */
.card{
  background:rgba(255, 255, 255, 0.548);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
  display:flex;
  flex-direction:column;
  transition:transform .3s;
}
.card:hover{transform:translateY(-5px);}

.media{aspect-ratio:10/12; overflow:hidden;}
.media img{width:100%; height:100%; object-fit:cover;}

.body{
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.group-name{font-weight:bold;}
.sub{font-size:10px; color:var(--muted); display:block;}


.card button {
  width: 220px;      /* عرض ثابت */
  height: 30px; 
   background:black;
  border:none;
  border-radius:8px;     /* طول ثابت */
  font-size: 16px;   /* حجم الخط ثابت */
  margin: 2px auto; /* علشان يبقى في النص */
  display: block;    /* يخليه عنصر بلوك ويظهر في النص */
}

/* استجابة */
@media (min-width: 300px) and (max-width: 799px){
  .grid{ grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 800px) and (max-width: 1099px){
  .grid{ grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 1100px){
  .grid{ grid-template-columns: repeat(4,1fr); }
}

/* ===== Additional Modern Food Website Styles ===== */

/* Hero section enhancements */
.slider .container .slied-swp .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slider .container .slied-swp .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.slider .container .slied-swp .swiper-slide:hover::before {
    opacity: 1;
}

/* Enhanced product grid for food items */
.products.swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    padding: 15px 0 !important;
}

.products.swiper-wrapper .swiper-slide {
    width: auto !important;
    margin: 0 !important;
}

/* Food-specific product styling */
.product {
    background: var(--white_color);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow_light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product:hover::after {
    opacity: 1;
}

.product:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px var(--shadow_medium);
}

/* Enhanced food image styling */
.product .img_product {
    background: linear-gradient(135deg, var(--bg_color), var(--white_color));
    border-radius: 20px;
    margin: 15px;
    position: relative;
    overflow: hidden;
}

.product .img_product img {
    border-radius: 15px;
    transition: all 0.4s ease;
}

.product:hover .img_product img {
    transform: scale(1.15) rotate(2deg);
}

/* Food price styling */
.price {
    background: var(--bg_color);
    border-radius: 15px;
    padding: 10px 15px;
    margin: 15px;
    box-shadow: inset 0 2px 10px var(--shadow_light);
}

.price p {
    font-size: 30px;
    font-weight: 800;
    color: var(--main_color);
    text-shadow: 0 2px 4px var(--shadow_light);
}

/* Enhanced buttons for food ordering */
.product .icons .btn_add_cart {
    background: var(--gradient_primary);
    border-radius: 20px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px var(--shadow_light);
    position: relative;
    overflow: hidden;
}

.product .icons .btn_add_cart::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: left 0.3s ease;
}

.product .icons .btn_add_cart:hover::before {
    left: 10px;
}

.product .icons .btn_add_cart:hover {
    padding-left: 45px;
    background: var(--gradient_secondary);
}

/* Enhanced section headers for food categories */
.tpo_slide h2 {
    background: var(--gradient_primary);
    box-shadow: 0 10px 30px var(--shadow_medium);
    position: relative;
    overflow: hidden;
}

.tpo_slide h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.tpo_slide h2:hover::before {
    left: 100%;
}

/* Food website specific animations */
@keyframes foodFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.product .img_product {
    animation: foodFloat 3s ease-in-out infinite;
}

.product:nth-child(even) .img_product {
    animation-delay: 1.5s;
}

/* Enhanced mobile experience for food ordering - نفس شكل المحلات */
@media (max-width: 768px) {
    .products.swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important; /* نفس المحلات */
    }
    
    .product {
        border-radius: 20px; /* نفس المحلات */
        height: 300px; /* نفس المحلات */
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        box-shadow: 0 6px 20px var(--shadow_light);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }
    
    .product:hover {
        transform: translateY(-5px); /* نفس المحلات */
        box-shadow: 0 12px 30px var(--shadow_medium);
    }
    
    .product .img_product {
        height: 100px; /* نفس المحلات */
        margin: 10px;
        flex-shrink: 0;
        border-radius: 15px;
        background: linear-gradient(135deg, var(--bg_color), var(--white_color));
    }

    .product .name_product {
        height: 32px; /* نفس المحلات */
        flex-shrink: 0;
        font-size: 13px;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }

    .stars {
        flex-shrink: 0;
        margin-bottom: 8px;
        text-align: center;
    }

    .price {
        flex-shrink: 0;
        margin: 10px;
        padding: 8px 10px;
        border-radius: 12px;
        background: var(--bg_color);
        text-align: center;
        box-shadow: inset 0 2px 8px var(--shadow_light);
    }

    .price p {
        font-size: 16px; /* نفس المحلات */
        font-weight: 700;
        color: var(--main_color);
    }
    
    .product .icons {
        margin-top: auto;
        flex-shrink: 0;
        gap: 8px;
        justify-content: center;
    }
    
    .product .icons .btn_add_cart {
        padding: 10px 20px; /* نفس المحلات */
        font-size: 12px;
        min-width: 120px;
        white-space: nowrap;
        border-radius: 20px; /* دائري زي المحلات */
        background: var(--gradient_primary);
        color: var(--white_color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px var(--shadow_light);
        transition: all 0.3s ease;
    }

    .product .icons .btn_add_cart:hover {
        background: var(--gradient_secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow_medium);
    }
    
    .tpo_slide h2 {
        font-size: 18px; /* نفس المحلات */
        padding: 12px 25px;
        border-radius: 20px;
        background: var(--gradient_primary);
        color: var(--white_color);
        text-align: center;
        box-shadow: 0 6px 20px var(--shadow_medium);
    }
}

/* Enhanced cart for food delivery */
.cart {
    background: linear-gradient(135deg, var(--white_color), var(--bg_color));
}

.cart .items_in_cart .item_cart {
    background: var(--white_color);
    border-radius: 15px;
    margin: 10px 0;
    padding: 15px;
    box-shadow: 0 4px 15px var(--shadow_light);
}

.cart .items_in_cart .item_cart img {
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow_light);
}

/* Enhanced footer for restaurant */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
}

footer .container .big_row .icon_footer a {
    background: var(--gradient_primary);
    box-shadow: 0 6px 20px var(--shadow_medium);
}

footer .container .big_row .icon_footer a:hover {
    background: var(--gradient_secondary);
    transform: translateY(-5px) scale(1.1);
}

/* Loading states for better UX */
.product.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border_color);
    border-top: 3px solid var(--main_color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced accessibility */
.btn:focus, .product:focus, .cart .close_cart:focus {
    outline: 3px solid var(--main_color);
    outline-offset: 2px;
}

/* Print styles for receipts */
@media print {
    header, footer, .cart, .slider {
        display: none !important;
    }
    
    .product {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ===== MOBILE-SPECIFIC ENHANCEMENTS ===== */

/* Mobile-first approach improvements */
.mobile-hidden {
    display: none;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
}

/* Enhanced mobile search */
@media (max-width: 768px) {
    .search_suggestions {
        position: fixed;
        top: 140px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        max-height: 60vh;
        border-radius: 15px;
        box-shadow: 0 10px 30px var(--shadow_dark);
        z-index: 1500;
    }

    .search_suggestions div {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border_color);
    }

    .search_suggestions div:first-child {
        border-radius: 15px 15px 0 0;
    }

    .search_suggestions div:last-child {
        border-radius: 0 0 15px 15px;
        border-bottom: none;
    }
}

/* Mobile swipe gestures support */
.swipe-indicator {
    display: none;
}

@media (max-width: 768px) {
    .swipe-indicator {
        display: block;
        text-align: center;
        padding: 10px;
        color: var(--p_color);
        font-size: 14px;
        opacity: 0.7;
    }

    .swipe-indicator::before {
        content: "👈 اسحب للتصفح 👉";
    }
}

/* Mobile sticky elements */
@media (max-width: 768px) {
    .mobile-sticky-cart {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        background: var(--gradient_primary);
        color: var(--white_color);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px var(--shadow_medium);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-sticky-cart:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px var(--shadow_dark);
    }

    .mobile-sticky-cart i {
        font-size: 24px;
        color: var(--white_color);
    }

    .mobile-sticky-cart .count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--sale_color);
        color: var(--white_color);
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
    }
}

/* Mobile-optimized product cards */
@media (max-width: 768px) {
    .product {
        position: relative;
        overflow: hidden;
    }

    .product .mobile-quick-add {
        position: absolute;
        bottom: -50px;
        left: 15px;
        right: 15px;
        background: var(--gradient_primary);
        color: var(--white_color);
        border: none;
        padding: 12px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        opacity: 0;
    }

    .product:hover .mobile-quick-add {
        bottom: 15px;
        opacity: 1;
    }

    .product .mobile-quick-add:active {
        transform: scale(0.95);
    }
}

/* Mobile loading states */
@media (max-width: 768px) {
    .mobile-loading {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid var(--border_color);
        border-top: 4px solid var(--main_color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .mobile-loading p {
        color: var(--p_color);
        font-size: 16px;
    }
}

/* Mobile pull-to-refresh indicator */
@media (max-width: 768px) {
    .pull-to-refresh {
        position: fixed;
        top: 140px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--white_color);
        padding: 10px 20px;
        border-radius: 25px;
        box-shadow: 0 4px 15px var(--shadow_light);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .pull-to-refresh.active {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }

    .pull-to-refresh i {
        color: var(--main_color);
        margin-right: 8px;
        animation: spin 1s linear infinite;
    }
}

/* Mobile-optimized forms */
@media (max-width: 768px) {
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    select, 
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--color_heading);
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    /* Larger touch targets */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better focus indicators */
    button:focus, .btn:focus, a:focus, input:focus {
        outline: 3px solid var(--main_color);
        outline-offset: 2px;
    }

    /* Skip to content link for screen readers */
    .skip-to-content {
        position: absolute;
        top: -40px;
        left: 6px;
        background: var(--main_color);
        color: var(--white_color);
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 2000;
    }

    .skip-to-content:focus {
        top: 6px;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .reduce-motion * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Reduce box shadows on mobile */
    .mobile-performance .product,
    .mobile-performance .cart,
    .mobile-performance .btn {
        box-shadow: 0 2px 8px var(--shadow_light);
    }
}

/* Dark mode support for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    :root {
        --bg_color: #121212;
        --white_color: #1e1e1e;
        --color_heading: #ffffff;
        --p_color: #e0e0e0;
        --border_color: #333333;
    }

    header {
        background: var(--white_color);
        border-bottom: 1px solid var(--border_color);
    }

    .cart {
        background: var(--white_color);
    }

    .search_suggestions {
        background: var(--white_color);
        border-color: var(--border_color);
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    body {
        padding-top: 80px;
    }

    header .top_headar .container {
        padding: 8px 0;
    }

    header .bottom_header {
        padding: 5px 0;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 150px;
    }

    .tpo_slide h2 {
        font-size: 16px;
        padding: 8px 20px;
    }
}
/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile-specific CSS optimizations */
@media (max-width: 768px) {
    /* Use transform3d for hardware acceleration */
    .product, .cart, .btn {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    /* Optimize scrolling */
    .cart .items_in_cart {
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce repaints */
    .product:hover {
        will-change: transform;
    }

    /* Optimize font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }

    /* Reduce layout thrashing */
    .products.swiper-wrapper {
        contain: layout style paint;
    }
}

/* Mobile-first media queries for better performance */
/* Base styles are mobile-first, then enhanced for larger screens */

/* Enhanced mobile cart experience */
@media (max-width: 768px) {
    .cart {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .cart.active {
        transform: translateX(0);
    }

    /* Mobile-optimized product grid */
    .products.swiper-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 15px 0 !important;
    }

    .products.swiper-wrapper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Touch-friendly buttons */
    .product .icons .btn_add_cart {
        padding: 10px 20px;
        font-size: 15px;
        min-height: 48px;
        min-width: 110px;
        white-space: nowrap;
        touch-action: manipulation;
    }

    /* Improved mobile search */
    header .top_headar .search_box {
        position: relative;
    }

    header .top_headar .search_box input {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 25px;
    }

    /* Mobile-optimized images */
    .product .img_product img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Better mobile typography */
    .product .name_product {
        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;
    }

    .product .price p {
        font-size: 16px;
        font-weight: 700;
    }

    /* Mobile-specific animations */
    @keyframes mobileSlideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .product {
        animation: mobileSlideIn 0.4s ease-out;
    }

    .product:nth-child(even) {
        animation-delay: 0.1s;
    }
}

/* Ultra-small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        width: 95%;
    }

    header .top_headar .logo {
        width: 40px;
    }

    .tpo_slide h2 {
        font-size: 14px;
        padding: 8px 15px;
    }

    .product {
        padding: 10px;
    }

    .product .img_product {
        height: 90px;
        margin: 5px;
    }

    .product .name_product {
        font-size: 12px;
        min-height: 30px;
    }

    .product .price p {
        font-size: 14px;
    }

    .product .icons .btn_add_cart {
        padding: 8px 18px;
        font-size: 11px;
        min-width: 95px;
        white-space: nowrap;
    }
}

/* High-resolution mobile displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .product .img_product img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mobile landscape specific adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .products.swiper-wrapper {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .slider .container .slied-swp .swiper-slide img {
        height: 180px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Fix iOS Safari viewport issues */
        body {
            min-height: -webkit-fill-available;
        }

        /* Fix iOS Safari input zoom */
        input[type="text"], input[type="search"] {
            font-size: 16px;
        }

        /* Fix iOS Safari button styling */
        .btn, button {
            -webkit-appearance: none;
            appearance: none;
        }
    }
}

/* Android Chrome specific optimizations */
@media (max-width: 768px) {
    /* Optimize for Android Chrome */
    .product {
        contain: layout style paint;
    }

    /* Better touch response */
    .btn, .product .icons .btn_add_cart {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}
/* ===== FINAL MOBILE & TABLET OPTIMIZATIONS ===== */

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced search suggestions for mobile */
@media (max-width: 768px) {
    .search_suggestions {
        position: fixed;
        top: 120px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        max-height: 60vh;
        border-radius: 15px;
        box-shadow: 0 10px 30px var(--shadow_dark);
        z-index: 1500;
        background: var(--white_color);
        border: 1px solid var(--border_color);
        display: none;
    }

    .search_suggestions.active {
        display: block;
    }

    .search_suggestions div {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid var(--border_color);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search_suggestions div:hover {
        background: var(--bg_color);
        color: var(--main_color);
        padding-left: 30px;
    }

    .search_suggestions div:first-child {
        border-radius: 15px 15px 0 0;
    }

    .search_suggestions div:last-child {
        border-radius: 0 0 15px 15px;
        border-bottom: none;
    }
}

/* Enhanced product highlight */
.product.highlight {
    outline: 3px solid var(--main_color);
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* Modern form elements for mobile */
@media (max-width: 768px) {
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    select, 
    textarea {
        background: var(--white_color);
        border: 2px solid var(--border_color);
        border-radius: 15px;
        padding: 15px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
        transition: all 0.3s ease;
        font-family: inherit;
        width: 100%;
        box-sizing: border-box;
    }

    input[type="text"]:focus, 
    input[type="email"]:focus, 
    input[type="tel"]:focus, 
    select:focus, 
    textarea:focus {
        border-color: var(--main_color);
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        transform: translateY(-2px);
        outline: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Fix iOS Safari viewport issues */
        body {
            min-height: -webkit-fill-available;
        }

        /* Fix iOS Safari input zoom */
        input[type="text"], 
        input[type="search"] {
            font-size: 16px;
            -webkit-appearance: none;
            appearance: none;
        }

        /* Fix iOS Safari button styling */
        .btn, button {
            -webkit-appearance: none;
            appearance: none;
            border-radius: 25px;
        }

        /* Fix iOS Safari sticky positioning */
        header {
            position: -webkit-sticky;
            position: sticky;
        }
    }
}

/* Android Chrome specific optimizations */
@media (max-width: 768px) {
    /* Better touch response */
    .btn, 
    .product .icons .btn_add_cart,
    .open_menu,
    .close_menu,
    .cart .close_cart {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    /* Optimize for Android Chrome */
    .product {
        contain: layout style paint;
    }

    /* Prevent text selection on interactive elements */
    .btn, 
    .product .icons .btn_add_cart,
    .header_icons,
    .nav_linkc a {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Use transform3d for hardware acceleration */
    .product, 
    .cart, 
    .btn,
    .nav_linkc {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    /* Optimize scrolling */
    .cart .items_in_cart {
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce repaints */
    .product:hover {
        will-change: transform;
    }

    /* Optimize font rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }

    /* Reduce layout thrashing */
    .products.swiper-wrapper {
        contain: layout style paint;
    }
}

/* Dark mode support for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    :root {
        --bg_color: #121212;
        --white_color: #1e1e1e;
        --color_heading: #ffffff;
        --p_color: #e0e0e0;
        --border_color: #333333;
    }

    header {
        background: var(--white_color);
        border-bottom: 1px solid var(--border_color);
    }

    .cart {
        background: var(--white_color);
    }

    .search_suggestions {
        background: var(--white_color);
        border-color: var(--border_color);
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Skip to content link for screen readers */
    .skip-to-content {
        position: absolute;
        top: -40px;
        left: 6px;
        background: var(--main_color);
        color: var(--white_color);
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 2000;
        font-size: 14px;
    }

    .skip-to-content:focus {
        top: 6px;
    }

    /* Better focus indicators */
    button:focus, 
    .btn:focus, 
    a:focus, 
    input:focus {
        outline: 3px solid var(--main_color);
        outline-offset: 2px;
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .product {
            border: 2px solid var(--color_heading);
        }

        .btn {
            border: 2px solid var(--white_color);
        }
    }
}

/* Print styles for mobile receipts */
@media print {
    header, 
    footer, 
    .cart, 
    .slider,
    .open_menu,
    .close_menu {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
    }
    
    .product {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 10pt;
    }

    .product .img_product {
        height: auto;
        max-height: 100pt;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, 
    *::before, 
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .product {
        animation: none;
    }
}
/* ===== SLIDER SPACING ADJUSTMENTS ===== */

/* إضافة مسافة للسلايدر من الهيدر في جميع الأحجام */
@media (max-width: 1024px) {
    .slider {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .slider {
        margin-top: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .slider {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .slider .container .slied-swp .swiper-slide img {
        height: 180px;
    }
}

/* تحسين المسافات للآيباد */
@media (min-width: 769px) and (max-width: 1024px) {
    .slider {
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .slider .container .slied-swp .swiper-slide img {
        height: 300px;
    }
}
/* ===== ENHANCED MOBILE MENU BUTTON ===== */

/* تحسين أيقونة القائمة للموبايل */
@media (max-width: 768px) {
    .open_menu {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        background: var(--white_color);
        border: 2px solid var(--main_color);
        border-radius: 12px;
        box-shadow: 0 2px 8px var(--shadow_light);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow: hidden;
    }

    .open_menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient_primary);
        transition: left 0.3s ease;
        z-index: 0;
    }

    .open_menu:hover::before {
        left: 0;
    }

    .open_menu i {
        position: relative;
        z-index: 1;
        color: var(--main_color);
        font-size: 20px;
        transition: all 0.3s ease;
        background: none;
        width: auto;
        height: auto;
        line-height: 1;
    }

    .open_menu:hover i {
        color: var(--white_color);
        transform: scale(1.1);
    }

    .open_menu:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px var(--shadow_light);
    }

    /* تأثير نبضة للفت الانتباه */
    .open_menu::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 107, 53, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.6s ease;
    }

    .open_menu:hover::after {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* تحسين للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .open_menu {
        min-width: 40px;
        min-height: 40px;
        border-radius: 10px;
    }

    .open_menu i {
        font-size: 18px;
    }
}

/* تحسين للآيباد */
@media (min-width: 769px) and (max-width: 1024px) {
    .open_menu {
        min-width: 48px;
        min-height: 48px;
        border-radius: 14px;
    }

    .open_menu i {
        font-size: 22px;
    }
}

/* تحسين للوضع الأفقي */
@media (max-width: 768px) and (orientation: landscape) {
    .open_menu {
        min-width: 38px;
        min-height: 38px;
    }

    .open_menu i {
        font-size: 16px;
    }
}

/* تحسين إمكانية الوصول */
.open_menu:focus {
    outline: 3px solid var(--main_color);
    outline-offset: 2px;
}

/* تحسين للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .open_menu {
        background: var(--white_color);
        border-color: var(--main_color);
    }

    .open_menu i {
        color: var(--main_color);
    }
}
/* ===== ABOUT US & LOCATION SECTIONS ===== */

.about-section, .location-section {
    padding: 60px 0;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 25px;
    box-shadow: 0 15px 35px var(--shadow_light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.about-section::before, .location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.02), rgba(247, 147, 30, 0.02));
    pointer-events: none;
}

.about-content, .location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.about-text h3, .location-info h3 {
    font-size: 28px;
    color: var(--color_heading);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p, .location-info p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--p_color);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px var(--shadow_light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow_medium);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.feature-item i {
    font-size: 40px;
    color: var(--main_color);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--color_heading);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: var(--p_color);
    line-height: 1.6;
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow_medium);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow_light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 25px var(--shadow_medium);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.contact-item i {
    font-size: 30px;
    color: var(--main_color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main_color), var(--secondary_color));
    border-radius: 50%;
    color: var(--white_color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.contact-item h4 {
    font-size: 18px;
    color: var(--color_heading);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    font-size: 16px;
    color: var(--p_color);
    margin: 0;
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow_medium);
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg_color) 0%, var(--light_gray) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--p_color);
    border: 2px dashed var(--border_color);
}

.map-placeholder i {
    font-size: 60px;
    color: var(--main_color);
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-placeholder small {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design for About & Location */
@media (max-width: 768px) {
    .about-section, .location-section {
        padding: 40px 15px;
        margin: 20px 15px;
        border-radius: 20px;
    }

    .about-content, .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text h3, .location-info h3 {
        font-size: 24px;
        text-align: center;
    }

    .about-text p, .location-info p {
        font-size: 16px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item i {
        font-size: 35px;
    }

    .feature-item h4 {
        font-size: 16px;
    }

    .feature-item p {
        font-size: 13px;
    }

    .about-image img {
        height: 250px;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-item {
        padding: 15px;
        gap: 15px;
    }

    .contact-item i {
        font-size: 25px;
        width: 45px;
        height: 45px;
    }

    .contact-item h4 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 14px;
    }

    .map-container {
        height: 250px;
    }

    .map-placeholder i {
        font-size: 40px;
    }

    .map-placeholder p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-section, .location-section {
        padding: 30px 10px;
        margin: 15px 10px;
    }

    .about-text h3, .location-info h3 {
        font-size: 20px;
    }

    .about-text p, .location-info p {
        font-size: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .contact-item {
        padding: 12px;
        gap: 12px;
    }

    .map-container {
        height: 200px;
    }
}
/* ===== BRANCHES SECTION STYLES ===== */

.branches-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.branches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.02), rgba(247, 147, 30, 0.02));
    pointer-events: none;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.branch-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 16px; /* أصغر قليلاً */
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow_light); /* ظل أخف */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease; /* أسرع */
    position: relative;
    backdrop-filter: blur(15px);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(247, 147, 30, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.branch-card:hover::before {
    opacity: 1;
}

.branch-card:hover {
    transform: translateY(-5px); /* حركة أقل */
    box-shadow: 0 15px 35px var(--shadow_medium);
}

.branch-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

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

.branch-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.branch-status {
    background: var(--gradient_primary);
    color: var(--white_color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--shadow_light);
    animation: pulse 2s infinite;
}

.branch-status.opening-soon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.branch-info {
    padding: 20px;
}

.branch-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color_heading);
    margin-bottom: 15px;
    text-align: center;
}

.branch-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    color: var(--main_color);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.detail-item span {
    color: var(--p_color);
    font-size: 13px;
    font-weight: 500;
}

.branch-actions {
    display: flex;
    gap: 0;
    justify-content: center;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.order-btn {
    background: var(--gradient_primary);
    color: var(--white_color);
    border: 2px solid var(--main_color);
}

.order-btn:hover {
    background: var(--gradient_secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow_medium);
}

.location-btn {
    background: transparent;
    color: var(--main_color);
    border: 2px solid var(--main_color);
}

.location-btn:hover {
    background: var(--main_color);
    color: var(--white_color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow_light);
}

.order-btn.disabled {
    background: #95a5a6;
    color: var(--white_color);
    border-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.order-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Mobile responsive for branches - محسن وأصغر */
@media (max-width: 768px) {
    .branches-section {
        padding: 25px 0;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين بدلاً من 3 */
        gap: 12px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .branch-card {
        border-radius: 12px;
        box-shadow: 0 4px 15px var(--shadow_light);
    }

    .branch-image {
        height: 80px; /* أصغر */
    }

    .branch-info {
        padding: 10px;
    }

    .branch-info h3 {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .detail-item {
        margin-bottom: 5px;
        gap: 5px;
    }

    .detail-item i {
        font-size: 11px;
        width: 12px;
    }

    .detail-item span {
        font-size: 10px;
        line-height: 1.2;
    }

    .branch-actions {
        gap: 5px;
        margin-top: 8px;
    }

    .action-btn {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 12px;
        min-height: 28px;
    }

    .action-btn i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr); /* يفضل عمودين */
        gap: 8px;
        padding: 0 8px;
    }

    .branch-card {
        border-radius: 10px;
    }

    .branch-image {
        height: 70px; /* أصغر أكثر */
    }

    .branch-info {
        padding: 8px;
    }

    .branch-info h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .detail-item {
        margin-bottom: 4px;
        gap: 4px;
    }

    .detail-item i {
        font-size: 10px;
        width: 10px;
    }

    .detail-item span {
        font-size: 9px;
    }

    .action-btn {
        padding: 5px 6px;
        font-size: 9px;
        gap: 3px;
        min-height: 24px;
    }

    .action-btn i {
        font-size: 9px;
    }
}

/* Extra small screens - أصغر حجم */
@media (max-width: 360px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 5px;
    }

    .branch-image {
        height: 60px; /* أصغر جداً */
    }

    .branch-info {
        padding: 6px;
    }

    .branch-info h3 {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .detail-item span {
        font-size: 8px;
    }

    .action-btn {
        padding: 4px 5px;
        font-size: 8px;
        min-height: 20px;
    }

    .action-btn i {
        font-size: 8px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .branch-image {
        height: 140px;
    }

    .branch-info {
        padding: 18px;
    }

    .branch-info h3 {
        font-size: 16px;
    }

    .detail-item span {
        font-size: 12px;
    }
}

/* Animation for branch cards */
@keyframes branchSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.branch-card {
    animation: branchSlideIn 0.6s ease-out;
}

.branch-card:nth-child(2) {
    animation-delay: 0.2s;
}

.branch-card:nth-child(3) {
    animation-delay: 0.4s;
}
/* Dynamic Categories Styles - Static Layout */
.category-section-static {
    margin-bottom: 50px;
    background: var(--white_color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow_light);
    border: 1px solid var(--border_color);
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border_color);
}

.category-title {
    background: var(--gradient_primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-title i {
    color: var(--main_color);
    font-size: 24px;
}

.category-description {
    color: var(--p_color);
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-grid-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card-static {
    background: var(--white_color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow_light);
    border: 1px solid var(--border_color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-static:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow_medium);
    border-color: var(--main_color);
}

.product-card-static .sale_present {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--sale_color);
    color: var(--white_color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-card-static .img_product {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-card-static .img_product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-static:hover .img_product img {
    transform: scale(1.05);
}

.product-card-static .name_product {
    font-size: 16px;
    font-weight: 600;
    color: var(--color_heading);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-static .price {
    margin-bottom: 15px;
}

.product-card-static .price p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--main_color);
}

.product-card-static .old_price {
    font-size: 14px !important;
    color: var(--p_color) !important;
    text-decoration: line-through;
    opacity: 0.7;
    margin-top: 5px !important;
}

.product-card-static .icons {
    text-align: center;
}

.product-card-static .btn_add_cart {
    background: var(--gradient_primary);
    color: var(--white_color);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    width: 100%;
    justify-content: center;
}

.product-card-static .btn_add_cart:hover {
    background: var(--gradient_secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow_medium);
}

.product-card-static .btn_add_cart.active {
    background: var(--success_color);
    color: var(--white_color);
}

.product-card-static .btn_add_cart i {
    color: inherit;
}

/* Responsive Design for Static Categories */
@media (max-width: 1200px) {
    .products-grid-static {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-section-static {
        margin-bottom: 30px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .category-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .category-title i {
        font-size: 20px;
    }
    
    .category-description {
        font-size: 14px;
    }
    
    .products-grid-static {
        grid-template-columns: repeat(2, 1fr); /* منتجان في كل صف للهاتف */
        gap: 15px;
        padding: 15px 0;
    }
    
    .product-card-static {
        padding: 15px;
    }
    
    .product-card-static .img_product {
        height: 150px;
        margin-bottom: 12px;
    }
    
    .product-card-static .name_product {
        font-size: 14px;
        height: 36px;
    }
    
    .product-card-static .price p {
        font-size: 16px;
    }
    
    .product-card-static .btn_add_cart {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-grid-static {
        grid-template-columns: repeat(2, 1fr); /* الحفاظ على منتجان في الصف حتى للشاشات الصغيرة جداً */
        gap: 12px;
    }
    
    .product-card-static {
        padding: 12px;
    }
    
    .product-card-static .img_product {
        height: 120px;
    }
    
    .product-card-static .name_product {
        font-size: 13px;
        height: 32px;
    }
    
    .product-card-static .price p {
        font-size: 15px;
    }
    
    .product-card-static .btn_add_cart {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .category-section-static {
        padding: 15px;
    }
}

/* إخفاء زر الإغلاق */
.close_menu {
    display: none !important;
}
/* Dashboard Icon Styles */
.dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient_primary);
    color: var(--white_color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow_light);
    position: relative;
    overflow: hidden;
}

.dashboard-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.dashboard-icon:hover::before {
    left: 100%;
}

.dashboard-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow_medium);
    background: var(--gradient_secondary);
}

.dashboard-icon i {
    font-size: 18px;
    color: var(--white_color);
    transition: all 0.3s ease;
}

.dashboard-icon:hover i {
    transform: scale(1.1);
    color: var(--white_color);
}

/* Mobile responsive for dashboard icon */
@media (max-width: 768px) {
    .dashboard-icon {
        width: 45px;
        height: 45px;
    }
    
    .dashboard-icon i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-icon {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-icon i {
        font-size: 14px;
    }
}

/* ===== CHECKOUT PAGE DESKTOP OPTIMIZATION ===== */

/* Large Desktop Checkout (1440px and above) */
@media (min-width: 1440px) {
    .checkout .container {
        max-width: 1200px;
        gap: 40px;
    }
    
    .checkout .customer_info,
    .checkout .ordersummary {
        padding: 30px;
    }
    
    .checkout .customer_info {
        flex: 1.2;
    }
    
    .checkout .ordersummary {
        flex: 0.8;
        max-width: 450px;
    }
    
    .checkout .customer_info .form_group {
        margin-bottom: 25px;
    }
    
    .checkout .customer_info input,
    .checkout .customer_info select {
        padding: 15px 20px;
        font-size: 16px;
        height: 55px;
    }
    
    .checkout .customer_info label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .checkout .ordersummary .item {
        padding: 20px 0;
    }
    
    .checkout .ordersummary .item .img {
        width: 80px;
        height: 80px;
    }
    
    .checkout .ordersummary .total_price {
        padding: 25px 0;
        font-size: 20px;
    }
    
    .checkout .ordersummary .btn_submit {
        padding: 18px 30px;
        font-size: 18px;
    }
}

/* Standard Desktop Checkout (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .checkout .container {
        max-width: 1000px;
        gap: 35px;
    }
    
    .checkout .customer_info,
    .checkout .ordersummary {
        padding: 25px;
    }
    
    .checkout .customer_info input,
    .checkout .customer_info select {
        padding: 12px 18px;
        height: 50px;
    }
    
    .checkout .ordersummary .item .img {
        width: 70px;
        height: 70px;
    }
}

/* Large Tablet Checkout (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .checkout .container {
        flex-direction: row;
        gap: 30px;
        max-width: 900px;
    }
    
    .checkout .customer_info {
        flex: 1.3;
    }
    
    .checkout .ordersummary {
        flex: 0.7;
        max-width: 350px;
    }
    
    .checkout .customer_info,
    .checkout .ordersummary {
        padding: 22px;
    }
}

/* Standard Tablet Checkout (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .checkout .container {
        flex-direction: column;
        gap: 25px;
    }
    
    .checkout .customer_info,
    .checkout .ordersummary {
        width: 100%;
        max-width: none;
        padding: 20px;
    }
}

/* ===== ENHANCED PRODUCT CARDS FOR DESKTOP ===== */

/* Desktop product card enhancements */
@media (min-width: 1024px) {
    .product {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .product:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .product:hover .img_product img {
        transform: scale(1.05);
    }
    
    .product .img_product {
        overflow: hidden;
        position: relative;
    }
    
    .product .img_product img {
        transition: transform 0.3s ease;
    }
    
    .product .sale_present {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    .product .name_product {
        font-size: 16px;
        line-height: 1.4;
        margin: 15px 0 10px;
        min-height: 44px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product .price {
        margin-bottom: 15px;
    }
    
    .product .price span {
        font-size: 18px;
        font-weight: 600;
    }
    
    .product .icons .btn_add_cart {
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .product .icons .btn_add_cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    }
}

/* ===== ENHANCED NAVIGATION FOR DESKTOP ===== */

@media (min-width: 1024px) {
    header .bottom_header .nav_linkc {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 30px !important;
        width: auto !important;
        height: auto !important;
    }
    
    header .bottom_header .nav_linkc li {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    header .bottom_header .nav_linkc li a {
        padding: 15px 20px !important;
        border-radius: 25px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    header .bottom_header .nav_linkc li a:hover,
    header .bottom_header .nav_linkc li.active a {
        background: var(--gradient_primary) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3) !important;
    }
    
    header .bottom_header .nav_linkc li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    header .bottom_header .nav_linkc li a:hover::before {
        left: 100%;
    }
    
    /* Hide mobile menu elements on desktop */
    header .bottom_header .open_menu,
    header .bottom_header .close_menu {
        display: none !important;
    }
}

/* ===== ENHANCED FOOTER FOR DESKTOP ===== */

@media (min-width: 1024px) {
    footer {
        padding: 60px 0 40px;
    }
    
    footer .container {
        max-width: 1200px;
    }
    
    footer .big_row {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    footer .logo_footer {
        width: 120px;
        height: 120px;
        margin-bottom: 25px;
        transition: transform 0.3s ease;
    }
    
    footer .logo_footer:hover {
        transform: scale(1.1) rotate(5deg);
    }
    
    footer p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 30px;
        color: var(--p_color);
    }
    
    footer .icon_footer {
        gap: 20px;
    }
    
    footer .icon_footer a {
        width: 60px;
        height: 60px;
        font-size: 24px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    footer .icon_footer a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient_primary);
        transform: scale(0);
        transition: transform 0.3s ease;
        border-radius: 50%;
    }
    
    footer .icon_footer a:hover::before {
        transform: scale(1);
    }
    
    footer .icon_footer a:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    }
    
    footer .icon_footer a i {
        position: relative;
        z-index: 2;
        transition: color 0.3s ease;
    }
    
    footer .icon_footer a:hover i {
        color: white;
    }
}
/* ===== HEADER BUTTONS - بسيط وواضح ===== */

.header_icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Cart Button */
.cart-button {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg_color);
    border: 2px solid var(--border_color);
    transition: all 0.3s ease;
    z-index: 10;
}

.cart-button:hover {
    background: var(--main_color);
    border-color: var(--main_color);
    transform: translateY(-2px);
}

.cart-button i {
    font-size: 20px;
    color: var(--color_heading);
    transition: all 0.3s ease;
}

.cart-button:hover i {
    color: white;
}

.cart-button .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--sale_color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Language Button */

/* Dark Mode Button */
.dark-button {
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg_color);
    border: 2px solid var(--border_color);
    transition: all 0.3s ease;
    z-index: 10;
}

.dark-button:hover {
    background: var(--warning_color);
    border-color: var(--warning_color);
    transform: translateY(-2px);
}

.dark-button i {
    font-size: 18px;
    color: var(--color_heading);
    transition: all 0.3s ease;
}

.dark-button:hover i {
    color: white;
    transform: rotate(15deg);
}

.dark-button.active {
    background: var(--dark_color);
    border-color: var(--dark_color);
}

.dark-button.active i {
    color: #ffd700;
}



/* Mobile */
@media (max-width: 768px) {
    .header_icons {
        gap: 10px;
    }
    
    .cart-button {
        width: 45px;
        height: 45px;
    }
    
    .cart-button i {
        font-size: 18px;
    }

    
    .dark-button {
        width: 40px;
        height: 40px;
    }
    
    .dark-button i {
        font-size: 16px;
    }
}



/* ===== DARK MODE STYLES ===== */

body.dark-mode {
    --bg_color: #1a1a1a;
    --white_color: #2d2d2d;
    --color_heading: #ffffff;
    --p_color: #cccccc;
    --border_color: #404040;
    --light_gray: #333333;
    background: #1a1a1a !important;
    color: #ffffff !important;
}

body.dark-mode header {
    background: #2d2d2d !important;
    border-bottom-color: #404040 !important;
}

body.dark-mode .product {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .cart {
    background: #2d2d2d !important;
}

body.dark-mode .about-section {
    background: #1a1a1a !important;
}

body.dark-mode .branches-section {
    background: #1a1a1a !important;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
}

/* Dark Mode Button */
.dark-button {
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg_color);
    border: 2px solid var(--border_color);
    transition: all 0.3s ease;
    z-index: 10;
}

.dark-button:hover {
    background: var(--warning_color);
    border-color: var(--warning_color);
    transform: translateY(-2px);
}

.dark-button i {
    font-size: 18px;
    color: var(--color_heading);
    transition: all 0.3s ease;
}

.dark-button:hover i {
    color: white;
    transform: rotate(15deg);
}

.dark-button.active {
    background: var(--dark_color);
    border-color: var(--dark_color);
}

.dark-button.active i {
    color: #ffd700;
}

body.dark-mode .product {
    background: #2d2d2d !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

body.dark-mode .product .name_product,
body.dark-mode .product .price {
    color: #ffffff !important;
}

body.dark-mode .btn_add_cart {
    background: var(--main_color) !important;
    color: white !important;
}

body.dark-mode .cart {
    background: #2d2d2d !important;
    color: #ffffff !important;
}

body.dark-mode .search_box {
    background: #333333 !important;
    border-color: #404040 !important;
}

body.dark-mode .search_box input {
    background: transparent !important;
    color: #ffffff !important;
}

body.dark-mode .search_box input::placeholder {
    color: #cccccc !important;
}

body.dark-mode footer {
    background: #2d2d2d !important;
    color: #ffffff !important;
}

body.dark-mode .about-section {
    background: #2d2d2d !important;
    color: #ffffff !important;
}

body.dark-mode .branches-section {
    background: #1a1a1a !important;
}

body.dark-mode .branch-card {
    background: #2d2d2d !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}



/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ===== ADDONS MODAL STYLES ===== */
.addons-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.addons-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.addons-modal {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.addons-modal-backdrop.active .addons-modal {
    transform: scale(1);
}

.addons-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.addons-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-addons-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-addons-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.addons-modal-body {
    padding: 1.5rem;
}

.product-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.base-price {
    color: #28a745;
    font-weight: 600;
    margin: 0;
}

.quantity-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: #667eea;
    color: white;
}

.quantity-controls span {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.total-price {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px solid #2196f3;
}

.total-price strong {
    font-size: 1.3rem;
    color: #1976d2;
}

.addons-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-cancel {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-add-to-cart {
    flex: 2;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Mobile Addons Modal */
@media (max-width: 767px) {
    .addons-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .addons-modal-header {
        padding: 1rem;
    }
    
    .addons-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .addons-modal-body {
        padding: 1rem;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-info img {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .addons-modal-footer {
        flex-direction: column;
        padding: 1rem;
    }
    
    .btn-cancel,
    .btn-add-to-cart {
        flex: none;
    }
}
/* ===== ADDONS MODAL STYLES ===== */
.addons-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.addons-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.addons-modal {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.addons-modal-backdrop.active .addons-modal {
    transform: scale(1);
}

.addons-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.addons-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-addons-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-addons-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.addons-modal-body {
    padding: 1.5rem;
}

.product-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.base-price {
    color: #28a745;
    font-weight: 600;
    margin: 0;
}

.cart-addons h5 {
    margin-bottom: 1rem;
    color: #333;
}

.addons-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.addon-card {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.addon-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.addon-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.addon-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.addon-price {
    font-size: 0.9rem;
    opacity: 0.8;
}

.addon-card.selected .addon-price {
    opacity: 1;
    font-weight: 600;
}

.quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

#modalQuantity {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.total-price {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.addons-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #6c757d;
    background: transparent;
    color: #6c757d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #6c757d;
    color: white;
}

.btn-add-to-cart {
    flex: 2;
    padding: 0.75rem;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Order Addons Display */
.order-addons {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #667eea;
}

.addon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.addon-tag {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.addons-total {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.empty-cart .btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-cart .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .addons-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-info img {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .addons-slider {
        grid-template-columns: 1fr;
    }
    
    .addons-modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-add-to-cart {
        flex: none;
    }
}

/* Dark Mode Support for Addons */
.dark-mode .addons-modal {
    background: #2d2d2d;
    color: #ffffff;
}

.dark-mode .product-info {
    background: #404040;
}

.dark-mode .quantity-section {
    background: #404040;
}

.dark-mode .addons-modal-footer {
    background: #404040;
    border-top-color: #555;
}

.dark-mode .addon-card {
    background: #404040;
    border-color: #555;
    color: #ffffff;
}

.dark-mode .addon-card:hover {
    border-color: #667eea;
}

.dark-mode .order-addons {
    background: #404040;
}
/* Product Addons Info */
.product-addons-info {
    margin: 0.5rem 0;
    text-align: center;
}

.product-addons-info small {
    color: #667eea;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.product-addons-info i {
    font-size: 0.9rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .product-addons-info small {
        font-size: 0.75rem;
    }
}

/* ===== CART SUGGESTIONS STYLES ===== */
.cart-suggestions {
    margin-top: 12px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.cart-suggestions h4 {
    color: var(--main_color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-suggestions h4 i {
    color: var(--secondary_color);
    font-size: 10px;
    animation: pulse 2s infinite;
}

.suggestions-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-nav-btn {
    background: var(--gradient_primary);
    color: var(--white_color);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
    z-index: 2;
}

.suggestion-nav-btn:hover {
    background: var(--gradient_secondary);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4);
}

.suggestion-nav-btn i {
    font-size: 8px;
    color: var(--white_color);
}

.suggestion-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.suggestions-slider {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    flex: 1;
}

.suggestions-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.suggestion-card {
    min-width: 125px;
    max-width: 80px;
    background: var(--white_color);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 6px var(--shadow_light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient_primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.suggestion-card:hover::before {
    opacity: 0.05;
}

.suggestion-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px var(--shadow_medium);
    border-color: var(--main_color);
}

.suggestion-card img {
    width: 100%;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.suggestion-card:hover img {
    transform: scale(1.02);
}

.suggestion-info h5 {
    font-size: 9px;
    font-weight: 600;
    color: var(--color_heading);
    margin-bottom: 3px;
    line-height: 1.1;
    height: 18px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.suggestion-price {
    color: var(--main_color);
    font-weight: 700;
    font-size: 10px;
    margin-bottom: 4px;
    text-align: center;
}

.btn-add-suggestion {
    width: 100%;
    background: var(--gradient_primary);
    color: var(--white_color);
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-add-suggestion:hover {
    background: var(--gradient_secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.btn-add-suggestion i {
    color: var(--white_color);
    font-size: 7px;
}

/* Quick Message Animation */
.quick-message {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Mobile Responsive for Cart Suggestions */
@media (max-width: 768px) {
    .cart-suggestions {
        margin-top: 10px;
        padding: 6px;
    }
    
    .cart-suggestions h4 {
        font-size: 11px;
    }
    
    .suggestions-container {
        gap: 3px;
    }
    
    .suggestion-nav-btn {
        width: 20px;
        height: 20px;
    }
    
    .suggestion-nav-btn i {
        font-size: 7px;
    }
    
    .suggestion-card {
        min-width: 120px;
        max-width: 70px;
        padding: 4px;
    }
    
    .suggestion-card img {
        height: 30px;
    }
    
    .suggestion-info h5 {
        font-size: 8px;
        height: 16px;
        -webkit-line-clamp: 1;
    }
    
    .suggestion-price {
        font-size: 9px;
    }
    
    .btn-add-suggestion {
        padding: 2px 4px;
        font-size: 7px;
    }
    
    .btn-add-suggestion i {
        font-size: 6px;
    }
}

/* Dark Mode Support for Cart Suggestions */
.dark-mode .cart-suggestions {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-color: rgba(255, 107, 53, 0.2);
}

.dark-mode .suggestion-card {
    background: #2d2d2d;
    color: #ffffff;
}

.dark-mode .suggestion-info h5 {
    color: #ffffff;
}

.dark-mode .suggestion-card:hover {
    border-color: var(--main_color);
}