@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* Variables - Professional Design System */
:root {
    --header-h: 90px;
    --bg-color: #FAFAFA;
    --text-color: #2D3436;
    --primary: #12463F; /* Deep Forest Green (Luxury Heritage) */
    --primary-light: #1B635A;
    --accent-color: #B8762C; /* Royal Gold/Bronze */
    --accent-hover: #a1631f;
    --secondary-bg: #F8F9FA;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* Border Radius - Modern & Soft */
    --br-xl: 24px;
    --br-lg: 16px;
    --br-md: 12px;
    --br-sm: 8px;
    
    /* Shadows - Professional Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(18, 70, 63, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-focus: 0 15px 35px rgba(184, 118, 44, 0.15);

    /* Spacing System */
    --gap-xs: 8px;
    --gap-sm: 16px;
    --gap-md: 24px;
    --gap-lg: 40px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* General Reset & Layout */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Scrollbar - Premium Brand Look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Entrance Animations - Professional Stagger */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

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

.page-wrapper {
    min-height: 60vh;
}

.main-content {
    min-height: 60vh;
    padding: var(--gap-md) 0;
}

body.drawer-open,
body.search-open {
    overflow: hidden !important;
}

/* ==================== SALLA/SHEELF INSPIRED PRODUCT CARD ==================== */
.product-card-pro {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--br-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-pro:hover {
    box-shadow: var(--shadow-focus);
    transform: translateY(-8px);
    z-index: 5;
}

/* Ensure CSS Grid pages look correct */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px;
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 5px;
    }

    .product-card-pro {
        margin: 0;
    }

    .pro-info {
        padding: 10px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .product-card-pro .pro-title {
        font-size: 13px;
        height: 38px;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .product-card-pro .price-current {
        font-size: 16px;
    }

    .product-card-pro .btn-add-cart {
        padding: 8px 5px;
        font-size: 11px;
    }
} /* End Mobile Media Query */

/* ==================== FOOTER ARCHITECTURE ==================== */
.footer-curve { position: relative; line-height: 0; background-color: transparent; margin-bottom: -1px; }
.footer-curve svg { display: block; width: 100%; height: 120px; }
.main-footer { background-color: #F2F0EB !important; color: #5D4037; }
.footer-logo img { max-height: 100px; width: auto; }
.footer-section p { color: #5D4037; }
.footer-section h4 { color: #5D4037; }

.social-links { display: flex; gap: 12px; font-size: 20px; }
.social-links a { 
    width: 40px; height: 40px; 
    display: inline-flex; align-items: center; justify-content: center; 
    border-radius: 50%; transition: 0.3s; 
    background: rgba(93, 64, 55, 0.05);
    color: #5D4037;
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

.footer-legal-info { text-align: center; margin: 30px 0 20px; padding: 20px 0; border-top: 1px solid rgba(93, 64, 55, 0.15); }
.legal-badges-wrap { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.legal-badge-item { display: flex; align-items: center; gap: 10px; }
.legal-badge-img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }
.legal-info-text { text-align: right; }
.legal-info-label { font-size: 11px; color: #777; margin-bottom: 0; font-weight: 500; }
.legal-info-value { font-size: 14px; font-weight: 700; color: #333; direction: ltr; font-family: 'Inter', sans-serif; letter-spacing: 0.3px; }

.footer-bottom { justify-content: center; }
.copyright { text-align: center; }
/* Policy & Informational Pages */
.policy-content h3 { color: var(--primary); font-weight: bold; margin-top: 30px; }
.policy-content h3.text-danger { color: #e74c3c !important; }
.policy-content .lead { font-weight: bold; color: #333; }
.policy-content hr { margin: 40px 0; border-top: 1px solid #eee; }

.contact-box { background: #fdfaf6; padding: 40px; border-radius: 16px; margin-top: 40px; text-align: center; border: 2px dashed #e2e8f0; }
.contact-box h3 { margin-top: 0; }
.contact-box .whatsapp-btn-large { 
    background: #25D366; color: white; 
    padding: 12px 35px; border-radius: 50px; 
    text-decoration: none; font-weight: bold; font-size: 18px; 
    display: inline-flex; align-items: center; gap: 10px;
    transition: 0.3s;
    border: none;
}
.contact-box .whatsapp-btn-large:hover { background: #128c7e; transform: scale(1.05); color: white; }
.contact-box p.small { margin-top: 15px; font-size: 14px; color: #777; }
.contact-box p.tiny { font-size: 13px; color: #999; }

/* Comparison Table Architecture */
.comparison-wrap { padding: 60px 0; }
.comparison-title { margin-bottom: 40px; text-align: center; }
.comparison-empty { padding: 80px 40px; text-align: center; }
.comparison-empty-icon { font-size: 80px; margin-bottom: 20px; }

.comparison-table-container { overflow-x: auto; border-radius: 12px; border: 1px solid #eee; }
.comparison-table { width: 100%; border-collapse: collapse; background: white; }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.comparison-table th { background: #fdfaf6; font-weight: 800; min-width: 250px; }
.comparison-table .sticky-col { position: sticky; right: 0; background: #fdfaf6; z-index: 10; text-align: right; width: 150px; font-weight: bold; border-left: 1px solid #eee; }

.remove-compare-btn { 
    position: absolute; top: -10px; left: -10px; 
    width: 32px; height: 32px; border-radius: 50%; 
    background: #ff4757; color: white; border: none; 
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
    transition: 0.3s;
}
.remove-compare-btn:hover { background: #ff6b81; transform: scale(1.1); }

.comparison-img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; border: 1px solid #eee; }
.comparison-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.comparison-old-price { text-decoration: line-through; color: #aaa; font-size: 0.9rem; margin-right: 5px; }
.comparison-rating { color: #f1c40f; font-size: 1.1rem; }
.comparison-rating-count { font-size: 0.85rem; color: #999; }
.comparison-stock-in { color: #27ae60; font-weight: bold; }
.comparison-stock-out { color: #e74c3c; font-weight: bold; }

/* Testimonials & Social Proof */
.testimonials-hero { background: var(--gradient-primary); padding: 80px 0; color: white; text-align: center; }
.testimonials-hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.testimonials-hero p { font-size: 1.1rem; opacity: 0.95; }

.overall-rating-card { max-width: 600px; margin: 0 auto; padding: 40px; text-align: center; border-radius: 20px; }
.overall-rating-icon { font-size: 80px; margin-bottom: 16px; }
.overall-rating-score { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }

.testimonial-card { padding: 30px; position: relative; border-radius: 16px; border: 1px solid #f0f0f0; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.testimonial-quote-icon { position: absolute; top: 20px; left: 20px; font-size: 60px; opacity: 0.05; color: var(--primary); font-family: serif; line-height: 1; }
.testimonial-stars { margin-bottom: 16px; color: #f1c40f; font-size: 1.25rem; }
.testimonial-title { font-size: 1.1rem; margin-bottom: 12px; font-weight: bold; color: var(--text); }
.testimonial-text { line-height: 1.8; color: #4b5563; margin-bottom: 24px; flex-grow: 1; }

.testimonial-author { display: flex; gap: 15px; align-items: center; padding-top: 20px; border-top: 1px solid #f0f0f0; margin-top: auto; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.testimonial-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.testimonial-author-name { font-weight: bold; margin-bottom: 2px; font-size: 1rem; color: var(--text); }
.testimonial-date { font-size: 0.85rem; color: #9ca3af; margin: 0; }

.testimonial-featured-badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, #d4af37, #f1c40f); color: white; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; box-shadow: 0 2px 6px rgba(241, 196, 15, 0.3); }

.testimonials-cta { background: var(--gradient-primary); color: white; text-align: center; padding: 80px 0; }
.testimonials-cta h2 { margin-bottom: 20px; font-weight: 800; }
/* Contact Page Architecture */
.info-card-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}
.info-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary);
}
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(139, 90, 43, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.icon-box.whatsapp {
    background: #dcf8c6;
    color: #25d366;
}
.contact-form-card {
    border: 1px solid #eee;
}
.modern-input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}
.map-container iframe { border: 0; display: block; filter: grayscale(0.2); }

/* FAQ Architecture */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.active { border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    text-align: right;
    cursor: pointer;
    transition: 0.3s;
}
.faq-question:hover { background: rgba(139, 90, 43, 0.03); }
.faq-question i { color: var(--primary); transition: 0.3s; font-size: 14px; }
.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p {
    padding: 0 25px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

.faq-contact-card {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: #fdfaf6;
    border-radius: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f0f0f0;
}
.faq-contact-card h3 { font-size: 24px; margin-bottom: 10px; font-weight: 800; }
.faq-contact-card p { color: #6b7280; margin-bottom: 25px; }
.faq-contact-grid { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp-modern { background: #25D366; color: white; border: none; }
.btn-whatsapp-modern:hover { background: #1da851; color: white; transform: translateY(-2px); }

/* About Page Architecture */
.about-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.about-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.about-hero p { font-size: 1.25rem; opacity: 0.9; }

.about-grid-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; font-weight: 800; }
.about-text p { font-size: 1.1rem; line-height: 1.9; color: #4b5563; margin-bottom: 20px; }
.about-img-wrap img { width: 100%; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.values-grid-modern { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-card-modern {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
    border: 1px solid #f8f9fa;
}
.value-card-modern:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }
.value-icon-box {
    width: 80px; height: 80px;
    background: rgba(139, 90, 43, 0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.value-icon-box i { font-size: 32px; color: var(--primary); }
.value-card-modern h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; color: var(--text); }
.value-card-modern p { font-size: 0.95rem; color: #6b7280; line-height: 1.6; }

.about-cta-modern { background: var(--gradient-primary); color: white; text-align: center; padding: 100px 0; border-radius: 30px; margin: 60px 0; }
.about-cta-modern h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; }
.about-cta-modern p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 35px; }
.about-cta-modern .btn-light { background: white; color: var(--primary); font-weight: bold; border: none; }
.about-cta-modern .btn-light:hover { background: #f8f9fa; transform: scale(1.05); }

@media (max-width: 1024px) {
    .about-grid-modern { grid-template-columns: 1fr; gap: 40px; }
    .values-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
/* Policy & Legal Page Architecture */
.policy-page-wrapper { background-color: #f8fafc; min-height: 80vh; padding-bottom: 80px; }
.policy-container { max-width: 900px; margin: 0 auto; }
.policy-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}
.policy-content h2, .policy-content h3 {
    color: var(--primary);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}
.policy-content h2 { font-size: 1.75rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; }
.policy-content h3 { font-size: 1.4rem; }
.policy-content p { font-size: 1.05rem; line-height: 1.8; color: #4b5563; margin-bottom: 20px; }

.policy-alert {
    background: #fdfaf6;
    border-right: 4px solid var(--primary);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
}
.policy-alert h4 { color: var(--primary); font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.policy-alert p { margin-bottom: 0; color: #6b7280; font-size: 0.95rem; }

.policy-list-checked { list-style: none; padding: 0; margin: 20px 0; }
.policy-list-checked li {
    position: relative;
    padding-right: 35px;
    margin-bottom: 15px;
    color: #4b5563;
    line-height: 1.6;
}
.policy-list-checked li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary);
    font-size: 14px;
    background: rgba(139, 90, 43, 0.1);
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.policy-footer-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #e2e8f0;
}
.policy-footer-cta p { font-weight: 700; color: var(--text); margin-bottom: 20px; }

/* Account & Dashboard UI Architecture */
.account-summary-card {
    background: linear-gradient(135deg, var(--primary), #d4a66e);
    color: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    border: none;
    position: relative;
    overflow: hidden;
}
.account-summary-card .display-4 { font-weight: 900; letter-spacing: -1px; }

.referral-box-modern {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}
.referral-box-modern:hover { border-color: var(--primary); background: #fff; }
.user-referral-code { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: 2px; }

.circle-icon-box {
    width: 80px; height: 80px;
    background: rgba(139, 90, 43, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.table-premium { border-collapse: separate; border-spacing: 0 8px; }
.table-premium tr { box-shadow: 0 2px 10px rgba(0,0,0,0.02); border-radius: 10px; overflow: hidden; }
.table-premium td { background: #fff; padding: 1rem; border: none; }
.table-premium td:first-child { border-radius: 0 10px 10px 0; }
.table-premium td:last-child { border-radius: 10px 0 0 10px; }

/* V5 Utilities */
.u-letter-spacing-1 { letter-spacing: 1px; }
.u-opacity-75 { opacity: 0.75; }
.u-opacity-25 { opacity: 0.25; }

    /* Utility Classes */
    .font-en { font-family: 'Inter', system-ui, -apple-system, sans-serif !important; }
    .letter-spacing-1 { letter-spacing: 1px !important; }
    .fw-black { font-weight: 900 !important; }
    .mw-600 { max-width: 600px !important; }
    .text-muted-extra { color: #cbd5e1 !important; }
    .hover-lift { transition: transform 0.2s ease-in-out; }
    .hover-lift:hover { transform: translateY(-3px); }

    /* Mini Cart Styles from JS Cleanup */
    .mini-cart-item { transition: background 0.2s; border-radius: 8px; padding: 5px; }
    .mini-cart-item:hover { background: #f8f9fa; }
    .mini-cart-img { object-fit: cover; }
    .mini-cart-name { color: var(--text); }
    .mini-cart-qty { font-size: 10px; color: #aaa; }
    .mini-cart-price { color: var(--primary); }

    @media (max-width: 768px) {
        .display-1 { font-size: 5rem; }
    }

    .product-card-pro .btn-add-cart i {
        font-size: 13px;
        margin-left: 3px;
    }

    .product-card-pro .btn-quick-view {
        width: 34px;
        height: 34px;
    }

    .product-card-pro .wishlist-btn-pro {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .product-card-pro .badge-pro {
        font-size: 9px;
        padding: 3px 6px;
    }

.pro-img-box {
    position: relative;
    padding-top: 100%;
    /* Square Aspect Ratio */
    background: #f9f9f9;
    overflow: hidden;
}

.pro-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-pro:hover .pro-img-box img {
    transform: scale(1.05);
}

/* Badges */
.pro-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge-pro {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.badge-pro.sale {
    background: #FF3D00;
    color: white;
}

.badge-pro.new {
    background: #00C853;
    color: white;
}

/* Wishlist Button */
.wishlist-btn-pro {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: 35px;
    /* Slightly larger touch target */
    height: 35px;
    background: #ffffff;
    /* pure white */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    /* Subtle border */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    z-index: 10;
    /* High Z-index to ensure clickability */
    color: #999;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

.wishlist-btn-pro:hover {
    background: #FF3D00;
    color: white;
    transform: scale(1.1);
}

.wishlist-btn-pro:active {
    transform: scale(0.95);
}

.wishlist-btn-pro i {
    pointer-events: none;
    /* Let button handle click */
    line-height: 1;
}

/* Info Section - Premium Uniform Layout */
.pro-info {
    padding: var(--gap-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.pro-category {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
    height: 42px; /* Fixed height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--transition-fast);
}

.pro-title a {
    color: var(--text-color);
    text-decoration: none;
}

.pro-title a:hover {
    color: var(--primary);
}

.pro-price-box {
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

/* Badges - Shell/Salla Style Premium */
.pro-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-pro {
    padding: 4px 10px;
    border-radius: var(--br-sm);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge-pro.sale {
    background: linear-gradient(135deg, #FF3D00, #FF6E40);
    color: #fff;
}

.badge-pro.new {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

/* Product/Checkout Page Mobile Sticky Overlap Fix */
body.product-page-active .mobile-bottom-nav,
body.checkout-page-active .mobile-bottom-nav {
    display: none !important; /* Hide global nav to allow sticky action bars */
}

.product-details-section {
    padding-top: var(--gap-md);
}

.main-gallery-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==================== SALLA PRO SECTION FOOTER ==================== */
.section-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.btn-view-all-salla {
    padding: 8px 24px;
    color: #555;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-view-all-salla:hover {
    border-color: #333;
    color: #333;
    background: #fcfcfc;
}

.control-line {
    flex-grow: 1;
    height: 1px;
    background: #e0e0e0;
}

.slider-nav-salla {
    display: flex;
    gap: 10px;
}

.nav-btn-salla {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Rounded Square */
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.nav-btn-salla:hover {
    border-color: #333;
    color: #333;
    background: #fcfcfc;
}

.nav-btn-salla i {
    font-size: 14px;
}

.nav-btn-salla.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
    border-color: #eee;
}

/* Action Buttons */
.pro-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex-grow: 1;
    background: #235d64;
    /* Salla Teal */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    /* Rounded Corners like Salla */
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add-cart:hover {
    background: #1a464b;
    transform: translateY(-2px);
}

.btn-quick-view {
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-quick-view:hover {
    border-color: #235d64;
    color: #235d64;
}



/* ==================== GLOBAL HEADER ==================== */
.main-header {
    background-color: #FFF;
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    transition: var(--transition-smooth);
    direction: rtl;
}

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

.header-right, .header-left {
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    text-align: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
    transition: var(--transition-fast);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-color);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-md);
}

.icon-btn:hover {
    background-color: rgba(184, 118, 44, 0.05);
    color: var(--accent-color);
}

/* Lazy Loading & Skeletons */
.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.lazy-image.in-view {
    opacity: 1;
}

img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s infinite;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

/* Header Sections */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex: 1;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Logo */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Icons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    /* Slightly smaller for elegance */
    color: #333;
    padding: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 0.7;
    color: #000;
}

/* Hamburger Icon */
.hamburger-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* Cart Badge */
.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #B8762C;
    /* Gold badge */
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Footer Styles */

.main-footer {
    background-color: #F2F0EB;
    /* Light Beige Background */
    color: #5D4037;
    /* Dark Brown Text */
    padding: 0 0 30px;
    /* Remove top padding to connect with wave */
    font-size: 14px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.main-footer h4 {
    color: #3E2723;
    /* Very Dark Brown */
    font-weight: 700;
    margin-bottom: 20px;
}

.main-footer .footer-logo img {
    /* Logo original color for light background */
    opacity: 1;
}

.main-footer p {
    color: #5D4037;
}

.footer-links a {
    color: #5D4037;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #3E2723;
    padding-right: 5px;
}

.contact-list li {
    color: #5D4037;
}

.contact-list i {
    color: #5D4037;
}

.social-links a {
    background: rgba(93, 64, 55, 0.15);
    color: #5D4037;
}

.social-links a:hover {
    background: #5D4037;
    color: #F2F0EB;
}

/* Footer Balanced Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: right;
}

/* Responsive Footer Layout */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
        display: flex;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    .payment-methods-modern {
        text-align: center !important;
        justify-content: center;
        display: flex;
        width: 100%;
        margin-top: 20px !important;
    }
}

/* Shop Layout & Sidebar Styles */
.sidebar-widget {
    background: var(--bg-white, #fff);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px var(--shadow, rgba(0, 0, 0, 0.05));
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border, #eee);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main, #555);
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
}

.category-list a:hover,
.category-list a.active {
    background: var(--bg-light, #f9f9f9);
    color: var(--primary, #B8762C);
    font-weight: bold;
}

.filter-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border, #eee);
    border-radius: 8px;
    font-family: inherit;
    margin-top: 8px;
    background: #fff;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark, #333);
    display: block;
    margin-bottom: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
    font-size: 14px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #B8762C);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shop-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark, #333);
    margin: 0;
}

.shop-count {
    color: var(--text-light, #777);
    background: #eee;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white, #fff);
    border-radius: 15px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 60px;
    color: var(--text-muted, #ccc);
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    color: var(--text-light, #777);
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}



@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Laptop Specific (1024px - 1366px) */
@media (max-width: 1366px) {
    .container {
        padding: 0 30px;
        /* More breathing room */
    }

    .footer-grid {
        gap: 20px;
        /* Tighter gap for laptops */
    }
}

.footer-section h4 {
    color: #3D2914;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #5D4037;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #5D4037;
    justify-content: flex-start;
}

.contact-list i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(93, 64, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5D4037;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(93, 64, 55, 0.2);
}

.social-links a:hover {
    background: #5D4037;
    color: #F2F0EB;
    border-color: #5D4037;
}

/* Clean Newsletter Form (Matches Screenshot) */
.newsletter-form-modern {
    margin-top: 20px;
    width: 100%;
}

.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    /* Flatter radius */
    padding: 0;
    border: 1px solid #ddd;
}

.input-group-modern input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    outline: none;
    text-align: right;
}

.input-group-modern button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    border-right: 1px solid #eee;
    /* Fixed for RTL: right border as separator */
}

.input-group-modern button i {
    transform: scaleX(-1);
    /* Flip icon for RTL (send left) */
}

.input-group-modern button:hover {
    color: var(--accent-color);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #333;
}

.footer-bottom {
    border-top: 1px solid #E6E4DD;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Buttons — see definitive block at line ~4042 */

/* Responsive adjustments */
@media (max-width: 992px) {

    /* Tablet/Small Laptop: 2 Columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }

    .header-left,
    .header-right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 70px;
    }

    .header-container {
        justify-content: space-between;
        position: relative;
    }

    /* Mobile Header Layout: Pure Flexbox - No Absolute Overlap */
    .header-right {
        order: 1;
        /* Right */
        flex: 0 0 auto;
        /* Do not grow */
        gap: 10px;
    }

    .header-center {
        order: 2;
        /* Center */
        position: relative !important;
        /* Force relative to preventing overlapping */
        left: auto !important;
        transform: none !important;
        flex: 1;
        /* Take available space */
        justify-content: center;
        width: auto;
    }

    .header-left {
        order: 3;
        /* Left */
        flex: 0 0 auto;
        /* Do not grow */
        gap: 15px;
    }
}

/* ==================== SHOP SIDEBAR CSS (Added Request) ==================== */
.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: #555;
    transition: 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: #f4f4f4;
    color: var(--accent-color);
}

.filter-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    margin-top: 8px;
}

/* Removed Redundant Shop Section */

.shop-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
}

.shop-count {
    color: #888;
    font-size: 16px;
    margin-right: 10px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-products i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    /* Mobile Footer: 1 Column Center */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .footer-section:last-child {
        border-bottom: none;
    }
}

/* Mobile Specifics */

.close-search {
    left: 20px;
    top: 20px;
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Animations */
.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out backwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card Styling */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.card-img-wrap img:hover {
    transform: scale(1.05);
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Colors */
.text-primary {
    color: var(--accent-color) !important;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Price Block Design */
.product-price-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-row.current {
    font-weight: 800;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-row.current .currency-symbol {
    font-size: 12px;
    font-weight: normal;
}

.price-row.old {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.old-price {
    text-decoration: line-through;
    text-decoration-color: #999;
}

.discount-badge {
    background-color: #FFEBEE;
    color: #D32F2F;
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Home Slider & Hero — see definitive block at line ~4284 */

/* Features */
/* Features - Enhanced */
.feature-box {
    background: #ffffff;
    /* Explicit white */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Subtle initial shadow */
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(184, 118, 44, 0.15);
    /* Accent color shadow on hover */
    border-color: #e0e0e0;
}

.feature-box .icon-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
    color: var(--accent-color) !important;
    transition: all 0.4s ease;
}

.feature-box:hover .icon-wrapper {
    background: var(--accent-color);
    color: white !important;
    transform: rotateY(180deg);
}

.feature-box:hover .icon-wrapper i {
    transform: rotateY(-180deg);
    /* Keep icon facing forward */
    display: inline-block;
}

/* Banners */
.banner-card img {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.banner-card:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    transition: background 0.3s;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* Horizontal Product Slider (Salla Pro Style) */
.products-slider {
    padding: 0 5px;
    overflow: hidden;
}

.products-slider .swiper {
    padding-bottom: 20px;
    padding-left: 5px;
    padding-right: 5px;
}

.products-slider .swiper-slide {
    height: auto;
    width: auto;
}

/* Custom Navigation Buttons (Product Slider) */
.swiper-button-next.custom-nav,
.swiper-button-prev.custom-nav {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--accent-color) !important;
    top: 50%;
    transform: translateY(-50%);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    z-index: 10;
    margin-top: 0;
}

.swiper-button-next.custom-nav:hover,
.swiper-button-prev.custom-nav:hover {
    background: var(--accent-color);
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.products-section .product-card {
    height: 100%;
}

/* Swiper Minimal Customization */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* =========================================
   🛒 Salla Pro Product Page Design (New)
   ========================================= */

/* Breadcrumbs */
.breadcrumbs-salla {
    padding: 20px 0;
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
}

.breadcrumbs-salla a {
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumbs-salla a:hover {
    color: var(--accent-color);
}

/* Page Layout */
.product-page-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
    padding: 30px;
    border: 1px solid #f9f9f9;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Gallery wider */
    gap: 50px;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Gallery (Sticky) */
.p-gallery-sticky {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-img-box {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fcfcfc;
    position: relative;
    cursor: zoom-in;
}

.thumb-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: 0.2s;
}

.thumb-item.active {
    border-color: var(--accent-color);
    opacity: 1;
}

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

/* Product Info Styles */
.product-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.category-tag {
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 20px;
    color: #666;
}

.current-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color);
}

.old-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

/* Action Buttons */
.btn-add-cart-lg {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-add-cart-lg:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.3);
}

.qty-control-modern {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 120px;
}

.qty-control-modern button {
    background: #f9f9f9;
    border: none;
    width: 35px;
    height: 40px;
    color: #555;
}

.qty-control-modern button:hover {
    background: #eee;
}

.qty-control-modern input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: bold;
    color: #333;
    background: white;
    height: 40px;
}

/* Tabs & Reviews */
.modern-tabs .nav-link {
    color: #555;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    padding: 15px 20px;
}

.modern-tabs .nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: none;
}

.modern-tab-content {
    background: #fff;
    padding: 30px;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    margin-left: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

.badge-offer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.wishlist-btn-floating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.wishlist-btn-floating:hover {
    color: #e91e63;
    transform: scale(1.1);
}

.promos-box {
    background: #fcfcfc;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}

.promo-item:last-child {
    margin-bottom: 0;
}



.thumb-item.active {
    border-color: var(--accent-color);
    opacity: 1;
}

.badge-offer {
    position: absolute;
    background: #ff4757;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

/* Details Info */
.p-details-info .title {
    color: #333;
    font-weight: 800;
    margin-bottom: 15px;
}

.price-lg {
    font-size: 28px;
    font-weight: 800;
}

.vat-note {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* Quantity & Cart */
.action-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 55px;
    width: 140px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 20px;
    width: 40px;
    height: 100%;
    cursor: pointer;
    color: #555;
}

.qty-val {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.add-cart-lg {
    flex: 1;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(184, 118, 44, 0.3);
}

.add-cart-lg:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Tabs */
.salla-tabs {
    border-top: 1px solid #f5f5f5;
}

.s-tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.s-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Related Products (Card) */
.section-header-salla {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-salla {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    position: relative;
    display: inline-block;
}

.product-card-salla {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

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

.product-card-salla .p-image {
    display: block;
    padding-bottom: 100%;
    /* Square */
    position: relative;
    overflow: hidden;
}

.product-card-salla .p-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card-salla:hover .p-image img {
    transform: scale(1.05);
}

.product-card-salla .p-info {
    padding: 15px;
}

.product-card-salla .p-title {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    height: 40px;
    /* 2 lines max */
    overflow: hidden;
}

.product-card-salla .p-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-salla .p-price {
    font-weight: bold;
    color: var(--primary);
}

.product-card-salla .p-add-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.product-card-salla .p-add-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* =========================================
   🌟 Salla Premium Banners (Celia++)
   Hero slider — see definitive block at HERO SLIDER REFINEMENTS
   ========================================= */

/* Glassmorphism Navigation */
.swiper-button-next,
.swiper-button-prev {
    width: 55px !important;
    height: 55px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff !important;
    transition: 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Pagination Dots */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    background: var(--accent-color);
}

/* Premium Banners */
.banner-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 280px;
    /* Fixed height for consistency */
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.banner-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 30px;
}

.banner-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: 0.4s;
}

.banner-card p {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    transition-delay: 0.1s;
}

.banner-card:hover h3 {
    transform: translateY(0);
}

.banner-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slider-content h1 {
        font-size: 2rem;
    }

    .slider-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slider-content .btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    /* Hide arrows on mobile */
    .banner-card {
        height: 200px;
    }
}

/* ==================== CART PAGE STYLES ==================== */
/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Cart Items List */
.cart-items-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: var(--text-light);
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Product Info */
.c-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.c-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}

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

.c-name h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.c-name span {
    font-size: 12px;
    color: #999;
}

/* Controls */
.c-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: fit-content;
}

.c-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-main);
}

.c-qty input {
    width: 35px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 14px;
}

.c-price,
.c-total {
    font-weight: 700;
    color: var(--text-dark);
}

.c-remove {
    color: #e74c3c;
    background: #fff5f5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.c-remove:hover {
    background: #e74c3c;
    color: white;
}

/* Summary Box */
.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.coupon-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.coupon-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.coupon-box button {
    padding: 10px 20px;
    background: var(--bg-body);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        position: relative;
        padding-bottom: 60px;
        /* Space for controls */
    }

    .c-product {
        margin-bottom: 10px;
    }

    .c-qty {
        position: absolute;
        bottom: 15px;
        left: 20px;
    }

    .c-total {
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }

    .c-price {
        display: none;
        /* Hide unit price on mobile, total is enough */
    }

    .c-remove {
        position: absolute;
        top: 20px;
        left: 20px;
    }
}

/* End of modern.css */

/* ==================================================
   Quantum Search System (Glassmorphism & Immersive)
   ================================================== */
/* Cleanup successful */

.close-search-q:hover {
    transform: rotate(90deg);
    background: var(--accent-color);
    color: white;
}

.search-q-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.search-input-wrapper form {
    display: flex;
    align-items: center;
}

.search-main-icon {
    margin: 0 25px;
    color: var(--accent-color);
    font-size: 20px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    background: transparent;
}

.search-input-wrapper input:focus {
    outline: none;
}

.search-q-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 5px;
    transition: 0.3s;
}

.search-q-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* Live Results Area */
.live-results-container {
    margin-top: 30px;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.q-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: 0.2s;
    animation: slideUp 0.3s ease forwards;
}

.q-result-item:hover {
    background: white;
    transform: translateX(-5px);
}

.q-res-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
}

.q-res-info {
    flex: 1;
}

.q-res-name {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 2px;
}

.q-res-price {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 800;
}

.q-res-old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

/* Hints Section */
.search-hints {
    margin-top: 40px;
    text-align: center;
}

.hint-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.hint-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hint-tags a {
    display: block;
    padding: 8px 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 30px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.hint-tags a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--primary-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .search-q-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .search-input-wrapper input {
        font-size: 16px;
    }

    .search-input-wrapper {
        padding: 4px;
    }

    .search-q-submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ==================== SKELETON LOADERS ==================== */
/* استخدم بدل spinners لتحميل أفضل */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 15px;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
    /* Square */
    border-radius: 12px;
}

.skeleton-button {
    height: 44px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid #f2f2f2;
}

.skeleton-card .skeleton-image {
    margin-bottom: 15px;
}

/* Product Card Skeleton */
.skeleton-product {
    display: flex;
    flex-direction: column;
}

.skeleton-product .skeleton-image {
    margin-bottom: 15px;
}

.skeleton-product .skeleton-info {
    padding: 10px;
}

/* ==================== TOOLTIPS ==================== */
/* تلميحات توضيحية للأزرار والعناصر */

[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    background: #333;
    color: white;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip Positions */
[data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% + 10px);
}

[data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 2px);
    border-top-color: transparent;
    border-bottom-color: #333;
}

[data-tooltip-pos="right"]::before {
    bottom: auto;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

[data-tooltip-pos="left"]::before {
    bottom: auto;
    right: calc(100% + 10px);
    left: auto;
    top: 50%;
    transform: translateY(-50%);
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
/* تحسينات الوصول للمستخدمين */

/* Focus States - واضحة للـ keyboard navigation */
:focus-visible {
    outline: 3px solid var(--accent-color, #B8762C);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color, #B8762C);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(184, 118, 44, 0.2);
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .skeleton {
        animation: none;
        background: #f0f0f0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .product-card-pro,
    .salla-card,
    .cart-box,
    .cart-summary {
        border: 2px solid #333;
    }

    .btn-add-cart,
    .primary-btn,
    .s-btn {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Preparation (للمستقبل) */
@media (prefers-color-scheme: dark) {
    /* يمكن تفعيله لاحقاً */
}

/* ===========================================
   FIXES & MERGED STYLES (Restored)
   =========================================== */

/* 1. Global RTL & Layout Fixes */
html,
body {
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}

/* Ensure container max-widths match Bootstrap to prevent full-width stretching */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 2. Hero Slider (Missing from app.css) */
.hero-slider {
    position: relative;
    overflow: hidden;
    direction: ltr;
    /* Swiper often needs LTR context for calc, but slides are RTL */
}

.hero-slider .swiper-slide {
    direction: rtl;
    /* Restore RTL for content */
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(101, 67, 33, 0.7), rgba(101, 67, 33, 0.3));
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Removed conflicting search modal CSS */

/* Removed redundant search content blocks */

.search-close {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) rotate(90deg);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 4. Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    margin: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

/* 5. Mobile Responsive Fixes */
@media (max-width: 768px) {
    .slider-content h1 {
        font-size: 2rem;
    }

    .hero-slide {
        height: 350px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ==================== ACCOUNT PAGES STYLES ==================== */

/* Color Utilities Overrides */
.bg-primary-subtle {
    background-color: rgba(139, 90, 43, 0.1) !important;
}

.text-primary {
    color: var(--primary, #B8762C) !important;
}

.bg-success-subtle {
    background-color: #d1e7dd !important;
}

.text-success {
    color: #0f5132 !important;
}

.bg-warning-subtle {
    background-color: #fff3cd !important;
}

.text-warning {
    color: #664d03 !important;
}

.bg-danger-subtle {
    background-color: #f8d7da !important;
}

.text-danger {
    color: #842029 !important;
}

.bg-info-subtle {
    background-color: #cff4fc !important;
}

.text-info {
    color: #055160 !important;
}

/* Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Pagination Override */
.pagination .page-link {
    border: none;
    color: #333;
    background: transparent;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary, #B8762C);
    color: #fff;
    box-shadow: 0 4px 10px rgba(139, 90, 43, 0.3);
}

/* Forms */
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary, #B8762C);
}

.input-group-text {
    border-color: #dee2e6;
}

/* Helpers */
.width-20 {
    width: 20px;
    text-align: center;
}

.op-5 {
    opacity: 0.5;
}

.object-fit-cover {
    object-fit: cover;
}

/* Sidebar Hover Effects */
.hover-bg-light:hover {
    background-color: #f8f9fa;
    color: var(--primary, #B8762C) !important;
}

.hover-bg-danger-light:hover {
    background-color: #fef2f2;
}


/* Shop Page Styles */
.shop-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.sidebar-widget {
    background: var(--bg-white, #fff);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px var(--shadow, rgba(0, 0, 0, 0.05));
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border, #eee);
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main, #555);
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
    font-weight: 500;
}

.category-list a:hover,
.category-list a.active {
    background: var(--bg-light, #f9f9f9);
    color: var(--primary, #B8762C);
    font-weight: bold;
}

.filter-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border, #eee);
    border-radius: 8px;
    font-family: inherit;
    margin-top: 8px;
    background-color: var(--bg-white, #fff);
    cursor: pointer;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark, #333);
    display: block;
    margin-bottom: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #B8762C);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border, #eee);
    padding-bottom: 15px;
}

.shop-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark, #333);
    margin: 0;
}

.shop-count {
    color: var(--text-light, #777);
    font-size: 0.95rem;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white, #fff);
    border-radius: 15px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.1));
    width: 100%;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 60px;
    color: var(--text-muted, #ccc);
    margin-bottom: 20px;
    display: block;
}

.no-products p {
    font-size: 18px;
    color: var(--text-light, #777);
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==================== FLOATING ACTION BUTTONS ==================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    width: 100%;
    left: 0;
    padding: 0 20px;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.float-side-left, .float-side-right {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures perfect vertical centering between the stack elements */
    gap: 16px; /* Optimal gap */
    pointer-events: none;
}

.float-side-left .float-btn, .float-side-right .float-btn {
    pointer-events: auto;
}

.float-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    z-index: 100;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
    color: white !important;
}

.whatsapp-btn {
    background-color: #25D366 !important;
}

.whatsapp-btn:hover {
    background-color: #128C7E !important;
}

.scroll-btn {
    background-color: var(--primary-color, #B8762C) !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.scroll-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-btn:hover {
    background-color: #a1631f;
}

/* Adjust layout for mobile so they don't overlap with chat */
@media (max-width: 576px) {
    .floating-buttons {
        bottom: 15px;
        padding: 0 15px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ==================== GLOBAL NOTIFICATIONS (ALERTS) ==================== */
.global-notifications {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.alert-modern {
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 5px solid #ccc;
    animation: slideDownIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.alert-modern.success {
    border-right-color: #00C853;
}

.alert-modern.error {
    border-right-color: #FF3D00;
}

.alert-modern.warning {
    border-right-color: #FFD600;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.success .alert-icon {
    color: #00C853;
}

.error .alert-icon {
    color: #FF3D00;
}

.warning .alert-icon {
    color: #FFD600;
}

.alert-content {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.alert-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s;
}

.alert-close:hover {
    color: #333;
}

/* ==================== PREMIUM ANIMATION SYSTEM ==================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.in-view {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-modern.fade-out {
    animation: fadeOutUp 0.4s ease forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsiveness */
@media (max-width: 576px) {
    .global-notifications {
        top: 20px;
        width: 95%;
    }
}

/* ==================== HERO SLIDER REFINEMENTS ==================== */
.hero-slider,
.hero-slider .swiper {
    height: 600px;
    position: relative;
    background: radial-gradient(circle at center, #1a1510 0%, #000 100%);
    overflow: hidden;
}

@media (max-width: 768px) {

    .hero-slider,
    .hero-slider .swiper {
        height: 400px;
    }
}

.slider-item {
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.slider-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
}

[dir="ltr"] .slider-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.slider-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .slider-content h1 {
        font-size: 2.2rem;
    }

    .slider-content p {
        font-size: 1rem;
    }

    .slider-overlay {
        background: rgba(0, 0, 0, 0.4);
        /* Brighter on mobile for readability */
    }
}

/* Scoped Swiper Controls for Hero */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ==================== LIVE CHAT UNIFIED SYSTEM ==================== */
.chat-toggle-btn {
    background-color: #B8762C !important;
    position: relative !important;
}

.chat-toggle-btn:hover {
    background-color: #9c6223 !important;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    inset-inline-end: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    z-index: 1000;
    /* Higher than floating buttons */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatPopup 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .chat-window {
    transform-origin: bottom left;
}

.chat-header {
    background: #B8762C;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    background: white;
}

.notification-badge {
    position: absolute;
    top: -2px;
    inset-inline-start: -2px;
    min-width: 18px;
    height: 18px;
    background: #FF3D00;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    padding: 0 4px;
}

@keyframes chatPopup {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Chat Messages */
.msg-row {
    display: flex;
    margin-bottom: 12px;
}

.msg-row.sent {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.msg-row.sent .msg-bubble {
    background: #B8762C;
    color: white;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(184, 118, 44, 0.2);
}

.msg-row.received .msg-bubble {
    background: white;
    border: 1px solid #eef0f2;
    color: #333;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.msg-time {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.6;
}

.msg-row.sent .msg-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.msg-row.received .msg-time {
    text-align: left;
}

/* Mobile Adjustments for Chat */
@media (max-width: 576px) {
    .modern-chat-widget { bottom: 15px; right: 15px; }
    .chat-window { width: 300px; bottom: 75px; right: 0; height: 60vh; z-index: 1001; }
    .float-btn { width: 50px; height: 50px; font-size: 24px; }
    .floating-buttons { z-index: 999; }
}

/* Pending State for Optimistic UI */
.msg-row.sent.pending .msg-bubble {
    opacity: 0.7;
}

.msg-row.sent.pending .msg-bubble::after {
    content: "\f110";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-inline-start: 8px;
    animation: fa-spin 2s linear infinite;
    font-size: 10px;
}

/* ==================== QUANTUM SEARCH MODAL (CLEANED) ==================== */
.close-search-q {
    position: absolute;
    top: -60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-search-q:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.search-box-quantum {
    width: 100%;
}

.search-q-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 22px 65px 22px 30px;
    font-size: 22px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.search-input-wrapper input:focus {
    border-color: var(--accent-color, #B8762C);
    background: #fff;
    box-shadow: 0 15px 50px rgba(184, 118, 44, 0.15);
}

.search-main-icon {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
}

.search-q-submit {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    background: var(--accent-color, #B8762C);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-q-submit:hover {
    background: #8b551c;
}

.live-results-container {
    text-align: right;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.search-hints {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hint-label {
    font-size: 14px;
    color: #777;
}

.hint-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    margin-left: 5px;
}

.hint-tags a:hover {
    background: var(--accent-color, #B8762C);
    color: white;
}

/* V5 Final Cleanup Utilities */
.u-sticky-top-20 { position: sticky; top: 20px; }
.u-z-index-1 { z-index: 1; }
.u-z-index-5 { z-index: 5; }
.u-z-index-10 { z-index: 10; }
.h-2px { height: 2px !important; }
.u-pe-none { pointer-events: none; }
.u-icon-80-gray { font-size: 80px; color: #e0e0e0; }
.u-icon-60-dynamic { font-size: 60px; margin-bottom: 16px; }
.u-gap-8 { gap: 8px !important; }
.u-gap-15 { gap: 15px !important; }
.u-gap-20 { gap: 20px !important; }
.u-h-250 { height: 250px !important; }
.u-h-350 { height: 350px !important; }
.u-icon-sq-70 { width: 70px; height: 70px; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.header-user-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-color); font-size: 15px; font-weight: 700; color: #333; }
.u-min-h-60vh { min-height: 60vh !important; }
.u-min-h-80vh { min-height: 80vh !important; }
.u-min-h-80vh { min-height: 80vh !important; }
.u-pt-20 { padding-top: 20px !important; }
.u-text-8 { font-size: 8px !important; }
.u-border-dashed { border-style: dashed !important; }
.u-max-w-200 { max-width: 200px !important; }
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-icon-sq-35 { width: 35px; height: 35px; }
.u-cursor-pointer { cursor: pointer; }
.home-wrapper { padding-top: 0 !important; }
.standard-wrapper { min-height: 60vh; padding-top: 20px; }
.u-w-100 { width: 100px !important; }
.u-h-120 { height: 120px !important; }
.u-resize-none { resize: none !important; }
.u-delay-400 { animation-delay: 0.4s !important; }
.u-translate-y-18 { transform: translateY(18px) !important; }
.u-h-4 { height: 4px !important; }
.u-top-15 { top: 15px !important; }
.u-left-15 { left: 15px !important; }
.u-bg-gradient-gold { background: linear-gradient(45deg, var(--primary), #d4a66e) !important; }

/* Custom Rating Input (Interactive) */
.custom-rating-input label { color: #dee2e6; cursor: pointer; transition: color 0.2s; }
.custom-rating-input input:checked ~ label,
.custom-rating-input label:hover,
.custom-rating-input label:hover ~ label { color: #ffc107 !important; }

/* 
 * Tracking Page Premium Styles (Merged from tracking.css)
 */
.track-result-container { max-width: 900px; margin: 40px auto; padding: 0 15px; }
.track-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 30px; margin-bottom: 25px; border: 1px solid rgba(0,0,0,0.03); }
.status-badge { display: inline-block; padding: 8px 20px; border-radius: 50px; color: #fff; font-weight: 600; font-size: 14px; margin-top: 10px; text-transform: uppercase; }
.timeline-v2 { position: relative; padding-right: 40px; }
.timeline-v2::before { content: ''; position: absolute; right: 15px; top: 5px; bottom: 5px; width: 2px; background: #f1f5f9; }
.timeline-v2-item { position: relative; margin-bottom: 30px; }
.timeline-v2-item:last-child { margin-bottom: 0; }
.timeline-v2-dot { position: absolute; right: -32px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 0 0 4px #f1f5f9; z-index: 1; transition: all 0.3s ease; }
.timeline-v2-item.active .timeline-v2-dot { background: #d4a373; box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.2); }
.timeline-v2-content { background: #fafafa; padding: 15px 20px; border-radius: 12px; border: 1px solid #f1f5f9; }
.timeline-v2-item.active .timeline-v2-content { background: #fff; border-color: rgba(212, 163, 115, 0.1); box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.timeline-v2-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.timeline-v2-title { font-weight: 700; color: #1a1a1a; margin: 0; font-size: 16px; }
.timeline-v2-date { font-size: 12px; color: #94a3b8; font-family: inherit; }
.timeline-v2-note { font-size: 13px; color: #64748b; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.product-item:last-child { border-bottom: none; }
.product-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: #f8fafc; }
@media (max-width: 768px) { .track-result-container { margin: 20px auto; } }

/* Chat Widget Modernization */
.chat-widget-open { bottom: 90px; right: 30px; }
.chat-avatar-sm { width: 35px; height: 35px; }
.chat-body-fixed { height: 350px; background-color: #f8f9fa; }
.chat-send-btn { width: 38px; height: 38px; }

/* Checkout & Success UI */
.checkout-redeem-points { 
    margin-bottom: 20px; 
    border: 1px solid #e0ac00; 
    background: #fffdf5; 
    padding: 15px; 
    border-radius: 12px;
}
.checkout-redeem-label { display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
.checkout-redeem-checkbox { width: 18px; height: 18px; accent-color: #e0ac00; }
.checkout-redeem-title { font-size: 13px; font-weight: bold; color: #856404; }
.checkout-redeem-subtitle { font-size: 11px; color: #9c7c1a; }

.status-badge-dynamic { 
    display: inline-block; 
    padding: 10px 25px; 
    border-radius: 50px; 
    color: white; 
    font-weight: 700; 
    margin-top: 15px;
}

/* Standalone Pages (Newsletter, Tracker) */
.standalone-centered-wrap { padding: 100px 0; text-align: center; background-color: #f8fafc; min-height: 80vh; }
.standalone-card { 
    max-width: 500px; 
    margin: 0 auto; 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}
.standalone-icon-large { font-size: 60px; color: #777; margin-bottom: 20px; }
.standalone-title { color: #333; font-size: 24px; font-weight: 800; margin-bottom: 15px; }

/* Policy Header Fixes */
.policy-card .policy-content .policy-sub-header {
    color: var(--primary); 
    font-weight: 800; 
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 12px; 
    margin-bottom: 25px;
    margin-top: 50px;
}
.policy-footer-summary { background: #f8fafc; border-radius: 12px; padding: 25px; margin-top: 40px; border: 1px solid #eef2f6; }
.policy-footer-summary h4 { color: var(--primary); font-weight: 800; margin-bottom: 15px; }

/* Product Card Fixes */
.pro-card-category-tag { max-width: 100%; font-size: 11px; color: #999; margin-bottom: 5px; }
.pro-card-img-fixed-height { height: 250px; overflow: hidden; background-color: #fff; }
.pro-card-img-contain { object-fit: contain; width: 100%; height: 100%; transition: transform 0.5s ease; }

/* 
 * ==========================================
 * PRODUCT DETAILS & GALLERY
 * ==========================================
 */
.product-gallery-wrapper { width: 100%; max-width: 600px; margin: 0 auto; }
.main-gallery-slider { height: 500px; position: relative; }
.main-gallery-img { width: 100%; height: 100%; object-fit: contain; }
.thumbs-gallery-slider { margin-top: 15px; padding: 5px 0; }
.thumbs-gallery-slider .swiper-slide { 
    width: 80px !important; 
    height: 80px !important; 
    opacity: 0.6; 
    transition: all 0.3s ease; 
    border: 2px solid transparent;
}
.thumbs-gallery-slider .thumb-container { width: 100%; height: 100%; }
.thumbs-gallery-slider img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-gallery-slider .swiper-slide-thumb-active { 
    opacity: 1; 
    border-color: var(--primary) !important; 
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.2);
}

.badge-offer-luxury {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    background: #dc3545; color: white; padding: 6px 15px;
    border-radius: 50px; font-weight: 800; font-size: 13px;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.custom-nav { 
    width: 35px !important; height: 35px !important; 
    background: rgba(255,255,255,0.9) !important; 
    border-radius: 50% !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    color: #333 !important;
}
.custom-nav::after { font-size: 14px !important; font-weight: 900; }

.image-zoom-container { overflow: hidden; cursor: crosshair; }
.zoom-indicator-pro { 
    position: absolute; bottom: 20px; left: 20px; 
    background: rgba(255,255,255,0.8); 
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; pointer-events: none; color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .main-gallery-slider { height: 350px; }
    .thumbs-gallery-slider .swiper-slide { width: 60px !important; height: 60px !important; }
}

/* 
 * ==========================================
 * CHECKOUT & FLOW COMPONENTS
 * ==========================================
 */
.checkout-breadcrumb { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }

.salla-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.3s;
}

.step-card.active { border-color: var(--primary); box-shadow: 0 5px 20px rgba(139, 90, 43, 0.1); }

.card-head {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: white;
    border: none;
    border-bottom: 1px solid #f9f9f9;
    width: 100%;
    text-align: inherit;
    font-family: inherit;
}

.step-num {
    width: 30px; height: 30px;
    background: #f0f0f0;
    color: #999;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-card.active .step-num { background: var(--primary); color: white; }
.card-head h3 { margin: 0; font-size: 16px; flex-grow: 1; }
.toggle-icon { color: #ccc; transition: 0.3s; }
.step-card.active .toggle-icon { transform: rotate(180deg); color: var(--primary); }

.card-body-collapsible {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.step-card.active .card-body-collapsible { padding: 20px; max-height: 2000px; opacity: 1; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
.address-box {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    background: white;
}
.address-box:hover { border-color: #ddd; }
.address-box input { display: none; }
.address-box:has(input:checked) { border-color: var(--primary); background: #fdf5ec; }

.addr-content { display: flex; gap: 15px; align-items: flex-start; }
.addr-content.center { align-items: center; justify-content: center; flex-direction: column; min-height: 80px; color: var(--primary); }
.address-box:has(input:checked) .addr-check { opacity: 1; }

.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.s-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; transition: 0.3s; }
.s-input:focus { border-color: var(--primary); outline: none; }

.s-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.primary-btn { background: var(--primary); color: white; width: 100%; font-size: 16px; padding: 15px; }
.primary-btn:hover { background: #6d4621; }

.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.pay-opt {
    border: 2px solid #eee;
    border-radius: 10px;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
}
.pay-opt:has(input:checked) { border-color: var(--primary); background: #fdf5ec; }

.rajhi-card-pro {
    background: linear-gradient(135deg, #152345 0%, #2a4175 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(21, 35, 69, 0.3);
    margin-bottom: 20px;
}
.rajhi-card-pro::before { content:''; position:absolute; top:-50px; right:-50px; width:150px; height:150px; background:rgba(255,255,255,0.1); border-radius:50%; }

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.upload-box:hover { border-color: var(--primary); background: #fffcf8; }

.mini-items { max-height: 250px; overflow-y: auto; margin-bottom: 20px; padding-right: 5px; }

.coupon-smart { margin-bottom: 25px; }
.c-input { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 5px; background: white; }
.c-input input { border: none; flex: 1; padding: 8px; outline: none; }
.c-input button { background: #333; color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; }

.mobile-pay-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 15px 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 999; justify-content: space-between; align-items: center; }

@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .mobile-pay-bar { display: flex; }
    .payment-grid { grid-template-columns: 1fr 1fr; }
}

/* 
 * ==========================================
 * SUCCESS PAGE & ANIMATIONS
 * ==========================================
 */
.u-hover-scale { transition: transform 0.2s; }
.u-hover-scale:hover { transform: scale(1.05); }
.u-transition-width { transition: width 1s ease-in-out !important; }
.u-timeline-step { transition: all 0.5s ease; }
.u-bg-opacity-10 { --bs-bg-opacity: 0.1 !important; }
.u-h-2 { height: 2px !important; }

/* 
 * ==========================================
 * FINAL CLEANUP UTILITIES
 * ==========================================
 */
.u-icon-sq-40 { width: 40px; height: 40px; }
.u-min-w-50 { min-width: 50%; }
.u-min-w-140 { min-width: 140px; }
.u-min-w-40 { min-width: 40px; }
.u-text-10 { font-size: 10px; }
.u-grid-dynamic { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.u-max-h-250 { max-height: 250px; }
.u-object-cover { object-fit: cover; }
.u-icon-sq-100 { width: 100px; height: 100px; }
.u-icon-sq-12 { width: 12px; height: 12px; }
.u-border-opacity-25 { border-color: rgba(0,0,0,0.25); }
.u-bg-opacity-25 { background-color: rgba(0,0,0,0.25); }
.u-icon-sq-48 { width: 48px; height: 48px; }

/* 
 * ==========================================
 * CART PAGE COMPONENTS
 * ==========================================
 */
.empty-cart-icon { font-size: 100px; color: #e8e8e8; }
.cart-box { background: #fff; border-radius: 16px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.cart-header { display: none; background: linear-gradient(135deg, #f8f9fa, #fff); padding: 16px 20px; font-weight: 700; color: #555; border-bottom: 1px solid #eee; }
@media (min-width: 768px) { .cart-header { display: flex; align-items: center; } }
.cart-col-product { flex: 2; }
.cart-col-qty { flex: 1; text-align: center; }
.cart-col-total { flex: 1; text-align: center; }
.cart-col-action { width: 50px; }

.cart-item {
    display: grid; padding: 20px; border-bottom: 1px solid #f0f0f0; position: relative; transition: background 0.2s;
    grid-template-columns: 80px 1fr;
    grid-template-areas: "image details" "image qty" "image total"; gap: 10px;
}
.cart-item:hover { background: #fafafa; }
.cart-item:last-child { border-bottom: none; }
@media (min-width: 768px) { .cart-item { display: flex; align-items: center; grid-template-columns: none; grid-template-areas: none; } }

.cart-item-image { grid-area: image; }
.cart-item-image img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 1px solid #eee; }
@media (min-width: 768px) { .cart-item-image { margin-left: 20px; } .cart-item-image img { width: 70px; height: 70px; } }

.cart-item-details { grid-area: details; flex: 2; }
.cart-item-name { margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 44px; }
.cart-item-name a { color: #333; text-decoration: none; font-weight: 600; }
.cart-item-name a:hover { color: var(--accent-color, #b8860b); }
.cart-item-price { color: #888; font-size: 13px; margin-top: 5px; }

.cart-item-qty { grid-area: qty; display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .cart-item-qty { flex: 1; justify-content: center; } }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #555; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 12px; }
.qty-btn:hover { background: var(--accent-color, #b8860b); color: white; border-color: var(--accent-color, #b8860b); }
.qty-value { min-width: 30px; text-align: center; font-weight: 700; font-size: 16px; }

.cart-item-total { grid-area: total; font-weight: 700; color: var(--accent-color, #b8860b); font-size: 16px; }
@media (min-width: 768px) { .cart-item-total { flex: 1; text-align: center; } }

.cart-item-remove { position: absolute; top: 15px; left: 15px; border: none; background: none; color: #ccc; cursor: pointer; transition: all 0.2s; padding: 5px; }
.cart-item-remove:hover { color: #e74c3c; transform: scale(1.2); }
@media (min-width: 768px) { .cart-item-remove { position: static; width: 50px; text-align: center; } }

.cart-summary { background: #fff; padding: 25px; border-radius: 16px; border: 1px solid #eee; box-shadow: 0 5px 20px rgba(0,0,0,0.03); position: sticky; top: 100px; }
.summary-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f5f5f5; color: #333; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #555; font-size: 14px; }
.summary-row span:last-child { font-weight: 600; }
.summary-divider { height: 1px; background: linear-gradient(to right, transparent, #ddd, transparent); margin: 20px 0; }
.summary-total { font-size: 20px !important; font-weight: 800 !important; color: #222 !important; }
.summary-total span:last-child { color: var(--accent-color, #b8860b); }

.coupon-section { margin: 15px 0; }
.coupon-form { display: flex; gap: 10px; }
.coupon-form input { flex: 1; border-radius: 8px; }
.coupon-form button { border-radius: 8px; padding: 0 20px; }

.free-shipping-hint { background: linear-gradient(135deg, #fff3cd, #ffeeba); color: #856404; padding: 12px 15px; border-radius: 10px; font-size: 13px; margin-bottom: 15px; text-align: center; }
.checkout-btn { border-radius: 12px; padding: 15px; font-size: 18px; font-weight: 700; margin-top: 15px; background: linear-gradient(135deg, var(--accent-color, #b8860b), #8B6914); border: none; transition: transform 0.2s, box-shadow 0.2s; width: 100%; color: white; }
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(184, 134, 11, 0.3); color: white; }

.secure-badge { text-align: center; margin-top: 15px; color: #888; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.payment-methods { display: flex; justify-content: center; gap: 10px; margin-top: 15px; opacity: 0.6; }
.payment-methods img { height: 24px; width: auto; }

@media (max-width: 767px) { .cart-summary { position: static; margin-top: 20px; } .checkout-btn { font-size: 16px; padding: 12px; } }

/* ==================================================
   Quantum Search System (Glassmorphism & Immersive)
   ================================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    z-index: -10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.search-modal-inner {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

.search-modal.active .search-modal-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.close-search-q {
    position: absolute;
    top: -60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 20px; color: #333;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-search-q:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.search-box-quantum { width: 100%; }
.search-q-title { font-size: 32px; font-weight: 800; color: #333; margin-bottom: 35px; letter-spacing: -0.5px; }

.search-input-wrapper { position: relative; margin-bottom: 25px; }
.search-input-wrapper input {
    width: 100%;
    padding: 22px 65px 22px 30px;
    font-size: 22px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.search-input-wrapper input:focus {
    border-color: var(--accent-color, #B8762C);
    background: #fff;
    box-shadow: 0 15px 50px rgba(184, 118, 44, 0.15);
}

.search-main-icon { position: absolute; top: 50%; right: 25px; transform: translateY(-50%); font-size: 24px; color: #999; }

.search-live-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
}

.q-result-item {
    display: flex; align-items: center; gap: 15px; padding: 12px;
    border-radius: 12px; transition: 0.2s;
    text-decoration: none; color: inherit;
    margin-bottom: 8px;
}

.q-result-item:hover { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateX(-5px); }
.q-res-img { width: 50px; height: 50px; object-fit: cover; border-radius: 10px; }
.q-res-info { flex: 1; text-align: right; }
.q-res-name { display: block; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.q-res-price { font-size: 13px; color: var(--primary, #12463F); font-weight: 800; }
.q-res-old { text-decoration: line-through; color: #aaa; margin-left: 8px; font-weight: 400; }

/* Ajwat Bakkah - Functional Utility Classes */
.hidden { display: none !important; }

/* ==================== MODERN CHAT WIDGET (PREMIUM V2) ==================== */
.modern-chat-widget { 
    position: fixed; 
    bottom: 85px; 
    left: 25px; 
    z-index: 9999; 
    font-family: "Tajawal", sans-serif; 
}

.chat-window { 
    width: 400px; 
    height: 580px; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    display: flex; 
    flex-direction: column; 
    transition: var(--transition-smooth); 
    transform-origin: bottom left; 
    border: 1px solid rgba(255,255,255,0.3) !important; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.glass-effect { 
    background: rgba(255, 255, 255, 0.85) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
}

.chat-header { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); 
    color: white; 
    border-bottom: none; 
}

.chat-avatar-wrapper { 
    position: relative; 
    width: 40px; 
    height: 40px; 
}

.status-indicator { 
    position: absolute; 
    bottom: 1px; 
    left: 1px; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    border: 2px solid white; 
}

.status-indicator.online { 
    background: #00C853; 
    box-shadow: 0 0 5px #00C853; 
}

.text-white-meta { 
    color: rgba(255,255,255,0.7); 
    font-size: 10px; 
    font-weight: 500; 
}

.chat-body { 
    scroll-behavior: smooth; 
    padding-top: 15px !important;
}

.dynamic-messages {
    padding-top: 15px !important;
}

.chat-message { 
    margin-bottom: 12px; 
    display: flex; 
    flex-direction: column; 
    max-width: 85%; 
    animation: msgFadeIn 0.3s ease-out; 
}

.chat-message.user { align-self: flex-start; }
.chat-message.admin { align-self: flex-end; }
.chat-message.system { align-self: center; max-width: 95%; }

.message-content { 
    padding: 10px 14px; 
    border-radius: 18px; 
    font-size: 13.5px; 
    line-height: 1.5; 
    box-shadow: var(--shadow-sm); 
    position: relative; 
}

.chat-message.user .message-content { 
    background: white; 
    color: var(--text-color); 
    border-bottom-right-radius: 4px; 
    border: 1px solid rgba(0,0,0,0.05); 
}

.chat-message.admin .message-content { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); 
    color: white; 
    border-bottom-left-radius: 4px; 
}

.chat-message.system .message-content { 
    background: #fef3c7; 
    color: #92400e; 
    font-size: 11px; 
    text-align: center; 
    border-radius: 10px; 
    padding: 4px 12px; 
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.chat-message.admin .message-wrapper { align-items: flex-end; }
.chat-message.user .message-wrapper { align-items: flex-start; }

.message-meta { 
    font-size: 9px; 
    color: #bbb; 
    margin-top: 2px; 
    padding: 0 4px;
    opacity: 0.8;
}

.chat-time-tiny {
    font-size: 9px;
}

.text-muted-light {
    color: #ddd;
}

.chat-footer { 
    background: white; 
    padding-top: 15px !important; 
}

.chat-textarea { 
    resize: none !important; 
    overflow: hidden; 
    min-height: 42px; 
    max-height: 120px; 
    transition: var(--transition-fast) !important; 
}

.chat-textarea:focus { 
    background: white !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important; 
}

.chat-send-v2 { 
    width: 42px; 
    height: 42px; 
    transition: var(--transition-smooth) !important; 
}

.chat-send-v2:hover { 
    transform: scale(1.1) translateY(-2px); 
    background: var(--accent-color) !important; 
}

@keyframes msgFadeIn { 
    from { opacity: 0; transform: translateY(10px) scale(0.95); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.4s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.fs-tiny { font-size: 10px; }
.fs-xs { font-size: 12px; }
.fs-sm { font-size: 14px; }
.fs-base { font-size: 16px; }

@media (max-width: 576px) { 
    .chat-window { 
        width: calc(100vw - 30px); 
        height: 75vh; 
        bottom: 5px; 
        left: 15px; 
    } 
    .modern-chat-widget { 
        bottom: 80px; 
        left: 10px; 
    } 
}

/* Global Notification System - Professional Glassmorphism */
.global-notifications {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.alert-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--br-md, 12px);
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: alertSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.alert-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    animation: alertProgress 5s linear forwards;
}

@keyframes alertProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes alertSlideIn {
    from { transform: translateX(-110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-modern.success { color: #10b981; border-right: 4px solid #10b981; }
.alert-modern.error { color: #ef4444; border-right: 4px solid #ef4444; }
.alert-modern.warning { color: #f59e0b; border-right: 4px solid #f59e0b; }

.alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.alert-content { color: var(--text-color, #333); font-weight: 600; flex: 1; font-size: 14px; }
.alert-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    font-size: 14px;
}
.alert-close:hover { color: #333; transform: scale(1.1); }