/* Green Corner Design System */
:root {
    --color-primary: #1a472a;
    --color-primary-light: #2d5a27;
    --color-secondary: #5f8d4e;
    --color-accent: #e8f5e9;
    --color-text: #2c3e50;
    --color-text-light: #666;
    --color-white: #ffffff;
    --color-bg: #f9f9f9;
    --color-danger: #c0392b;
    --font-main: 'Cairo', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --color-primary: #81c784;
    --color-primary-light: #a5d6a7;
    --color-secondary: #aed581;
    --color-accent: #2d2d2d;
    --color-text: #e0e0e0;
    --color-text-light: #b0b0b0;
    --color-white: #1e1e1e;
    --color-bg: #121212;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    background-image: linear-gradient(rgba(20, 0, 0, 0.9), rgba(20, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1542259681-d4cd7193bc2f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

[data-theme="dark"] body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)),
        url('https://images.unsplash.com/photo-1542259681-d4cd7193bc2f?q=80&w=2070&auto=format&fit=crop');
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Sharingan Animation */
.sharingan-container {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 200;
}

.sharingan-eye {
    width: 60px;
    height: 60px;
    animation: sharinganSpin 10s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
    border-radius: 50%;
}

@keyframes sharinganSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Header */
.main-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--color-secondary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--color-accent);
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(26, 71, 42, 0.85), rgba(26, 71, 42, 0.85)),
        url('https://images.unsplash.com/photo-1470058869958-2a77ade41c02?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 50px 50px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Categories */
.categories-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.categories-section h2,
.products-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-weight: bold;
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
    cursor: pointer;
    transition: 0.3s;
}

.category-card:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}

/* Products */
.products-section {
    padding-bottom: var(--spacing-xl);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #eee;
}

.product-info {
    padding: var(--spacing-md);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-price {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.stock-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-danger);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-white);
    color: var(--color-text);
}

.cart-header button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: var(--color-white);
}

.cart-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: var(--spacing-md);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-text);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    color: var(--color-text);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 1px solid #eee;
    background: var(--color-white);
}

.cart-footer .total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    color: var(--color-text);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Footer */
.main-footer {
    background: var(--color-white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .main-nav {
        display: none;
    }
}/* ===== إضافات جديدة للمتجر الشامل ===== */

/* Category Icon Cards - أيقونات الأقسام الكبيرة */
.category-icon-card {
    position: relative;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.category-icon-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-icon-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.category-icon-card:hover .category-icon-image {
    transform: scale(1.1);
}

.category-icon-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Back Button */
.btn-back {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--color-primary);
    transform: translateX(-3px);
}

/* Product Card Enhancements */
.product-card {
    position: relative;
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Product Specifications */
.product-specifications {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--color-accent);
    border-radius: 8px;
}

.product-specifications strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.product-specifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specifications li {
    padding: 0.25rem 0;
    padding-right: 1.2rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--color-text);
}

.product-specifications li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Size Selection - دوائر المقاسات */
.product-sizes,
.product-colors {
    margin: 0.75rem 0;
}

.size-label,
.color-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--color-text-light);
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-circle:hover {
    border-color: var(--color-primary);
    background: var(--color-accent);
    transform: scale(1.1);
}

.size-circle.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Color Selection */
.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-text-light);
    background: var(--color-white);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: var(--color-primary);
    background: var(--color-accent);
    transform: translateY(-2px);
}

.color-option.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cart Item Variants */
.cart-item-variant {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.variant-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Toast Notification - الرسالة المنبثقة */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-weight: 600;
    font-size: 1rem;
    max-width: 90%;
    text-align: center;
    transition: bottom 0.3s ease;
}

.toast-notification.show {
    bottom: 30px;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .product-specifications {
    background: var(--color-accent);
}

[data-theme="dark"] .size-circle {
    background: var(--color-white);
    border-color: #555;
}

[data-theme="dark"] .size-circle:hover {
    background: var(--color-accent);
}

[data-theme="dark"] .color-option {
    background: var(--color-white);
    border-color: #555;
}

[data-theme="dark"] .color-option:hover {
    background: var(--color-accent);
}

[data-theme="dark"] .variant-badge {
    background: #2d2d2d;
    color: var(--color-primary);
}

[data-theme="dark"] .toast-notification {
    background: var(--color-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-icon-card {
        height: 180px;
    }
    
    .category-icon-name {
        font-size: 1.2rem;
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .size-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .product-specifications {
        font-size: 0.8rem;
    }
    
    .toast-notification {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-back {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
/* ===== Admin Panel Enhancements ===== */

/* Statistics Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* Checkbox Group for Sizes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-accent);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-group label:hover {
    background: var(--color-primary);
    color: white;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
}

/* Form Group Enhancements */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Dark Theme for Admin */
[data-theme="dark"] .stat-card {
    background: var(--color-white);
}

[data-theme="dark"] .checkbox-group label {
    background: var(--color-accent);
}

[data-theme="dark"] .checkbox-group label:hover {
    background: var(--color-primary);
}
