.yarpp-related{
    float: left;
    width: 100%;
}

.single-san-pham .site-inner {
    display: flow-root;
    overflow: visible;
}
.single-product-summary {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}
.product-content-nav {
    position: sticky;
    top: var(--product-nav-top, 90px);
    z-index: 900;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-right: 10px;
    margin-bottom: 24px;
    border: 1px solid rgb(0 169 239 / 12%);
    border-radius: 8px;
    background: linear-gradient(rgb(0 169 239 / 6%), rgb(0 169 239 / 6%)), #fff;
}
.product-content-nav a {
    position: relative;
    flex: 0 0 auto;
    min-width: 140px;
    padding: 12px 25px;
    color: #002c55;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.product-content-nav a:is(.is-active, :hover, :focus-visible) {
    background: #00a9ef;
    color: #fff;
}
.product-content-nav a::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: #00a9ef;
    -webkit-mask: url('../../images/tab-curve.svg') center / contain no-repeat;
    mask: url('../../images/tab-curve.svg') center / contain no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.product-content-nav a:is(.is-active, :hover, :focus-visible)::after {
    opacity: 1;
}
.product-content-section {
    margin-bottom: 36px;
    scroll-margin-top: 110px;
}
#product-content-body {
    padding: 32px;
    border: 1px solid rgb(0 169 239 / 12%);
    border-radius: 12px;
    background: rgb(0 169 239 / 0%);
}
#product-content-text.is-collapsed {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    display: flow-root;
}
#product-content-text.is-collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 64px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.product-content-toggle {
    display: block;
    margin: 20px auto 0;
    padding: 9px 25px;
    border: 0;
    border-radius: 28px;
    background: #00a9ef;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.product-content-toggle::after {
    content: '\2192';
    margin-left: 12px;
}
.product-content-toggle[hidden] {
    display: none;
}
.product-content-toggle:hover,
.product-content-toggle:focus-visible {
    background: #002c55;
}
.related-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}
.related-products-title {
    color: #002c55;
    font-size: 28px;
    font-weight: 700;
}
.related-products-controls {
    display: flex;
    gap: 8px;
}
.related-products-controls button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #00a9ef;
    border-radius: 50%;
    background: #fff;
    color: #00a9ef;
    font-size: 20px;
    cursor: pointer;
}
.related-products-controls button:hover {
    background: #00a9ef;
    color: #fff;
}
.related-products-controls .slick-hidden {
    display: none;
}
.related-products-slider.slick-initialized {
    display: block;
    margin: 20px -12px 32px;
}
.related-products-slider .slick-list {
    overflow: hidden;
    padding: 8px 0;
}
.related-products-slider .slick-track {
    display: flex;
}
.related-products-slider .slick-slide {
    margin: 0 12px;
}
.product-faq-item {
    border: 1px solid rgb(0 169 239 / 20%);
    border-radius: 8px;
    background: #fff;
}
.product-faq-item + .product-faq-item {
    margin-top: 8px;
}
.product-faq-item h3 {
    margin: 0;
    color: #002c55;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}
.product-faq-item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.product-faq-item button::after {
    content: '+';
    flex: 0 0 32px;
    height: 32px;
    border-radius: 8px;
    background: rgb(0 169 239 / 7%);
    color: #00a9ef;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
}
.product-faq-item button[aria-expanded="true"]::after {
    content: '−';
}
.product-faq-item button:is(:hover, [aria-expanded="true"]) {
    color: #00a9ef;
}
.product-faq-item button:focus-visible {
    outline: 2px solid #00a9ef;
    outline-offset: 2px;
}
.product-faq-answer {
    padding: 0 12px 14px;
}
.product-faq-answer > :last-child {
    margin-bottom: 0;
}
.single-product-summary:not(:has(.single-product-gallery)) {
    grid-template-columns: minmax(0, 1fr);
}
.single-product-gallery {
    min-width: 0;
}
.single-product-slides {
    position: relative;
}
.single-product-slides .slick-list,
.single-product-thumbs .slick-list {
    overflow: hidden;
}
.single-product-gallery .slick-track {
    display: flex;
}
.single-product-gallery .slick-slide {
    flex-shrink: 0;
}
.single-product-slides:not(.slick-initialized) > div:not(:first-child) {
    display: none;
}
.single-product-slides img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}
.single-product-thumbs {
    margin: 10px -4px 0;
}
.single-product-thumbs button {
    width: calc(100% - 8px);
    padding: 3px;
    margin: 0 4px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}
.single-product-thumbs .slick-current button {
    border-color: #00a9ef;
}
.single-product-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
}
.single-product-info .entry-title {
    color: #003c78;
    font-size: 32px;
    margin-bottom: 12px;
}
.product-short-desc p {
    color: #595a5a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.product-specifications table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    background: rgb(0 169 239 / 5%);
    font-size: 14px;
}
.product-specifications :is(th, td) {
    padding: 12px 16px;
    border: 1px solid rgb(0 44 85 / 6%);
    color: #002c55;
    text-align: left;
}
.product-specifications p {
    color: inherit;
    font-size: inherit;
}
.single-product-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.single-product-actions > :is(button, a) {
    flex: 1;
    padding: 13px 12px;
    border: 1px solid #00a9ef;
    border-radius: 35px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.single-product-actions .product-consultation {
    background: #00a9ef;
    color: #fff;
}
.single-product-actions .product-hotline {
    background: #fff;
    color: #00a9ef;
}
.single-product-actions .product-hotline::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    background: currentColor;
    -webkit-mask: url('../../images/contact-phone.svg') center / contain no-repeat;
    mask: url('../../images/contact-phone.svg') center / contain no-repeat;
}
.single-product-actions > :is(button, a):hover {
    transform: translateY(-2px);
    border-color: #003c78;
    background: #003c78;
    color: #fff;
}
.single-product-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.single-product-benefit {
    padding: 24px 18px;
    border: 1px solid rgb(0 169 239 / 12%);
    border-radius: 12px;
    background: rgb(0 169 239 / 4%);
    box-shadow: 0 4px 14px rgb(0 44 85 / 3%);
    transition: transform 0.2s ease;
}
.single-product-benefit:hover {
    transform: translateY(-3px);
}
.single-product-benefit:nth-child(2) {
    border-color: rgb(38 166 133 / 12%);
    background: rgb(38 166 133 / 4%);
}
.single-product-benefit:nth-child(3) {
    border-color: rgb(240 161 91 / 18%);
    background: rgb(240 161 91 / 6%);
}
.single-product-benefit :is(h3, strong) {
    color: #002c55;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.single-product-benefit p {
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}
.single-product-benefit :is(h3, p:has(> strong)) {
    margin-bottom: 12px;
}

#product-order-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100002;
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: calc(100% - 48px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 16px;
    background: #fff url('../../images/bgform.jpg') no-repeat right top / cover;
    box-shadow: 0 20px 60px rgb(0 44 85 / 20%);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% + 16px));
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.product-order-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgb(0 44 85 / 60%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.product-order-open {
    overflow: hidden;
}
.product-order-open #product-order-dialog,
.product-order-open .product-order-backdrop {
    opacity: 1;
    visibility: visible;
}
.product-order-open #product-order-dialog {
    transform: translate(-50%, -50%);
}
.product-order-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgb(0 44 85 / 8%);
    color: #002c55;
    font-size: 26px;
    cursor: pointer;
}
#product-order-dialog .widget-title {
    margin-bottom: 26px;
    padding-right: 16px;
    color: #002c55;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}
#product-order-dialog .widget-title::before {
    content: 'LOTEKHOME';
    display: block;
    width: 130px;
    padding-left: 48px;
    margin-bottom: 10px;
    background: linear-gradient(#00a9ef, #00a9ef) no-repeat left center / 36px 1px;
    color: #00a9ef;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}
#product-order-dialog .widget-title span {
    display: block;
    margin-top: 8px;
    color: #788391;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}
#product-order-dialog .form-group {
    margin-bottom: 14px;
}
#product-order-dialog .form-group:has(.form-control) {
    position: relative;
}
#product-order-dialog .form-group:has(.form-control)::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 18px;
    width: 18px;
    height: 18px;
    background: rgb(0 44 85 / 65%);
    -webkit-mask: url('../../images/form-layers.svg') center / contain no-repeat;
    mask: url('../../images/form-layers.svg') center / contain no-repeat;
    pointer-events: none;
}
#product-order-dialog .form-group:has([aria-label="Họ và tên"])::before {
    -webkit-mask-image: url('../../images/form-user.svg');
    mask-image: url('../../images/form-user.svg');
}
#product-order-dialog .form-group:has([aria-label="Số điện thoại"])::before {
    -webkit-mask-image: url('../../images/contact-phone.svg');
    mask-image: url('../../images/contact-phone.svg');
}
#product-order-dialog .form-group:has([aria-label^="Email"])::before {
    -webkit-mask-image: url('../../images/contact-email.svg');
    mask-image: url('../../images/contact-email.svg');
}
#product-order-dialog .form-group:has(textarea)::before {
    -webkit-mask-image: url('../../images/form-document.svg');
    mask-image: url('../../images/form-document.svg');
}
#product-order-dialog .form-control {
    height: 48px;
    padding: 12px 14px 12px 48px;
    border: 1px solid rgb(0 44 85 / 12%);
    border-radius: 9px;
    background: #f5f7f9;
    color: #002c55;
    font-size: 14px;
    box-shadow: none;
}
#product-order-dialog .form-control::placeholder {
    color: rgb(0 44 85 / 60%);
}
#product-order-dialog [aria-label="Sản phẩm"] {
    border-color: rgb(0 169 239 / 18%);
}
#product-order-dialog textarea.form-control {
    height: 88px;
    resize: vertical;
}
#product-order-dialog .form-control:focus {
    border-color: #00a9ef;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(0 169 239 / 10%);
}
#product-order-dialog input[type="submit"] {
    width: 100%;
    padding: 17px 16px 17px 46px;
    border: 0;
    border-radius: 30px;
    background: url('../../images/form-send.svg') no-repeat calc(50% - 100px) center / 22px 22px, linear-gradient(120deg, #00a9ef, #002c55);
    box-shadow: 0 2px 10px rgb(0 169 239 / 22%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#product-order-dialog input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgb(0 169 239 / 30%);
}


.single .entry-content .gallery-columns-2 .gallery-item, 
.page .entry-content .gallery-columns-2 .gallery-item ,
.taxonomy-description .gallery-columns-2 .gallery-item {
    width: calc(100% / 2 - 10px);
}

.single .entry-content .gallery-columns-2 .gallery-item:nth-child(2n+1), 
.page .entry-content .gallery-columns-2 .gallery-item:nth-child(2n+1),
.taxonomy-description .gallery-columns-2 .gallery-item:nth-child(2n+1) {
    clear: both;
}

.single .entry-content .gallery-columns-3 .gallery-item:nth-child(3n+1), 
.page .entry-content .gallery-columns-3 .gallery-item:nth-child(3n+1),
.taxonomy-description .gallery-columns-3 .gallery-item:nth-child(3n+1)  {
    clear: both;
}
.single .entry-content .gallery-columns-3 .gallery-item, 
.page .entry-content .gallery-columns-3 .gallery-item ,
.taxonomy-description .gallery-columns-3 .gallery-item {
    width: calc(100% / 3 - 10px);
}

.entry-content .gallery-item,
.taxonomy-description .gallery-item {
    float: left;
    width: calc(100% / 3 - 10px);
    margin: 5px;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .single-product-summary { grid-template-columns: minmax(0, 1fr); }
    .single-product-info .entry-title { font-size: 26px; }
    .product-specifications { overflow-x: auto; }
    #product-order-dialog .form-control { font-size: 16px; }
}

@media (max-width: 600px) {
    .single-product-benefits{
        gap: 10px;
    }

    #product-content-body{
        padding: 15px;
    }

    .single-product-benefit :is(h3, strong){
        font-size: 16px;
    }

    .single-product-benefit p:nth-child(n+2){
        line-height: 1.3;
        text-align: justify;
    }

    .product-content-nav a::after{
        content: unset;
    }

    .product-content-nav{
        gap: 0;
    }

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

    .product-content-nav a{
        padding: 10px 12px;
        border-right: 1px solid #cde6f2;
        font-size: 14px;
    }

    .product-faq-item h3{ font-size:16px }
    .single-product-benefit {
        padding: 12px 10px;
    }

    #product-order-dialog { padding: 28px 20px 20px; }
    #product-order-dialog .widget-title { font-size: 22px; }

    .single-product-actions .product-hotline{
        display: none;
    }

    .related-products-slider .slick-slide{
        margin: 0 5px;
    }

    #product-order-dialog .widget-title::before {
        content: 'LOTEKHOME';
        display: block;
        width: 130px;
        padding-left: 48px;
        margin-bottom: 3px;
        background: linear-gradient(#00a9ef, #00a9ef) no-repeat left center / 36px 1px;
        color: #00a9ef;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    #product-order-dialog .widget-title span {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.3;
    }

    #product-order-dialog .widget-title{
        margin-bottom: 15px;
    }

    #product-order-dialog .form-control{
        height: 46px;
    }

    #product-order-dialog input[type="submit"] {
        padding: 12px 0;
    }

    #product-order-dialog textarea.form-control {
        height: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #product-order-dialog, .product-order-backdrop { transition: none; }
}
