/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.bordertron {
    border-radius: 50px;
    overflow: hidden;
    padding: 10px ;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.bordertronnho{
     border-radius: 15px;
    overflow: hidden;
    padding: 10px ;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.nutborder{
border-radius: 10px;
}

body{
    background: #fafafa;
}
.columtieude{
    height: 120px;
}
.xemtatca a {
    border: 1px solid rgb(229 231 235);
    padding: 10px 40px;
    text-align: center;
    /* display: flex; */
    align-items: center;
    border-radius: 20px;
    color: black;
}

.xemtatca svg{
    transform: translateY(3px);
    transition: 0.5s all;
}
.xemtatca a:hover svg{
    transform: translateX(5px);
    transition: 0.5s all;
}
.xemtatca a:hover{
    color: #0b2545;
}

.blocksanpham .product-small,.product-small .product-small {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
    transition: box-shadow .25s ease, transform .25s ease;
    padding: 10px 5px;
}
.product-small .box-text{
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
     height: 120px;
     
}
.product-small:hover, .product-small .product-small:hover{
    box-shadow: 0 8px 32px rgba(0, 0, 0, .13);
}
.product-small .box-text:hover a{
    color: #e8b33d;
}
.product-small .box-text a{
    
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    height: 40px;
   

}
.price ins span, .price bdi {
    color: #8b1a1a;
    font-size: 15px;
    font-weight: bold;

}

.post-item .box.box-blog-post {
    background: #ffffff;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), 0 1px 6px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.post-item .box-image {
    overflow: hidden;
    border-radius: 16px 16px 0 0 !important;
}
.has-format, .image-cover, .video-fit {
    background-position: 50% 50%;
    background-size: cover;
    height: auto;
    overflow: hidden;
    padding-top: 100%;
    position: relative;
}

.post-item .box-text {
    padding: 16px 20px 20px !important;
    background: #ffffff;
}
.cfom7 input,.cfom7 textarea{
    border-radius: 10px;
    border:1px solid #d1d5db;
}
.danhchoform7{
    border:1px solid #d1d5db;
    border-radius: 10px;
    padding: 25px 10px;
        box-shadow: 3px 2px 10px 3px #d8d8d8;
}
.absolute-footer{
    display: none;
}

ul.header-nav.header-nav-main.nav.nav-left.nav-size-medium.nav-spacing-large > li a{
    font-weight: 100;
    color: black;
    font-size: 18px;
}
ul.header-nav.header-nav-main.nav.nav-left.nav-size-medium.nav-spacing-large > li a:hover{
    color: #8b1a1a;
}

.header-inner.flex-row.container.logo-left.medium-logo-center {
    max-width: 94%;
}

li#menu-item-193 {
    background: white;
    border-radius: 30px;
    padding: 0px 20px;
    border: 1px solid #8b1a1a;
}
li#menu-item-193 a{
     color: #8b1a1a;
}
li#menu-item-193:hover {
    background: #8b1a1a;
    border: 1px solid #8b1a1a;
    transition: 0.5s all;
}
li#menu-item-193:hover a{
    color: white;
    transition: 0.5s all;
}
p.woocommerce-mini-cart__buttons.buttons a{
    border-radius: 30px;
}


li#menu-item-193 {
  position: relative;
  border: none !important;
  background: white;
  border-radius: 30px;
  padding: 0 20px;
  z-index: 0;
  box-shadow: 2px 2px 5px 4px #dddddd;
}

li#menu-item-193::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 1.5px; /* độ dày viền */
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    transparent 55%,
    rgb(139,26,26) 70%,
    #ffb199 80%,
    rgb(139,26,26) 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 2.5s linear infinite;
  pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

button.single_add_to_cart_button.button.alt {
    border-radius: 30px;
}

main#main .shop-container {
    background: #fafafa;
}
p.price.product-page-price.price-on-sale .amount bdi {
    font-size: 24px;
}


main#main .shop-container .product .row.content-row,.product .woocommerce-tabs.wc-tabs-wrapper.container.tabbed-content {
    background: white;
    padding: 20px 10px;
    border-radius: 20px;
    box-shadow: 0px 0px 2px 0px #929292;
    max-width: 94%;
}
.product .woocommerce-tabs.wc-tabs-wrapper.container.tabbed-content {
    background: white;
    padding: 50px 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 2px 0px #929292;
    max-width: 100%;
}

.product-footer > .container {
    padding: 0px;
    max-width: 94%;
}

.product-footer > .container .row {
    max-width: 100%;
}

.product-footer > .container h3.product-section-title {
    margin: 10px auto;
    max-width: 100%;
}
.woocommerce-product-gallery__wrapper img{
    border-radius: 10px;
}

/* Overlay */
    .pg-consult-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 99998;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease;
    }
    .pg-consult-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Panel */
    .pg-consult-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 380px;
        max-width: 100vw;
        height: 100%;
        background: #fff;
        z-index: 99999;
        transform: translateX(100%);
        transition: transform .38s cubic-bezier(.4,0,.2,1);
        display: flex;
        flex-direction: column;
        box-shadow: -8px 0 40px rgba(0,0,0,.18);
        overflow: hidden;
    }
    .pg-consult-panel.is-open {
        transform: translateX(0);
    }

    /* Header */
    .pg-cp-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 22px 22px 18px;
        border-bottom: 1px solid #f0ebe4;
        flex-shrink: 0;
    }
    .pg-cp-brand {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        color: #0b2545;
        text-transform: uppercase;
        margin: 0 0 4px;
    }
    .pg-cp-title {
        font-size: 22px;
        font-weight: 700;
        color: #1c1c1c;
        margin: 0;
        line-height: 1.2;
    }
    .pg-cp-close {
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #555;
        flex-shrink: 0;
        transition: background .2s;
        margin-top: 2px;
    }
    .pg-cp-close:hover { background: #e8e8e8; }

    /* Body */
    .pg-cp-body {
        flex: 1;
        overflow-y: auto;
        padding: 20px 22px 28px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Action buttons */
    .pg-cp-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .pg-cp-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 13px 10px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none !important;
        transition: opacity .2s, transform .15s;
        white-space: nowrap;
    }
    .pg-cp-btn:hover { opacity: .88; transform: translateY(-1px); }
    .pg-cp-btn-phone {
           background: white;
    color: #970000 !important;
    border: 2px solid #970000;
    }
    .pg-cp-btn-zalo {
        background: #0068ff;
        color: #fff !important;
    }

    /* Info rows */
    .pg-cp-info-row {
        display: flex;
        align-items: center;
        gap: 14px;
        background: #fafafa;
        border: 1px solid #f0ebe4;
        border-radius: 10px;
        padding: 14px 16px;
    }
    .pg-cp-info-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .pg-cp-info-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .07em;
        color: #9b9b9b;
        text-transform: uppercase;
        margin: 0 0 3px;
    }
    .pg-cp-info-value {
        font-size: 13.5px;
        font-weight: 600;
        color: #1c1c1c;
        text-decoration: none;
        margin: 0;
        display: block;
    }
    a.pg-cp-info-value:hover { color: #0b2545; }

    /* Showroom */
    .pg-cp-showroom {
        background: #fafafa;
        border: 1px solid #f0ebe4;
        border-radius: 10px;
        padding: 14px 16px;
    }
    .pg-cp-showroom-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
    }
    .pg-cp-showroom-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 700;
        color: #1c1c1c;
    }
    .pg-cp-directions {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        font-weight: 600;
        color: #0b2545 !important;
        text-decoration: none !important;
    }
    .pg-cp-directions:hover { text-decoration: underline !important; }
    .pg-cp-address {
        font-size: 12.5px;
        color: #6b6b6b;
        margin: 0 0 12px;
        line-height: 1.4;
    }
    .pg-cp-map { border-radius: 10px; overflow: hidden; }

    /* Social icons */
    .pg-cp-social {
        padding-top: 4px;
    }
    .pg-cp-social-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .07em;
        color: #9b9b9b;
        text-transform: uppercase;
        margin: 0 0 10px;
    }
    .pg-cp-social-icons {
        display: flex;
        gap: 10px;
    }
    .pg-cp-social-link {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        transition: opacity .2s, transform .15s;
        flex-shrink: 0;
    }

    button#place_order {
    border-radius: 40px;
}
    .pg-cp-social-link:hover {
        opacity: .85;
        transform: translateY(-2px);
    }

    @media (max-width: 480px) {
        .pg-consult-panel { width: 100vw; }
    }

    .product.type-product #woof_widget-3{
        display: none;
    }

    .button {
    border-radius: 20px;
}

span.amount.lienhe a{
    background: #0b2545;
    padding: 7px;
    border-radius: 40px;
    margin-top: 5px;
    display: inline-block;
    color: white;
    transition: 0.5s all;
    font-size: 14px;
    line-height: 25px;
}


span.amount.lienhe a:hover {
    background: #e8b33d;
  transition: 0.5s all;
  color: black;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.product-small .box-text{
    padding: 5px;
}
.row{
    max-width: 100% !important;
    margin: auto !important;
}
.row .col{
    padding: 8px;
}
.pg-lh-info-col{
    padding: 10px !important;

}
.pg-lh-info-item {
    gap:7.4px !important;
    background: white !important;
}
.pg-gt-cta {
    padding: 20px !important;
}
li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-193{
    display: none;
}
span.amount.lienhe a{
    font-size: 13px;
}
.product-small .box-text .product-title > a{
    height: 35px;
    font-size: 13px;
}
}

/* Khung chứa ảnh: cố định chiều cao, ẩn phần dư */
.products .box-image {
  position: relative;
  height: 280px; /* chỉnh số này theo ý muốn */
  overflow: hidden;
}

.products .box-image .image-fade_in_back,
.products .box-image a {
  display: block;
  height: 100%;
}

/* Ảnh: canh giữa tuyệt đối, lấp đầy khung */
.products .box-image img.attachment-woocommerce_thumbnail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;      /* cắt ảnh để lấp đầy khung, không méo */
  object-position: center;
}