/** ELEMENTOR GLOBAL VARIABLES */
:root {
    --cp-primary: #1871b5;
    --cp-secondary: #59666e;
    --cp-text: #d0d0d0;
    --cp-accent: #e7eaeb;
    --cp-heading: #0a0a0a;
    --cp-border: #cfcfcf;
    --cp-font: "Space Grotesk", sans-serif;
    --cp-container: min(100%, 1300px);
}

/** GENERAL */
.product-page {
    padding: 100px 0 0;
    background: #fff;
}

.product-single-page {
    padding: 75px 0px 0px;
}

.product-page a {
    text-decoration: none;
}

.product-page img {
    display: block;
    width: 100%;
}

.product-page h1,
.product-page h2,
.product-page h3,
.product-page h4,
.product-page h5,
.product-page h6,
.product-page p,
.product-page label,
.product-page li {
    font-family: var(--cp-font);
    margin-top: 0;
}

/** CONTAINER */
.product-container {
    max-width: var(--cp-container);
    margin: auto;
}

/** LAYOUT */
.product-wrapper {
    gap: 40px;
    display: grid;
    align-items: start;
    grid-template-columns: 280px 1fr;
}

.product-wrapper.no-products {
    grid-template-columns: 1fr;
}

.product-wrapper .product-empty p {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
}

/** SIDEBAR */
.product-sidebar {
    position: sticky;
    top: 30px;
    width: 100%;
}

.product-category-list {
    width: 100%;
    max-width: 280px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    box-sizing: border-box;
}

.product-category-list h2 {
    margin: 0;
    padding: 20px 20px;

    background: #0d2a3c;
    color: #ffffff;

    font-family: var(--cp-font);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.product-category-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-category-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-category-list > .category-menu > .parent-category {
    border-bottom: 1px solid #e5e5e5;
}

.product-category-list > .category-menu > .parent-category:last-child {
    border-bottom: 0;
}

.product-category-list .category-heading {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
}

.product-category-list .category-heading > a {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 14px 16px;

    background: #ffffff;
    color: #111111;

    font-family: var(--cp-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;

    box-sizing: border-box;

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

.product-category-list .category-heading > a span:first-child {
    flex: 1;
    min-width: 0;
}

.product-category-list .category-heading > a strong {
    flex-shrink: 0;

    margin-left: 5px;

    color: inherit;

    font-family: var(--cp-font);
    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.product-category-list .category-heading > a:hover {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .parent-category.active > .category-heading > a,
.product-category-list .parent-category.open > .category-heading > a {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .active > .category-heading > a {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .toggle-icon {
    flex: 0 0 47px;

    width: 47px;
    min-width: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: #ffffff;
    color: var(--cp-primary);

    border-left: 1px solid #e1e1e1;

    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    user-select: none;

    border: none;
    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.product-category-list .toggle-icon:hover {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .open > .category-heading .toggle-icon {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .subcategory {
    display: none;

    margin: 0;
    padding: 0;

    background: #ffffff;
}

.product-category-list .open > .subcategory {
    display: block;
}

.product-category-list .subcategory > li {
    border-top: 1px solid #e7e7e7;
}

.product-category-list .subcategory > li > .category-heading > a {
    padding-top: 13px;
    padding-bottom: 13px;
    padding-left: 44px;

    font-size: 15px;
    font-weight: 500;

    background: #ffffff;
    color: #222222;
}

.product-category-list .subcategory > li > .category-heading > a strong {
    font-size: 14px;
    font-weight: 500;
}

.product-category-list .subcategory > li > .category-heading > a:hover {
    background: #f5f8fa;
    color: var(--cp-primary);
}

.product-category-list .subcategory > li.active > .category-heading > a {
    background: #f5f8fa;
    color: var(--cp-primary);
    font-weight: 600;
}

.product-category-list .subcategory > li > .category-heading > .toggle-icon {
    flex: 0 0 42px;

    width: 42px;
    min-width: 42px;

    font-size: 20px;
}

.product-category-list .subcategory .subcategory > li > .category-heading > a {
    padding-left: 66px;

    font-size: 14px;
}

.product-category-list
    .subcategory
    .subcategory
    .subcategory
    > li
    > .category-heading
    > a {
    padding-left: 88px;

    font-size: 14px;
}

.product-category-list
    .subcategory
    .subcategory
    .subcategory
    .subcategory
    > li
    > .category-heading
    > a {
    padding-left: 110px;
}

.product-category-list
    .subcategory
    .subcategory
    .subcategory
    .subcategory
    .subcategory
    > li
    > .category-heading
    > a {
    padding-left: 132px;
}

.product-category-list .subcategory .open > .category-heading > a {
    color: var(--cp-primary);
}

.product-category-list .subcategory .active > .category-heading > a {
    color: var(--cp-primary);
    font-weight: 600;
}

.product-category-list .subcategory .open > .category-heading > .toggle-icon {
    background: var(--cp-primary);
    color: #ffffff;
}

.product-category-list .subcategory:empty {
    display: none !important;
}

/** PRODUCT GRID */
.product-grid {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/** PRODUCT CARD */
.product-card {
    overflow: hidden;
    position: relative;
    background: #fff;
}

.product-card-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    min-height: 380px;
    max-height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );
}

.product-overlay h3 {
    margin: 0;
    max-width: 75%;
    color: #fff;
    font-family: var(--cp-font);
    font-size: 18px;
    font-weight: 600;
    transition: 0.35s;
}

.product-arrow {
    width: 36px;
    height: 36px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.35s;
}

.product-arrow svg {
    width: 20px;
    height: 20px;
}

.product-arrow svg path {
    stroke: var(--cp-primary);
    transition: 0.35s;
}

.product-card:hover .product-arrow {
    background: var(--cp-primary);
}

.product-card:hover .product-arrow svg path {
    stroke: #fff;
}

.product-card:hover .product-overlay h3 {
    transform: translateY(-6px);
}

/** PAGINATION */
.navigation.pagination {
    margin-top: 60px;
    text-align: center;
    justify-content: center;
}

.page-numbers {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cp-border);
    color: var(--cp-heading);
    margin: 0 4px;
    transition: 0.3s;
}

.prev.page-numbers,
.next.page-numbers {
    width: 80px;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--cp-primary);
    color: #fff;
    border-color: var(--cp-primary);
}

/** Active Product Category */
.product-category-list li.active > a {
    background: var(--cp-primary);
    color: #fff;
}

/** Single Product */
.single-product-wrapper {
    display: grid;
    grid-gap: 50px;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
    margin-bottom: 60px;
}

.single-product-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.single-product-content {
    display: flex;
    flex-direction: column;
}

.single-product-content h2 {
    color: var(--cp-heading);
    font-family: var(--cp-font);
    margin-bottom: 20px;
}

.product-quote-btn {
    background: var(--cp-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 20px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--cp-font);
    align-self: flex-start;
    border-radius: 0;
}

.product-quote-btn:hover {
    opacity: 0.9;
}

.single-product-description {
    width: 100%;
}

.single-product-description-title {
    color: #fff;
    font-size: 20px;
    padding: 15px;
    background: var(--cp-primary);
}

/** Popup */
.product-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.popup-box {
    position: relative;
    z-index: 2;
    width: 700px;
    max-width: 95%;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.popup-close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 30px;
    cursor: pointer;
    background: #fff;
    z-index: 10;
}

/** Related */
.related-products {
    margin-top: 80px;
}

.related-products h2 {
    margin-bottom: 30px;
}

.related-products .product-card img {
    aspect-ratio: 1 / 1;
}

/** popup - Contact Form 7 */
.product-popup h3 {
    margin: 0 0 30px;
    font-family: var(--cp-heading-font);
    font-size: 30px;
    font-weight: 700;
    color: var(--cp-heading);
}

.product-popup .wpcf7-form {
    margin: 0;
}

.product-popup .cf7-row {
    margin-bottom: 20px;
}

.product-popup .wpcf7-form-control-wrap {
    display: block;
}

.product-popup input,
.product-popup textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 16px 20px;
    font-size: 16px;
    font-family: var(--cp-body-font);
    color: #222;
    transition: 0.3s;
    outline: none;
    box-shadow: none;
}

.product-popup input {
    height: 56px;
}

.product-popup textarea {
    height: 100px;
    resize: vertical;
}

.product-popup input::placeholder,
.product-popup textarea::placeholder {
    color: #888;
}

.product-popup input:focus,
.product-popup textarea:focus {
    border-color: var(--cp-primary);
}

.product-popup .wpcf7-not-valid {
    border-color: #dc3232;
}

.product-popup .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 14px;
}

.product-popup .cf7-submit {
    margin-top: 30px;
}

.product-popup input[type="submit"] {
    width: auto;
    height: 56px;
    background: var(--cp-primary);
    color: #fff;
    border: none;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.product-popup input[type="submit"]:hover {
    background: var(--cp-primary);
}

.product-popup .wpcf7-spinner {
    margin-left: 15px;
}

.product-popup .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 15px;
}

.popup-box {
    width: 650px;
    max-width: 90%;
    background: #fff;
    padding: 20px;
    position: relative;
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}

.popup-close:hover {
    color: var(--cp-primary);
}

/** RELATED PRODUCT */
.homepage-product-slider {
    position: relative;
    overflow: hidden;
}

.homepage-product-slider .swiper-navigation {
    gap: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-product-slider .swiper-button-prev,
.homepage-product-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background: var(--cp-primary);
    color: #fff;
    border-radius: 0;
    position: relative;
    inset: auto;
    margin: 20px 0 0;
    transition: 0.3s;
}

.homepage-product-slider .swiper-button-prev:hover,
.homepage-product-slider .swiper-button-next:hover {
    background: var(--cp-secondary);
}

.homepage-product-slider .swiper-button-prev:after,
.homepage-product-slider .swiper-button-next:after {
    font-size: 18px;
    font-weight: 700;
}

/** HERO-BANNER */
.hb-product-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.hb-product-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgb(13, 42, 60, 0.6);
}

.hb-product-hero .product-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--cp-container);
    margin: 0 auto;
}

.hb-product-hero-content {
    text-align: center;
    color: #fff;
}

.hb-product-hero-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--cp-font);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.hb-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--cp-font);
    font-size: 16px;
    font-weight: 500;
}

.hb-product-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.hb-product-breadcrumb a:hover {
    color: #fff;
}

.hb-product-breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

.hb-product-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.65);
}

/**PRODUCT GALLERY */
.product-gallery-title {
    color: #fff;
    font-size: 20px;
    padding: 15px;
    background: var(--cp-primary);
}

.product-gallery.has-slider {
    position: relative;
    overflow: hidden;
}

.product-gallery.has-slider .swiper-navigation {
    gap: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery.has-slider .swiper-button-prev,
.product-gallery.has-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    background: var(--cp-primary);
    color: #fff;
    border-radius: 0;
    position: relative;
    inset: auto;
    margin: 20px 0 0;
    transition: 0.3s;
}

.product-gallery.has-slider .swiper-button-prev:hover,
.product-gallery.has-slider .swiper-button-next:hover {
    background: var(--cp-secondary);
}

.product-gallery.has-slider .swiper-button-prev:after,
.product-gallery.has-slider .swiper-button-next:after {
    font-size: 18px;
    font-weight: 700;
}

.product-gallery.has-slider .swiper-button-prev.swiper-button-disabled,
.product-gallery.has-slider .swiper-button-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-gallery {
    width: 100%;
    margin-top: 50px;
}

.product-gallery-slider {
    width: 100%;
    overflow: hidden;
}

.product-gallery .swiper-wrapper {
    display: flex;
}

.product-gallery .swiper-slide {
    height: auto;
}

.product-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-gallery-item:hover img {
    transform: scale(1.05);
}

.product-gallery.no-slider .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/** RESPONSIVE */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .product-wrapper {
        grid-template-columns: 1fr;
    }

    .single-product-wrapper {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }

    .single-product-image {
        margin: 0 auto;
        width: 100%;
    }

    .single-product-content {
        width: 100%;
    }

    .product-gallery.no-slider .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-sidebar {
        position: static;
    }

    .product-category-list {
        max-width: 100%;
    }

    .product-category-list h2 {
        padding: 17px 18px;
        font-size: 20px;
    }

    .product-category-list .category-heading > a {
        padding: 14px 16px;
        font-size: 15px;
    }

    .product-category-list .toggle-icon {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
    }

    .product-category-list .subcategory > li > .category-heading > a {
        padding-left: 34px;
    }

    .product-category-list
        .subcategory
        .subcategory
        > li
        > .category-heading
        > a {
        padding-left: 52px;
    }

    .product-category-list
        .subcategory
        .subcategory
        .subcategory
        > li
        > .category-heading
        > a {
        padding-left: 70px;
    }

    .product-category-list
        .subcategory
        .subcategory
        .subcategory
        .subcategory
        > li
        > .category-heading
        > a {
        padding-left: 88px;
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-overlay {
        padding: 20px;
    }

    .product-overlay h3 {
        font-size: 20px;
    }

    .product-arrow {
        width: 44px;
        height: 44px;
    }

    .popup-box {
        padding: 20px;
    }

    .product-popup h3 {
        font-size: 28px;
    }

    .product-popup input,
    .product-popup textarea {
        padding: 14px 16px;
    }

    .single-product-wrapper {
        grid-gap: 25px;
    }

    .single-product-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .product-quote-btn {
        width: 100%;
        text-align: center;
    }

    .hb-product-hero-content h1 {
        font-size: 26px;
    }

    .product-gallery.no-slider .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-category-list h2 {
        padding: 16px;
        font-size: 19px;
    }

    .product-category-list .category-heading > a {
        padding: 13px 14px;
        font-size: 14px;
    }

    .product-category-list .category-heading > a strong {
        font-size: 13px;
    }

    .product-category-list .toggle-icon {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        font-size: 20px;
    }
}

/*css*/
[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
    background-color: var(--cp-primary);
}

@media (max-width: 575px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        padding-inline-end: 20px;
        padding-inline-start: 20px;
    }
}

@media (min-width: 576px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        max-width: max-content !important;
        padding: 0px 20px;
    }
}

@media (min-width: 767px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        max-width: max-content !important;
        padding: 0px 20px;
    }
}

@media (min-width: 768px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        max-width: max-content !important;
        padding: 0px 20px;
    }
}

@media (min-width: 992px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        max-width: max-content !important;
        padding: 0px 20px;
    }
}

@media (min-width: 1200px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-header .header-inner,
    body:not([class*="elementor-page-"]) .site-main {
        max-width: max-content !important;
        padding: 0px 20px;
    }
}

.product-variation-box {
    margin: 10px 0 0;
}

.product-variation-box h4 {
    margin-bottom: 5px;
}

.product-variation-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.product-variation-box li {
    margin-bottom: 5px;
}
