﻿/* ---------- Breadcrumb ---------- */
.breadcrumb-item + .breadcrumb-item::before {
    content: " » ";
    color: #6c757d;
}

.breadcrumb-item a.custom-link {
    color: blue;
    font-weight: bold;
    font-size: 1.05rem;
}

/* ---------- Icon liên hệ góc phải ---------- */
#contact-icons {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.phone-icon,
.zalo-icon {
    background-color: #007bff;
}

.sms-icon {
    background-color: #28a745;
}

/* ---------- Popup liên hệ ---------- */
#contact-box {
    position: fixed;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    min-width: 270px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 9999;
}

    #contact-box.show {
        opacity: 1;
        pointer-events: auto;
    }

    #contact-box.slide-up {
        animation: slideUp_contact 0.3s ease-out;
    }

    #contact-box.slide-down {
        animation: slideDown_contact 0.3s ease-out;
    }

    #contact-box p {
        margin: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #contact-box a {
        color: blue;
        text-decoration: none;
        font-weight: bold;
    }

        #contact-box a:hover {
            text-decoration: underline;
        }

@keyframes slideUp_contact {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown_contact {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Link địa chỉ / liên hệ ---------- */
.address-link,
.address-link-popup {
    text-decoration: none;
    color: blue;
    cursor: pointer;
}

    .address-link:hover,
    .address-link-popup:hover {
        text-decoration: underline;
        color: blue;
    }

.icon-mobile-lg i {
    font-size: 24px;
}

/* ---------- Hiệu ứng chung ---------- */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive: Mobile (<=768px) ---------- */
@media (max-width: 768px) {
    #phoneIcon, #smsIcon {
        display: block !important;
    }

    .phone-icon, .sms-icon, .zalo-icon {
        display: flex !important;
    }

    #videoModal2 .modal-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }

    #videoModal2 video {
        max-height: 50vh !important;
    }
}

/* ---------- Responsive: Tablet/Mobile menu (<=991.98px) ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #0077b3;
        padding: 2rem 1rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out;
        z-index: 1050;
    }

        .navbar-collapse.show {
            left: 0;
        }

    .navbar-nav .nav-link {
        color: white !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #2c4c63;
    }

    .dropdown-menu {
        background-color: white;
    }

        .dropdown-menu .dropdown-item {
            color: #0077b3;
        }
}

/* ---------- Responsive: Desktop (>=768px) ---------- */
@media (min-width: 768px) {
    .phone-icon,
    .sms-icon {
        display: none !important;
    }

    .banner-carousel {
        height: auto;
    }

    .carousel-item {
        position: relative;
    }

    .banner-img {
        width: 100%;
        height: auto;
        display: block;
        vertical-align: bottom;
        object-fit: unset;
    }
}

/* ---------- Video Section ---------- */
.video-thumb2 {
    cursor: pointer;
    object-fit: contain;
    background-color: #f5f5f5;
}

.card-title2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Video Modal (custom, không dùng Bootstrap Modal) ---------- */
#videoModal2 {
    --bs-modal-width: 95vw;
}

    #videoModal2 .modal-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto !important;
    }

    #videoModal2 .modal-content {
        background: #000 !important;
        border: none !important;
    }

    #videoModal2 .modal-header {
        background: #111 !important;
        border: none !important;
    }

    #videoModal2 .modal-body {
        padding: 0 !important;
        background: #000 !important;
    }

    #videoModal2 video {
        width: 100% !important;
        height: auto !important;
        max-height: 88vh !important;
        display: block !important;
    }

/* ============================================================ */
/* FOOTER — thống nhất màu chữ: trắng mặc định, vàng khi hover   */
/* ============================================================ */
footer,
footer .text-warning,
footer .text-white,
footer h5,
footer h6,
footer span,
footer strong,
footer p,
footer li,
footer i {
    color: #ffffff !important;
}

    footer .border-warning {
        border-color: #ffffff !important;
    }

    footer .address-link {
        color: #ffffff !important;
        transition: color .2s ease;
    }

        footer .address-link:hover,
        footer .address-link:hover i,
        footer .address-link:hover strong,
        footer .address-link:hover span {
            color: #ffff00 !important;
            text-decoration: underline;
        }

.cart-preview-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 2000;
    color: #1a1a1a;
    overflow: hidden;
}

    #cartNavItem:hover .cart-preview-panel,
    .cart-preview-panel.show {
        display: block;
    }

.cart-preview-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 14px;
}

.cart-preview-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: .85rem;
}

.cart-preview-footer {
    padding: 10px 14px;
    border-top: 1px solid #ececec;
}

