/*
 * Storefront semantic formatting helpers for inline editor overrides.
 * Theme visual styles live in Flatsome CSS and theme-custom.css.
 */

.client-content-heading-h1 {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}
.client-content-heading-h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}
.client-content-heading-h3 {
    font-size: 1.625rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}
.client-content-heading-h4 {
    font-size: 1.375rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}
.client-content-heading-h5 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}
.client-content-heading-h6 {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}
.client-content-format-p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}
.client-content-list-ul,
.client-content-list-ol {
    display: block !important;
    margin: 0.75rem 0 !important;
    padding-inline-start: 1.75rem !important;
}
.client-content-list-ul {
    list-style: disc outside !important;
}
.client-content-list-ol {
    list-style: decimal outside !important;
}
.client-content-list-ul > li,
.client-content-list-ol > li {
    display: list-item !important;
}

/* Header logo and wide-nav alignment for Thanh Phong logo */
#logo {
    width: 220px !important;
    position: relative;
    z-index: 12;
}
#logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}
#logo img {
    max-height: 112px !important;
    height: 112px !important;
    width: auto !important;
    padding: 4px 0 0 0 !important;
    margin-bottom: -24px !important;
    object-fit: contain;
}
.stuck #logo img {
    max-height: 66px !important;
    height: 66px !important;
    padding: 4px 0 !important;
    margin-bottom: 0 !important;
}
/* Home hero: manufacturer banners (940x360) with their own artwork and headline.
   Show the whole image at its ratio instead of a 600px-tall crop. */
/* Cap the hero at the content width (1220px) so the 940px artwork is only
   enlarged ~1.3x instead of ~2x on wide screens. */
#slider-1591151330 {
    max-width: 1220px;
    margin: 20px auto 0;
}
#slider-1591151330 .hero-banner-slide {
    aspect-ratio: 940 / 360;
    min-height: 0 !important;
    padding: 0 !important;
    width: 100%;
}
#slider-1591151330 .hero-banner-slide .section-bg img {
    object-fit: cover;
    object-position: center;
}
#wide-nav .client-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#wide-nav .header-bottom-nav {
    flex-wrap: nowrap !important;
}
/* Flatsome gives every .nav width:100%. The theme has one <ul> here; the cut
   splits it into the menu <ul> and the search/cart <ul>, so both stretch and the
   menu lands at the container's left edge, under the logo's white wedge
   (.header-bottom:before). Size them to content so the row stays right-aligned. */
#wide-nav .flex-right .header-bottom-nav {
    width: auto;
}
#wide-nav .header-bottom-nav > li > a {
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    /* Flatsome sets flex-wrap: wrap on .nav>li>a; when the nav shrinks the
       dropdown caret (.icon-angle-down) drops below the label. Keep it inline. */
    flex-wrap: nowrap;
}
#wide-nav .header-bottom-nav > li > a:hover,
#wide-nav .header-bottom-nav > li.active > a {
    color: #ffffff;
}
@media (max-width: 849px) {
    #logo img {
        max-height: 68px !important;
        padding: 4px 0 !important;
    }
}

/* Home Intro Product Image: no yellow circle, larger product display */
.gioi-thieu .circle img,
.gioi-thieu #image_155987855 img {
    border: none !important;
    border-radius: 0 !important;
}
.gioi-thieu #image_155987855 .img-inner {
    border-radius: 0 !important;
    overflow: visible !important;
}
.gioi-thieu #image_155987855 img {
    max-height: 500px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
    filter: drop-shadow(0 16px 28px rgba(11, 92, 138, 0.18));
}


/* Shop contact values from Admin → Cài đặt (client.partials.contact-value) keep the text colour around them. */
.client-contact-value a {
    color: inherit;
}

/* Product page thumbnails for the extra images added in the admin (pages/product.blade.php). */
.client-product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.client-product-thumb {
    width: calc(25% - 6px);
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
}
.client-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.client-product-thumb.is-nav-selected,
.client-product-thumb:hover {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Products without a price are sold on quotation (pages/product.blade.php). */
.client-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px;
}
.client-quote-actions .button {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.client-quote-actions .client-contact-value {
    font-weight: 700;
}
