.tp-product-details-desc-wrapper {
    padding-top: 40px;
}

.tp-header-main {
    padding-top: 20px;
    padding-bottom: 20px;
}
@media (min-width: 576px) and (max-width: 991px) {
  main .tp-section-title {
        font-size: 28px;
    }
}
main .tp-feature-title {
    margin-bottom: 5px;
}
.tp-feature-content p {
    line-height: 18px;
}
.tp-product-content {
    padding: 10px;
}

/* Slider */
.tp-slider-content > p {
    font-family: var(--primary-font) !important;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    max-width: 650px;
}

@media (max-width: 767px) {
    .tp-slider-content > p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 28px;
    }
}

/* Product image thumbnail */
.tp-product-thumb-preserve-ratio {
    aspect-ratio: 1;
    background-color: #fafafa;
}

.tp-product-thumb-preserve-ratio > a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.tp-product-thumb-preserve-ratio img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tp-product-item:hover .tp-product-thumb-preserve-ratio img {
    transform: none;
}

.tp-product-add-cart-btn-large-wrapper {
  width: 100%;
}
.tp-product-add-cart-btn-large {
	padding: 8px 0;
}

/* Quick view */
.tp-product-modal .bb-quick-view-gallery-images:not(.slick-initialized),
.tp-product-modal .bb-quick-view-gallery-images:not(.slick-initialized) > a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-product-modal .bb-quick-view-gallery-images:not(.slick-initialized) > a {
    width: 100%;
    height: 100%;
}

/* Post Detail */
.tp-postbox-details-title {
  margin-bottom: 30px;
}
.ck-content img {
  height: auto;
}

/* Featured product tags */
.feature-tags {
    padding-bottom: 100px;
}

.feature-tags__header {
    margin-bottom: 40px;
    max-width: 720px;
}

.feature-tags__header h1 {
    color: var(--tp-common-black);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.feature-tags__header p {
    color: var(--tp-text-body);
    font-size: 16px;
    line-height: 1.7;
}

.feature-tags__panel {
    background-color: var(--tp-common-white);
    box-shadow: 0 30px 70px rgba(1, 15, 28, 0.1);
}

.feature-tags__group {
    align-items: flex-start;
    display: grid;
    gap: 24px;
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 30px 40px;
}

.feature-tags__group:not(:last-child) {
    border-bottom: 1px solid #e6e7e8;
}

.feature-tags__title {
    border-inline-start: 3px solid var(--primary-color);
    color: var(--tp-common-black);
    font-weight: 600;
    line-height: 1.35;
    padding-inline-start: 12px;
}

.feature-tags .feature-tags__title a {
    color: inherit;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-tags .feature-tags__title a:hover,
.feature-tags .feature-tags__title a:focus-visible {
    color: var(--primary-color);
}

.feature-tags .feature-tags__title a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.feature-tags__links {
    gap: 10px;
}

.feature-tags .feature-tags__link {
    border-color: rgba(var(--bs-body-color-rgb), 0.12) !important;
    color: var(--tp-text-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    padding: 9px 16px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.feature-tags .feature-tags__link:hover,
.feature-tags .feature-tags__link:focus-visible {
    background-color: var(--primary-color);
    border-color: var(--primary-color) !important;
    color: var(--tp-common-white);
    transform: translateY(-1px);
}

.feature-tags .feature-tags__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.22);
    outline: 0;
}

@media (max-width: 767px) {
    .feature-tags__header {
        margin-bottom: 30px;
    }

    .feature-tags__group {
        gap: 18px;
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
}

/* Tăng chiều rộng cột tiêu đề trên desktop */
@media (min-width: 992px) {
    .feature-tags__group {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .feature-tags__title {
        white-space: nowrap;
    }
}

/* Chuyển thành một cột trên tablet và mobile */
@media (max-width: 991px) {
    .feature-tags__group {
        grid-template-columns: 1fr;
    }

    .feature-tags__title {
        white-space: normal;
    }
}

/* Slider */
.tp-slider-content>span {
  font-size: 20px;
  margin-bottom: 15px;
}
.tp-slider-active .owl-item .tp-slider-thumb img {
	width: 400px !important;
  max-width: 100%;
}
.tp-slider-thumb img {
	border-radius: 10px;
}
@media (max-width: 767px) {
    main .tp-slider-title {
        font-size: 38px !important;
        line-height: 50px;
    }
  .tp-slider-thumb img {
        width: 100%;
        margin-top: 40px;
    }
  .tp-slider-thumb.text-end {
  	text-align: left !important;
  }
}

@media (max-width: 575px), only screen and (min-width: 576px) and (max-width: 767px) {
    .tp-slider-active .owl-item .tp-slider-item.tp-slider-height, .tp-slider-active-2 .owl-item .tp-slider-item.tp-slider-height, .tp-slider-active-3 .owl-item .tp-slider-item.tp-slider-height, .tp-slider-active-4 .owl-item .tp-slider-item.tp-slider-height, .tp-slider-active-5 .owl-item .tp-slider-item.tp-slider-height {
        height: 700px;
        max-height: 700px;
    }
}
@media (max-width: 767px) {
    .tp-subscribe-title {
        font-size: 30px;
        line-height: 1.1;
    }
}
/* Quick view */
@media (max-width: 991px) {
    .tp-product-modal .modal-content .tp-product-modal-content .tp-product-details-thumb-wrapper {
		float: left;
	}
}
/* .container */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
  	max-width: 100%;
  }
}

/* Đồng nhất header shortcode [ecommerce-products] trên mobile */
@media (max-width: 767px) {
    /* Title và action cùng một hàng */
    .tp-product-arrival-area
    :is(.container, .tp-product-arrival-wrapper)
    > .row.align-items-center {
        flex-wrap: nowrap;
        align-items: center !important;
        margin-bottom: 30px;
    }

    /* Title chiếm khoảng trống còn lại */
    .tp-product-arrival-area
    :is(.container, .tp-product-arrival-wrapper)
    > .row.align-items-center
    > :first-child {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* Nút Xem tất cả hoặc mũi tên giữ nguyên kích thước */
    .tp-product-arrival-area
    :is(.container, .tp-product-arrival-wrapper)
    > .row.align-items-center
    > :last-child {
        flex: 0 0 auto;
        width: auto;
    }

    /* Loại bỏ margin khiến title bị lệch lên trên */
    .tp-product-arrival-area
    :is(.container, .tp-product-arrival-wrapper)
    > .row.align-items-center
    .tp-section-title-wrapper {
        margin-bottom: 0 !important;
    }

    /* Canh action về bên phải */
    .tp-product-arrival-area
    :is(.tp-blog-more-wrapper, .tp-product-arrival-more-wrapper) {
        justify-content: flex-end !important;
    }

    /* Bỏ khoảng đệm thừa */
    .tp-product-arrival-area
    :is(.tp-blog-more, .tp-product-arrival-border) {
        padding-left: 0;
        padding-right: 0;
    }
}