/*
Theme Name: Flatsome Child
Description: Kinro Viet Nam child theme
Author: Kinro
Template: flatsome
Version: 3.21
*/

:root {
    --kinro-primary: #005baa;
    --kinro-primary-dark: #004a8c;
    --kinro-accent: #d0011b;
    --kinro-text: #333333;
    --kinro-muted: #6b7280;
    --kinro-border: #e8edf2;
    --kinro-bg-alt: #f5f8fb;
    --kinro-bg-image: #f7f9fc;
    --kinro-white: #ffffff;
    --kinro-radius: 12px;
    --kinro-radius-sm: 4px;
    --kinro-shadow: 0 8px 24px rgba(0, 91, 170, 0.12);
    --kinro-shadow-sticky: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

/* Sticky CTA - mobile only */
.kinro-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: none;
    gap: 8px;
    padding: 10px 12px;
    background: var(--kinro-white);
    box-shadow: var(--kinro-shadow-sticky);
}
.kinro-sticky-cta .button {
    flex: 1;
    margin: 0;
    font-size: 14px;
}
.kinro-sticky-call {
    background: var(--kinro-primary) !important;
    border-color: var(--kinro-primary) !important;
}
@media (max-width: 849px) {
    .kinro-sticky-cta {
        display: flex !important;
    }
    body.single-product {
        padding-bottom: 72px;
    }
}
@media (min-width: 850px) {
    .kinro-sticky-cta {
        display: none !important;
    }
}

/* Hero — full banner 1360×540 */
.kinro-hero-slider .ux-slider {
    margin-bottom: 0 !important;
}
.kinro-hero-slider .banner,
.kinro-hero-slider .kinro-hero-slide {
    /* Match banner ratio so bg_size cover shows full image, no crop */
    aspect-ratio: 1360 / 540;
    height: auto !important;
    min-height: 0;
    max-height: none;
}
.kinro-hero-slider .banner-layers,
.kinro-hero-slider .banner-bg {
    height: 100% !important;
}
.kinro-hero-slider .banner-bg .bg,
.kinro-hero-slider .bg {
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
/* Fallback: if ratio differs slightly, still show full image */
.kinro-hero-slider .fill {
    background-size: 100% 100% !important;
}
.kinro-hero-h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--kinro-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.kinro-hero-p {
    font-size: 1.05rem;
    margin: 0 0 18px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
@media (max-width: 849px) {
    .kinro-hero-slider .banner,
    .kinro-hero-slider .kinro-hero-slide {
        aspect-ratio: 1360 / 540;
        min-height: 0;
    }
    .kinro-hero-h1 {
        font-size: 1.35rem;
    }
    .kinro-hero-p {
        font-size: 0.9rem;
    }
}

/* Trust bar */
.kinro-trust-bar {
    border-bottom: 1px solid var(--kinro-border);
    background-color: var(--kinro-bg-alt);
}
.kinro-trust-item {
    text-align: center;
    padding: 8px 12px;
}
.kinro-trust-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--kinro-primary) !important;
    color: var(--kinro-white) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.kinro-trust-icon i {
    color: var(--kinro-white) !important;
}
.kinro-trust-item h4 {
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--kinro-primary) !important;
    font-weight: 700;
}
.kinro-trust-item p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    color: var(--kinro-muted);
}
.kinro-trust-item a {
    color: var(--kinro-primary) !important;
    font-weight: 600;
}

/* Section title Ã¢â‚¬â€ simple, clickable */
.kinro-section-head {
    margin: 22px 0 14px;
    padding: 0 2px;
}
.kinro-section-title-link {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-block;
}
.kinro-section-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1a1a1a !important;
    border: 0 !important;
    text-transform: none !important;
}
.kinro-section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--kinro-primary);
    margin-top: 8px;
    border-radius: 2px;
}
.kinro-section-title-link:hover .kinro-section-title {
    color: var(--kinro-primary) !important;
}
@media (max-width: 549px) {
    .kinro-section-title {
        font-size: 18px !important;
    }
}

/* Category strip Ã¢â‚¬â€ force 4 cols desktop */
.kinro-cat-strip {
    background: var(--kinro-white);
}
.kinro-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
    width: 100%;
    margin: 0;
}
.kinro-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 12px 16px;
    border: 1px solid var(--kinro-border);
    border-radius: var(--kinro-radius);
    background: var(--kinro-white);
    text-decoration: none !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    min-height: 0;
}
.kinro-cat-card:hover {
    box-shadow: var(--kinro-shadow);
    transform: translateY(-2px);
    border-color: rgba(0, 91, 170, 0.35);
}
.kinro-cat-img {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kinro-bg-image);
    border-radius: 8px;
    overflow: hidden;
}
.kinro-cat-img img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.kinro-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--kinro-primary);
    color: var(--kinro-white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.kinro-cat-icon i {
    color: var(--kinro-white) !important;
}
.kinro-cat-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a !important;
    line-height: 1.3;
}
.kinro-cat-desc {
    font-size: 12px;
    color: var(--kinro-muted) !important;
    line-height: 1.35;
}
@media (max-width: 849px) {
    .kinro-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .kinro-cat-img {
        height: 88px;
    }
}

/* Product cards */
.kinro-products-row {
    padding-top: 6px;
}
.products .product-small .box,
.product-small.box,
.product-small .box {
    border: 1px solid var(--kinro-border) !important;
    border-radius: var(--kinro-radius) !important;
    overflow: hidden;
    background: var(--kinro-white);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}
.products .product-small:hover .box,
.product-small:hover .box {
    box-shadow: var(--kinro-shadow);
    transform: translateY(-2px);
}
.product-small .box-image {
    background: var(--kinro-bg-image);
}
.product-small .box-image img {
    object-fit: contain !important;
    background: var(--kinro-bg-image);
    max-height: 220px;
    margin: 0 auto;
    display: block;
}
.product-small .box-text {
    padding: 10px 12px 12px !important;
    display: flex;
    flex-direction: column;
}
.product-small .product-title,
.product-small .woocommerce-loop-product__title,
.product-small .name.product-title {
    margin: 0 0 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600;
    color: var(--kinro-text);
}
.product-small .product-title a,
.product-small .name.product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: inherit !important;
    max-height: 2.8em;
}

/* Price Ã¢â‚¬â€ blue primary, red only for sale */
.product-small .price {
    display: block;
    margin: 0 0 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--kinro-primary) !important;
    line-height: 1.35;
}
.product-small .price .amount,
.product-small .price ins .amount,
.product-small .price ins {
    color: var(--kinro-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.product-small .price del,
.product-small .price del .amount {
    color: var(--kinro-muted) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}
.product-small .price del {
    margin-right: 6px;
}
/* Sale current price uses accent */
.product-small .price ins .amount {
    color: var(--kinro-accent) !important;
}
.product-small .badge-container .badge-inner.on-sale,
.product-small .badge-inner.secondary.on-sale,
.product-small .badge-inner.on-sale {
    background: var(--kinro-accent) !important;
    color: var(--kinro-white) !important;
    border: none !important;
    font-weight: 700;
    font-size: 12px;
    border-radius: var(--kinro-radius-sm);
    padding: 4px 8px;
}
.product-small .price .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Loop CTA: icon cart + Mua ngay */
.kinro-loop-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    width: 100%;
}
.kinro-loop-cta .kinro-btn-cart {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kinro-primary) !important;
    background: transparent !important;
    color: var(--kinro-primary) !important;
    border-radius: var(--kinro-radius-sm) !important;
    line-height: 1 !important;
}
.kinro-loop-cta .kinro-btn-cart:hover {
    background: var(--kinro-primary) !important;
    color: var(--kinro-white) !important;
}
.kinro-loop-cta .kinro-btn-cart i,
.kinro-loop-cta .kinro-btn-cart .icon-shopping-cart {
    font-size: 16px;
    margin: 0 !important;
}
.kinro-loop-cta .kinro-btn-buy {
    flex: 1 1 auto;
    margin: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 40px !important;
    text-align: center;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--kinro-radius-sm) !important;
    background: var(--kinro-primary) !important;
    border-color: var(--kinro-primary) !important;
    color: var(--kinro-white) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.kinro-loop-cta .kinro-btn-buy:hover {
    background: var(--kinro-primary-dark) !important;
    border-color: var(--kinro-primary-dark) !important;
}
.kinro-loop-cta .added_to_cart {
    display: none !important;
}
.kinro-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mid CTA */
section.kinro-mid-cta,
.kinro-mid-cta {
    background: var(--kinro-primary) !important;
}
.kinro-mid-cta-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 4px 12px;
    text-align: center;
}
.kinro-mid-cta-title {
    margin: 0 0 8px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--kinro-white) !important;
    border: 0 !important;
}
.kinro-mid-cta-title::after {
    display: none !important;
}
.kinro-mid-cta-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}
.kinro-mid-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.kinro-mid-cta-actions .button {
    margin: 0 !important;
    min-width: 150px;
}
.kinro-mid-cta-actions .button.secondary,
.kinro-mid-cta-actions .button.primary {
    background: var(--kinro-white) !important;
    border-color: var(--kinro-white) !important;
    color: var(--kinro-primary) !important;
}
.kinro-mid-cta-actions .button.white.is-outline {
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--kinro-white) !important;
}
@media (max-width: 549px) {
    .kinro-mid-cta-title {
        font-size: 18px !important;
    }
    .kinro-mid-cta-actions .button {
        width: 100%;
        min-width: 0;
    }
}

/* PDP */
.single-product .product-summary .price,
.single-product .price-wrapper .price,
.single-product .summary .price {
    color: var(--kinro-primary) !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
}
.single-product .price del,
.single-product .price del .amount {
    color: var(--kinro-muted) !important;
    font-size: 0.95rem !important;
}
.single-product .price ins .amount {
    color: var(--kinro-accent) !important;
}
.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;
}
.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 160px;
    min-height: 48px;
    background: transparent !important;
    border: 2px solid var(--kinro-primary) !important;
    color: var(--kinro-primary) !important;
    font-weight: 700 !important;
    border-radius: var(--kinro-radius-sm) !important;
}
.single-product form.cart .single_add_to_cart_button:hover {
    background: var(--kinro-primary) !important;
    color: var(--kinro-white) !important;
}
.single-product a.devvn_buy_now,
.single-product .devvn_buy_now_style,
.single-product .kinro-qo-btn,
.single-product button.kinro-qo-trigger {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 8px 0 12px !important;
    padding: 0 16px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    background: var(--kinro-primary) !important;
    border: 2px solid var(--kinro-primary) !important;
    border-radius: var(--kinro-radius-sm) !important;
    color: var(--kinro-white) !important;
    text-align: center;
    text-decoration: none !important;
    gap: 0 !important;
}
.single-product a.devvn_buy_now:hover,
.single-product .kinro-qo-btn:hover,
.single-product button.kinro-qo-trigger:hover {
    background: var(--kinro-primary-dark) !important;
    border-color: var(--kinro-primary-dark) !important;
}
.single-product a.devvn_buy_now strong,
.single-product .kinro-qo-btn__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--kinro-white) !important;
    text-transform: uppercase;
}
.single-product a.devvn_buy_now span,
.single-product .kinro-qo-btn__sub {
    display: none !important;
}
.single-product a.devvn_buy_now strong,
.single-product .kinro-qo-btn__title {
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 15px !important;
}
.single-product .devvn-order-btn {
    background: var(--kinro-primary) !important;
    border-color: var(--kinro-primary) !important;
    color: var(--kinro-white) !important;
}
.kinro-pdp-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--kinro-bg-alt);
    border: 1px solid var(--kinro-border);
    border-radius: var(--kinro-radius);
}
.kinro-pdp-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--kinro-text);
}
.kinro-pdp-trust-item i {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    margin-top: 2px;
    color: var(--kinro-primary);
}
.kinro-pdp-trust-item strong {
    color: var(--kinro-primary);
}
.kinro-pdp-trust-item a {
    color: var(--kinro-primary) !important;
    font-weight: 600;
}
@media (min-width: 550px) {
    .kinro-pdp-trust {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer CTA Ã¢â‚¬â€ center */
.kinro-footer-cta {
    margin: 8px 0 12px !important;
}
.kinro-footer-cta .col,
.kinro-footer-cta .col-inner {
    text-align: center !important;
}
.kinro-footer-cta-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.kinro-footer-cta-inner .button,
.kinro-footer-cta .button {
    margin: 0 !important;
    float: none !important;
}
.kinro-footer-cta .button.secondary {
    background: var(--kinro-primary) !important;
    border-color: var(--kinro-primary) !important;
}

/* Lightbox tÃ†Â° vÃ¡ÂºÂ¥n Ã¢â‚¬â€ polish form */
#tu-van .lightbox-content,
.mfp-content #tu-van,
.mfp-content .kinro-tu-van,
.lightbox-by-id-tu-van {
    max-width: 480px;
}
.mfp-content .wpcf7,
#tu-van .wpcf7,
.lightbox-content .wpcf7 {
    text-align: left;
}
.mfp-content .wpcf7 h3,
.lightbox-content h3 {
    color: var(--kinro-primary);
    font-size: 1.35rem;
    margin: 0 0 8px;
    text-align: center;
}
.mfp-content .wpcf7 > p:first-of-type,
.lightbox-content > .col p {
    text-align: center;
    color: var(--kinro-muted);
    margin-bottom: 16px;
}
.mfp-content .wpcf7 label,
.lightbox-content .wpcf7 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--kinro-text);
    margin: 0 0 6px;
}
.mfp-content .wpcf7 input[type="text"],
.mfp-content .wpcf7 input[type="email"],
.mfp-content .wpcf7 input[type="tel"],
.mfp-content .wpcf7 textarea,
.lightbox-content .wpcf7 input[type="text"],
.lightbox-content .wpcf7 input[type="email"],
.lightbox-content .wpcf7 input[type="tel"],
.lightbox-content .wpcf7 textarea {
    width: 100%;
    border: 1px solid var(--kinro-border) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    background: var(--kinro-white) !important;
    box-shadow: none !important;
    margin-bottom: 12px;
}
.mfp-content .wpcf7 input:focus,
.mfp-content .wpcf7 textarea:focus,
.lightbox-content .wpcf7 input:focus,
.lightbox-content .wpcf7 textarea:focus {
    border-color: var(--kinro-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.15) !important;
}
.mfp-content .wpcf7 input[type="submit"],
.lightbox-content .wpcf7 input[type="submit"] {
    width: 100%;
    background: var(--kinro-primary) !important;
    border: none !important;
    color: var(--kinro-white) !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    margin-top: 4px;
    cursor: pointer;
}
.mfp-content .wpcf7 input[type="submit"]:hover {
    background: var(--kinro-primary-dark) !important;
}

.kinro-news-row {
    border-top: 1px solid var(--kinro-border);
    margin-top: 8px;
}

img {
    height: auto;
}

.related .product-small .box,
.upsells .product-small .box {
    border: 1px solid var(--kinro-border);
    border-radius: var(--kinro-radius);
}

/* Keep Flatsome icon font intact */
.icon-shopping-cart:before,.icon-search:before,.icon-menu:before,.icon-phone:before,.icon-user:before,.icon-angle-down:before,.icon-angle-left:before,.icon-angle-right:before,.header-button .icon:before,i[class*=icon-]:before{font-family:fl-icons!important;font-style:normal!important;font-weight:normal!important;}

/* ===== Kinro Quick Order — style sync with design tokens ===== */
.kinro-qo-modal {
  --kinro-qo-primary: var(--kinro-primary);
  --kinro-qo-primary-dark: var(--kinro-primary-dark);
  --kinro-qo-accent: var(--kinro-accent);
  --kinro-qo-text: var(--kinro-text);
  --kinro-qo-muted: var(--kinro-muted);
  --kinro-qo-border: var(--kinro-border);
  --kinro-qo-bg: var(--kinro-bg-alt);
  --kinro-qo-white: var(--kinro-white);
  --kinro-qo-radius: var(--kinro-radius);
  --kinro-qo-radius-sm: var(--kinro-radius-sm);
  font-family: inherit !important;
}
.kinro-qo-modal input[type="text"],
.kinro-qo-modal input[type="tel"],
.kinro-qo-modal input[type="email"],
.kinro-qo-modal input:not([type]) {
  border-radius: var(--kinro-radius-sm) !important;
  border-color: var(--kinro-border) !important;
  font-family: inherit !important;
  color: var(--kinro-text) !important;
}
.kinro-qo-modal input:focus {
  border-color: var(--kinro-primary) !important;
}
.kinro-qo-modal .kinro-qo-submit {
  background: var(--kinro-primary) !important;
  background-image: none !important;
  border: 2px solid var(--kinro-primary) !important;
  border-radius: var(--kinro-radius-sm) !important;
  color: #fff !important;
  font-family: inherit !important;
  text-transform: none !important;
}
.kinro-qo-modal .kinro-qo-submit:hover {
  background: var(--kinro-primary-dark) !important;
  border-color: var(--kinro-primary-dark) !important;
}
.kinro-qo-modal__header {
  background: var(--kinro-primary) !important;
  background-image: none !important;
}
.kinro-qo-product__price,
.kinro-qo-product__price .amount,
.kinro-qo-product__price ins .amount {
  color: var(--kinro-accent) !important;
}
.single-product .kinro-qo-btn,
.single-product button.kinro-qo-trigger {
  background: var(--kinro-primary) !important;
  background-image: none !important;
  border: 2px solid var(--kinro-primary) !important;
  border-radius: var(--kinro-radius-sm) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.single-product .kinro-qo-btn:hover {
  background: var(--kinro-primary-dark) !important;
  border-color: var(--kinro-primary-dark) !important;
}

/* Compact Mua ngay popup (home/shop/PDP) */
.kinro-qo-modal__dialog {
  max-width: 640px !important;
  max-height: min(85vh, 420px) !important;
}

/* Mua ngay buttons compact — mobile */
@media (max-width: 849px) {
    .kinro-loop-cta {
        gap: 6px;
    }
    .kinro-loop-cta .kinro-btn-cart {
        flex: 0 0 36px;
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
    .kinro-loop-cta .kinro-btn-buy {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 36px !important;
        font-size: 11.5px !important;
        padding: 0 8px !important;
    }
    .single-product .kinro-qo-btn,
    .single-product button.kinro-qo-trigger {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0 12px !important;
        margin: 8px 0 10px !important;
    }
    .single-product .kinro-qo-btn__title {
        font-size: 14px !important;
    }
    .single-product form.cart .single_add_to_cart_button {
        min-height: 44px !important;
        height: 44px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 40px !important;
    }
}

/* Force compact Mua ngay on product cards (home/shop) */
.product .kinro-loop-cta a.kinro-btn-buy.button,
.product-small .kinro-loop-cta a.kinro-btn-buy.button,
li.product .kinro-loop-cta a.kinro-btn-buy.button,
.kinro-loop-cta a.kinro-btn-buy.button,
a.button.kinro-btn-buy {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 38px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
@media (max-width: 849px) {
  .product .kinro-loop-cta a.kinro-btn-buy.button,
  .product-small .kinro-loop-cta a.kinro-btn-buy.button,
  li.product .kinro-loop-cta a.kinro-btn-buy.button,
  .kinro-loop-cta a.kinro-btn-buy.button,
  a.button.kinro-btn-buy {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 34px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }
  .product .kinro-loop-cta .kinro-btn-cart,
  .kinro-loop-cta a.kinro-btn-cart.button {
    height: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
    flex-basis: 36px !important;
  }
}
/* PDP Mua ngay single-line force */
.single-product button.kinro-qo-btn.kinro-qo-trigger,
.single-product .kinro-qo-btn.kinro-qo-trigger {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 14px !important;
  flex-direction: row !important;
}
.single-product .kinro-qo-btn__sub {
  display: none !important;
}

/* === Kinro balance cards/prices v3.20 === */
/* Giá full-width một hàng; CTA (giỏ + Mua ngay) hàng dưới — không che giá */

/* Hide Woo a11y sale strings that bloat mobile price height */
.product-small .price-wrapper .price .screen-reader-text,
.product .price-wrapper .price .screen-reader-text,
.products .price .screen-reader-text,
.single-product .summary .price .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Card text column */
.product-small .box-text.box-text-products,
.products .product-small .box-text {
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 10px 12px !important;
}

/* Title 2-line clamp */
.product-small .box-text .product-title,
.product-small .box-text .name.product-title,
.product-small .box-text .woocommerce-loop-product__title {
  margin: 0 0 6px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  min-height: 2.7em !important;
}

.product-small .box-text .product-title a,
.product-small .box-text .name.product-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: inherit !important;
}

/*
 * Price zone: column layout.
 * Nếu CTA vẫn nằm trong .price-wrapper (DOM Flatsome) → xếp dưới giá, full width.
 */
.product-small .price-wrapper,
.products .product-small .price-wrapper,
.product-small .box-text > .price-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Chỉ phần giá — full width, không chia chỗ với nút */
.product-small .price-wrapper > .price,
.product-small .price-wrapper .price,
.product-small span.price,
.products .product-small span.price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 8px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--kinro-primary) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  box-sizing: border-box !important;
}

.product-small .price-wrapper .price .amount,
.product-small .price-wrapper .price > .woocommerce-Price-amount {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--kinro-primary) !important;
  white-space: nowrap !important;
}

/* Sale: ưu tiên giá mới (ins) trước, gốc gạch sau — dễ đọc trên card hẹp */
.product-small .price-wrapper .price del {
  display: inline !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--kinro-muted) !important;
  text-decoration: line-through !important;
  opacity: 0.9;
  order: 2;
}
.product-small .price-wrapper .price del .amount {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--kinro-muted) !important;
  white-space: nowrap !important;
}
.product-small .price-wrapper .price ins {
  display: inline !important;
  text-decoration: none !important;
  background: none !important;
  order: 1;
}
.product-small .price-wrapper .price ins .amount {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--kinro-accent) !important;
  white-space: nowrap !important;
}

/* CTA luôn full-width hàng riêng (kể cả khi DOM lồng trong .price-wrapper) */
.product-small .price-wrapper > .kinro-loop-cta,
.product-small .box-text .kinro-loop-cta,
.product-small .kinro-loop-cta,
.products .product-small .kinro-loop-cta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.product-small .box-text .kinro-loop-cta {
  margin-top: auto !important;
}

.product-small .price-wrapper > .kinro-loop-cta {
  margin-top: 0 !important;
}

/* Tablet */
@media (max-width: 849px) {
  .product-small .price-wrapper,
  .products .product-small .price-wrapper {
    gap: 6px !important;
  }
  .product-small .price-wrapper .price,
  .product-small span.price {
    font-size: 13px !important;
  }
  .product-small .price-wrapper .price .amount,
  .product-small .price-wrapper .price ins .amount {
    font-size: 13px !important;
  }
  .product-small .price-wrapper .price ins .amount {
    font-size: 14px !important;
  }
  .product-small .price-wrapper .price del,
  .product-small .price-wrapper .price del .amount {
    font-size: 10.5px !important;
  }
  .product-small .box-text .product-title,
  .product-small .box-text .name.product-title {
    font-size: 12.5px !important;
  }
}

/* Mobile */
@media (max-width: 549px) {
  .product-small .box-text.box-text-products {
    padding: 8px 8px 10px !important;
  }
  .product-small .box-text .product-title,
  .product-small .box-text .name.product-title {
    font-size: 12px !important;
    min-height: 2.6em !important;
    margin-bottom: 4px !important;
  }
  .product-small .price-wrapper,
  .products .product-small .price-wrapper {
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .product-small .price-wrapper .price,
  .product-small span.price {
    font-size: 12.5px !important;
    gap: 4px 6px !important;
  }
  .product-small .price-wrapper .price .amount,
  .product-small .price-wrapper .price ins .amount {
    font-size: 13px !important;
  }
  .product-small .price-wrapper .price del,
  .product-small .price-wrapper .price del .amount {
    font-size: 10px !important;
  }
}

/* PDP price */
.single-product .summary .price,
.single-product .product-summary .price,
.single-product .price-wrapper .price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px 10px !important;
  margin: 8px 0 12px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--kinro-primary) !important;
}
.single-product .summary .price del,
.single-product .summary .price del .amount {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--kinro-muted) !important;
}
.single-product .summary .price ins {
  text-decoration: none !important;
  background: none !important;
}
.single-product .summary .price ins .amount {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--kinro-accent) !important;
}
@media (max-width: 549px) {
  .single-product .summary .price,
  .single-product .product-summary .price {
    font-size: 18px !important;
  }
  .single-product .summary .price ins .amount {
    font-size: 18px !important;
  }
  .single-product .summary .price del,
  .single-product .summary .price del .amount {
    font-size: 12.5px !important;
  }
}
/* === end balance cards/prices === */

