/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

nav.woocommerce-breadcrumb {
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

nav.woocommerce-breadcrumb {
    color: inherit;
}

nav.woocommerce-breadcrumb:not(a) {
    color: #BC0013 !important;
}
nav.woocommerce-breadcrumb > .sep {
    color: #222 !important;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a:hover{
    background-color: none !important;
     background-image: none !important;
}

.woocommerce .woocommerce-breadcrumb a:hover{
opacity:0.8
}

nav.woocommerce-breadcrumb:not(.second) {
    display: none;
}

.woocommerce-product-gallery__image {
    background: #f7f7f7 !important;
}

.woocommerce-product-gallery__image img {
    mix-blend-mode: multiply;
}

.single-product div.product div.images,
.single-product .woocommerce-product-gallery{
    padding:0px !important;
    aspect-ratio: auto !important;
}

/* immagini prodotto: full size ma max altezza */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

body.single-product .container-wrap{
    padding-top:60px;
}
.eg-gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.eg-gallery-arrow:hover {
    opacity: 1;
}

.eg-gallery-arrow svg {
    width: 40px;
    height: 40px;
    opacity:1;
}
/* =========================
   SINGLE PRODUCT CUSTOM
========================= */

/* wrapper corretto attorno a gallery + summary */
.single-product .eg-single-product-layout {
    display: grid;
    gap: 48px;
    align-items: start;
    width: 100%;
}

/* gallery nativa */
.single-product div.product div.images,
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    position: relative;
    background: #f7f7f7;
    padding: 28px;
    box-sizing: border-box;
    min-width: 0;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
    display: block !important;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    box-shadow: none;
}

/* summary */
.single-product div.product div.summary,
.single-product .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    min-width: 0;
}

.single-product .eg-product-summary-inner {
    padding: 0 8px 0 0;
    color: #2f2f2f;
}


.single-product .eg-breadcrumbs .sep {
    color: #b6b6b6;
    margin: 0 6px;
}

.single-product .eg-product-small-title {
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4a4a4a;
    margin-bottom: 18px;
}

.single-product .eg-product-title {
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: 0;
    color: #222222;
    margin: 0 0 24px;
}

.woocommerce #content div.product .product_title, .woocommerce div.product .product_title, .woocommerce-page #content div.product .product_title, .woocommerce-page div.product .product_title {
    margin-bottom: 35px;
    margin-top:35px;
}

.single-product .eg-divider {
    border-top: 1px solid #dddddd;
    margin: 0 0 26px;
}

.single-product .eg-info-block {
    margin-bottom: 26px;
}

.single-product .eg-block-title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #444;
    margin: 0 0 5px;
}

.single-product .eg-specs p,
.single-product .eg-description-text p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.9;
    color: #4a4a4a;
}

.single-product .eg-specs strong {
    font-weight: 600;
}


.single-product .eg-desc-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.single-product .eg-desc-toggle-icon {
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    color: #5f5f5f;
    transition: transform .2s ease;
}

.single-product .eg-description-block.eg-collapsed .eg-desc-toggle-icon {
    transform: rotate(-90deg);
}

.single-product .eg-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    margin-bottom: 26px;
}

.single-product .eg-action-icon {
    font-size: 24px;
    line-height: 1;
    color: #d61818;
    width: 18px;
    display: inline-flex;
    justify-content: center;
}

.single-product .eg-action-label,
.single-product .eg-action-label:visited {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d2d2d;
    text-decoration: none;
}

/* frecce custom */
.single-product .eg-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    border: 0;
    background: transparent;
    font-size: 50px;
    line-height: 1;
    color: #444;
    cursor: pointer;
    padding: 0 8px;
}

.single-product .eg-gallery-prev {
    left: -50px;
}

.single-product .eg-gallery-next {
    right: -50px;
}

/* nascondo frecce native */
.single-product .flex-direction-nav {
    display: none !important;
}

/* thumbs opzionali */
.single-product .flex-control-thumbs {
    display: none !important;
}

/* nascondo elementi WooCommerce non desiderati */
.single-product .product_meta,
.single-product .price,
.single-product .cart,
.single-product .woocommerce-review-link,
.single-product .star-rating,
.single-product .woocommerce-tabs,
.single-product .related,
.single-product .upsells,
.single-product .woocommerce-product-rating {
    display: none !important;
}

/* responsive */
@media (max-width: 1100px) {
    .single-product .eg-single-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-product .eg-product-summary-inner {
        padding: 0;
    }

    .single-product .woocommerce-product-gallery,
    .single-product div.product div.images {
        padding: 18px;
    }

    .single-product .eg-product-title {
        font-size: 40px;
    }
}

/* =========================
   ARCHIVE PRODUCT CUSTOM
========================= */

#bs-macrocat-page .container.main-content {
    max-width: 100%;
}

.tax-product_cat.woocommerce .container-wrap{
    background:#fff
}

.tax-product_cat .page-header-no-bg,
.tax-product_cat .woocommerce-breadcrumb,
.tax-product_cat .archive-description,
.tax-product_cat .term-description,
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.tax-product_cat ul.products,
.tax-product_cat nav.woocommerce-pagination {
    display: none !important;
}

#bs-macrocat-page .main-content,
#bs-macrocat-page .row,
#bs-macrocat-page .col,
#bs-macrocat-page .span_12 {
    width: 100%;
}

.bs-macrocat-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 40px 70px;
}

.bs-breadcrumb {
    margin: 10px 0 34px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
}

.bs-breadcrumb a {
    color: #6d6d6d;
    text-decoration: none;
    padding: 1px 5px;
    display: inline-block;
}

.bs-breadcrumb a:hover {
    color: #d32027;
}

.bs-breadcrumb span {
    margin: 0 6px;
}

.bs-breadcrumb .current {
    color: #d32027;
}

.bs-section {
    margin-bottom: 34px;
}

.bs-section-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    color: #454545;
}

.bs-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 25px;
}

.bs-product-card {
    display: block;
    text-decoration: none;
    color: #333;
}

.bs-product-image-wrap {
    background: #f7f7f7;
    
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.bs-product-image-wrap img{
mix-blend-mode: multiply;
}

.bs-product-card:hover .bs-product-image-wrap {
    border-color: #69b8ff;
    background: #d8eefc;
}

.bs-product-image {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    display: block;
}

.bs-product-title {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #333;
}

.bs-products-grid.bs-products-grid-final {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.bs-products-grid-final .bs-product-title {
   font-size: clamp(18px, 1.1vw, 24px) !important; line-height: 1.5 !important;
	text-transform:inherit
}

.bs-empty-message {
    font-size: 14px;
    color: #666;
    margin: 10px 0 0;
}

.bs-product-card {
    text-decoration: none;
    display: block;
}
.bs-product-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 18px;
    color: #2b2b2b;
}

.bs-product-arrow {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    transition: all 0.25s ease;
}

/* 👉 STATO BASE: SOLO PUNTA (senza linea) */
.bs-product-arrow::before {
    display: none; /* niente linea */
}

.bs-product-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 1px solid #222;
    border-right: 1px solid #222;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.25s ease;
}

/* 👉 HOVER: appare la linea (freccia completa) */
.bs-product-card:hover .bs-product-arrow {
    width: 28px;
}

.bs-product-card:hover .bs-product-arrow::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 1px;
    background: #222;
    transform: translateY(-50%);
}

.bs-product-card:hover .bs-product-arrow::after {
    right: 0;
}


/* Desktop medio */
@media (max-width: 1400px) {
    .bs-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bs-products-grid.bs-products-grid-final {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop piccolo */
@media (max-width: 1200px) {
    .bs-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bs-products-grid.bs-products-grid-final {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .bs-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bs-products-grid.bs-products-grid-final {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .bs-products-grid {
        grid-template-columns: 1fr;
    }

    .bs-products-grid.bs-products-grid-final {
        grid-template-columns: 1fr;
    }
}


/*WISHLIST*/
.eg-wishlist-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.eg-wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

.eg-wishlist-table th,
.eg-wishlist-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.eg-wishlist-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.eg-wishlist-col-image img {
    width: 90px;
    height: auto;
    display: block;
}

.eg-wishlist-view,
.eg-wishlist-remove {
    display: inline-block;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.eg-wishlist-remove {
    text-decoration: underline;
}

.eg-wishlist-empty {
    margin: 30px 0;
}
.eg-wishlist-row {
    cursor: pointer;
}

.eg-wishlist-row.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

a.eg-wishlist-view,
.eg-wishlist-remove{
    background: #222 !important;
    opacity: 1;
    color: #fff !important;
    padding: 5px;
	text-decoration:none;
	display:inline-block;
	min-height: 35px;
}

@media (max-width: 768px) {

    .eg-wishlist-table,
    .eg-wishlist-table thead,
    .eg-wishlist-table tbody,
    .eg-wishlist-table th,
    .eg-wishlist-table td,
    .eg-wishlist-table tr {
        display: block;
        width: 100%;
    }

    /* Nascondo header */
    .eg-wishlist-table thead {
        display: none;
    }

    /* Card */
    .eg-wishlist-table tr.eg-wishlist-item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    /* Reset celle */
    .eg-wishlist-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
    }

    /* Immagine */
    .eg-wishlist-col-image {
        text-align: center;
    }

    .eg-wishlist-col-image img {
        width: 100%;
        max-width: 220px;
        border-radius: 8px;
    }

    /* Nome prodotto */
    .eg-wishlist-col-name a {
        font-size: 16px;
        font-weight: 600;
        display: block;
        margin-top: 10px;
    }

    /* Meta info */
    .eg-wishlist-col-parent,
    .eg-wishlist-col-child {
        font-size: 13px;
        color: #777;
    }

    /* Bottoni */
    .eg-wishlist-col-view,
    .eg-wishlist-col-remove {
        display: inline-block;
        width: 48%;
        margin-top: 10px;
    }

    .eg-wishlist-view,
    .eg-wishlist-remove {
        display: block;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
        font-size: 13px;
    }

    .eg-wishlist-view {
        background: #000;
        color: #fff;
    }

    .eg-wishlist-remove {
        background: #f5f5f5;
    }
}