/**
 * Footer Styles
 * Professional E-Commerce Footer Design
 */

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    background: linear-gradient(135deg, #2C5F2D 0%, #1a3a1b 100%);
    padding: 50px 0;
    color: white;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.newsletter-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0;
    max-width: 550px;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 25px;
    font-size: 15px;
    color: #333;
}

.newsletter-form .form-control:focus {
    border-color: #D4A574;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
    background: white;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 14px 35px;
    background: linear-gradient(135deg, #D4A574, #C4A572);
    border: 2px solid #D4A574;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #C4A572, #B39562);
    transform: translateX(-3px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

/* ==========================================
   FOOTER MAIN
   ========================================== */
.main-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 60px 0 40px;
    background: #1a1a1a;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 32px;
    color: #2C5F2D;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #D4A574, transparent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #D4A574;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: #D4A574;
    font-size: 16px;
    margin-top: 3px;
    min-width: 18px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #2C5F2D, #1a3a1b);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 95, 45, 0.4);
}

/* ==========================================
   TRUST BADGES
   ========================================== */
.trust-badges {
    padding: 40px 0;
    background: #242424;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.trust-badge i {
    font-size: 36px;
    color: #D4A574;
}

.trust-badge-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.trust-badge-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================
   FOOTER BOTTOM
   ========================================== */
.footer-bottom {
    padding: 25px 0;
    background: #0f0f0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.payment-methods {
    text-align: right;
}

.payment-img {
    max-height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-img:hover {
    opacity: 1;
}

/* ==========================================
   FLOATING ACTION BUTTONS
   ========================================== */
.floating-buttons {
    position: fixed;
    z-index: 999;
}

.floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
}

/* Back to Top - LEFT SIDE */
.back-to-top {
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color), #2a7a2b);
    box-shadow: 0 5px 20px rgba(44, 95, 45, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1a3a1b, #2C5F2D);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(44, 95, 45, 0.5);
}

/* WhatsApp - RIGHT SIDE */
.whatsapp-btn {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.floating-btn i {
    font-size: 24px;
    color: white;
}

/* Tooltips */
.btn-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Back to Top Tooltip - Points LEFT */
.back-to-top .btn-tooltip {
    left: 75px;
}

.back-to-top .btn-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.85);
}

.back-to-top:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

/* WhatsApp Tooltip - Points RIGHT */
.whatsapp-btn .btn-tooltip {
    right: 75px;
}

.whatsapp-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

.whatsapp-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) and (min-width: 576px) {
    .back-to-top {
        bottom: 90px;
        bottom: calc(90px + env(safe-area-inset-bottom));
        left: 20px;
        left: calc(20px + env(safe-area-inset-left));
        width: 50px;
        height: 50px;
        z-index: 997;
    }
    
    .whatsapp-btn {
        bottom: 30px;
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: 20px;
        right: calc(20px + env(safe-area-inset-right));
        width: 56px;
        height: 56px;
        z-index: 997;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    
    .floating-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .floating-btn i {
        font-size: 24px;
    }
    
    .btn-tooltip {
        display: none;
    }
}

/* Mobile phones - optimized positioning */
@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 130px;
        bottom: calc(130px + env(safe-area-inset-bottom));
        left: 12px;
        width: 46px;
        height: 46px;
        z-index: 997;
    }
    
    .whatsapp-btn {
        bottom: 70px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        right: 12px;
        width: 54px;
        height: 54px;
        z-index: 997;
    }
    
    .floating-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .floating-btn i {
        font-size: 22px;
    }
    
    .btn-tooltip {
        display: none !important;
    }
    
    /* Ensure buttons don't block scrollable content */
    .floating-buttons {
        pointer-events: none;
    }
    
    .floating-btn {
        pointer-events: auto;
    }
}

/* Very small phones - adjusted for compact screens */
@media (max-width: 374.98px) {
    .back-to-top {
        bottom: 120px;
        bottom: calc(120px + env(safe-area-inset-bottom));
        left: 10px;
        width: 44px;
        height: 44px;
    }
    
    .whatsapp-btn {
        bottom: 65px;
        bottom: calc(65px + env(safe-area-inset-bottom));
        right: 10px;
        width: 52px;
        height: 52px;
    }
    
    .floating-btn i {
        font-size: 20px;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 35px 0;
    }
    
    .newsletter-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .newsletter-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .form-control {
        border-radius: 50px;
        width: 100%;
    }
    
    .newsletter-form .btn {
        border-radius: 50px;
        width: 100%;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-widget {
        margin-bottom: 35px;
    }
    
    .trust-badge {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .trust-badge i {
        font-size: 32px;
    }
    
    .payment-methods {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .copyright-text {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .social-links {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
