/* Custom Footer Styles for Hijab Store */

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-middle {
    padding: 3rem 0;
}

.footer h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer .text-muted {
    color: #6c757d !important;
    transition: color 0.3s ease;
}

.footer a.text-muted:hover {
    color: #495057 !important;
    text-decoration: none;
}

.footer .logo__image {
    transition: transform 0.3s ease;
}

.footer .logo__image:hover {
    transform: scale(1.05);
}

.footer__social-link {
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.footer__social-link:hover {
    color: #495057;
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.footer__social-link svg {
    fill: currentColor;
}

.footer-bottom {
    background-color: #e9ecef;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

.footer-bottom .text-muted {
    font-size: 0.875rem;
}

/* Mobile Footer Styles */
.footer-mobile {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-mobile__link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.footer-mobile__link:hover {
    color: #495057;
}

.footer-mobile__link span {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.footer-mobile__link svg {
    fill: currentColor;
}

.wishlist-amount {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -5px;
    right: -5px;
}

/* RTL Support */
[dir="rtl"] .footer-mobile__link {
    text-align: center;
}

[dir="rtl"] .footer h6 {
    text-align: right;
}

[dir="rtl"] .footer ul {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-middle {
        padding: 2rem 0;
    }

    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }

    .footer .col-lg-3:last-child {
        margin-bottom: 0;
    }

    /* Add bottom padding to body to account for fixed mobile footer */
    body {
        padding-bottom: 80px;
    }
}

/* Better spacing for 4-column layout */
@media (min-width: 992px) {
    .footer .col-lg-3 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

/* Animation for social links */
@keyframes socialHover {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.footer__social-link:hover {
    animation: socialHover 0.6s ease;
}

/* Elegant hover effects */
.footer a {
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #495057;
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* Remove underline effect from social links */
.footer__social-link::after {
    display: none;
}
