/* ملف CSS الرئيسي - متجر المعجنات والحلويات */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #000000;
    color: #d4af37;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #d4af37;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;
}

.header-content .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content .logo img {
    height: 70px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.header-content .logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #d4af37;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: #d4af37;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: #d4af37;
    color: #000000;
}

.cart-icon {
    position: relative;
    background: #d4af37;
    color: #000000;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: url('../images/hero-background.jpg') center/cover no-repeat;
    color: #333;
    padding: 120px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    color: #2c3e50;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    color: #34495e;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: white;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-size: 36px;
    color: #333;
    text-align: center;
}

/* Section Styles */
.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00506b;
}

.category-card p {
    color: #666;
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #00506b;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #00506b;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #00506b 0%, #077897 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: #000000;
    color: #d4af37;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 2px solid #d4af37;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin: 8px 0;
    color: #c9a645;
    line-height: 1.6;
}

.footer-section a {
    color: #c9a645;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    color: #c9a645;
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    max-width: 600px;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters h3 {
    margin-bottom: 15px;
    color: #00506b;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #00506b;
    background: white;
    color: #00506b;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.filter-btn:hover, 
.filter-btn.active {
    background: linear-gradient(135deg, #00506b 0%, #077897 100%);
    color: white;
}

/* Empty States */
.no-products,
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-cart h3,
.no-products h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.empty-cart p,
.no-products p {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-content .logo img {
        height: 35px;
    }
    
    .header-content .logo h1 {
        font-size: 14px;
    }
}

/* تحسينات صور التصنيفات */
.category-icon img {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
}

/* قسم قصة سومر */
.about-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M50 10 L90 50 L50 90 L10 50 Z" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-icon {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.about-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(212, 175, 55, 0.6);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-title {
    color: #d4af37;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 0 3px 15px rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.about-text {
    color: #c9a645;
    font-size: 20px;
    line-height: 2;
    text-align: justify;
    text-align-last: center;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text p {
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.about-intro {
    font-size: 24px;
    color: #d4af37;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 35px !important;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.about-closing {
    font-size: 21px;
    margin-top: 35px !important;
}

.about-closing strong {
    color: #d4af37;
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.about-divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 50px auto 0;
    animation: expand 2s ease-out;
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 200px;
    }
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }
    
    .about-logo {
        width: 90px;
        height: 90px;
    }
    
    .about-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .about-text {
        font-size: 17px;
        line-height: 1.8;
        text-align: right;
    }
    
    .about-intro {
        font-size: 19px;
    }
    
    .about-closing {
        font-size: 18px;
    }
    
    .about-text p {
        padding: 0 10px;
    }
}
