.font-size-auto {
    font-size: inherit;
}

.swiper-button-next .swiper-navigation-icon,
.swiper-button-prev .swiper-navigation-icon {
    width: 14px;
}

.button-shine {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #007bff;
}

.button-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.5) 50%,
            rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
}

.button-shine:hover::after {
    animation: shine 1s forwards;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.btn-effect {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
/* 8. Glint Flash */
.glint::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transform: skewX(-20deg);
    filter: blur(2px);
    transition: left 0.5s;
}

.glint:hover::before {
    left: calc(100% + 30px);
}

/* Fix menu */
.accordion-button.no-after:after {
    display: none;
}

/* ẩn nút next/prev và chỉ hiện khi hover */
#mainSlider .swiper-button-prev,
#mainSlider .swiper-button-next {
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

#mainSlider:hover .swiper-button-prev,
#mainSlider:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

/* Slider cho chi tiet san pham */
/* MAIN IMAGE */
.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* THUMB */
.product-thumb-swiper {
    height: 80px;
}

.product-thumb-swiper .swiper-slide img {
    border: 1px solid #eee;
    cursor: pointer;
}

.product-thumb-swiper .swiper-slide-thumb-active img {
    border-color: #ee4d2d;
}

/* NAVIGATION – dùng CSS gốc Swiper */
.thumb-wrapper {
    position: relative;
}

.thumb-wrapper .swiper-button-prev,
.thumb-wrapper .swiper-button-next {
    color: #333;
    width: 22px;
    height: 52px;
    margin-top: 0;
    border-radius: 0;
}

.thumb-wrapper .swiper-button-prev {
    left: 0;
}

.thumb-wrapper .swiper-button-next {
    right: 0;
}

/* Hover desktop mới hiện */
@media (hover: hover) {
    .thumb-wrapper .swiper-button-prev,
    .thumb-wrapper .swiper-button-next {
        opacity: 0;
        transition: opacity .2s ease;
    }

    .thumb-wrapper:hover .swiper-button-prev,
    .thumb-wrapper:hover .swiper-button-next {
        opacity: 1;
    }
}
/* #Slider cho chi tiet san pham */

/* Product Detail */
.product-description .nav-tabs {
    border-bottom: 1px solid #eee;
}

.product-description .nav-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #555;
}

.product-description .nav-tabs .nav-link.active {
    color: #ee4d2d;
    border-bottom: 2px solid #ee4d2d;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
}
/* #Product Detail */


/* new-pagination */
.new-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.new-pagination .pagination {
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.new-pagination .pagination li {
    display: inline-flex;
}

.new-pagination .pagination li a,
.new-pagination .pagination li span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;

    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* Hover */
.new-pagination .pagination li a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Active */
.new-pagination .pagination li.active span {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Disabled */
.new-pagination .pagination li.disabled span {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Nút prev / next */
.new-pagination .pagination li:first-child span,
.new-pagination .pagination li:last-child a {
    font-size: 16px;
    font-weight: 600;
}
/* #new-pagination */

.related-product-title {
    font-size: 16px;
}

.related-group-title {
    font-size: 24px;
}

.product-hotline {
    margin-top: 20px;
}

.product-hotline .hotline-frame {
    display: inline-block;
    padding: 5px 10px 5px 50px;
    position: relative;
    background-image: linear-gradient(to bottom right,#db3737, #690000);
    color: #fff;
    border-radius: 10px;
    height: 60px;
    line-height: normal;
}

.product-hotline .hotline-frame svg {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 11px;
    left: 11px;
}

.product-hotline .hotline-frame span {
    font-weight: 600;
    line-height: normal;
    font-size: 24px;
}