/* ==================== Reset & Global ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', sans-serif; background-color: #f9f9f9; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ==================== Header ==================== */
.main-header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-placeholder { background:#42aac7; width:40px; height:40px; border-radius:5px; color:white; display:flex; align-items:center; justify-content:center; font-weight:bold; }
.brand-names h1 { font-size: 18px; color: #42aac7; margin: 0; }
.brand-names .en-name { font-size: 12px; color: #8bc636; letter-spacing: 1px; }
.main-nav ul { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-weight: 600; transition: color 0.3s; font-size: 16px; }
.main-nav a:hover, .main-nav a.active { color: #42aac7; }
.cart-link { position: relative; }
.cart-count { background: #e74c3c; color: white; font-size: 10px; padding: 2px 5px; border-radius: 50%; position: absolute; top: -8px; left: -8px; }

/* ==================== Page Header ==================== */
.page-header { background: linear-gradient(135deg, #42aac7, #8bc636); color: white; padding: 60px 0 40px; text-align: center; }
.page-header h1 { font-size: 38px; margin-bottom: 10px; }
.page-header p { font-size: 18px; opacity: 0.95; }

/* ==================== Filter Section ==================== */
.filter-section { background: white; padding: 25px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
.filter-bar { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.search-box input { width: 100%; min-width: 300px; padding: 12px 20px; border: 2px solid #ddd; border-radius: 25px; font-size: 16px; font-family: 'Cairo', sans-serif; outline: none; transition: 0.3s; }
.search-box input:focus { border-color: #42aac7; }
.sort-box { display: flex; align-items: center; gap: 10px; }
.sort-box select { padding: 10px 15px; border: 2px solid #ddd; border-radius: 8px; font-family: 'Cairo', sans-serif; outline: none; cursor: pointer; }

/* ==================== Products Grid ==================== */
.all-products-section { padding: 20px 0 60px; background: #f5f5f5; }
.products-count { margin-bottom: 30px; font-size: 18px; color: #666; font-weight: 600; }
.products-count span { color: #42aac7; font-size: 22px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 15px; padding: 20px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-name { font-size: 18px; color: #333; margin-bottom: 5px; }
.product-number { color: #888; font-size: 14px; margin-bottom: 10px; }
.product-price { font-size: 22px; color: #42aac7; font-weight: bold; margin-bottom: 5px; }
.vat-note { font-size: 10px; color: #999; margin-bottom: 15px; }
.add-to-cart-btn { background: #42aac7; color: white; border: none; padding: 10px 25px; border-radius: 25px; cursor: pointer; font-family: 'Cairo', sans-serif; font-weight: bold; width: 100%; transition: 0.3s; }
.add-to-cart-btn:hover { background: #358ea8; }

/* ==================== Features Strip ==================== */
.features-strip { background: white; padding: 30px 0; border-top: 1px solid #eee; margin-top: 50px; }
.features-strip .container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-item .icon { background: #8bc636; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.feature-item p { font-size: 15px; color: #333; font-weight: 600; }

/* ==================== Footer ==================== */
.main-footer { background: #2c3e50; color: white; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: #42aac7; margin-bottom: 20px; font-size: 20px; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a:hover { color: #8bc636; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; opacity: 0.8; }

/* ==================== Cart Modal ==================== */
.cart-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; justify-content: flex-end; }
.cart-modal.active { display: flex; }
.cart-content { background: white; width: 100%; max-width: 400px; height: 100%; padding: 20px; display: flex; flex-direction: column; animation: slideIn 0.3s ease; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.close-cart { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #f5f5f5; padding-bottom: 10px; }
.cart-item-image { width: 60px; height: 60px; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: bold; font-size: 14px; }
.cart-item-price { color: #42aac7; font-size: 13px; margin: 5px 0; }
.cart-item-quantity { display: flex; align-items: center; gap: 10px; }
.qty-btn { background: #f0f0f0; border: none; width: 25px; height: 25px; border-radius: 5px; cursor: pointer; }
.remove-item { color: #e74c3c; background: none; border: none; font-size: 12px; cursor: pointer; margin-right: auto; }
.cart-footer { border-top: 1px solid #eee; padding-top: 15px; }
.cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 18px; margin-bottom: 15px; }
.checkout-btn { width: 100%; background: #25d366; color: white; padding: 12px; border: none; border-radius: 8px; font-family: 'Cairo', sans-serif; font-weight: bold; cursor: pointer; transition: 0.3s; }
.checkout-btn:hover { background: #128c7e; }
.empty-cart { text-align: center; color: #999; margin-top: 50px; }

@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 { font-size: 28px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .features-strip .container { flex-direction: column; text-align: center; }
}



.product-image {
    width: 100%;
    height: 250px; /* أو أي ارتفاع مناسب */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* خلفية بيضاء عشان الفراغات */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ده السطر السحري اللي هيظهر الصورة كاملة */
    transition: transform 0.3s ease;
}
