:root {
    --gold-dark: #C9A100;
    --gold: #FFD700;
    --gold-light: #FFE55C;
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-light: #f5f5f5;
    --red: #dc2626;
    --green: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #000;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: var(--white);
    direction: rtl;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.header-search {
    flex: 1;
    max-width: 500px;
    padding: 10px 0;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 75px;
    padding: 0.5rem 0;
}

.header-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 25px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(5px);
    transition: border-color 0.2s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--gold-light);
}

.store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 5px;
    background: rgba(255,215,0,0.1);
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
    transition: transform 0.2s ease;
}

.store-logo:hover {
    transform: scale(1.02);
}

.store-name {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 0 5px rgba(255,215,0,0.2);
    margin: 0;
}

/* Product Detail Section */
.product-detail-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-images {
    position: relative;
}

.main-image-container {
	position: relative;
	width: 100%;
	height: 395px;
	border-radius: 15px;
	overflow: hidden;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(5px);
	border: 2px solid rgba(255,215,0,0.3);
	margin-bottom: 1rem;
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b) !important;
    color: white !important;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    border: none !important;
    text-decoration: none !important;
    pointer-events: none;
    text-shadow: 0 0 3px rgba(255,255,255,0.3);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    background: #333;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .product-card {
        transition: transform 0.15s ease;
    }
    
    .product-card:hover {
        transform: translateY(-1px);
    }
    
    .product-image {
        transition: transform 0.15s ease;
    }
    
    .product-card:hover .product-image {
        transform: scale(1.01);
    }
    
    .order-btn {
        transition: transform 0.15s ease;
    }
    
    .order-btn:hover {
        transform: translateY(0);
    }
    
    .category-btn {
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    
    .category-btn:hover {
        transform: none;
    }
}

/* Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
