:root {
    --var-primary-color-shop: #e40c7d;
    --var-primary-color-dark: #8a0043;

}

/* Scrollbar personalizzato per WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #e40c7d;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8a0043;
}

/* Per Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e40c7d #f0f0f0;
}

/* ==== SIDEBAR ==== */
.category-item {
    display: block!important;
    width: 100%;
    margin-bottom: 5px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-height: 25px;
}

.category-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #000;
}

.category-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-submenu {
    display: inline-block;
    background-color: var(--var-primary-color-shop)!important;
    color: #fff!important;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;

    line-height: 24px;
}

.toggle-submenu {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.submenu {
    display: none;       /* nasconde */
    list-style: none;
    margin: 0;
    padding: 8px 0 0 28px; /* indentazione */
}

.submenu li {
    display: block;
    margin: 4px 0;
}

.category-item.active > .submenu {
    display: block;     /* mostra */
}
/* ==== ==== ==== */

/* ======== Checkbox e Radio Uniformi ======== */
.custome-radio {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custome-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custome-radio .form-check-label {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    cursor: pointer;
    color: #000;
    font-weight: 400;
    transition: color 0.2s ease;
}

.custome-radio .form-check-label:hover span {
    color: var(--var-primary-color-shop);
}

/* === Cerchio (radio) === */
.custome-radio .form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

/* === Puntino interno === */
.custome-radio input[type="radio"]:checked + .form-check-label::before {
    border-color: var(--var-primary-color-shop);
    background-color: var(--var-primary-color-shop);
    box-shadow: 0 0 0 2px var(--var-primary-color-dark);
}

/* === Testo accanto === */
.custome-radio .form-check-label span {
    font-size: 14px;
    color: #687188;
    vertical-align: middle;
}

/* === Bottone dettaglio varianti === */
.product-cart-wrap .product-card-bottom .add-cart .link {
    position: relative;
    display: inline-block;
    padding: 6px 20px 6px 20px;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #1F1F1F;
    color: #1F1F1F;
}
.product-cart-wrap .product-card-bottom .add-cart .link:hover {
    background-color: #1F1F1F;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
}

/* ==== ==== ==== */
/* ==== AUTOCOMPLETAMENTO ==== */

/* TOGLIE ICONA RICERCA */
.search-style-2 form input {
    background: transparent!important;
}
/* */

.lw-ac-list {
    display: none;
    z-index: 99999;
    position: absolute;
    top: 0;
    background-color: white;
    max-height: 300px;
    width: 100%;
    overflow-y: auto;

    -webkit-box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 15px rgba(0,0,0,0.1);
}

/* 🔹 Aumenta altezza su mobile */
@media (max-width: 767px) {
    .lw-ac-list {
        max-height: 600px;
    }
}

.lw-ac-list > p {

    padding: 15px 15px 15px 20px;

}

.lw-ac-list > p:hover {

    background-color: #f6f7f8;
    cursor: pointer;

}

.lw-ac-list > p[disabled] {

    color: #aaa;
    font-weight: 300;
    cursor: no-drop;

}

.lw-ac-list > p[disabled]:hover {

    color: #aaa;
    background: #fff;
    font-weight: 300;
    cursor: no-drop;

}

.lw-ac-input {
    position: relative;
}

.lw-ac-input .clear-input-x {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #aaa;
    z-index: 10;
    transition: all 0.5s;
}

.lw-ac-input .clear-input-x:hover {
    color: #dc3545;
}
/* ==== ==== ==== */
/* ==== H1 Liste di Prodotti ==== */
.archive-header h1 {
    font-size: 28px;
}
/* ==== ==== ==== */
/* ==== FILTRI MOBILE ==== */
.btn-filtri-mobile {
    margin-right: 5px;
    color: var(--var-primary-color-shop)!important;
}
.btn-filtri-mobile i.arrow {
    display: none;
}
/* ==== ==== ==== */

/* ==== GALLERIA IMMAGINI ==== */
.product-image-slider figure {

    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;

}

.product-image-slider figure img {

    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ✅ mostra tutta l’immagine */
    object-position: center;
    transition: transform 0.3s ease;

}

.slider-nav-thumbnails .slick-slide {
    cursor: pointer;

    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.slider-nav-thumbnails .slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ mantiene tutto visibile */
    object-position: center;
    transition: transform 0.3s ease;
}

.slider-nav-thumbnails .slick-slide.slick-current {
    border: 2px solid var(--var-primary-color-shop);
}

.slider-nav-thumbnails .slick-slide.slick-current img {
    border: unset!important;
}
/* ==== ==== ==== */

/* ==== FIX VAIRANTI DETTAGLIO ==== */
/* VARIANTI COLORE - layout compatto */
.product_variant.color ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
}

.product_variant.color li {
    list-style: none;
}

.product_variant.color li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 0; /* ✅ nessun margine interno */
}

.product_variant.color li a img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ riempie meglio il box */
    object-position: center;
    border-radius: 6px;
    display: block;
}

/* Hover e stato attivo */
.product_variant.color li a:hover {
    border: 5px solid var(--var-primary-color-shop);
    /*transform: scale(1.04);*/
}

.product_variant.color li.active a {
    border: 5px solid var(--var-primary-color-shop);
}


.list-filter li a:hover,
.list-filter li.active a {
    color: #fff!important;
    background-color: #e40c7d;
    border-color: #e40c7d;
}
/* ==== ==== ==== */

/* ==== BADGE PRODOTTO ==== */
/* === DISPONIBILE === */
.stock-status.in-stock {
    background: #DEF9EC;
    color: #005a2f;
}

/* === ESAURITO === */
.stock-status.out-stock {
    background: #fde0e9;
    color: #b1002e;
}

/* === IN ESAURIMENTO === */
.stock-status.low-stock {
    background: #fff4d4;
    color: #7a5200;
}

/* === PROMOZIONE === */
.stock-status.promo {
    background: #FFE6D6;
    color: #FF8C00;
}

/* === NOVITÀ (Pepino Style) === */
.stock-status.new {
    background: #FFD9EC;   /* Rosa chiaro soft, coerente col brand */
    color: #C00064;        /* Fucsia Pepino */
}

/* === VETRINA === */
.stock-status.hot {
    background: #FFE8D6;   /* Arancio chiaro di base */
    color: #FF4B00;        /* Arancio-rosso acceso */
}

/* === SCONTO === */
.stock-status.discount {
    background: #E6F4FF;   /* Celeste chiaro per sfondo */
    color: #0078D7;        /* Blu acceso, in linea con toni moderni */
}

/* ==== ==== ==== */

/* ==== FIX INPUT SELECT ==== */
select.form-control {
    appearance: none; /* rimuove freccia nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 16px;
    padding-right: 32px; /* spazio per la freccia */
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.25s ease;
    cursor: pointer;
}

/* Effetto focus */
.form-control:focus,
select.form-control:focus {
    border-color: var(--var-primary-color-shop);
    outline: none;
    box-shadow: 0 0 0 2px rgba(228, 12, 125, 0.15);
}


/* ==== ==== ==== */

/* /* ==== TOOLTIP PERSONALIZZATO ==== */
.tooltip-inner {
    background-color: #e40c7d !important;   /* colore Pepino */
    color: #fff !important;                 /* testo bianco */
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #e40c7d !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #e40c7d !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #e40c7d !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #e40c7d !important;
}

.tooltip.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.tooltip-inner {
    background-color: #e40c7d !important;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 10px rgba(228, 12, 125, 0.3);
    font-size: 13px;
}

.tooltip-arrow::before {
    border-color: #e40c7d transparent transparent transparent !important;
}
/* ==== ==== ==== */

/* ==== ALERT AGGIUNTA CARRELLO ==== */
#lw-alert-wishlist,
#lw-alert {
    display: none;
    background: var(--var-primary-color-shop);
    border: 2px solid var(--var-primary-color-shop);
    color: #ffffff;
    font-size: 1rem;
    position: fixed;
    bottom: 300px;
    right: 40px;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
}

/* Icona e testo */
#lw-alert-wishlist i,
#lw-alert i {
    font-size: 1.6rem;
    margin-right: 12px;
    vertical-align: middle;
    color: #fff;
}

/* Decorazione visiva extra */
#lw-alert-wishlist::before {
    content: "💖";
    font-weight: 700;
    font-size: 2rem;
    color: rgba(255,255,255,0.15);
    position: absolute;
    top: 8px;
    right: 15px;
}

#lw-alert::before {
    content: "🛒";
    font-weight: 700;
    font-size: 2rem;
    color: rgba(255,255,255,0.15);
    position: absolute;
    top: 8px;
    right: 15px;
}
/* ==== ==== ==== */

/* ==== CUSTOM CHECKBOX ==== */
.custom-checkbox {
    display: inline-flex;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    /* Nasconde la checkbox nativa */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Stile della casella personalizzata */
    width: 25px;
    height: 25px;
    border: 2px solid #B6B6B6;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--var-primary-color-shop);
    border-color: var(--var-primary-color-dark);
}

.custom-checkbox input[type="checkbox"]:checked::before {
    /* Crea l'icona del segno di spunta */
    content: '✔'; /* Carattere Unicode per il segno di spunta */
    font-size: 18px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox span {
    vertical-align: middle;
    line-height: 16px;
}
/* ==== ==== ==== */

/* ==== ALERT PEPINO ==== */
.alert-pepino {
    background-color: #fff6fa;          /* rosa chiarissimo, delicato */
    border: 1px solid #f7a8c2;          /* rosa pastello */
    color: #b30059;                     /* rosa scuro/amaranto per testo */
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.alert-pepino i {
    color: #e40c7d;                     /* rosa brand Pepino */
    margin-right: 6px;
    font-size: 1.1em;
}

.alert-pepino a {
    color: #e40c7d;                     /* link rosa Pepino */
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.alert-pepino a:hover {
    color: #b30059;                     /* più scuro al hover */
    text-decoration: none;
}
/* ==== ==== ==== */

/* ==== FIX MINI CART MOBILE ==== */
@media only screen and (max-width: 600px) {
    .cart-dropdown-wrap {
        width: 95vw!important;
    }
}

/* ==== FIX ACTION LIST MOBILE ==== */
@media only screen and (max-width: 768px) {
    .product-cart-wrap .product-img-action-wrap .product-action-1 {
        min-width: fit-content!important;
    }
}

/* ==== ACTIVE PER MENU MOBILE ==== */
.mobile-menu a.active,
.mobile-menu a.active:hover {
    color: #e40c7d !important;
}
/* ==== ==== ==== */

/* ==== FIX BTN ==== */
/* Hover */
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;         /* grigio più scuro */
    border-color: #5a6268;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Attivo / clic */
.btn-secondary:active {
    background-color: #545b62;
    border-color: #545b62;
    transform: translateY(0);
    box-shadow: none;
}

/* ==== BOTTONI OUTLINE ==== */
/* Versione base */
[class*="btn-outline-"] {
    background: transparent;
    /*padding: 12px 20px;*/
    padding: 15px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary {
    background: transparent;
    color: var(--var-primary-color-shop);
    border: 2px solid var(--var-primary-color-shop);
}

/* Hover attivo */
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--var-primary-color-shop)!important;
    color: #fff;
    border-color: var(--var-primary-color-shop);
}

/* Variazione colore secondaria (es. outline‐secondary) */
.btn-outline-secondary {
    background: transparent;
    color: #6c757d; /* colore secondario grigio */
    border: 2px solid #6c757d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #6c757d!important;
    color: #fff;
}
/* ==== ==== ==== */

/* ==== PALLINO DISPONIBIITA ==== */
.availability-dot {
    position:absolute;
    top:8px;
    right:8px;
    width:20px;
    height:20px;
    border-radius:50%;
    border:2px solid #fff;
    box-shadow:0 0 4px rgba(0,0,0,0.3);
    cursor: help;
    z-index: 98;
}
