.product-detail-page {
    background-color: var(--color-white);
}
.product-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.product-detail__media {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.9375rem;
}



.product-detail__thumb-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.product-detail__thumb {
    display: block;
    flex: 0 0 auto;
    max-width: 100px;
}

.product-detail__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-backface-hidden .swiper-slide {
    margin-bottom: 0 !important;
    height: auto !important;
}

.product-detail-thumbs--swiper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.product-detail-thumbs__swiper {
    max-height: 460px;
}

.product-detail-thumbs__swiper .product-detail__thumb {
    width: 6.25rem;
    height: 6.25rem;
    max-width: none;
}

.product-detail-thumbs__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.product-detail-thumbs__nav--prev {
    top: -0.25rem;
}

.product-detail-thumbs__nav--next {
    bottom: -0.25rem;
}


.product-detail-thumbs__nav i {
    font-size: 1.25rem;
    color: #353333;
}


.product-detail__stage {
    flex: 1 1 auto;
    max-width: 32rem;
    min-width: 0;
}

.product-detail__zoom.MagicZoom {
    display: block;
    background: #ffffff;
    box-sizing: border-box;
}

.product-detail__main-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.product-detail__info {
    flex: 1 1 0;
    max-width: 35.0625rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: min(100%, 20rem);
}

.product-detail__head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail__title {
    margin: 0;
    color: var(--color-blue-highlight);
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.product-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.21;
    color: #353333;
}

.product-detail__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
}

.product-detail__meta-label {
    font-weight: 600;
    color: #000000;
    min-width: 6.5rem;
}

.product-detail__meta-value {
    font-weight: 400;
    color: #353333;
}

.product-detail__price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.product-detail__price {
    color: var(--color-red-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.21;
}

.product-detail__price--old {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-brown);
    text-decoration: line-through;
}

.product-detail__flash-remaining {
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e53e3e;
}

.product-detail__panel-title {
    margin: 0 0 0.6875rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.21;
    color: var(--color-black);
}

.product-detail__shipping {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    padding-right: 0;
}

.product-detail__shipping-line {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.21;
    color: #353333;
}


.product-detail__shipping-strike {
    text-decoration: line-through;
    color: var(--color-brown);
}

.product-detail__rule {
    margin: 0;
    border: none;
    border-top: 0.0625rem solid var(--color-brown);
    width: 100%;
}

.product-detail__freeship {
    display: flex;
    flex-direction: column;
    gap: 0.6875rem;
}

.product-detail__freeship-badge {
    margin: 0;
    font-size: 0.65625rem;
    font-weight: 800;
    line-height: 1.265;
    letter-spacing: 0.02em;
    color: #003AA1;
    font-style: italic;
}
.product-detail__freeship-badge span {
    color: var(--color-red-primary);
    font-style: italic;
}

.product-detail__freeship-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.21;
    color: #353333;
}

.product-detail__refs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    min-height: 1.25rem;
}

.product-detail__refs-label {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.21;
    color: #b0b0b0;
}

.product-detail__refs-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-detail__refs-link {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.21;
    color: #1980ff;
    text-decoration: underline;
    font-style: italic;
}

.desc-information-product ul,
.desc-information-product ol {
    margin-left: 1.0625rem;
}

.product-detail__short-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #353333;
}

.product-detail__cart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.product-detail__qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2.3125rem;
}

.product-detail__qty-label {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.21;
    color: #353333;
}

.product-detail__qty.product-quantity-detail {
    display: inline-flex;
    align-items: stretch;
    border: 0.0625rem solid #9e9696;
    border-radius: 0.1875rem;
    overflow: hidden;
    background: #ffffff;
}

.product-detail__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6875rem;
    min-width: 1.6875rem;
    height: 1.6875rem;
    margin: 0;
    padding: 0;
    border: none;
    background: #ffffff;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    color: #413d3d;
    cursor: pointer;
    box-sizing: border-box;
}

.product-detail__qty-btn:hover {
    background: #f1f2f5;
}

.product-detail__qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-detail__qty-btn.quantity-minus {
    border-right: 0.0625rem solid #9e9696;
    border-radius: 0.1875rem 0 0 0.1875rem;
}

.product-detail__qty-btn.quantity-plus {
    border-left: 0.0625rem solid #9e9696;
    border-radius: 0 0.1875rem 0.1875rem 0;
}

.product-detail__qty-input.qty-product {
    width: 2.71875rem;
    min-width: 2.71875rem;
    height: 1.6875rem;
    margin: 0;
    padding: 0.25rem 0.375rem;
    border: none;
    border-left: 0.0625rem solid #9e9696;
    border-right: 0.0625rem solid #9e9696;
    text-align: center;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.21;
    color: #413d3d;
    box-sizing: border-box;
    -moz-appearance: textfield;
}


.product-detail__qty-input::-webkit-outer-spin-button,
.product-detail__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.product-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: min(100%, 17.1875rem);
    max-width: 17.1875rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.125rem;
    border-radius: 0.3125rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 0.9333;
    text-align: center;
    cursor: pointer;
    border: 0.0625rem solid transparent;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-detail__btn--outline {
    background: #ffffff;
    color: #1980ff;
    border-color: #1980ff;
}

.product-detail__btn--outline:hover:not(:disabled) {
    background: #f1f8fe;
}

.product-detail__btn--primary {
    background: #1980ff;
    color: #ffffff;
    border-color: #1980ff;
}

.product-detail__btn--primary:hover:not(:disabled) {
    background: #1570e0;
    border-color: #1570e0;
}

.product-detail__btn:disabled,
.product-detail__btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.product-content-information ul,
.product-content-information ol {
    margin-left: 1.0625rem;
}

/* Chi tiếtiết */
.product-detail-spec {
    margin-top: 2.5rem;
    padding-bottom: 2.25rem;
}

.product-detail-spec__layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.0625rem;
}

.product-detail-spec__card {
    background: var(--color-white);
    border-radius: 0.625rem;
    padding: 2rem 1.0625rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.product-detail-spec__card--details {
    flex: 0 1 27.5rem;
    max-width: 100%;
}

.product-detail-spec__card--description {
    flex: 1 1 28rem;
    min-width: min(100%, 18rem);
}

.product-detail-spec__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1D2939;
}

.product-detail-spec__divider {
    margin: 0;
    border: none;
    border-top: 0.03125rem solid #7F7F7FB2;
    width: 100%;
}

.product-detail-spec__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
}

.product-detail-spec__table tbody tr + tr .product-detail-spec__cell {
    border-top: 0.03125rem solid rgba(127, 127, 127, 0.25);
}

.product-detail-spec__cell {
    padding: 0.71875rem 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #000000;
    text-align: left;
    vertical-align: top;
}

.product-detail-spec__cell--label {
    width: 1%;
    padding-right: 1.0625rem;
    font-weight: 300;
    white-space: nowrap;
}

.product-detail-spec__cell--value {
    font-weight: 300;
}

.product-detail-spec__cell--brand {
    font-weight: 400;
}

.product-detail-spec__body {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.5;
    color: #000000;
    max-width: 38.6875rem;
}

.product-detail-spec__body.desc-information-product ul,
.product-detail-spec__body.desc-information-product ol {
    margin-left: 1.0625rem;
}

.product-detail-spec__body p {
    margin: 0 0 1.0625rem;
}

.product-detail-spec__body p:last-child {
    margin-bottom: 0;
}
.product__related-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.product__related {
    padding: 2rem 0;
}

/** Product relation **/
.product-detail-relation {
    padding: 60px 0;
}
.product-detail__stock-status {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.21;
    color: var(--color-red-primary);
}

/* Extra Large Devices (Small Desktop) */
@media (max-width: 1199px) {
    .product-detail {
        gap: 1.5rem;
    }

    .product-detail__stage {
        max-width: 28rem;
    }

    .product-detail__info {
        max-width: 33rem;
    }

    .product__related-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Large Devices (Tablets) */
@media (max-width: 991px) {
    .product-detail-spec__layout {
        flex-direction: column;
    }

    .product-detail-spec__card--details,
    .product-detail-spec__card--description {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .product-detail {
        flex-direction: column;
        gap: 2rem;
    }

    .product-detail__media {
        max-width: 100%;
        flex-direction: column-reverse;
        align-items: center;
    }

    .product-detail__thumbs {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: 0;
    }

    .product-detail__thumb-list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-height: 0;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .product-detail__thumb {
        flex: 0 0 5rem;
        width: 5rem;
        height: 5rem;
    }

    .product-detail-thumbs--swiper {
        gap: 0.75rem;
    }

    .product-detail-thumbs__swiper {
        width: 100%;
        height: auto;
    }

    .product-detail-thumbs__swiper .product-detail__thumb {
        width: 5rem;
        height: 5rem;
    }

    .product-detail-thumbs__nav {
        display: none;
    }

    .product-detail-thumbs__swiper .product-detail__thumb-list {
        overflow: visible;
        padding-bottom: 0;
    }

    .product-detail__stage {
        max-width: 100%;
        width: 100%;
    }

    .product-detail__info {
        max-width: 100%;
    }

    .product-detail__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detail__btn {
        max-width: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item .info {
        padding: 8px;
    }

    .title-filter {
        flex-direction: column;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767px) {
    .product-detail {
        gap: 1.5rem;
    }

    .product-detail__title {
        font-size: 1.5rem;
    }

    .product-detail__price {
        font-size: 1.75rem;
    }

    .product-detail__thumb {
        flex: 0 0 4.5rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .product-detail-spec {
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .product-detail-spec__card {
        padding: 0;
        border-radius: 0.5rem;
    }

    .product__related {
        padding: 1.75rem 0;
    }

    .product__related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

/* Small Devices (Phones) */
@media (max-width: 575px) {
    .product-detail__media {
        gap: 0.75rem;
    }

    .product-detail__title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .product-detail__price {
        font-size: 1.5rem;
    }

    .product-detail__price--old {
        font-size: 1rem;
    }

    .product-detail__refs-link {
        font-size: 1rem;
    }

    .product-detail__qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .product-detail__actions {
        gap: 0.625rem;
    }

    .product-detail__btn {
        min-width: 0;
        width: 100%;
    }

    .product__related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Extra Small Devices */
@media (max-width: 374px) {
    .product-detail__thumb {
        flex: 0 0 4rem;
        width: 4rem;
        height: 4rem;
    }

    .product-detail__price {
        font-size: 1.375rem;
    }

    .product__related-list {
        grid-template-columns: minmax(0, 1fr);
    }
}