/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Cairo', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

/* ✅ شريط العروض */
.top-bar {
    background: #FFD700;
    color: #000;
    text-align: center;
    padding: 8px;
    font-size: 18px;
    font-weight: bold;
    animation: moveText 12s linear infinite;
    white-space: nowrap;
    overflow: hidden;
}
@keyframes moveText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ✅ الهيدر */
header {
    background: #000;
    color: #FFD700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .logo {
    font-size: 28px;
    font-weight: bold;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin: 0 10px;
}
nav ul li a {
    color: #FFD700;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: 0.3s;
}
nav ul li a:hover {
    background: #FFD700;
    color: #000;
    border-radius: 5px;
}

/* ✅ البحث */
.search-box input {
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #FFD700;
    outline: none;
    width: 200px;
}

/* ✅ أيقونة السلة */
.cart-container {
    position: relative;
}
.cart-icon {
    font-size: 26px;
    cursor: pointer;
}
.cart-count {
    background: #FFD700;
    color: #000;
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ✅ السلايدر */.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.slides img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: none;
}

.slides img.active {
    display: block;
    animation: fade 1.5s;
}

@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: #FFD700;
}

/* ✅ العروض المميزة */
#offers {
    padding: 20px;
    background: #f9f9f9;
}
#offers h2 {
    text-align: center;
    color: #000;
    margin-bottom: 15px;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.offer-product {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.offer-product:hover {
    transform: scale(1.05);
}
.offer-product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: #fff;
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}
.price {
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
}
.btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover {
    background: #000;
    color: #FFD700;
}

/* ✅ المنتجات */
#products {
    padding: 20px;
}
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.product {
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s;
}
.product:hover {
    transform: scale(1.05);
}
.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* ✅ السلة الجانبية */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    transition: 0.3s;
    padding: 20px;
    z-index: 2000;
}
.cart-sidebar.active {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 10px;
}
.close-btn {
    background: red;
    color: #fff;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
}
.cart-footer {
    margin-top: 20px;
    text-align: center;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* مخفية */
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,.3);
    transition: 0.4s;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}
.cart-sidebar.active {
    right: 0; /* تظهر */
}

.checkout-btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
}

/* ✅ نافذة الدفع */
.checkout-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #f9f9f9;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    transition: 0.3s;
    padding: 20px;
    z-index: 2500;
}
.checkout-sidebar.active {
    right: 0;
}
.checkout-header {
    font-size: 22px;
    margin-bottom: 15px;
}
.checkout-sidebar input, .checkout-sidebar textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.submit-btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    font-size: 18px;
}

/* ✅ زر واتساب */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    padding: 12px 16px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.whatsapp-btn:hover {
    background: #128C7E;
}
