/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
:root {
  --bs-primary: #870a26;
}

 #header{ background: red !important; }
 
 .header-bottom{background: #f8f4f0 !important}
/* 1) Sovrascrivi la var primaria su tutti gli scope comuni */
:root,
html:root,
body {
  --bs-primary: #A3203A;          /* Rosso Rubino Digitale */
  --bs-primary-rgb: 163, 32, 58;
}
.blockcart .header-block__action-btn {
    align-items: center;
    background: #890a27;
}

/* A. Bootstrap (copertura generale) */
html:root, body {
  --bs-primary: #A3203A;
  --bs-primary-rgb: 163, 32, 58;
}

.ratio-homeSlider {
    min-height: unset;
    --bs-aspect-ratio: 42.85714%;
    max-width: 100%;
}

/* 1) Variabili Bootstrap per i bottoni primari */
:root,
html:root,
body {
  --bs-primary: #A3203A;
  --bs-primary-rgb: 163, 32, 58;
}

/* Bottoni primari (Bootstrap 5) */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #8B1C33;          /* tono più scuro per hover */
  --bs-btn-hover-border-color: #8B1C33;
  --bs-btn-active-bg: #7A182C;         /* ancora più scuro in active */
  --bs-btn-active-border-color: #7A182C;
  --bs-btn-disabled-bg: #A3203A;
  --bs-btn-disabled-border-color: #A3203A;
    color:#fff !important;
  --bs-btn-focus-shadow-rgb: 163, 32, 58; /* ring focus */
}

/* Outline primary, se presente in schede/prodotto */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: #8B1C33;
  --bs-btn-active-border-color: #8B1C33;
}
.product-miniature .product-list-reviews {
    display: none;
    inset: auto;
    justify-content: start;
    padding: .5rem 0 1rem;
    position: static;
}
/* 2) Selettori tema/fallback per l'Add to Cart */
.product-add-to-cart .add-to-cart,
.ajax-add-to-cart,
.add-to-cart.btn,
.product-miniature .add-to-cart,
.btn[name="add"],
button.add-to-cart {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

.product-add-to-cart .add-to-cart:hover,
.ajax-add-to-cart:hover,
.add-to-cart.btn:hover,
.product-miniature .add-to-cart:hover,
.btn[name="add"]:hover,
button.add-to-cart:hover {
  background-color: #8B1C33 !important;
  border-color: #8B1C33 !important;
}

/* Focus ring accessibile */
.product-add-to-cart .add-to-cart:focus,
.ajax-add-to-cart:focus,
.add-to-cart.btn:focus,
button.add-to-cart:focus {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(163,32,58,.25) !important;
}
/* Carica Montserrat anche da CSS se non tocchi il <head> */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

/* ===== FONT + STILE DEL MENU (desktop+mobile) ===== */
body #_desktop_top_menu .top-menu > li > a,
body #_desktop_top_menu .top-menu > li > a .title,
body #_desktop_top_menu a[data-depth],
body #_desktop_top_menu .category a,
body #_desktop_top_menu .dropdown-item,
body #top-menu a,
body #header .top-menu a,
body .sf-menu > li > a,
body .menu .nav > li > a {
  font-family: 'Montserrat', sans-serif ;
  font-weight: 600 ;
  font-size: 0.9rem ;

  letter-spacing: 0.05em ;
  color: #000 ;               /* nero su header bianco */
  line-height: 1.2 ;
}

/* Hover/active brand color */
body #_desktop_top_menu .top-menu > li:hover > a,
body #_desktop_top_menu .top-menu > li > a:hover,
body #_desktop_top_menu .dropdown-item:hover,
body .sf-menu > li:hover > a {
  color: #A3203A !important;            /* rubino digitale */
}

/* ===== SEPARATORI TRA LE VOCI ===== */
body #_desktop_top_menu .top-menu > li + li { position: relative; }
body #_desktop_top_menu .top-menu > li + li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: #DDDDDD;                  /* o #A3203A se vuoi rubino */
}
.header {
    --header-bg: #000 !important;
    --header-top-bg: #000 !important;
    --header-color: var(--bs-gray-800);
    --header-top-color: var(--bs-gray-800);
    background-color: var(--header-bg);
    max-width: 100vw;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}
.header-top {
    border-bottom: var(--header-top-border-bottom);
    background: #000;
}

/* =======================================================
   MENU CAIROLI — Edizione velluto con sfumature
   ======================================================= */

/* base del container */
.menu-container {
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ee 100%);
  border-radius: 16px;
  padding: 36px 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(190, 150, 100, 0.15);
}


/* macro-categorie */
.menu-container .row > .category > a {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7a1212;
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 4px;
  background: linear-gradient(180deg, transparent 70%, rgba(184,0,0,0.08) 100%);
  background-size: 100% 200%;
  background-position: top;
  border-radius: 4px;
  transition: all 0.35s ease;
}

.menu-container .row > .category > a:hover {
  color: #b80000;
  background-position: bottom;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(184,0,0,0.08);
}

/* icone */
.menu-container .row > .category > a::before {
  margin-right: 10px;
  font-size: 1.3rem;
  color: #d87900;
  opacity: 0.9;
  transform: translateY(1px);
  transition: all 0.3s ease;
}
.menu-container .row > .category > a:hover::before {
  color: #b80000;
  transform: scale(1.15);
}

/* sotto-voci */
.submenu a {
  font-family: "Inter", sans-serif;
  color: #3c2f2f;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  position: relative;
  background: linear-gradient(90deg, transparent 0%, rgba(184,0,0,0.05) 0%, transparent 100%);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s ease, background-size 0.3s ease, transform 0.25s ease;
}
.submenu a:hover {
  color: #b80000;
  background-size: 100% 100%;
  transform: translateX(5px);
}

/* Micro bullet animato */
.submenu a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b80000;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.submenu a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

/* Animazione di apertura */
.js-sub-menu {
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* applica il logo come icona monocolore (in realtà l’immagine originale) */

/* per tutte le macro categorie (livello 1) */
.menu-container .row > .category > a::before {
  content: "";
  display: inline-block;
  width: 20px;      /* dimensione da regolare */
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  background: url('https://www.keen-knuth.89-46-229-216.plesk.page/img/logo_stores.png') no-repeat center / contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.menu-container .row > .category > a:hover::before {
  transform: scale(1.1);
  opacity: 1;
}
.store-section {
  background: linear-gradient(180deg, #fffdf9 0%, #fff6ee 100%);
  padding: 60px 20px;
  font-family: "Poppins", sans-serif;
  color: #4a2a2a;
}

.store-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

/* testo */
.store-text {
  flex: 1 1 450px;
}

.store-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #7a1212;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.store-text .address {
  font-weight: 600;
  color: #b80000;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.store-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* immagine */
.store-image {
  flex: 1 1 500px;
  text-align: center;
}

.store-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.store-image img:hover {
  transform: scale(1.02);
}

/* responsive */
@media (max-width: 900px) {
  .store-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .store-text {
    max-width: 600px;
  }

  .store-image img {
    max-width: 90%;
  }
}
{    font-size: 0;
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url(data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'></circle><circle cx='20' cy='21' r='1'></circle><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'></path></svg>) no-repeat center;
    background-size: contain;
    vertical-align: middle;}

@media (max-width: 991.98px) {
  #_desktop_top_menu .top-menu > li + li::before { display: none; }
}
.header-top {
    background-color: #000 !important;
}
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
  }

  .category-card img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    display: block;
  }

  .category-card:hover img {
    transform: scale(1.05);
  }

  .category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: opacity 0.4s ease;
  }

  .category-card:hover .category-overlay {
    opacity: 1;
  }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.category-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  text-align: center;
}


.banner img{width:100% !important}

.category-home{    float: left;
    width: 25%;
    padding: 0 10px;}

#custom-text { 
    padding: 2.5rem 1rem !important;
    overflow: hidden;
}
.product-miniature .product-miniature__price {
    font-weight: 700;
    background: linear-gradient(135deg, #f7d774, #f1b92c);
    padding: 8px 14px;
    border-radius: 12px;
    color: #2a1c00;
    font-size: 22px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.4);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-miniature .product-miniature__price:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25), inset 0 2px 6px rgba(255,255,255,0.5);
}
a{color:#ce9c27 !important; font-weight:600}
.product-miniature__infos__top a{color:#000; font-weight:600}
.product-miniature article .card{
border: 1px solid #f1f1f1;
  
}
.cart-detailed__actions .btn-primary {
    display: flex;
    justify-content: center;
    color: #fff !important;
}
#footer_sub_menu_3{display:block !important;}

#footer_sub_menu_3 li {
    display: inline-block;
    float: left;
    padding: 0 11px 0 0;
    line-height: 30px;
}
.card a {
    color: #000 !important;
}

.header-top .footer__block__title {display: none !important}


body #_desktop_top_menu .top-menu > li > a, body #top-menu a {
 
    font-weight: 600;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0 !important;
   
    line-height: 1.2 !important;
}
body #_desktop_top_menu .top-menu > li > a, body #top-menu a:hover{color:#860b26 !important}
main-menu__tree>li .menu-container a[data-depth="1"] {
    color: #fff !important;
    font-weight: 600;
    border-bottom: 2px solid #dba954;
    padding: 4px 5px;
    margin-bottom: 5px;
    background: #f1f1f1;
    border-radius: 5px;
    text-shadow: 1px 1px #fff;}
.main-menu__tree>li .menu-container a[data-depth="2"] {
    overflow-wrap: break-word;
    white-space: normal;
    font-weight: 400 !important;
    text-transform: capitalize !important;
    color:#860b26 !important;
}

.main-menu__tree>li .menu-container a:hover[data-depth="2"] {color:#000 !important}
.btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-color: #860b26 !important;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--bs-link-hover-color);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--bs-link-hover-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    text-decoration: underline;
}

.btn-link:hover{--bs-btn-color: #ce9c27 !important}

.product-miniature .product-miniature__prices {

    align-self: center;
    margin: 10px auto;
    display: inline-block;
}
.product-miniature .product-miniature__infos__bottom {
    margin-bottom: 1rem;
    margin-top: auto;
    text-align: center;
}

.product-miniature__infos__bottom .btn-primary {
    background: linear-gradient(135deg, #8B1C33, #A3203A); /* gradiente rosso-bordeaux */
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    color: #fff !important; /* testo/icone bianche per contrasto */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-miniature__infos__bottom .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25), inset 0 2px 6px rgba(255,255,255,0.3);
}

/* Carrello in versione bianca per contrasto */
.product-miniature__infos__bottom .btn-primary .material-icons, .blockcart .material-icons {
    font-size: 0;
    width: 24px;
    height: 24px;
    display: inline-block;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'></circle><circle cx='20' cy='21' r='1'></circle><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'></path></svg>") no-repeat center;
    background-size: contain;
    vertical-align: middle;
}
.header-block__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.blockcart .header-block__action-btn {
  align-items: center;
}

.blockcart .material-icons {
  vertical-align: middle;
  margin-top: -2px; /* regola l’offset */
	margin-right:6px
}

.product-miniature .card {
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effetto al passaggio */
.product-miniature .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Immagine */
.product-miniature__image-container {
    background: #fafafa;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* Titolo */
.product-miniature__title {
    font-size: 1rem;
    font-weight: 600;
    color: #2a1c00;
    margin: 10px 0 6px;
    text-align: center;
    min-height: 40px;
}

/* Prezzo centrato */
.product-miniature__prices {
    text-align: center;
    margin: 10px 0;
}

/* Bottoni */
.product-miniature__infos__bottom form {
    justify-content: center;
}
#search_widget form input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    outline: none;
    background: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* soft ombra esterna */
}

#search_widget form input:focus {
    box-shadow: 0 4px 12px rgba(163, 32, 58, 0.3); /* bagliore bordeaux */
}

#search_widget form i.search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #A3203A;
    font-size: 18px;
    pointer-events: none;
    padding: 0;
}

#search_widget form i.clear {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

#search_widget form i.clear:hover {
    color: #A3203A;
}

.product-miniature__infos__bottom .btn-outline-primary.mt-3 {
    margin-top: 0 !important;
}

#search_widget form i.clear:hover {
    color: #A3203A;
}
/* MENU CATEGORIE CAIROLI - VERSIONE CONTEMPORANEA */
.ps_categorytree {
  background: #fff;
  border: none;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: "Poppins", sans-serif;
}

.ps_categorytree .left-block__title__link {
  display: block;
  font-weight: 700;
  color: #a31235;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.ps_categorytree .category-tree__item__link {
  display: block;
  color: #222;
  padding: 8px 0;
  transition: color 0.25s ease, transform 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.ps_categorytree .category-tree__item__link:hover {
  color: #a31235;
}



@media (max-width:991px){.category-home {
    float: left;
    width: 100%;
    padding: 20px 10px;
}
body #products .thumbnail-container, body .featured-products .thumbnail-container, body .product-accessories .thumbnail-container, body .product-miniature .thumbnail-container {
    height: unset !important;
    min-height: auto !important;
}
}


@media (min-width: 992px) {
    .header-top .footer__block.col-md-6.col-lg-3 {
        flex: none;
        width: 100%;
    }
}

@media (min-width:1000px){
.ratio-homeSlider {
    min-height: 582px !important;
    --bs-aspect-ratio: 42.85714%;
}}
/* Box generale dei metodi di pagamento */
.payment-option {
  border: 2px solid #B02431; /* amarena */
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .25s, background .25s;
}

/* Immagine/loghi pagamento */
.payment-option img {
  max-height: 34px;
  width: auto;
}

/* Radio button visibile ma elegante */
.payment-option input[type="radio"] {
  transform: scale(1.25);
  cursor: pointer;
}

/* Hover + focus → feedback visivo chiaro */
.payment-option:hover,
.payment-option:has(input[type="radio"]:checked) {
  border-color: #801A25;
  background: #FDECEC; /* crema con un tocco rosato */
}

/* Titolo/label */
.payment-option label {
  font-weight: 600;
  font-size: 1rem;
  color: #2A2A2A;
  cursor: pointer;
}
.payment__option element.style {
    border: 1px solid #860b27;
    padding: 10px;
    border-radius: 10px;
}
	
	.payment__option {
    background: linear-gradient(90deg, #f7e4b9 0%, #dcaa54 50%, #c59243 100%);
		padding: 10px; border:1px solid #c79444}
	.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  cursor: pointer;
  transition: transform .2s ease;
}
.payment__option.ps_checkout-payment-option input[type="radio"] {
    margin-top: .7rem;
    float: left;
    /* display: inline-block; */
    border: 2px solid #890a27;
}
.ps_checkout-payment-option label {
    display: inline !important;
    line-height: 1.5;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}
