/* ============================================
   الميزات الاحترافية المميزة - متجر Update Aden
   Premium Professional Features
   ============================================ */

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float-whatsapp 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes float-whatsapp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float .tooltip-text {
    position: absolute;
    right: 70px;
    background: #5D4037;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
}

/* ===== Premium Product Quick View ===== */
.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(93, 64, 55, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    border: none;
}

.product-card-hybrid:hover .quick-view-btn {
    opacity: 1;
}

.quick-view-btn:hover {
    background: rgba(22, 163, 74, 0.95);
    transform: translate(-50%, -50%) scale(1.05);
}

/* ===== Stock Progress Bar ===== */
.stock-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.stock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5D4037, #8D6E63, #6D4C41);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.stock-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: stock-shine 2s infinite;
}

@keyframes stock-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== Premium Countdown Timer ===== */
.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.countdown-item {
    background: linear-gradient(135deg, #5D4037, #4E342E);
    color: white;
    padding: 12px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: 24px;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #5D4037, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 11px;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===== Product Comparison Feature ===== */
.compare-checkbox {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #5D4037;
    z-index: 5;
}

.compare-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #5D4037, #4E342E);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.compare-floating-bar.active {
    transform: translateY(0);
}

.compare-floating-bar .compare-count {
    background: linear-gradient(135deg, #5D4037, #4E342E);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 10px;
}

/* ===== Premium Newsletter Section ===== */
.newsletter-premium {
    background: linear-gradient(135deg, #5D4037 0%, #4E342E 100%);
    padding: 60px 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.newsletter-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
}

.newsletter-premium::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.25);
}

.newsletter-btn {
    background: white;
    color: #5D4037;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #5D4037, #8D6E63, #6D4C41);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== Premium Category Banner ===== */
.category-banner {
    position: relative;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
}

.category-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5D4037, #8D6E63);
    opacity: 0.9;
}

.category-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.category-banner-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-banner-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
}

/* ===== Image Zoom on Hover ===== */
.product-image-zoom {
    overflow: hidden;
    border-radius: 16px;
}

.product-image-zoom img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-image-zoom:hover img {
    transform: scale(1.2) rotate(2deg);
}

/* ===== Premium Filters Sidebar ===== */
.filters-sidebar {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: var(--primary-50);
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #5D4037;
    cursor: pointer;
}

.filter-option label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
}

.filter-option .count {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== Price Range Slider ===== */
.price-range-slider {
    margin: 20px 0;
}

.price-range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, #5D4037, #4E342E);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #5D4037;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ===== Recently Viewed Products ===== */
.recently-viewed {
    background: linear-gradient(135deg, #f9fafb, white);
    border-radius: 20px;
    padding: 30px 20px;
    margin: 40px 0;
}

.recently-viewed-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, #5D4037, #8D6E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Social Proof Notification ===== */
.social-proof {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    z-index: 1000;
    animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 4.5s;
    border-left: 4px solid #5D4037;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5D4037, #4E342E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-left: 12px;
}

.social-proof-text {
    flex: 1;
}

.social-proof-name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 14px;
}

.social-proof-action {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 2px;
}

.social-proof-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    .newsletter-premium {
        padding: 40px 20px;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .category-banner {
        height: 200px;
    }

    .category-banner-title {
        font-size: 32px;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .social-proof {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}





