/*
Theme Name: Chili theme Child
Description: This is a child theme for Chili Asia
Author: Chili Asia
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Product Card Container & Hover matching reference UI */
.product-small.box,
.product-small .col-inner {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.25s ease-in-out !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.product-small.box:hover,
.product-small .col-inner:hover,
.product-small.has-hover:hover {
    border-color: #70b200 !important;
    box-shadow: 0 4px 14px rgba(112, 178, 0, 0.18) !important;
}

/* Badge BÁN CHẠY */
.custom-badge-banchay {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background-color: #70b200;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12) !important;
}

.custom-badge-banchay.badge-top-right {
    left: auto !important;
    right: 10px !important;
}

/* Box Image Container */
.product-small .box-image {
    padding: 10px 8px 8px 8px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 310px !important;
    min-height: 310px !important;
}

.product-small .box-image img,
.product-small .image-cover img,
.product-small .box-image a img,
.box-image img,
.product-small .box-image-inner img {
    object-fit: contain !important;
    -o-object-fit: contain !important;
    max-height: 295px !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: static !important;
    transform: none !important;
}

.product-small .image-cover {
    padding-top: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Box Text & Titles */
.product-small .box-text {
    padding: 10px 10px 12px 10px !important;
    text-align: left !important;
}

.product-small .woocommerce-loop-product__title .woocommerce-loop-product__link,
.product-small .name a,
.product-small .product-title a,
.product-small .woocommerce-loop-product__title,
.product-small p.name,
.product-small .name {
    overflow: hidden !important;
    height: 38px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #222222 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 0 10px 0 !important;
}

.product-small .woocommerce-loop-product__title .woocommerce-loop-product__link:hover {
    color: #70b200 !important;
}

/* Action Buttons Row (Xem chi tiết + Cart) */
.custom-product-card-actions {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.custom-product-card-actions .btn-xem-chi-tiet {
    flex: 1 !important;
    background-color: #70b200 !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.2s ease !important;
    line-height: 1.2 !important;
}

.custom-product-card-actions .btn-xem-chi-tiet:hover {
    background-color: #5c9400 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(112, 178, 0, 0.3) !important;
}

.custom-product-card-actions .btn-cart-icon {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #d4d4d4 !important;
    background-color: #ffffff !important;
    color: #70b200 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.custom-product-card-actions .btn-cart-icon svg {
    stroke: #70b200 !important;
    transition: stroke 0.2s ease !important;
}

.custom-product-card-actions .btn-cart-icon:hover {
    border-color: #70b200 !important;
    background-color: #f6fcf0 !important;
}

.custom-product-card-actions .btn-cart-icon:hover svg {
    stroke: #5c9400 !important;
}

/* Sidebar View All Button */
.sidebar-view-all-btn {
    display: block !important;
    width: 100% !important;
    background-color: #70b200 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 10px 12px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 14px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(112, 178, 0, 0.2) !important;
}

.sidebar-view-all-btn:hover {
    background-color: #5c9400 !important;
    color: #ffffff !important;
}

/* Force Sidebar KHUYẾN MÃI to 1 product per row (100% width) and max 3 items */
.shop-sidebar .row .product-small.col,
.sidebar-inner .row .product-small.col,
#product-sidebar .row .product-small.col,
.widget_products .row .product-small.col,
.product-sidebar .product-small.col,
.product-sidebar .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

.shop-sidebar .row .product-small.col:nth-child(n+4),
.sidebar-inner .row .product-small.col:nth-child(n+4),
#product-sidebar .row .product-small.col:nth-child(n+4),
.widget_products .row .product-small.col:nth-child(n+4),
.product-sidebar .product-small.col:nth-child(n+4),
.product-sidebar .col:nth-child(n+4) {
    display: none !important;
}

/* Single Product Header & Meta Styling */
.product-main .product-info.summary .product-title {
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    margin: 8px 0 12px 0 !important;
}

.product-main .product-info.summary .product_meta {
    font-size: 13px !important;
    color: #4b5563 !important;
    border-top: 1px solid #f3f4f6 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 8px 0 !important;
    margin: 10px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.product-main .product-info.summary .product_meta > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.product-main .product-info.summary .product_meta .sku {
    font-weight: 600 !important;
    color: #111827 !important;
}

.product-main .product-info.summary .product_meta a {
    color: #70b200 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.product-main .product-info.summary .product_meta a:hover {
    text-decoration: underline !important;
}

/* Custom Single Product Container & Layout */
.custom-single-product-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    margin-top: 6px !important;
}

/* Quick Price & Stock Box */
.single-product-quick-box {
    background: #fdfdfd !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.single-quick-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.quick-price-wrap {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
}

.quick-price-label {
    font-size: 13.5px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.quick-price-val .price-contact-text,
.quick-price-val {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #70b200 !important;
}

.stock-badge-instock {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #eef7e6 !important;
    color: #558700 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    border: 1px solid #d4ecc0 !important;
}

.stock-badge-instock svg {
    stroke: #558700 !important;
}

.quick-price-note {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin: 4px 0 0 0 !important;
    font-style: italic !important;
}

/* Key Highlights Box */
.single-product-highlights-box {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

.highlights-header {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed #e5e7eb !important;
    letter-spacing: 0.3px !important;
}

.highlights-header svg {
    fill: #70b200 !important;
    stroke: #70b200 !important;
}

.highlights-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.highlights-list li {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    font-size: 13px !important;
    color: #374151 !important;
    line-height: 1.45 !important;
}

.hl-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #70b200 !important;
    margin-top: 6px !important;
    flex-shrink: 0 !important;
}

.hl-text strong {
    color: #111827 !important;
}

/* B2B Services Box */
.single-b2b-services-box {
    background: #f8faf5 !important;
    border: 1px dashed #c9e2b1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.b2b-service-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.b2b-icon {
    font-size: 14px !important;
}

/* Action Buttons */
.custom-single-product-actions {
    display: flex !important;
    gap: 12px !important;
    margin: 2px 0 !important;
    width: 100% !important;
}

.btn-single-lien-he {
    flex: 1.1 !important;
    background-color: #70b200 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 8px rgba(112, 178, 0, 0.22) !important;
    border: none !important;
    text-align: center !important;
}

.btn-single-lien-he:hover {
    background-color: #5c9400 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(112, 178, 0, 0.32) !important;
}

.btn-single-lien-he svg {
    stroke: #ffffff !important;
    flex-shrink: 0 !important;
}

.btn-single-bao-gia {
    flex: 1 !important;
    background-color: #ffffff !important;
    color: #70b200 !important;
    border: 1.5px solid #70b200 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
}

.btn-single-bao-gia:hover {
    background-color: #f7fcf2 !important;
    border-color: #5c9400 !important;
    color: #5c9400 !important;
    transform: translateY(-1px) !important;
}

.btn-single-bao-gia svg {
    stroke: #70b200 !important;
    flex-shrink: 0 !important;
    transition: stroke 0.25s ease !important;
}

.btn-single-bao-gia:hover svg {
    stroke: #5c9400 !important;
}

/* Trust Badges Bar */
.custom-single-trust-badges {
    background-color: #f8fbf5 !important;
    border: 1px solid #e2f0d9 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.trust-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.trust-badge-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(112, 178, 0, 0.12) !important;
}

.trust-badge-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
}

.trust-badge-text strong {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    white-space: nowrap !important;
}

.trust-badge-text span {
    font-size: 10.5px !important;
    color: #666666 !important;
    white-space: nowrap !important;
}

/* Direct Hotline & Support Bar */
.single-direct-hotline-bar {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: #4b5563 !important;
}

.hotline-bar-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.single-direct-hotline-bar a {
    color: #70b200 !important;
    text-decoration: none !important;
}

.single-direct-hotline-bar a:hover {
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .custom-single-trust-badges {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .custom-single-product-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .single-direct-hotline-bar {
        flex-direction: column !important;
        gap: 4px !important;
        text-align: center !important;
    }
}

/* Guarantee Single Product Summary is positioned side-by-side to the right of the Product Gallery Image */
.product-main .product-info.summary {
    clear: none !important;
}
