/*
Theme Name: Salient Child Theme
Theme URI: http://mysite.com/
Description: This is a custom child theme for Salient
Author: JETPULP
Author URI: http://mysite.com/
Template: salient
Version: 0.1
*/

/* Menu item hover effect */
.menu-item.no-hover:hover > a,
.menu-item.no-hover > a:hover {
    cursor: default;
    pointer-events: none;
}

.menu-item.button_solid_color .menu-title-text {
    white-space: nowrap;
}

.menu-contact .menu-title-text:focus {
    color: #999;
}

body #top nav ul .menu-contact .menu-title-text {
    color: #999 !important;
}

/* Signature JETPULP */
.signature-jetpulp {
    display: inline-block;
    line-height: 1.5;
    text-align: right;
}

.signature-jetpulp .jetpulp-svg {
    width: 20px;
    vertical-align: middle;
}

.signature-jetpulp .jetpulp-icon {
    fill: #fff;
    transition: fill .2s ease-out;
}

/* Signature is a link */
a.signature-jetpulp {
    transition: color .2s ease-out;
}

a.signature-jetpulp:hover .jetpulp-icon {
    fill: #ffda04;
}

/* Woocommerce */
.woocommerce ul.products li.product.minimal .price,
.woocommerce ul.products li.product.minimal .price,
.product .summary-content .price,
.nectar-ajax-search-results ul.products li.product.minimal .price {
    display: none;
}

.woocommerce.archive #page-header-wrap,
.woocommerce.archive #page-header-bg {
    max-height: 160px;
    background-color: #e6f7ff !important; /* have to override woocommerce styles */
}

.woocommerce .product-print-wrapper .product-print-wrapper-item {
    visibility: visible;
    border: 0;
    cursor: pointer;
}

.woocommerce .product.type-product {
    padding-bottom: 4%;
}

.woocommerce .select2-container--default .select2-selection--single {
    background-color: #f9f9f9 !important;
    border: 1px solid #008bd2 !important;
    color: #444444;
}

/* Header */
body #header-outer[data-format="centered-logo-between-menu"] #top #logo {
    display: block;
}

body.material #header-outer #top nav #search-btn {
    position: relative;
    right: -20px;
}

/* Home page */
.home-banner h2,
.home-banner h3.home-banner-subtitle {
    text-shadow: 0 1px 0 #ccc,
    0 1px 0 #aaa,
    0 0 1px rgb(0 0 0/10%),
    0 0 5px rgb(0 0 0/10%),
    0 2px 5px rgb(0 0 0/25%);
}

.home-banner h3.home-banner-subtitle {
    font-size: 16px;
    line-height: 1;
    text-transform: none;
}

p.footer-title {
    font-size: 16px;
    font-weight: 800;
}

#sidebar p.widget-title {
    font-family: Karla, sans-serif;
    font-weight: 800;
    font-size: 14px;
    line-height: 32px;
    color: rgb(0, 0, 0);
    opacity: 0.7;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.woocommerce-print-products.link-wrapper {
    margin-top: 20px;
}

.woocommerce-print-products .woocommerce-print-products-pdf-link {
    border: 1px solid #008bd2;
    padding: 15px 10px;
    border-radius: 3px;
    transition: all .3s ease-in-out;
}

.woocommerce-print-products .woocommerce-print-products-pdf-link:hover {
    border: 1px solid #676767;
}

.woocommerce.single-product .products.related,
.woocommerce.single-product .products.upsells {
    padding-top: 2%;
}

span.woocommerce-Price-amount.amount {
    display: none;
}

.post-content .meta-category a {
    background-color: #008bd2;
}

.nectar-social.hover {
    display: none;
}

#header-outer li.menu-item.current-menu-item > a .menu-title-text,
#header-outer li.menu-item.current-menu-item > a .menu-title-text,
#header-outer li.menu-item.current-menu-item > a .menu-title-text,
#header-outer li.menu-item.current-menu-item > a .menu-title-text {
    color: #fff;
}

/* General */
.jetpulp-historic-list .nectar-icon-list .nectar-icon-list-item {
    margin-bottom: 15px;
}

/* Product page */
.single-product .summary .fancy-select-wrap {
    max-width: 60%;
}

.single-product .summary .jetpulp-grouped-product-list-label {
    padding-top: 20px;
    padding-bottom: 0;
    font-weight: 700;
}

.single-product .product .product-slider .slide {
    max-height: 560px;
}

.yrm-btn-wrapper {
    padding-bottom: 2%;
}

.yrm-toggle-expand {
    padding-bottom: 30px; /* Readmore link on desc */
}

.woocommerce div.product_meta .sku_wrapper {
    font-weight: 700;
}

.archive.woocommerce ul.products li.product .product-wrap img,
.page .woocommerce ul.products li.product .product-wrap img,
.woocommerce ul.products li.product a img {
    width: auto !important;
    max-height: 300px;
    margin: 0 auto;
    background: #fff;
}

.woocommerce-page ul.products li.product-category {
    background: #fff;
    padding: 1%;
    border-radius: 10px;
}

.woocommerce ul.products li.product a:not(.button),
.woocommerce ul.products li.product.minimal .product-wrap {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    height: 100%;
}

/* Single product card link + Quick View positioning */
.woocommerce ul.products li.product.minimal .product-wrap {
    padding-bottom: 25px;
}

.woocommerce ul.products li.product.minimal .product-wrap > .product-add-to-cart {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    top: auto;
    transform: none;
}

.single-product .product-thumbs .flickity-slider .thumb img,
.single-product .product-thumbs .slider .thumb img {
    width: 100% !important;
}

.single-product.woocommerce div.product div.images img:not(.attachment-shop_thumbnail) {
    width: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
}

/* Blog */
.archive.category .row .col.section-title .subheader {
    display: none;
}

/* Editorial content tables — restore visible borders (JTT-369) */
/* Selectors mirror Salient's body:not(.woocommerce-cart) .main-content prefix
   to outweigh its tr th:first-child rule (specificity 0-3-3) and related selectors.
   border-color uses !important to override inline styles injected by some AI
   editors when content is copy-pasted (e.g. style="border: 1px solid #ccc"). */
body:not(.woocommerce-cart) .main-content .post-content table,
body:not(.woocommerce-cart) .main-content .entry-content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
    border: 1px solid #1d73be;
    border-color: #1d73be !important;
}

body:not(.woocommerce-cart) .main-content .post-content table th,
body:not(.woocommerce-cart) .main-content .post-content table td,
body:not(.woocommerce-cart) .main-content .post-content table tr th:first-child,
body:not(.woocommerce-cart) .main-content .post-content table tr td:first-child,
body:not(.woocommerce-cart) .main-content .entry-content table th,
body:not(.woocommerce-cart) .main-content .entry-content table td,
body:not(.woocommerce-cart) .main-content .entry-content table tr th:first-child,
body:not(.woocommerce-cart) .main-content .entry-content table tr td:first-child {
    padding: 10px 14px;
    border: 1px solid #1d73be;
    border-color: #1d73be !important;
    vertical-align: middle;
}

body:not(.woocommerce-cart) .main-content .post-content table th,
body:not(.woocommerce-cart) .main-content .entry-content table th {
    font-weight: 700;
}

@media (max-width: 690px) {
    body:not(.woocommerce-cart) .main-content .post-content table,
    body:not(.woocommerce-cart) .main-content .entry-content table {
        display: block;
        overflow-x: auto;
    }
}

/* Specific contact banner in footer of all pages */
.footer-contact-banner {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #008bd2ae;
    width: 100%;
}

.footer-contact-banner .nectar-highlighted-text h2,
.footer-contact-banner .nectar-highlighted-text p {
    color: #fff;
    font-family: Karla, serif;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 40px;
    font-weight: 800;
    padding: 0;
}

.footer-contact-banner .footer-contact-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}

#footer-outer .footer-contact-banner, #footer-outer .footer-contact-banner a:not(.nectar-button) {
    color: #fff !important;
}

#footer-outer .footer-contact-banner .nectar-highlighted-text .animated {
    background-image: linear-gradient(to right, #008bd2 0%, #055274 100%);
}

#footer-outer .footer-contact-banner .nectar-highlighted-text em {
    font-style: italic;
}

/* Responsive */
@media only screen and (max-width: 999px) {
    .reassurance-wrapper {
        display: none;
    }

    .woocommerce .products ul, .woocommerce ul.products li.product-category.product:nth-child(even) {
        margin-right: 0;
    }
}

@media only screen and (max-width: 768px) {
    .nectar-slider-wrap .home-banner.swiper-slide .container .content > h2 {
        font-size: 20px !important; /* have to override salient styles !important */
    }

    .reassurance-wrapper {
        display: none;
    }

    .woocommerce.archive #page-header-wrap,
    .woocommerce.archive #page-header-bg {
        max-height: unset;
    }

    .woocommerce .products ul, .woocommerce ul.products li.product-category.product:nth-child(even) {
        margin-right: 0;
    }

    .woocommerce table.shop_attributes th {
        padding: 22px 10px; /* Fix th on IOS 15 */
    }

    .single-product .summary .fancy-select-wrap {
        max-width: 80%;
    }

    .footer-contact-banner .footer-contact-banner-image {
        background-size: cover;
    }
}

