/* ============================================
   Emooo Store - Main Style CSS
   ============================================
   تصميم الموقع الرئيسي
   ============================================ */

/* ================ أساسيات ================ */
:root {
    --primary-green: #00ff88;
    --dark-green: #00cc6a;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-green: #00ff88;
    --blue-glass: rgba(0, 150, 255, 0.3);
    --blue-border: rgba(0, 150, 255, 0.5);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================ الخلفية ================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-green);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #00cc6a;
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: #00ff88;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ================ تأثير الزجاج ================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ================ زر الإغلاق الأزرق ================ */
.close-btn-blue {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.close-btn-blue:hover {
    background: rgba(0, 150, 255, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

/* ================ الهيدر ================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-green);
}

.nav-desktop {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
}

.user-btn {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--primary-green);
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-green);
    color: var(--black);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* ================ شريط البحث ================ */
.search-bar {
    position: fixed;
    top: 70px;
    width: 90%;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 1rem;
    border-radius: 30px;
}

.search-bar input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    text-align: right;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* ================ نافذة الإشعارات ================ */
.notifications-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 380px;
    max-height: 500px;
    z-index: 1500;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.notifications-header h3 {
    color: var(--primary-green);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item.unread {
    background: rgba(0, 255, 136, 0.1);
    border-right: 3px solid var(--primary-green);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.notification-content h4 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.mark-all-read {
    margin: 0.5rem;
    padding: 0.7rem;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--primary-green);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.mark-all-read:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ================ المحتوى الرئيسي ================ */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 70px);
    padding-bottom: 80px;
}

/* ================ البانر ================ */
.hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-content {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

/* ================ الأقسام ================ */
.categories,
.products-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.15);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ================ المنتجات ================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
    position: relative;
    overflow: hidden;
}

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

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.add-to-cart {
    width: 100%;
    margin-top: 0.8rem;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--primary-green);
    color: var(--black);
}

.view-product-btn {
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid var(--blue-border);
    color: white;
    padding: 0.6rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.view-product-btn:hover {
    background: rgba(0, 150, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
}

/* ================ نافذة تفاصيل المنتج ================ */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    z-index: 2500;
    border-radius: 25px;
    overflow-y: auto;
    padding: 1.5rem;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.product-modal-header h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.product-modal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-images {
    text-align: center;
}

.main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.product-details h3,
.product-sizes h3,
.product-colors h3,
.product-video h3,
.product-reviews h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-weight: bold;
}

.sizes-container {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.size-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.size-circle:hover,
.size-circle.selected {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.colors-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-circle:hover,
.color-circle.selected {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.5rem;
}

.review-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: bold;
}

.review-rating {
    color: #ffd700;
}

.write-review {
    margin-top: 1.5rem;
}

.review-stars-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.review-stars-input button {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.review-stars-input button:hover {
    transform: scale(1.2);
}

.review-input textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    resize: vertical;
}

.submit-review {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.add-to-cart-modal {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.back-to-home {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid var(--blue-border);
    color: white;
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-to-home:hover {
    background: rgba(0, 150, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.3);
}

/* ================ نوافذ المصادقة ================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding: 2rem;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.auth-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-logo span {
    color: var(--primary-green);
}

.auth-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    border-radius: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-green);
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.terms-agreement input[type="checkbox"] {
    accent-color: var(--primary-green);
}

.terms-agreement a {
    color: var(--primary-green);
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ================ سلة المشتريات ================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

.cart-item-icon {
    font-size: 2rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 0.3rem;
}

.cart-item-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-item-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: rgba(0, 150, 255, 0.5);
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

/* ================ صفحة إتمام الطلب ================ */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    z-index: 2500;
    border-radius: 25px;
    overflow-y: auto;
    padding: 2rem;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.checkout-header h2 {
    color: var(--primary-green);
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-products h3,
.checkout-customer h3,
.payment-methods h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.checkout-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.checkout-product-icon {
    font-size: 2rem;
}

.checkout-product-details {
    flex: 1;
}

.checkout-product-details h4 {
    margin-bottom: 0.3rem;
}

.checkout-product-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.payment-option {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.payment-option input[type="radio"] {
    margin-left: 0.5rem;
    accent-color: var(--primary-green);
}

.payment-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-details,
.wallet-details,
.instapay-details {
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.bank-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.bank-info h4 {
    color: var(--primary-green);
    margin: 0.5rem 0;
}

.file-upload {
    padding: 0.5rem !important;
}

.wallet-providers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.wallet-btn {
    padding: 0.7rem 1rem;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-btn:hover {
    background: rgba(0, 150, 255, 0.5);
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.complete-order-btn,
.cancel-order-btn,
.back-home-btn {
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.complete-order-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
}

.cancel-order-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
}

.back-home-btn {
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    margin: 1rem auto 0;
}

/* ================ نافذة نجاح الطلب ================ */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.success-content {
    text-align: center;
    padding: 3rem;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.order-code {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    border: 2px solid var(--primary-green);
}

.order-code h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* ================ الهيدر السفلي للموبايل ================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem;
    z-index: 1000;
}

.bottom-nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    position: relative;
    transition: all 0.3s;
}

.bottom-nav-item i {
    font-size: 1.5rem;
}

.bottom-nav-item.active {
    color: var(--primary-green);
}

/* ================ نافذة المحادثة ================ */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    border-radius: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    background: rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 15px;
    word-wrap: break-word;
}

.message.admin {
    background: rgba(0, 255, 136, 0.2);
    align-self: flex-start;
}

.message.user {
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    outline: none;
}

.chat-input button {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* ================ صفحة البروفايل ================ */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding: 2rem;
}

.profile-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.profile-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #00cc6a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: var(--black);
    border: 3px solid var(--primary-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.profile-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-code {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-code span {
    color: var(--primary-green);
    font-weight: bold;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-profile-btn,
.save-profile-btn,
.logout-btn {
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.edit-profile-btn {
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
}

.edit-profile-btn:hover {
    background: rgba(0, 150, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 150, 255, 0.4);
}

.save-profile-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    width: 100%;
}

.profile-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-stat {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.referral-link-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.referral-link-box input {
    flex: 1;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
}

.referral-link-box button {
    width: 40px;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.orders-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.order-stat:hover {
    transform: translateY(-3px);
}

.active-orders {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.completed-orders {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

.cancelled-orders {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
}

.order-stat i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.order-count {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.order-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.logout-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* ================ Breadcrumb ================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* ================ ميزات ================ */
.features-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ================ رسائل الخطأ والنجاح ================ */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.welcome-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

/* ================ الاستجابة للموبايل ================ */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .main-content {
        padding-bottom: 100px;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card i {
        font-size: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        height: 150px;
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .chat-widget {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    .header {
        padding: 0.8rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .notifications-panel {
        width: 90%;
        left: 5%;
        top: 70px;
    }
    
    .product-modal {
        width: 95%;
        padding: 1rem;
    }
    
    .main-image {
        height: 250px;
        font-size: 5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
    
    .checkout-modal {
        width: 95%;
        padding: 1rem;
    }
    
    .profile-container {
        padding: 1.5rem;
    }
    
    .orders-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart,
    .view-product-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}