/* LG CSS Library v0.5.5 */

/* Flatsome Image Box Rounded Corners */
.box-image,
.box-image .image-cover,
.box-image img {
    border-radius: 20px;
    overflow: hidden;
}

.box .box-image,
.box .box-image img,
.box .image-cover,
.box .image-cover img {
    border-radius: 20px !important;
}

.box .box-image,
.box .image-cover {
    overflow: hidden !important;
}

@scope (.box) {
.box-image,
.box-image .image-cover,
.box-image img {
    border-radius: 20px;
    overflow: hidden;
}

.box .box-image,
.box .box-image img,
.box .image-cover,
.box .image-cover img {
    border-radius: 20px !important;
}

.box .box-image,
.box .image-cover {
    overflow: hidden !important;
}
}

/* Joinchat Move Up 28px */
.joinchat--chatbox .joinchat__box,
.joinchat--chatbox .joinchat__button,
.joinchat--right .joinchat__button {
    transform: translateY(-28px);
}

/* FormCraft Rounded Form Styling */
/* =========================================================
   FORMCRAFT - POOL & PROP THEME STYLING
   ========================================================= */


/* Hide FormCraft branding */

#main .formcraft-css a,
#footer .formcraft-css a,
#body .formcraft-css a,
#header .formcraft-css a {
    visibility: hidden;
}


/* =========================================================
   FORM CONTAINER
   Match product card: 18px
   ========================================================= */

.formcraft-css .form-cover form {
    border-radius: 18px !important;
}


/* =========================================================
   TEXT INPUTS
   ========================================================= */

.ng-not-empty .field-cover input[type="text"],
.ng-not-empty .field-cover input[type="email"],
.ng-not-empty .field-cover input[type="tel"],
.ng-not-empty .field-cover input[type="number"],
.ng-not-empty .field-cover input[type="url"],
.ng-not-empty .field-cover input[type="password"] {
    border-radius: 18px !important;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.textarea-cover div textarea {
    border-radius: 18px !important;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-cover div select {
    border-radius: 18px !important;
}


/* =========================================================
   SUBMIT BUTTON
   Match WooCommerce buttons
   ========================================================= */

.ng-not-empty div .submit-button {
    border-radius: 5px !important;
}


/* =========================================================
   CHECKBOX LABEL
   ========================================================= */

.checkbox-cover div label {
    font-weight: 400;
    font-size: 12px !important;

    transform: translateX(0) translateY(0);
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-cover div input[type="checkbox"] {
    border-radius: 5px !important;
}

/* PRODUCT CATEGORY SIDEBAR */
/* =========================================================
   PRODUCT CATEGORY SIDEBAR
   Matches Pool & Prop / WooCommerce product card styling
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper) {
    background: #ffffff;
    border: 1px solid #2a338b;
    border-radius: 18px;
    padding: 22px;

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   HEADING
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper) .wp-block-heading {
    font-size: 20px;
    font-weight: 700;

    margin-bottom: 18px;
    padding-bottom: 12px;

    border-bottom: 1px solid #2a338b;

    color: #2a338b;
}


/* =========================================================
   MAIN LIST
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list {
    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN CATEGORY ITEM
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-0
> .wc-block-product-categories-list-item {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    margin: 0 0 4px 0;
    padding: 0;

    border-radius: 8px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   MAIN CATEGORY LINK
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-0
> .wc-block-product-categories-list-item
> a {
    flex: 1;

    display: flex;
    align-items: center;

    padding: 9px 8px;

    color: #333333;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


/* =========================================================
   BLUE ARROW
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item
> a::before {
    content: "›";

    margin-right: 8px;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    color: #2a338b;

    transition: transform 0.2s ease;
}


/* =========================================================
   PRODUCT COUNT
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item-count {
    flex: 0 0 auto;

    margin-right: 6px;
    padding: 3px 8px;

    border-radius: 20px;

    background: #f3f4fa;

    color: #555555;

    font-size: 12px;
    font-weight: 600;

    text-align: center;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* =========================================================
   SUB CATEGORIES
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-1 {
    flex: 0 0 100%;
    width: 100%;

    margin: 2px 0 6px 0;
    padding: 0 0 0 22px;

    border-left: 0;
}


/* =========================================================
   SUB CATEGORY ROW
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-1
> .wc-block-product-categories-list-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    width: 100%;

    margin: 0;
    padding: 0;

    border-radius: 6px;
}


/* =========================================================
   SUB CATEGORY LINK
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-1
> .wc-block-product-categories-list-item
> a {
    flex: 1;

    display: flex;
    align-items: center;

    min-width: 0;

    padding: 6px;

    color: #555555;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   SMALLER ARROW FOR SUB CATEGORIES
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-1
> .wc-block-product-categories-list-item
> a::before {
    margin-right: 6px;

    font-size: 16px;

    color: #2a338b;
}


/* =========================================================
   SUB CATEGORY COUNT
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-1
> .wc-block-product-categories-list-item
> .wc-block-product-categories-list-item-count {
    margin-right: 6px;
    padding: 2px 7px;

    font-size: 11px;
}


/* =========================================================
   HOVER
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item:hover {
    background: rgba(42, 51, 139, 0.06);
}

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list--depth-0
> .wc-block-product-categories-list-item:hover
> a {
    color: #2a338b;
}

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item:hover
> a::before {
    transform: translateX(2px);
}

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item:hover
> .wc-block-product-categories-list-item-count {
    background: #2a338b;
    color: #ffffff;
}


/* =========================================================
   CURRENT / ACTIVE CATEGORY
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item.current-cat,
:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item.current-cat-parent {
    background: rgba(42, 51, 139, 0.08);
}

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item.current-cat
> a,
:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item.current-cat-parent
> a {
    color: #2a338b;
    font-weight: 600;
}


/* =========================================================
   REMOVE DEFAULT LIST MARKERS
   ========================================================= */

:is(#shop-sidebar, .sidebar-wrapper)
.wc-block-product-categories-list-item::before {
    display: none !important;
}

/* Button Outline */
/* Flatsome outline buttons - 1px border with 90% opacity */
.button.outline,
.button.is-outline {
    border-width: 1px !important;
    border-color: color-mix(in srgb, currentColor 90%, transparent) !important;
}

/* Product Image card outline */
/* ==========================================================
   SHOP PRODUCT CARDS
   Rounded card + lift + shadow + image zoom
   14px outer card / 13px image radius
   ========================================================== */

/* Allow hover movement outside the product grid */
.products.row,
.products.row > .product-small,
.products .product-small {
    overflow: visible !important;
}

/* Outer wrapper handles movement only */
.products .product-small > .col-inner {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: transform 0.3s ease !important;
}

/* Actual visible product card */
.products .product-small > .col-inner > .box {
    position: relative;
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.3s ease !important;
}


/* ==========================================================
   PRODUCT IMAGE
   13px top radius to align inside 14px card radius
   Bottom edge stays square
   ========================================================== */

.products .product-small .box-image {
    overflow: hidden !important;
    border-radius: 13px 13px 0 0 !important;
    margin: 0 !important;
}

/* Flatsome inner image wrappers */
.products .product-small .box-image .image-zoom,
.products .product-small .box-image .image-cover,
.products .product-small .box-image > div {
    overflow: hidden !important;
    border-radius: 13px 13px 0 0 !important;
}

/* Actual WooCommerce product image */
.products .product-small .box-image img,
.products .product-small img.attachment-woocommerce_thumbnail {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 13px 13px 0 0 !important;
    transition: transform 0.35s ease !important;
}


/* ==========================================================
   PRODUCT TEXT AREA
   No rounding at top
   Card controls bottom corners
   ========================================================== */

.products .product-small .box-text {
    position: relative;
    background: #fff !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 2;
}


/* ==========================================================
   HOVER EFFECTS
   ========================================================== */

/* Lift entire product card */
.products .product-small > .col-inner:hover {
    transform: translateY(-5px);
}

/* Increase card shadow */
.products .product-small > .col-inner:hover > .box {
    box-shadow: 0 12px 28px rgba(0,0,0,0.16) !important;
}

/* Zoom image inside its mask */
.products .product-small > .col-inner:hover .box-image img {
    transform: scale(1.04);
}


/* ==========================================================
   GRID SPACING
   Gives first row room to lift
   ========================================================== */

.products.row {
    padding-top: 12px !important;
}

/* Checkout button */
/* Cart - Proceed to Submit Quote button */
.wc-block-cart__submit-button {
    border-radius: 14px !important;
    overflow: hidden;
}

.wc-block-cart__submit-button:hover {
    background-color: #141c7c !important;
    border-color: #141c7c !important;
    color: #fff !important;
}

.wc-block-cart__submit-button:hover .wc-block-components-button__text {
    color: #fff !important;
}

/* Product CSS */
/* ==========================================================
   DOLPHIN ROBOTIC POOL CLEANERS
   ========================================================== */

.dolphin-range {
    line-height: 1.65;
}

/* Main heading */
.dolphin-range > h2 {
    margin-bottom: 8px;
}

/* Range headings */
.dolphin-section-title {
    margin-top: 35px;
    margin-bottom: 18px;
    padding: 18px 22px;
    background: #f4f7f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.dolphin-section-title h3 {
    margin: 0;
    font-size: 20px;
}

.dolphin-section-title p {
    margin: 8px 0 0;
}

/* Individual models */
.dolphin-model {
    position: relative;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dolphin-model:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.dolphin-model h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: var(--primary-color);
}

.dolphin-model p {
    margin: 0 0 12px;
}

.dolphin-model p:last-child {
    margin-bottom: 0;
}

/* Enquiry section inside each card */
.dolphin-enquire {
    margin-top: 16px !important;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

/* Final CTA */
.dolphin-final-cta {
    margin-top: 35px;
    padding: 30px;
    text-align: center;
    background: var(--primary-color);
    border-radius: 14px;
    color: #fff;
}

.dolphin-final-cta h2 {
    color: #fff;
    margin: 0 0 10px;
}

.dolphin-final-cta p {
    max-width: 750px;
    margin: 0 auto;
    color: #fff;
}

/* Mobile */
@media (max-width: 549px) {

    .dolphin-section-title {
        padding: 15px 18px;
    }

    .dolphin-model {
        padding: 18px;
    }

    .dolphin-final-cta {
        padding: 24px 18px;
    }

    .dolphin-model h3,
    .dolphin-section-title h3 {
        font-size: 18px;
    }
}

/* Brand Menu */
/* ==========================================================
   DESKTOP DROPDOWN MENUS
   Shop = 1 column
   Shop by Brand = 2 columns
   Desktop only
   ========================================================== */

@media (min-width: 850px) {

    /* ======================================================
       SHARED DROPDOWN STYLING
       ====================================================== */

    #menu-item-161 > .nav-dropdown,
    #menu-item-260 > .nav-dropdown {
        padding: 14px !important;

        background: #fff !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        border-radius: 12px !important;

        box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    }


    /* ======================================================
       SHOP DROPDOWN
       Single column
       ====================================================== */

    #menu-item-161 > .nav-dropdown {
        width: 240px !important;
        min-width: 240px !important;
    }


    /* ======================================================
       SHOP BY BRAND DROPDOWN
       Two columns
       ====================================================== */

    #menu-item-260 > .nav-dropdown {
        width: 440px !important;
        min-width: 440px !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
        row-gap: 4px !important;
    }


    /* ======================================================
       MENU ITEMS
       ====================================================== */

    #menu-item-161 > .nav-dropdown > li,
    #menu-item-260 > .nav-dropdown > li {
        display: block !important;
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
    }


    /* ======================================================
       MENU LINKS
       ====================================================== */

    #menu-item-161 > .nav-dropdown > li > a,
    #menu-item-260 > .nav-dropdown > li > a {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 40px !important;

        padding: 8px 12px !important;
        margin: 0 !important;

        border-radius: 7px !important;

        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;

        color: #333 !important;
        background: transparent !important;

        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            padding-left 0.2s ease !important;
    }


    /* ======================================================
       HOVER
       ====================================================== */

    #menu-item-161 > .nav-dropdown > li > a:hover,
    #menu-item-260 > .nav-dropdown > li > a:hover {
        background: #f3f7fa !important;
        color: var(--primary-color) !important;
        padding-left: 16px !important;
    }


    /* ======================================================
       HOVER ACCENT LINE
       ====================================================== */

    #menu-item-161 > .nav-dropdown > li > a::before,
    #menu-item-260 > .nav-dropdown > li > a::before {
        content: "";
        display: block;

        width: 3px;
        height: 0;
        flex: 0 0 3px;

        margin-right: 0;

        background: var(--primary-color);
        border-radius: 3px;

        opacity: 0;

        transition:
            height 0.2s ease,
            opacity 0.2s ease,
            margin-right 0.2s ease;
    }


    #menu-item-161 > .nav-dropdown > li > a:hover::before,
    #menu-item-260 > .nav-dropdown > li > a:hover::before {
        height: 18px;
        opacity: 1;
        margin-right: 8px;
    }


    /* ======================================================
       REMOVE FLATSOME ITEM SEPARATORS
       ====================================================== */

    #menu-item-161 > .nav-dropdown > li + li,
    #menu-item-260 > .nav-dropdown > li + li {
        border-top: 0 !important;
    }

}
