* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #0b0b0b;
    color: #e5e5e5;
    direction: rtl;
    min-height: 100vh;
    background-image: radial-gradient(circle at center, #1a1500 0%, #0b0b0b 80%);
}

/* الهيدر الرئيسي */
.main-header {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 2px solid #d4af37;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.logo-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.logo-container h1 {
    color: #d4af37;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.logo-container p {
    color: #aaa;
    font-size: 13px;
    letter-spacing: 1px;
}

/* شريط البحث ومشغل الموسيقى */
.header-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.search-bar {
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 20px;
    background-color: #161616;
    border: 1px solid #333;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.music-control-btn {
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-control-btn:hover {
    background-color: #f3c642;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* تنقل الأقسام */
.categories-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-btn {
    background: #1a1a1a;
    color: #ccc;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #333;
    transition: 0.3s;
}

.cat-btn:hover, .cat-btn.active {
    background-color: #d4af37;
    color: #000;
    border-color: #d4af37;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* شبكة المنتجات */
.products-section {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #141414;
    border: 1px solid #262626;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #000;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.price-tag {
    color: #d4af37;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.description {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-buy {
    flex: 2;
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-buy:hover {
    background-color: #f3c642;
}

.btn-code {
    flex: 1;
    background-color: #222;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-code:hover {
    background-color: #d4af37;
    color: #000;
}