﻿.carousel-control-prev,
.carousel-control-next {
    opacity: 1; /* Luôn hiển thị rõ */
    transition: opacity 0.2s;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1; /* Giữ nguyên, không bị xám */
    }

/* Nếu muốn đổi nền khi hover */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4); /* nền tối nhẹ để dễ nhìn */
    border-radius: 50%;
    background-size: 50% 50%;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* nền đậm hơn khi hover */
}

.product-detail {
    font-family: Arial, sans-serif;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #d0021b;
    margin-bottom: 10px;
}

    .product-price .usd {
        font-size: 16px;
        font-weight: normal;
        color: #007bff;
        margin-left: 5px;
    }



.extra-info p {
    margin: 4px 0;
    font-size: 14px;
}

.extra-info strong {
    width: 160px;
    display: inline-block;
    color: #444;
}

.exchange-rate {
    background: #eef5ff;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
}

    .exchange-rate .rate {
        font-size: 18px;
        color: #d0021b;
        font-weight: bold;
    }

.cart-actions {
    margin-top: 15px;
}

.quantity {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

    .quantity input {
        width: 50px;
        text-align: center;
        margin: 0 5px;
    }

.qty-btn {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-btn-primary {
    background: #0056b3;
    color: white;
    border: none;
}

    .product-btn-primary:hover {
        background: #00408f;
    }

.product-btn-buy {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    border: none;
}

    .product-btn-buy:hover {
        opacity: 0.9;
    }


.short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.badge-warning {
    background: yellow;
    padding: 6px 10px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.extra-info strong {
    color: #243c93;
}

.thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid #ddd;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: border 0.3s;
}

    .thumbs img:hover, .thumbs img.active {
        border-color: #243c93;
    }

.thumbs .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.3s;
}

    .thumbs .thumb.active,
    .thumbs .thumb:hover {
        border-color: #243c93;
    }


.breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* đổi dấu phân cách */
    color: #666;
}

.breadcrumb a {
    color: #243c93; /* màu link thương hiệu */
    text-decoration: none;
}

    .breadcrumb a:hover {
        text-decoration: underline;
    }


/* Popup Overlay */
.quick-buy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Box */
.quick-buy-popup {
    background: white;
    max-width: 90%; /* hoặc 700px nếu muốn nhỏ hơn nữa */
    width: 90%;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    font-family: Arial, sans-serif;
    overflow-y: auto;
}

    /* Close Button */
    .quick-buy-popup .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

/* Header */
.popup-title {
    font-weight: bold;
    font-size: 18px;
    color: white;
    background: #243c93;
    padding: 10px 15px;
    border-radius: 6px;
}

/* Body Layout */
.popup-body {
    gap: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.popup-left, .popup-right {
    flex: 1 1 48%;
    margin: 5px;
    padding: 0;
}

/* Product Info */
.popup-image {
    width: 100%;
    max-width: 180px;
    margin-bottom: 8px;
    display: block;
}

.popup-price {
    font-size: 16px;
    color: #d0021b;
}

.usd-price {
    color: #007bff;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

    .quantity-control input {
        text-align: center;
        margin: 0 5px;
        width: 40px;
        font-size: 13px;
    }

    .quantity-control button {
        background: #f0f0f0;
        border: 1px solid #ccc;
        cursor: pointer;
        padding: 4px 8px;
        font-size: 13px;
    }

/* Buyer Form */
.popup-right input,
.popup-right textarea {
    width: 100%;
    padding: 5px;
    font-size: 12px;
    margin: 3px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.radio-group label {
    font-size: 12px;
    margin-right: 6px;
}

.radio-group input[type="radio"] {
    transform: scale(0.85);
}

.form-discount {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .form-discount input {
        flex: 1;
    }

.apply-btn {
    background: #243c93;
    color: white;
    border: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.total-price {
    font-size: 18px;
    color: #d0021b;
    margin-top: 10px;
}

.buy-now-btn {
    width: 100%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding: 10px;
    line-height: 1.2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.warning-text {
    font-size: 13px;
    color: #222;
}

.text-danger {
    color: red;
}

@media (max-width: 768px) {
    .quick-buy-popup {
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .quick-buy-popup {
        max-width: 95%;
        padding: 10px;
        font-size: 12px;
        overflow-y: auto;
    }

    .popup-title {
        font-size: 14px;
        padding: 20px;
        text-align: center;
    }

    .popup-body {
        flex-direction: column;
        gap: 10px;
    }

    .popup-left,
    .popup-right {
        flex: 1 1 100%;
        margin: 0;
    }

    .popup-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto 10px auto;
        display: block;
    }

    .quantity-control {
        justify-content: center;
    }

        .quantity-control input {
            width: 40px;
        }

    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-discount {
        flex-direction: column;
    }

    .apply-btn {
        width: 100%;
        margin-top: 5px;
    }

    .buy-now-btn {
        font-size: 14px;
        padding: 10px;
    }
}
.section-title {
    position: relative;
    display: inline-block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    padding-top: 8px;
    margin-top: 10px;
    transition: width 0.4s ease;
}
.section-title h4 {
    font-size: 18px;
}
    /* hiệu ứng khi hover: kéo dài ra */
    .section-title:hover::after {
        width: 60px;
    }
    .section-title:hover::after {
        background-color: #0a58ca; /* xanh sáng hơn */
    }
    /* line xám nhạt ở trên */
    .section-title::before {
        content: "";
        position: absolute;
        top: 0;
        left: calc(100vw - 16vw);
        height: 1px;
        width: 80vw; /* chạy ngang toàn trang */
        background-color: #e5e5e5; /* xám nhạt */
        transform: translateX(-100%); /* căn trái */
    }

    /* gạch xanh đậm ngắn ở trên chữ */
    .section-title::after {
        content: "";
        position: absolute;
        top: 0px;
        left: 0px;
        height: 4px;
        width: 50px; /* chiều dài gạch xanh */
        background-color: #1a3c92; /* xanh đậm */
    }


.keyword {
    color: #243c93;
}
    .keyword:hover {
        color: #334862;
        font-weight: 500;
    }

.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /*padding-top: 60px;*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    overflow: hidden;
    align-content: center;
}

.image-preview-content {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.image-top-controls {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000; /* Quan trọng: luôn nổi trên ảnh */
}

.close-image {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

    .close-image:hover {
        color: #ff6666;
    }

/* Nút zoom */
.zoom-btn {
    background: transparent;
    color: #fff;
    border: 0px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .zoom-btn:hover {
        background: #666;
        transform: scale(1.1);
        border: 1px solid #333;
    }

/* Nút điều hướng */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    user-select: none;
    transition: 0.3s;
    z-index: 3000; /* Quan trọng: luôn nổi trên ảnh */
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

    .prev:hover, .next:hover {
        color: #ff6666;
    }

.image-counter {
    position: absolute;
    bottom: 20px;
    width: 100%;
    color: #ccc;
    text-align: center;
    font-size: 16px;
}
.carousel-item {
    min-height: 500px;
}

.image-wrapper {
    display: flex;
    justify-content: center; /* căn giữa ngang */
    align-items: center; /* căn giữa dọc */
    height: 500px; /* bằng chiều cao của slide */
}

    .image-wrapper img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
