/* Unified slider arrow style: big black circle + white chevron.
   Override for .product-arrow (block-list-product), .swiper-arrow (block-fourteen, blockCategory-sports). */

/* ---------- unified border-radius (pill) for all buttons/shapes.
   Excludes .hero-cta-button (XEM NGAY trong banner). ---------- */
.nav-pills .nav-link,
.nav-tabs .nav-link,
.nav-link,
.button-primary:not(.hero-cta-button),
.button-secondary:not(.hero-cta-button),
.btn-view-more,
.p-card__size,
.single_add_to_cart_button,
.add-to-cart,
.add-to-cart-wrap button[type="submit"],
.product-attr__size .size-dot,
.product-attributes .size-dot,
.buy-now,
.filter-mobile,
.child-cate-item {
    border-radius: 12px !important;
}

/* Quantity wrapper box */
.add-to-cart-wrap .qty-box {
    border-radius: 12px !important;
}

/* Buttons inside banner/hero sections use 30px radius (distinct from 12px default) */
.hero-section .hero-cta-button,
.hero-section .button-primary,
.hero-section .button-secondary,
.hero-section .elementor-button,
.hero-section .nav-link,
.banner-section .hero-cta-button,
.banner-section .button-primary,
.banner-section .button-secondary,
.banner-section .elementor-button,
.banner-section .nav-link,
.elementor-section .hero-cta-button,
.elementor-widget-button .elementor-button {
    border-radius: 30px !important;
}

/* ---------- section-categories: remove fixed aspect-ratio so box follows image height ---------- */
.section-categories .col-inner {
    aspect-ratio: auto !important;
}

/* ---------- circular category item: thin outer ring with gap ---------- */
.col-inner-style-two .image {
    position: relative;
    border: none !important;
    overflow: visible !important;
    border-radius: 50%;
}

.col-inner-style-two .image::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    pointer-events: none;
}

.col-inner-style-two .image img {
    border-radius: 50%;
}

/* Remove the vertical divider between category items */
.section-categories .col-inner-style-two::after {
    display: none !important;
}

/* ---------- single product buy box: cap at 1440px ---------- */
.product-detail .product-buy-box > .container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- product ribbon NEW / BESTSELLER (from icon-web.svg) ---------- */
.p-card .list-cate {
    z-index: 4;
    pointer-events: none;
}

.p-card .list-cate .p-card__ribbon {
    display: inline-block;
    width: 38px;
    height: auto;
    line-height: 0;
    position: relative;
    z-index: 4;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.p-card .list-cate .p-card__ribbon svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Neutralize old class overrides if still referenced */
.p-card .list-cate .p-card__category {
    background: none !important;
    clip-path: none !important;
    padding: 0 !important;
    height: auto !important;
    min-width: 0 !important;
}


/* ---------- block-list-product ---------- */
.list-product .tab-content .tab-pane {
    position: relative;
}

.list-product .tab-content .product-arrow {
    position: absolute;
    top: var(--product-arrow-top, calc(50% - 60px));
    transform: translateY(-50%);
    border: none;
    background: #0a0a0a;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-product .tab-content .product-arrow:hover {
    background: #222;
    transform: translateY(-50%) scale(1.05);
}

.list-product .tab-content .product-arrow svg path {
    stroke: #fff !important;
}

.list-product .tab-content .product-arrow.product-prev {
    left: -24px;
}

.list-product .tab-content .product-arrow.product-next {
    right: -24px;
    left: auto;
    transform: translateY(-50%) scale(-1);
}

.list-product .tab-content .product-arrow.product-next:hover {
    transform: translateY(-50%) scale(-1.05);
}

@media (max-width: 1024px) {
    .list-product .tab-content .product-arrow.product-prev { left: -16px; }
    .list-product .tab-content .product-arrow.product-next { right: -16px; }
}

@media (max-width: 991px) {
    .list-product .tab-content .product-arrow {
        width: 35px !important;
        height: 35px !important;
        top: var(--product-arrow-top, calc(50% - 40px));
    }
    .list-product .tab-content .product-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 768px) {
    .list-product .tab-content .product-arrow {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
    .list-product .tab-content .product-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ---------- blockCategory-sports (.section-categories .tab-content .swiper-arrow) ---------- */
.section-categories .tab-content {
    padding-top: 0;
}

.section-categories .tab-content .swiper-arrow {
    position: absolute;
    top: calc(50% + 25px);
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin: 0;
    cursor: pointer;
}

.section-categories .tab-content .swiper-arrow:hover {
    background: #222;
    transform: translateY(-50%) scale(1.05);
}

.section-categories .tab-content .swiper-arrow::before {
    content: "";
    background: url('../images/icons/arrow-right.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    filter: brightness(0) invert(1);
}

.section-categories .tab-content .swiper-button-prev {
    left: -24px !important;
    right: auto !important;
}

.section-categories .tab-content .swiper-button-prev::before {
    transform: scale(-1);
    margin-left: 0;
}

.section-categories .tab-content .swiper-button-prev:hover {
    transform: translateY(-50%) scale(1.05);
}

.section-categories .tab-content .swiper-button-next {
    right: -24px !important;
    left: auto !important;
}

@media (max-width: 1024px) {
    .section-categories .tab-content .swiper-button-prev { left: 8px !important; }
    .section-categories .tab-content .swiper-button-next { right: 8px !important; }
}

@media (max-width: 991px) {
    .section-categories .tab-content .swiper-arrow {
        width: 35px !important;
        height: 35px !important;
    }
    .section-categories .tab-content .swiper-arrow::before {
        width: 12px !important;
        height: 12px !important;
        margin-left: 1px !important;
    }
}

@media (max-width: 768px) {
    .section-categories .tab-content .swiper-arrow,
    .section-categories .tab-content .swiper-button-prev,
    .section-categories .tab-content .swiper-button-next {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
    }
    .section-categories .tab-content .swiper-arrow::before {
        width: 12px !important;
        height: 12px !important;
        margin-left: 1px !important;
    }
}

/* ---------- block-fourteen (.blog .swiper-arrows) ---------- */
.blog .swiper-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    gap: 8px;
    z-index: 5;
    pointer-events: none;
}

.blog .swiper-arrows .swiper-arrow {
    position: static;
    pointer-events: auto;
    margin: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a0a0a;
    border: none;
    box-shadow: none;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog .swiper-arrows .swiper-arrow:hover {
    background: #222;
    transform: scale(1.05);
}

.blog .swiper-arrows .swiper-arrow svg {
    width: 14px;
    height: 14px;
}

.blog .swiper-arrows .swiper-arrow svg path {
    stroke: #fff !important;
}

.blog .swiper-arrows .swiper-button-next svg {
    transform: scale(-1);
}

@media (max-width: 991px) {
    .blog .swiper-arrows .swiper-arrow {
        width: 40px;
        height: 40px;
    }
}
