/* ========================================
   Klaseka - الملف الكامل CSS (النسخة النهائية - منظمة)
   ======================================== */

:root {
    --primary: #C17F59;
    --primary-dark: #A05E3E;
    --secondary: #2F2E2E;
    --bg-light: #FDF8F5;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #6B6B6B;
    --border: #E8DCD2;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(193, 127, 89, 0.15);
    --gradient: linear-gradient(135deg, #C17F59 0%, #D4A373 100%);
    --gradient-soft: linear-gradient(135deg, #FEFAF6 0%, #FFF5ED 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* منع أي رابط <a> من الرجوع إلى اللون الأزرق الافتراضي للمتصفح
   عندما لا يُطبَّق عليه صنف مخصص لأي سبب (مثال: زر "تواصل عبر واتساب"
   أو زر البريد الإلكتروني في قسم عروض الجملة). كل زر يحدد لونه بنفسه. */
a {
    color: inherit;
    text-decoration: none;
}

body:lang(ar) { direction: rtl; text-align: right; }
body:lang(en), body:lang(tr) { direction: ltr; text-align: left; }

/* ========== الشريط العلوي الثابت ========== */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 30px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar-left { display: flex; gap: 25px; flex-wrap: wrap; }
.top-bar-left span i { margin-left: 8px; color: var(--primary); }
.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar-right a {
    color: white;
    transition: 0.3s;
    text-decoration: none;
}
.top-bar-right a:hover { color: var(--primary); }

.cart-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.cart-top:hover { background: var(--primary); }
.cart-count-top {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ========== شريط التنقل ========== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 49px;
    z-index: 1000;
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 5px;
}
.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo-text .color1 { color: var(--primary); }
.logo-text .color2 { color: var(--secondary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}
.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.lang-currency-wrapper {
    display: flex;
    gap: 8px;
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 50px;
    flex-wrap: wrap;
}
.lang-btn, .currency-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    color: var(--text-dark);
    font-size: 12px;
}
.lang-btn.active, .currency-btn.active {
    background: var(--primary);
    color: white;
}

/* حاوية أزرار العملة (تُستخدم داخل شريط اللغة وأيضاً بشكل مستقل) */
.currency-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 50px;
}

.auth-buttons { display: flex; gap: 10px; }
.auth-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 6px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
}
.auth-btn:hover {
    background: var(--primary);
    color: white;
}

.user-menu {
    position: relative;
    cursor: pointer;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 150px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px 0;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: var(--text-dark);
}
.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* ========== HERO ========== */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: 0 0 50px 50px;
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 35px; }

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 14px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
    display: inline-block;
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ========== أيقونات الأقسام ========== */
.categories-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 50px 0;
}
.category-card {
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.category-card:hover { transform: translateY(-10px); }
.category-circle {
    width: 110px;
    height: 110px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 2px solid var(--border);
}
.category-card:hover .category-circle {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.category-circle i { font-size: 50px; color: var(--primary); }
.category-card span { font-size: 1.2rem; font-weight: bold; color: var(--text-dark); }

/* ========== أقسام المنتجات (سلايدرات) ========== */
.product-slider-section { margin: 50px 0 70px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.section-header h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-header h2 i { color: var(--primary); font-size: 2rem; }
.slider-controls { display: flex; gap: 12px; }
.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}
.slider-container {
    overflow-x: hidden;
    border-radius: 25px;
    padding: 10px 0;
    position: relative;
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 25px;
    direction: ltr !important;
    will-change: transform;
}

/* ========== بطاقة المنتج ========== */
.product-card-slider {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-slider:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(193, 127, 89, 0.2);
    border-color: var(--primary);
}
.product-card-slider .image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-slider .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card-slider:hover .image-wrapper img {
    transform: scale(1.04);
}
.product-card-slider .product-name {
    font-size: 1rem;
    margin: 12px 0 4px;
    color: #1a1a2e;
    padding: 0 10px;
}
.product-card-slider .product-price {
    color: #b76e4b;
    font-weight: bold;
    font-size: 1.3rem;
}
.product-card-slider .product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
}
.product-card-slider .product-sizes {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}
.product-card-slider .product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}
.add-to-cart-btn {
    background: #b76e4b;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 40px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
    align-self: center;
}
.add-to-cart-btn:hover {
    background: #9a5a3a;
    transform: scale(1.02);
}

/* زر الإعجاب (المفضلة) على بطاقة المنتج */
.like-btn-card {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    color: #ccc;
    padding: 4px 8px;
}
.like-btn-card.liked { color: #e74c3c; }
.like-btn-card:hover { transform: scale(1.2); }

/* ========== آراء العملاء ========== */
.testimonials-section {
    background: transparent;
    padding: 60px 0;
    margin: 40px 0;
}
.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}
.testimonials-header h2 {
    font-size: 2.2rem;
    color: #4a2e22;
    margin-bottom: 10px;
}
.testimonials-header p {
    color: #b76e4b;
    font-size: 1rem;
}
.testimonials-slider-container { position: relative; }
.testimonials-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 25px;
    padding: 20px 0 30px;
    scrollbar-width: thin;
    direction: ltr !important;
}
.testimonials-scroll::-webkit-scrollbar { height: 6px; }
.testimonials-scroll::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }
.testimonials-scroll::-webkit-scrollbar-thumb { background: #b76e4b; border-radius: 10px; }
.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: white;
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.slider-nav .slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ========== قسم عروض الجملة ========== */
.wholesale-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}
.wholesale-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.wholesale-btn i { font-size: 1.2rem; }
.wholesale-btn:hover { background: var(--primary-dark); transform: scale(1.02); }
.wholesale-btn-whatsapp { background: #25D366; }
.wholesale-btn-whatsapp:hover { background: #128C7E; }

/* ========== سلة المشتريات ========== */
.cart-modal-content { max-width: 700px !important; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    gap: 15px;
    flex-wrap: wrap;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}
.cart-item-details { flex: 2; text-align: right; }
.cart-item-name { font-weight: bold; font-size: 1rem; color: var(--text-dark); }
.cart-item-price { font-size: 0.85rem; color: var(--primary); }
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 5px 10px;
    border-radius: 30px;
}
.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.cart-item-quantity button:hover { background: var(--primary-dark); }
.cart-item-quantity span { min-width: 25px; text-align: center; font-weight: bold; }
.cart-item-total { font-weight: bold; color: var(--primary); min-width: 80px; text-align: center; }
.cart-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
.cart-remove:hover { transform: scale(1.1); }
.cart-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.cart-total-label { font-size: 1.2rem; font-weight: bold; }
.cart-total-price { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.checkout-btn-cart {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.checkout-btn-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== مودالات ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 25px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}
.close-modal:hover { color: var(--primary); }
.auth-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
}
.auth-tab {
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-light);
}
.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}
.auth-form { display: none; }
.auth-form.active { display: block; }

/* نافذة السياسات (من نحن / الاستبدال / الشحن) */
.policy-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    line-height: 1.6;
}

/* ====== داخل نموذج التسجيل ====== */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}
.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    background: white;
    transition: 0.3s;
}
.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary);
    outline: none;
}
.auth-form button {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.auth-form button:hover {
    background: var(--primary-dark);
}

/* ========== أيقونة واتساب ثابتة ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.5;
    animation: pulse 1.5s infinite;
    z-index: -1;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ========== عرض الكل ========== */
.view-all-btn {
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.view-all-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== إضافة مسافة علوية للأقسام ========== */
#women-section,
#men-section,
#accessories-section,
#bags-section,
#perfumes-section,
#testimonials,
#wholesale {
    scroll-margin-top: 130px;
}
@media (max-width: 768px) {
    #women-section,
    #men-section,
    #accessories-section,
    #bags-section,
    #perfumes-section,
    #testimonials,
    #wholesale {
        scroll-margin-top: 110px;
    }
}

/* ========== الفوتر ========== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-right: 3px solid var(--primary);
    padding-right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col h3 img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}
.footer-col p, .footer-col ul {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #ddd;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover { color: var(--primary); }
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.contact-info li i {
    width: 25px;
    color: var(--primary);
}
.contact-info li a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}
.contact-info li a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* ========== التجاوب مع الشاشات الصغيرة ========== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { height: 55vh; }
    .hero-content h1 { font-size: 2rem; }
    .section-header { flex-direction: column; text-align: center; }
    .category-circle { width: 80px; height: 80px; }
    .category-circle i { font-size: 35px; }
    .testimonial-card { flex: 0 0 280px; }
    .slider-btn { width: 38px; height: 38px; font-size: 1rem; }
    .cart-item { flex-direction: column; text-align: center; }
    .cart-item-quantity { justify-content: center; }
    .footer-grid { gap: 25px; }
    .row-2 { grid-template-columns: 1fr; }
    .product-card-slider .image-wrapper {
        height: 200px;
    }
    .view-all-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .currency-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}