:root {
  --colLight: #FFFFFF;
  --colDark: #333333;
  --colbgLight: #FFFFFF;
  --colbgDark: #333333;
  --colAccentOne: #222222;
  --colAccentOneVariant: #2E2222;
  --colAccentTwo: #1A5B7E; /* Colore blu logo */
  --colAccentTwoVariant: #2E8ABA;
  --colAccentThree: #1A5B7E; /* Colore blu logo */
  --colAccentThreeVariant: #550807;
  --colgreyOne: #E9E9E9;
  --colgreyTwo: #BDBDBD;
  --colgreyThree: #808080;
  --colgreyFour:#333333;
  --colgreyFive: #000000;
  --ColSuccess: #45BA3C;
  --ColError: #AE1F1F;
  --ColWarning: #FF9800;
  --colProdTitle: #333333;
  --colEndPrice: #3E3E3E;
  --colPrevPrice: #808080;
  --colPageTitle: #4F4F4F;
  --colBgForm: #F2F2F2;
  --colgreyBorder: #BDBDBD;
  --colTargetBar: #BDBDBD;
  --colConnectBar: #333333;
  --colHandle: #333333;
}

/* Aumenta spazio per il logo */
.logo-bar .main-header {
    display: flex;
    align-items: center;
}

.logo-bar .col-logo {
    flex: 0 0 25%; /* 25% della larghezza totale, puoi aumentare a piacere */
    max-width: 25%;
}

/* Allarga l'immagine quando possibile */
.logo-bar .col-logo img {
    width: 100% !important;
    height: auto !important;
    max-width: 250px; /* opzionale, modificalo se vuoi il logo più grande */
}

/* Aumento spazio per immagine disponibilita */
.product .product-info .product-availabilities img
{
	width: 100px !important;
    padding-bottom: 2px;
}

.product-codart {
	display: block;
    text-align: center;
	padding-left: 5px;
	font-size: 18px;
}

.productSheet .product-section .product-info .product-availability img {
	width: 100px !important;
    padding-bottom: 2px;
}

/* Gestione layer richiedi offerta */
.items-grid-layout .product .product-info .product-links-richoff {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
}

.items-list-layout .product .product-info .product-links-richoff {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
}

.product .product-info .product-links-richoff .button {
    position: relative;
    line-height: 40px;
    padding: 0px 45px 0px 15px;
}

.product .product-info .product-links-richoff .button {
    position: relative;
    line-height: 40px;
    padding: 0px 16px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0;
}

.product .product-info .product-links-richoff .button::after {
    right: 10px;
    display: block;
}

.product .product-info .product-links-richoff .button::after {
    content: "\ed4b";
    display: none;
    font-family: 'icons8_win10';
    font-size: 28px;
    text-align: center;
    position: absolute;
    top: 50%;
    right: 6px;
    margin-top: -21px;
    line-height: 40px;
    font-weight: 400;
}

@media (min-width: 992px) {
	.product .product-info .product-links-richoff .button {
		position: relative;
		line-height: 40px;
		padding: 0px 41px 0px 15px;
	}

	.product .product-info .product-links-richoff .button::after {
		right: 10px;
		display: block;
	}
}

.btn-richoff {
	color: black !important;
	background-color: #BDBDBD !important;
}

/* Forza la card come colonna */
.items-grid-layout .product[data-product-id],
.items-list-layout .product[data-product-id]{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Forza la colonna info come flex verticale e “elastica” */
.items-grid-layout .product[data-product-id] > .product-info,
.items-list-layout .product[data-product-id] > .product-info{
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Spinge il blocco Offerta in basso */
.items-grid-layout .product[data-product-id] > .product-info .product-links-richoff,
.items-list-layout .product[data-product-id] > .product-info .product-links-richoff{
  margin-top: auto !important;
}
/* product-info diventa contenitore di posizionamento */
.items-grid-layout .product .product-info,
.items-list-layout .product .product-info{
  position: relative !important;
  padding-bottom: 52px !important; /* spazio per il bottone (40px + margine) */
}

/* blocco offerta “ancorato” in basso a product-info */
.items-grid-layout .product .product-info .product-links-richoff,
.items-list-layout .product .product-info .product-links-richoff{
  position: absolute !important;
  right: 0 !important;
  bottom: 10px !important;
  right: 12px !important;
}

/* Overlay full screen */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;  
}

/* Modal */
.id-content-layer { 
	display: none; 
	z-index: 9999 !important;
}

/* Modal */
.id-content-layer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, transform 120ms ease;

  width: 600px;
  max-width: 90vw;
  height: 80vh;           /* con iframe è meglio dare un'altezza */
  max-height: 85vh;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);

  display: block;              /* 🔑 non toggle display */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.id-content-layer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Close button */
.close-icon {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;

  background: rgba(0,0,0,0.08);
  color: #111;
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;

  z-index: 10000; /* sopra iframe */
}

.close-icon:hover { background: #e0e0e0; }

/* Stato aperto */
.overlay.is-open,
.id-content-layer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}


/* Mobile */
@media (max-width: 600px) {
  .id-content-layer {
    width: 92vw;
    height: 85vh;
    border-radius: 14px;
  }
}

/* blocca scroll pagina */
.modal-open { overflow: hidden; }

/* Fine gestione layer richiedi offerta */

.product .favourite::after {
  content: "\f5d1";
  display: block;
  font-family: "icons8_win10";
  font-size: 30px;
  text-align: center;
}
.product .favourite.selected::after {
  content: "\ee3f";   /* cuore pieno */
}
.product .favourite.selected {
  color: var(--colAccentThree);
}

/* Tollbar ingrandisco icona profilo utente */
.user_toolbar .user-wrapper .link-icon.user.logged {
    width: 56px;
    height: 56px;
    line-height: 56px;
}

.user_toolbar .user-wrapper .link-icon.user.logged::after {
    font-size: 60px;
    line-height: 56px;
    margin-left: 0;
    display: block;
}

/* --- */
.product-image{
  position: relative;
}

.product-image img{
  display: block;
  width: 100%;
  height: auto;
}

.product-image .id-image-note{
  position: absolute;
  right: -30px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.containerGallery{
  position: relative;
}

.containerGallery .id-image-note-sheet{
  position: absolute;
  right: 8px;
  bottom: 50px;

  background: rgba(0,0,0,0.7);
  color: #fff;

  font-size: 12px;
  padding: 4px 8px;

  border-radius: 3px;

  z-index: 5;
  pointer-events: none;

  white-space: nowrap;
}