/*
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.   ***************/

.absolute-footer {
    display: none !important;
}

/* Top-level menu items only: uppercase */
#header .header-nav-main > .menu-item > a.nav-top-link {
    text-transform: uppercase !important;
}

/* Dropdown / sub-menu items: normal case & remove Flatsome margin-left */
#header .nav-dropdown li,
#header .sub-menu li {
    text-transform: none !important;
    margin-left: 0 !important;
}

#header .nav-dropdown li a,
#header .sub-menu li a {
    text-transform: none !important;
}

.entry-content {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

/* Archive Post Loop Customization */
.post-item .post-title,
.post-title.is-large {
    line-height: 1.4 !important;
    min-height: 2.8em !important; /* Force exactly 2 lines height */
    max-height: 2.8em !important;
    overflow: hidden;
}

.post-item .post-title a,
.post-title.is-large a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.blog-archive .post-item .from_the_blog_excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-archive .post-item .is-divider {
    display: none !important;
}

/* ===== Sidebar Widget Customization ===== */

/* Widget container box */
#shop-sidebar .widget:not(.widget_search),
#shop-sidebar .widget-area .widget:not(.widget_search),
#product-sidebar .widget:not(.widget_search),
#product-sidebar .widget-area .widget:not(.widget_search),
.widget-area .widget:not(.widget_search) {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 15px;
}

/* Inner content padding */
.widget-area .widget:not(.widget_search) > *:not(.widget-title):not(.is-divider) {
    padding-left: 15px;
    padding-right: 15px;
}

/* Widget title – green header bar */
.widget-area .widget:not(.widget_search) .widget-title,
#shop-sidebar .widget .widget-title,
.widget-title.shop-sidebar {
    background: #3cb111;
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    font-weight: 600;
    letter-spacing: .02em;
    width: 100%;
    display: block;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Hide the divider under widget title */
#shop-sidebar .is-divider,
.widget-area .is-divider {
    display: none;
}

/* ===== Product Categories Widget ===== */

/* Category list padding */
#shop-sidebar .widget ul.product-categories,
#shop-sidebar .widget ul.product_list_widget {
    padding: 10px;
}

/* Checkbox pseudo-element on category links */
ul.product-categories .cat-item a::before {
    display: inline-block;
    vertical-align: top;
    content: '';
    width: 12px;
    height: 12px;
    border: 1px solid #cdcdcd;
    border-radius: 1px;
    margin: 6px 12px 0 0;
}

/* Hover/active – green checkmark */
ul.product-categories .cat-item a:hover::before,
ul.product-categories .cat-item a:active::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Pro";
    line-height: 10px;
    font-size: 9px;
    padding-left: 1px;
    color: #fff;
    text-align: center;
    border-color: #00c851;
    background-color: #00c851;
}

/* Children sub-categories */
#shop-sidebar .widget ul li ul.children {
    border-left: 0 none;
    padding-left: 0;
}

/* ===== Price Filter Widget ===== */

#shop-sidebar .widget_price_filter .price_slider_wrapper {
    padding: 10px;
}

#shop-sidebar .widget_price_filter .price_slider {
    background: #f1f1f1;
    margin-bottom: 1em;
}

#shop-sidebar .widget_price_filter .price_slider_amount {
    font-size: .875em;
    line-height: 1;
    text-align: right;
}

#shop-sidebar .widget_price_filter .price_slider_amount .button {
    background-color: #666;
    border-radius: 99px;
    float: left;
    font-size: .85em;
    color: #fff;
}

#shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #666;
    border-radius: 999px;
    cursor: pointer;
    height: 15px;
    width: 15px;
}

#shop-sidebar .widget_price_filter .ui-slider .ui-slider-range {
    background-color: #666;
    opacity: .5;
}

#shop-sidebar .widget_price_filter .price_label {
    padding-top: 6px;
}

#shop-sidebar .widget_price_filter span {
    font-weight: 700;
}

/* ===== Recently Viewed Products Widget ===== */

#shop-sidebar ul.product_list_widget li {
    line-height: 1.33;
    list-style: none;
    min-height: 80px;
    overflow: hidden;
    padding: 10px 0 5px 75px;
    position: relative;
    vertical-align: top;
}

#shop-sidebar ul.product_list_widget li + li {
    border-top: 1px solid #ececec;
}

#shop-sidebar ul.product_list_widget li a:not(.remove) {
    display: block;
    line-height: 1.3;
    margin-bottom: 5px;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
}

#shop-sidebar ul.product_list_widget li img {
    height: 60px;
    left: 0;
    margin-bottom: 5px;
    object-fit: cover;
    object-position: 50% 50%;
    position: absolute;
    top: 10px;
    width: 60px;
}

/* Price amount in red/bold */
.woocommerce-Price-amount.amount {
    color: #f00;
    font-weight: bold;
}

/* Search Button Background */
button[type="submit"], 
.button.submit-button, 
.button.secondary:not(.is-outline) {
    background-color: #3cb111 !important;
}
button[type="submit"]:hover, 
.button.submit-button:hover, 
.button.secondary:not(.is-outline):hover {
    background-color: #31940e !important;
}
/* Recent Posts Widget Customization */
.widget.flatsome_recent_posts .badge,
.widget.flatsome_recent_posts .badge-outline,
.widget.flatsome_recent_posts .badge-inner {
    border-radius: 50% !important;
}

.widget.flatsome_recent_posts .recent-blog-posts .flex-grow a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    white-space: normal;
}

/* Remove border from row-divided */
@media screen and (min-width: 850px) {
    .row-divided > .col + .col:not(.large-12) {
        border-left: 0 !important;
    }
}

/* ===== Flickity Testimonial Slider (fully scoped – no CDN CSS) ===== */

/* Flickity structural: enabled container */
.xc-home-testimonial .row-xc-slider.flickity-enabled {
    position: relative;
    display: block !important;
    overflow: visible;
}
.xc-home-testimonial .row-xc-slider.flickity-enabled:focus {
    outline: none;
}

/* Flickity structural: viewport */
.xc-home-testimonial .row-xc-slider .flickity-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Flickity structural: slider track */
.xc-home-testimonial .row-xc-slider .flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Each slide cell */
.xc-home-testimonial .row-xc-slider .col {
    width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

/* Card wrapper inside each cell */
.xc-home-testimonial .row-xc-slider .col .col-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.xc-home-testimonial .row-xc-slider .col .col-inner:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* Testimonial image */
.xc-home-testimonial .row-xc-slider .testimonial-image img {
    border: 3px solid #3cb111;
    border-radius: 50%;
}

/* Star rating color */
.xc-home-testimonial .row-xc-slider .star-rating span::before {
    color: #f5a623;
}

/* Testimonial text */
.xc-home-testimonial .row-xc-slider .testimonial-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* Testimonial meta */
.xc-home-testimonial .row-xc-slider .testimonial-name {
    color: #222;
    font-size: 15px;
}
.xc-home-testimonial .row-xc-slider .testimonial-company {
    color: #3cb111;
    font-size: 13px;
}

/* Flickity prev/next buttons – override Flatsome defaults */
.xc-home-testimonial .row-xc-slider .flickity-button {
    position: absolute !important;
    background: #3cb111 !important;
    background-color: #3cb111 !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    /* Reset Flatsome global button styles */
    padding: 0 !important;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.xc-home-testimonial .row-xc-slider .flickity-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(60, 177, 17, 0.4) !important;
}
.xc-home-testimonial .row-xc-slider .flickity-button:active {
    opacity: 0.6 !important;
}
.xc-home-testimonial .row-xc-slider .flickity-button:disabled {
    opacity: 0.3 !important;
    cursor: auto;
    pointer-events: none;
}
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button {
    top: 50% !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
}
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button:hover {
    background: #31940e !important;
    opacity: 1 !important;
}
/* SVG icon – centered inside button */
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 40% !important;
    height: 40% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
}
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button svg .arrow,
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button .flickity-button-icon {
    fill: #fff !important;
}
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button.previous {
    left: -50px !important;
}
.xc-home-testimonial .row-xc-slider .flickity-prev-next-button.next {
    right: -50px !important;
}

/* Flickity page dots – fully scoped */
.xc-home-testimonial .row-xc-slider .flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -30px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}
.xc-home-testimonial .row-xc-slider .flickity-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: background 0.3s;
}
.xc-home-testimonial .row-xc-slider .flickity-page-dots .dot.is-selected {
    background: #3cb111;
}

/* Section padding to accommodate dots */
.xc-home-testimonial {
    padding-bottom: 60px !important;
}

/* Tablet: 2 slides */
@media (max-width: 849px) {
    .xc-home-testimonial .row-xc-slider .col {
        width: 50%;
    }
}

/* ===== Before & After Image Comparison (no plugin) ===== */

/* Container: stack images */
.xc-home-before-after .col-before-after .col-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}

/* Before image: bottom layer, full width */
.xc-home-before-after .col-before-after .xc-img-before {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 0 !important;
}
.xc-home-before-after .col-before-after .xc-img-before .img-inner {
    overflow: hidden;
}
.xc-home-before-after .col-before-after .xc-img-before img {
    display: block;
    width: 100%;
    height: auto;
}

/* After image: absolute on top, clipped */
.xc-home-before-after .col-before-after .xc-img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0s;
}
.xc-home-before-after .col-before-after .xc-img-after .img-inner {
    width: 100%;
    height: 100%;
}
.xc-home-before-after .col-before-after .xc-img-after img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider handle (injected by JS) */
.xc-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 30;
    cursor: col-resize;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: left 0s;
}

/* Handle circle knob */
.xc-ba-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(60, 177, 17, 0.85);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* Left & right arrows inside handle */
.xc-ba-handle::after {
    content: '\25C0  \25B6';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    letter-spacing: 4px;
    z-index: 31;
    pointer-events: none;
    white-space: nowrap;
}

/* Before / After labels */
.xc-ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 14px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.1em;
    border-radius: 3px;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.xc-ba-label--before {
    left: 12px;
}
.xc-ba-label--after {
    right: 12px;
}
.xc-home-before-after .col-before-after .col-inner:hover .xc-ba-label {
    opacity: 1;
}

/* Text column styling refinements */
.xc-home-before-after .xc-section-title {
    color: #fff;
}
.xc-home-before-after #text-1654200412 p {
    color: rgba(255,255,255,0.85);
}

/* ===== Home Master Parallax – Card with Green Border ===== */
.xc-home-master .icon-box {
    background-color: #fff;
    padding: 30px;
    border: 10px solid #3cb111;
}

/* Override dark theme text colors inside the white card */
.xc-home-master .icon-box .icon-box-text,
.xc-home-master .icon-box .icon-box-text p {
    color: #333;
}
.xc-home-master .icon-box .icon-box-text strong {
    color: #000;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .row-xc-reverse {
        display: flex;
        flex-direction: column-reverse !important;
    }
    /* Mobile: 1 slide */
    .xc-home-testimonial .row-xc-slider .col {
        width: 100%;
    }
    .xc-home-testimonial .row-xc-slider .flickity-prev-next-button {
        display: none;
    }
}