:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --primary-color: #00b4d8;
    --secondary-color: #e0f7fa;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f2f6;
    --primary-color: #38bdf8;
    --secondary-color: #334155;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; -webkit-tap-highlight-color: transparent; transition: background-color 0.3s, color 0.3s; }
body { background-color: var(--bg-color); color: var(--text-color); }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 5%; background: var(--card-bg); box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: bold; color: var(--primary-color); user-select: none;
 }
.logo img { height: 40px; border-radius: 50%; border: 2px solid var(--primary-color); }

.btn-icon {
    background: var(--secondary-color); border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    user-select: none;
}

.controls { padding: 20px 5%; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.search-box { position: relative; width: 100%; max-width: 500px; }
.search-box input {
    width: 100%; padding: 12px 45px 12px 15px; border-radius: 30px;
    border: 1px solid #dfe6e9; background: var(--card-bg); color: var(--text-color); outline: none; box-shadow: var(--shadow);
}
.search-box i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary-color); }


.filter-box { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    width: 100%; 
    padding: 10px 5px; 
    scrollbar-width: none; 
    justify-content: flex-start; 
    flex-direction: row; 
}
.filter-btn {
    padding: 8px 20px; border: none; border-radius: 25px; background: var(--card-bg);
    color: var(--text-color); cursor: pointer; box-shadow: var(--shadow); white-space: nowrap;
        user-select: none;

}
.filter-btn.active { background: var(--primary-color); color: white; }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px; padding: 10px 5% 50px;
}


.product-card {
    background: var(--card-bg); border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow); transition: 0.3s; cursor: pointer;
    display: flex; flex-direction: column; height: 100%;
}
.product-img { width: 100%; height: 150px; object-fit: contain; padding: 10px; background: white; }
.product-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-cat { font-size: 0.75rem; color: var(--primary-color); font-weight: bold; }
.product-title { font-size: 0.9rem; margin: 5px 0 10px; height: 3.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.product-footer { display: flex; justify-content: space-between; align-items: center; }

.details-btn-arrow {
    background: var(--secondary-color); color: var(--primary-color);
    border: none; width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}


.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5vh auto;
    padding: 45px 20px 25px; 
    width: 90%;
    max-width: 450px;
    border-radius: 25px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.modal-content::-webkit-scrollbar {
    display: none; 
}


.map-container {
    width: 100%;
    height: 250px; 
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--secondary-color);
    background: #eee;
}




.modal-body, .about-body {
    padding-bottom: 20px;
}

.modal-content::-webkit-scrollbar {
    width: none;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.close-btn, .close-about-btn, .close-cart-btn {
    position: absolute; 
    right: 10px; 
    top: 10px;   
    background: var(--primary-color);
    color: white; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem;
    cursor: pointer; 
    border: 2px solid white; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2100; 
        user-select: none;

}
#about-btn{
    background-color: #00b4d8;
    color: white;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    width: auto;
        user-select: none;

}
#call_icon{


    background-color: white;
    color: #00b4d8;
    border-radius: 100%;
    padding: 2px;
    margin-left: 6px;
        user-select: none;

}
#callus {
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 0.7rem !important; 
    color: white; 
    align-items: center;
    align-content: center;
    display: flex;
    white-space: nowrap; 
        user-select: none;

}
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee;     user-select: none;}
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 5px;     user-select: none;}
.cart-controls { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.qty-btn { width: 25px; height: 25px; background: var(--secondary-color); border: none; border-radius: 4px; cursor: pointer; }
.add-to-cart-btn { background: var(--primary-color); color: white; border: none; padding: 10px; border-radius: 8px; width: 100%; margin-top: 10px; cursor: pointer; font-weight: bold; }

.slider-container { position: relative; width: 100%; height: 240px; background: white; border-radius: 15px; overflow: hidden; }
.slider-image { width: 100%; height: 100%; object-fit: contain; display: none; }
.slider-image.active { display: block; animation: fadeIn 0.5s; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; width: 35px; height: 35px; border-radius: 50%; color: var(--primary-color); z-index: 10; cursor: pointer; }
.prev-btn { right: 10px; } .next-btn { left: 10px; }
.dots-container { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; background: #ddd; border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--primary-color); width: 22px; border-radius: 10px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 480px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

#span{
    color: black;
}

.about-content { text-align: center; }
.about-body hr { margin: 15px 0; border: none; border-top: 1px solid var(--secondary-color); }
.info-item { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; }
.map-container { height: 220px; border-radius: 15px; overflow: hidden; margin: 15px 0; border: 1px solid #ddd; }
.social-links { display: flex; gap: 10px; justify-content: center; }
.social-btn {
    text-decoration: none; padding: 10px 18px; border-radius: 12px;
    color: white; font-size: 0.9rem; font-weight: bold; display: flex; align-items: center; gap: 6px;
}
.phone { background-color: #3498db; }
.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.instapay { background-color: #9b59b6; }

.slider-container { position: relative; width: 100%; height: 240px; background: white; border-radius: 15px; overflow: hidden; }
.slider-image { width: 100%; height: 100%; object-fit: contain; display: none; }
.slider-image.active { display: block; animation: fadeIn 0.5s; }




#toast-box {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.toast {
    background: #333; 
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    min-width: 250px;
    justify-content: center;
    border-bottom: 3px solid var(--primary-color); 
    animation: slideUp 0.4s ease, fadeOut 0.5s ease 2.5s forwards; 
}


.toast i {
    color: #2ecc71; 
    font-size: 1.2rem;
}


@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}