﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #EAEDED;
    color: #0F1111;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background-color: #131921;
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    margin-left: 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

    .header-logo i {
        color: #FF9900;
    }

.header-search {
    display: flex;
    flex-grow: 1;
    max-width: 800px;
    margin: 0 15px;
}

    .header-search select {
        background-color: #F3F3F3;
        border-radius: 4px 0 0 4px;
        border: none;
        padding: 0 10px;
        border-right: 1px solid #DDD;
    }
    .header-search form {
        display: flex;
        margin: 0; /* reset default margins */
        padding: 0; /* reset default padding */
        border: none; /* just in case */
        background: none; /* just in case */
        width: 100%;
    }
.header-search form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 15px;
    outline: none;
}

.header-search form button {
    background-color: #FEBD69;
    border: 1px solid #FEBD69;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    cursor: pointer;
}

.header-nav {
    display: flex;
    margin-right: 15px;
}

.nav-item {
    padding: 10px;
    margin: 0 5px;
    cursor: pointer;
    white-space: nowrap;
}

    .nav-item span {
        font-size: 12px;
        display: block;
    }

    .nav-item b {
        font-size: 14px;
    }

.nav-cart {
    display: flex;
    align-items: center;
}

    .nav-cart i {
        font-size: 30px;
    }

/* Secondary Navbar */
.secondary-nav {
    background-color: #232F3E;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

    .secondary-nav a {
        color: white;
        text-decoration: none;
        margin: 0 10px;
        font-size: 14px;
    }

/* Main Content */
.container {
    max-width: 1500px;
    margin: 15px auto;
    padding: 0 15px;
    flex: 1;
}

.breadcrumb {
    font-size: 12px;
    color: #565959;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

    .product-image img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0066c0;
    text-decoration: none;
}

    .product-title:hover {
        text-decoration: underline;
        color: #C45500;
    }

.product-rating {
    color: #FFA41C;
    margin-bottom: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-shipping {
    font-size: 14px;
    color: #565959;
    margin-bottom: 10px;
}

.prime-badge {
    color: #007185;
    font-size: 14px;
    display: flex;
    align-items: center;
}

    .prime-badge i {
        color: #38A5D8;
        margin-right: 5px;
    }

.product-deal {
    background-color: #CC0C39;
    color: white;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* Footer */
.back-to-top {
    background-color: #37475A;
    color: white;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: #4361ee;
    }

.footer-column p {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 14px;
        }

            .footer-column ul li a:hover {
                color: white;
            }

/* Responsive styles */
@media (max-width: 900px) {
    .header {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        margin: 10px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .header-search {
        max-width: 98%; /* don't force large width */
        margin: 5px auto; /* center it with smaller margin */
        font-size: 14px;
    }

        .header-search input {
            flex-grow: 0; /* stop it from stretching */
            width: 80%; /* set a smaller fixed width */
            font-size: 14px;
            padding: 8px;
        }

        .header-search button {
            padding: 8px 12px;
        }
    .products-grid {
        grid-template-columns: 1fr;
    }

    .secondary-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
}









.secondary-nav {
    display: flex; /* العناصر جنب بعض */
    align-items: center;
    background: #222;
    padding: 0;
    margin: 0;
}

    .secondary-nav > a,
    .secondary-nav .dropdown > a {
        color: #fff;
        padding: 8px 12px; /* 🔹 قللنا الحجم */
        font-size: 14px; /* 🔹 خط صغير */
        line-height: 1.2; /* 🔹 يقلل الارتفاع */
        text-decoration: none;
        display: block;
        transition: background 0.3s ease;
        white-space: nowrap; /* يخلي النص في سطر واحد */
    }

        .secondary-nav > a:hover,
        .secondary-nav .dropdown > a:hover {
            background: #444;
        }

    .secondary-nav > .dropdown,
    .secondary-nav > a {
        margin: 0;
    }

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 999;
}

    .submenu li {
        border-bottom: 1px solid #eee;
    }

        .submenu li a {
            color: #333;
            padding: 6px 12px; /* 🔹 حجم أصغر للـ submenu */
            font-size: 13px;
            display: block;
            text-decoration: none;
            line-height: 1.2;
        }

            .submenu li a:hover {
                background: #f5f5f5;
            }

/* اظهار السب منيو عند الهوفر */
.dropdown {
    position: relative;
}

    .dropdown:hover .submenu {
        display: block;
    }

.spinnerOverlaySubmitForm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}