/**
 * CONTACT SELLER STYLES
 * Styles for the contact seller modal and quick contact button
 */

/* ===================================
   CONTACT SELLER MODAL
   =================================== */
.contact-seller-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-seller-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.contact-seller-modal.active .contact-modal-content {
    transform: scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.contact-modal-close i {
    font-size: 1.2rem;
    color: #333;
}

.contact-modal-body {
    padding: 2.5rem;
}

/* Modal Header */
.contact-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-modal-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-modal-header h2 {
    font-size: 1.75rem;
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Product Info Section */
.contact-product-info {
    margin-bottom: 2rem;
}

.contact-product-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.contact-product-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.contact-product-details h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.contact-product-sku {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Cart Summary */
.contact-cart-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.contact-cart-summary h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-cart-items-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.contact-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

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

.contact-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.contact-item-details h5 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-item-details p {
    font-size: 0.85rem;
    color: #6c757d;
}

.contact-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Contact Options Grid */
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-option-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.contact-detail {
    font-size: 0.85rem;
    color: #6c757d;
}

.contact-arrow {
    color: #667eea;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-option-btn:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Footer */
.contact-modal-footer {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.contact-modal-footer p {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-modal-footer i {
    color: #667eea;
}

/* ===================================
   QUICK CONTACT FAB
   =================================== */
.quick-contact-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.quick-contact-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.quick-contact-fab i {
    font-size: 1.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.6);
    }
}

/* ===================================
   CONTACT BUTTONS IN PRODUCT CARDS
   =================================== */
.contact-seller-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-seller-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.contact-seller-btn i {
    font-size: 1rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .contact-modal-body {
        padding: 1.5rem;
    }

    .contact-modal-header h2 {
        font-size: 1.5rem;
    }

    .contact-modal-header i {
        font-size: 2.5rem;
    }

    .contact-options-grid {
        grid-template-columns: 1fr;
    }

    .contact-product-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-product-card img {
        width: 100px;
        height: 100px;
    }

    .quick-contact-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .quick-contact-fab i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .contact-modal-body {
        padding: 1.25rem;
    }

    .contact-option-btn {
        padding: 0.875rem 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.3rem;
    }

    .contact-label {
        font-size: 0.95rem;
    }

    .contact-detail {
        font-size: 0.8rem;
    }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
.contact-modal-content::-webkit-scrollbar,
.contact-cart-items-list::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track,
.contact-cart-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.contact-modal-content::-webkit-scrollbar-thumb,
.contact-cart-items-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover,
.contact-cart-items-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-option-btn {
    animation: slideInUp 0.3s ease forwards;
}

.contact-option-btn:nth-child(1) { animation-delay: 0.05s; }
.contact-option-btn:nth-child(2) { animation-delay: 0.1s; }
.contact-option-btn:nth-child(3) { animation-delay: 0.15s; }
.contact-option-btn:nth-child(4) { animation-delay: 0.2s; }
.contact-option-btn:nth-child(5) { animation-delay: 0.25s; }
.contact-option-btn:nth-child(6) { animation-delay: 0.3s; }
.contact-option-btn:nth-child(7) { animation-delay: 0.35s; }
.contact-option-btn:nth-child(8) { animation-delay: 0.4s; }
