.top-bar {
    background: goldenrod; /* لون لبني هادي */
    color: black;
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* الألوان والخطوط */
:root {
    --main-black: #000000;
    --card-bg: #111111;
    --accent-color: #00d4ff;
    --text-gray: #888888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-black);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation Bar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1552374196-1ab2a1c593e8?q=80&w=1500') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: 5px;
}

/* --- Shop Section --- */
.shop-section {
    padding: 80px 8%;
}

.products-grid {
    display: grid;
    /* التعديل لضمان 4 أعمدة في الشاشات الكبيرة */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
    border-color: #444;
}

.product-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.price {
    display: block;
    margin: 10px 0;
    font-weight: bold;
    color: var(--accent-color);
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: black;
    border: none;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* --- About & Contact --- */
.content-section {
    padding: 100px 10%;
    text-align: center;
    border-top: 1px solid #222;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-item {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.social-item i { font-size: 2.5rem; margin-bottom: 5px; }
.social-item:hover { color: var(--accent-color); transform: translateY(-5px); }

footer {
    text-align: center;
    padding: 30px;
    color: #444;
    font-size: 0.8rem;
}
/* تنسيق السلة */
nav div[style*="display: flex"] {
    display: flex;
    align-items: center;
}

.cart-icon:hover {
    color: var(--accent-color);
}

/* تعديل بسيط للـ nav عشان يستوعب السلة في اليمين */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
}
/* ============================================= */
/* بداية تنسيق السلة الجانبية والأنيميشن */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: #111;
    z-index: 2000;
    transition: 0.4s ease-in-out;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; padding-bottom: 15px; }
.close-cart { font-size: 2rem; cursor: pointer; color: #00d4ff; }
#cart-items-container { flex: 1; overflow-y: auto; padding: 20px 0; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 10px; font-size: 0.9rem; }
.total-price { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; text-align: center; color: #00d4ff; }
.checkout-btn { width: 100%; padding: 15px; background: #25D366; color: white; border: none; font-weight: bold; cursor: pointer; border-radius: 5px; transition: 0.3s; }
.checkout-btn:hover { background: #1ebe57; transform: scale(1.02); }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; z-index: 1500; }
.cart-overlay.show { display: block; }
/* نهاية تنسيق السلة الجانبية */
/* ============================================= */
/* تنسيق زرار الحذف في السلة */
.remove-item {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 10px;
    transition: 0.3s;
}

.remove-item:hover {
    color: white;
    transform: scale(1.2);
}
/* ============================================= */
/* كود حركة ظهور السكاشن بنعومة */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out; /* سرعة الظهور ثانية واحدة */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* ============================================= */
.contact-card {
    background: #111;
    border: 1px solid #222;
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    transition: 0.4s;
}

.contact-card i {
    font-size: 1.8rem;
    color: #00d4ff;
}

.contact-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    background: #161616;
}
/* تنسيق الكروت الصغيرة */
.contact-card-small {
    background: #111;
    border: 1px solid #222;
    padding: 15px 25px; /* صغرنا المساحة هنا */
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center; /* خلّينا الأيقونة والاسم جنب بعض */
    gap: 15px;
    min-width: 200px;
    transition: 0.3s ease;
}

.contact-card-small i {
    font-size: 1.4rem; /* صغرنا الأيقونة شوية */
    color: #00d4ff;
}

.card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-info strong {
    font-size: 0.9rem;
    display: block;
}

.card-info small {
    font-size: 0.75rem;
    color: #888;
}

.contact-card-small:hover {
    border-color: #00d4ff;
    background: #161616;
    transform: translateY(-3px);
}