/* Footer Custom CSS - Thiết kế đẹp và hiện đại */

/* Footer Modern - Thiết kế chính */
.footer-modern {
    background: linear-gradient(135deg, #23272b 0%, #181c20 100%);
    color: #f1f1f1;

    box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(224,60,49,0.04) 0%, rgba(224,60,49,0.01) 100%);
    pointer-events: none;
}

/* Footer Main Content */
.footer-main {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 30px;
}

/* Footer Logo */
.footer-logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

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

/* Footer Title */
.footer-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, #E03C31, #c0392b);
    border-radius: 2px;
}

/* Footer Description */
.footer-description {
    color: #b8c5d6;
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: #E03C31;
    font-size: 16px;
    margin-right: 12px;
    margin-top: 2px;
    min-width: 16px;
}

.contact-item span {
    color: #b8c5d6;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #23272b, #181c20);
    color: #E03C31;
    border: 1.5px solid #E03C31;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    background: #E03C31;
    color: #fff;
    border-color: #fff;
}

.social-link:hover::before {
    left: 100%;
}

.social-link i {
    font-size: 16px;
    z-index: 1;
    position: relative;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.2s;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    color: #E03C31;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: bold;
}

.footer-links a:hover {
    color: #E03C31;
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Quick Contact Cards */
.quick-contact {
    margin-bottom: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: none;
    backdrop-filter: none;
}

.contact-card:hover {
    background: rgba(224,60,49,0.07);
    border-color: #E03C31;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 60, 49, 0.15);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #23272b, #181c20);
    border: 1.5px solid #E03C31;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon::before {
    transform: translateX(100%);
}

.contact-icon i {
    color: #E03C31;
    font-size: 18px;
    z-index: 1;
    position: relative;
}

.contact-info h6 {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.contact-info p {
    color: #b8c5d6;
    font-size: 0.85rem;
    margin: 0;
}

/* Newsletter Section */
.newsletter {
    background: rgba(224, 60, 49, 0.08);
    border: 1px solid rgba(224, 60, 49, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.newsletter h6 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.newsletter p {
    color: #b8c5d6;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    background: transparent;
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-form .form-control::placeholder {
    color: #b8c5d6;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: #ffffff;
}

.newsletter-form .btn {
    border: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #E03C31, #c0392b);
    color: #ffffff;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateX(2px);
    box-shadow: 0 4px 15px rgba(224, 60, 49, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.18);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E03C31, transparent);
}

.copyright {
    color: #b8c5d6;
    font-size: 0.9rem;
    margin: 0;
}

.copyright strong {
    color: #E03C31;
    font-weight: 600;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-links a {
    color: #b8c5d6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    position: relative;
}

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

.footer-bottom-links a:hover {
    color: #E03C31;
}

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

/* Responsive Design - Mobile Optimized */
@media (max-width: 768px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 5px;
        display: block;
        font-size: 14px;
    }
    
    .contact-item span {
        font-size: 0.8rem;
        display: block;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 14px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 5px 0;
        display: inline-block;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        color: #E03C31;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 8px;
        width: 35px;
        height: 35px;
    }
    
    .contact-icon i {
        font-size: 14px;
    }
    
    .contact-info h6 {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    .contact-info p {
        font-size: 0.75rem;
    }
    
    .newsletter {
        padding: 15px;
        margin-top: 20px;
    }
    
    .newsletter h6 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .newsletter p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .newsletter-form .form-control {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .newsletter-form .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-bottom-links a {
        font-size: 0.75rem;
    }
    
    .copyright {
        text-align: center;
        margin-bottom: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 25px 0 15px;
    }
    
    .footer-widget {
        margin-bottom: 15px;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .contact-item {
        margin-bottom: 8px;
        padding: 6px 0;
    }
    
    .contact-item i {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .contact-item span {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .social-link i {
        font-size: 12px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 3px 0;
    }
    
    .contact-card {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }
    
    .contact-icon i {
        font-size: 12px;
    }
    
    .contact-info h6 {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }
    
    .contact-info p {
        font-size: 0.7rem;
    }
    
    .newsletter {
        padding: 12px;
        margin-top: 15px;
    }
    
    .newsletter h6 {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .newsletter p {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    .newsletter-form .form-control {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .newsletter-form .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .footer-bottom-links a {
        font-size: 0.7rem;
    }
    
    .copyright {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chỉ dùng animation cho mobile */
@media (max-width: 767.98px) {
    .footer-widget {
        animation: fadeInUp 0.6s ease-out;
    }
    .footer-widget:nth-child(2) { animation-delay: 0.1s; }
    .footer-widget:nth-child(3) { animation-delay: 0.2s; }
    .footer-widget:nth-child(4) { animation-delay: 0.3s; }
}
@media (min-width: 768px) {
    .footer-widget {
        animation: none !important;
    }
}

/* Hover Effects */
.footer-modern:hover .footer-title::after {
    width: 60px;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

/* Scroll to top button style */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E03C31, #c0392b);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(224, 60, 49, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 60, 49, 0.4);
}

.scroll-to-top i {
    font-size: 18px;
}

/* Mobile scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top i {
        font-size: 14px;
    }
}

/* Footer Mobile Minimal */
.footer-mobile {
    background: #fff;
    color: #222;
    padding: 18px 10px 10px 10px;
    font-size: 14px;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    margin-top: 10px;
}
.footer-mobile__brand {
    text-align: center;
    margin-bottom: 12px;
}
.footer-mobile__logo {
    max-width: 90px;
    margin-bottom: 6px;
}
.footer-mobile__company {
    font-weight: 600;
    margin-bottom: 2px;
}
.footer-mobile__address,
.footer-mobile__email {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}
.footer-mobile__hotline {
    display: inline-block;
    margin: 8px 0 0 0;
    background: #E03C31;
    color: #fff;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.footer-mobile__hotline i {
    margin-right: 6px;
}
.footer-mobile__zalo {
    display: inline-block;
    margin: 8px 0 0 8px;
    background: #0068ff;
    color: #fff;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.footer-mobile__zalo i {
    margin-right: 6px;
}
.footer-mobile__links {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 10px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.footer-mobile__links li {
    flex: 1;
    text-align: center;
    padding: 8px 0;
}
.footer-mobile__links a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.footer-mobile__apps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}
.footer-mobile__apps img {
    height: 32px;
}
.footer-mobile__copyright {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* Ẩn footer desktop trên mobile, ẩn footer mobile trên desktop */
@media (min-width: 768px) {
    .footer-modern { display: block !important; }
    .footer-mobile { display: none !important; }
}
@media (max-width: 767.98px) {
    .footer-modern { display: none !important; }
    .footer-mobile { display: block !important; }
}

.footer-mobile__group {
    margin: 10px 0 0 0;
}
.footer-mobile__group-title {
    font-weight: 700;
    color: #E03C31;
    font-size: 13px;
    text-transform: uppercase;
    margin: 10px 0 4px 0;
    letter-spacing: 0.5px;
    text-align: left;
}
.footer-mobile__group .footer-mobile__links {
    border: none;
    margin: 0 0 4px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-mobile__group .footer-mobile__links li {
    text-align: left;
    padding: 7px 0 7px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}
.footer-mobile__group .footer-mobile__links li:last-child {
    border-bottom: none;
}
.footer-mobile__group .footer-mobile__links a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding-left: 0;
    transition: color 0.2s;
}
.footer-mobile__group .footer-mobile__links a:hover {
    color: #E03C31;
}

/* Modal Nhận mua bán, ký gửi - Custom style */
#consignModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 0 2px;
}
#consignModal .modal-header {
    border-bottom: none;
    background: linear-gradient(90deg, #fff 80%, #f8e8e7 100%);
    border-radius: 16px 16px 0 0;
    padding: 24px 32px 10px 32px;
}
#consignModal .modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #23272b;
    letter-spacing: 0.5px;
}
#consignModal .close {
    font-size: 1.5rem;
    color: #888;
    opacity: 1;
    transition: color 0.2s;
}
#consignModal .close:hover {
    color: #E03C31;
}
#consignModal .modal-body {
    padding: 18px 32px 10px 32px;
}
#consignModal label {
    font-weight: 600;
    color: #23272b;
    margin-bottom: 4px;
    font-size: 1rem;
}
#consignModal .form-control, #consignModal select, #consignModal textarea {
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    font-size: 1rem;
    padding: 10px 14px;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}
#consignModal .form-control:focus, #consignModal select:focus, #consignModal textarea:focus {
    border-color: #E03C31;
    box-shadow: 0 0 0 2px rgba(224,60,49,0.08);
    background: #fff;
}
#consignModal .form-group {
    margin-bottom: 18px;
}
#consignModal .modal-footer {
    border-top: none;
    padding: 16px 32px 24px 32px;
    background: none;
    border-radius: 0 0 16px 16px;
    justify-content: flex-end;
}
#consignModal .btn-primary {
    background: #E03C31;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 28px;
    font-size: 1rem;
    transition: background 0.2s;
}
#consignModal .btn-primary:hover {
    background: #c0392b;
}
#consignModal .btn-secondary {
    background: #fff;
    color: #888;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 22px;
    font-size: 1rem;
    margin-right: 8px;
    transition: border 0.2s, color 0.2s;
}
#consignModal .btn-secondary:hover {
    color: #E03C31;
    border-color: #E03C31;
}
#consignModal .text-danger {
    color: #E03C31 !important;
}
@media (max-width: 576px) {
    #consignModal .modal-header, #consignModal .modal-body, #consignModal .modal-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    #consignModal .modal-title {
        font-size: 1.1rem;
    }
    #consignModal .btn-primary, #consignModal .btn-secondary {
        font-size: 0.95rem;
        padding: 9px 12px;
    }
}

#consignModal .consign-label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #23272b;
    margin-bottom: 5px;
    line-height: 1.2;
}
