:root {
  --primary-wine: #6b1437;
  --primary-wine-dark: #4b0f29;
  --gold: #d2a35b;
  --text-dark: #1b1b1b;
  --text-light: #f8f8f8;
  --bg-dark: #050309;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #2b2b2b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* HEADER SHOP */
.shop-header {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(circle at top left, rgba(210, 163, 91, 0.18), transparent 60%),
    linear-gradient(to bottom right, red, #050309);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-title {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #fff;
}

.shop-subtitle {
  font-size: 0.95rem;
  color: #d5cbe8;
  max-width: 520px;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  color: #f8f0ff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.7rem;
}

.shop-info-line {
  font-size: 0.8rem;
  color: #bfb3d5;
  margin-top: 0.8rem;
}

.shop-count {
  font-size: 0.8rem;
  color: #c0b7d4;
}

/* MAIN */
.shop-main {
  padding: 3rem 0 4rem;
}

/* FILTRI */
.filters-wrapper {
  position: sticky;
  top: 90px;
}

.filters-card {
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #333;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  font-size: 0.86rem;
}

.filters-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #2b2b2b;
}

.filters-subtitle {
  font-size: 0.8rem;
  color: #6a6a6a;
  margin-bottom: 0.9rem;
}

.filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b1437;
  margin-bottom: 0.4rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.78rem;
  background: #f3f3f3;
  color: #333;
  margin: 0 0.3rem 0.4rem 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: #6b1437;
  color: #fff;
  border-color: #6b1437;
}

.form-range::-webkit-slider-thumb {
  background: var(--gold);
}

.filter-price-text {
  font-size: 0.78rem;
  color: #555;
}

.filters-cta {
  font-size: 0.78rem;
  color: #777;
  margin-top: 0.8rem;
}

.btn-reset-filters {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  color: #6b1437;
  text-decoration: underline;
  padding: 0;
}

/* TOOLS BAR (RICERCA / ORDINAMENTO) */
.shop-tools {
  margin-bottom: 1.8rem;
}

.search-input {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
}

.search-input::placeholder {
  color: #8f83a5;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(210, 163, 91, 0.5);
}

.sort-select {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
}

.shop-order-label {
  font-size: 0.8rem;
  color: #666;
}

/* CARD PRODOTTO */
.product-card {
  flex-direction: column;
  display: flex;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  background: #050309;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  border-color: rgba(210, 163, 91, 0.55);
}

.product-image-wrapper {
  height: 360px;
  padding: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top, #3b1223, #050309);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  max-height: 360px;
  width: auto;
  /*filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.9));*/
  transform: translateY(4px);
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: translateY(0);
}

.badge-type {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.7);
  color: #fdf4ff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 9000;
}
.badge-type--bianco{
  background: #fff !important;
  color: #111 !important;
  border-color: rgba(0,0,0,.2) !important;
}

/* Rosso: sfondo rosso + testo bianco */
.badge-type--rosso{
  background: #b30000 !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}
.badge-type--bollicine{
  background: #be8a19 !important;
  color: #000000 !important;
  border-color: rgba(255,255,255,.25) !important;
}
.badge-type--amaro{
  background:#14532D !important;  /* verde amaro */
  color:#fff !important;
  border-color: rgba(255,255,255,.25) !important;
}

.badge-type--distillato{
  background:#B45309 !important;  /* ambra */
  color:#fff !important;
  border-color: rgba(255,255,255,.25) !important;
}

.badge-type--rosato{
  background:#a82b66 !important;  /* ambra */
  color:#fff !important;
  border-color: rgba(255,255,255,.25) !important;
}

.badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(210, 163, 91, 0.9);
  color: #160a06;
  z-index: 9000;
}

.product-body {
  padding: 1.1rem 1.2rem 1.2rem;
  font-size: 0.85rem;
  flex-direction: column;
  display: flex;
  flex: 1;
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #fefefe;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.product-meta {
  font-size: 0.78rem;
  color: #c1b7d1;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.8rem;
  color: #d2c7e7;
  margin-bottom: 0.6rem;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.product-price {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.5rem;
}

.product-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.product-tag {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eee4ff;

}

.btn-product {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: none;
  background: linear-gradient(135deg, var(--primary-wine), var(--gold));
  color: #140809;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.btn-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  color: #140809;
}

/* PAGINAZIONE */
.pagination .page-link {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #333;
  font-size: 0.8rem;
}

.pagination .page-link:hover {
  background: rgba(210, 163, 91, 0.15);
  border-color: rgba(210, 163, 91, 0.9);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--gold), var(--primary-wine));
  border-color: transparent;
  color: #150808;
}



/* SCROLL REVEAL */
.reveal {
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .filters-wrapper {
    position: static;
    margin-bottom: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .shop-header {
    padding-top: 5.5rem;
  }
}
.nav-cart-item {
  margin-left: 1rem;
}

.btn-cart-icon {
  border: none;
  background: transparent;
  position: relative;
  padding: 0.3rem 0.6rem;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
}

.btn-cart-icon:hover {
  color: #d2a35b;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  background: #d2a35b;
  color: #1b1b1b;
  border-radius: 999px;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Offcanvas carrello */
.cart-offcanvas {
  width: 380px;
  max-width: 100%;
}

.cart-item-img img {
  width: 50px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #777;
}

.cart-item-total {
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-qty {
  border: none;
  background: #f1f1f1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-qty:hover {
  background: #e0e0e0;
}

.btn-remove {
  border: none;
  background: transparent;
  color: #b30000;
  font-size: 0.75rem;
  text-decoration: underline;
}

.cart-item-qta {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.cart-summary span,
.cart-summary strong {
  font-size: 0.9rem;
}

.product-card {
  position: relative;
}

/* link invisibile che rende cliccabile tutta la card */
.product-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  height: 50% !important;
}

/* mantieni i bottoni sopra */
.product-actions,
.product-body,
.product-image-wrapper {
  position: relative;
  z-index: 2;
}

.product-detail-main {
  padding-bottom: 4rem;
}

.product-detail {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  align-items: stretch;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.product-carousel .carousel-item {
    aspect-ratio: 1 / 2.6;   /* forma naturale della bottiglia */
    overflow: hidden;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-image {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-height: 100%;
    border-radius: 16px;
}
.product-detail-image.is-cover {
  object-fit: cover;
}
@media (max-width: 768px) {
    .product-carousel .carousel-item {
        aspect-ratio: 1 / 2;   /* leggermente più bassa su mobile */
    }
}

@media (min-width: 992px){
  .product-gallery { min-height: 560px; }
}

.product-detail-content {
  padding: 0.5rem;
}

.product-detail-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #6b1437;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b1437;
}

.product-detail-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.product-detail-meta {
  font-size: 0.9rem;
  color: #666;
}

.product-detail-short {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.6rem;
}

.product-detail-price-block {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.8rem 0;
}

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #6b1437;
  margin-right: 0.5rem;
}

.product-detail-price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: #999;
  margin-right: 0.4rem;
}

.product-detail-abbinamento {
  font-size: 0.9rem;
  color: #555;
}

.product-detail-qty {
  width: 70px;
}

.product-detail-long h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.product-detail-long p {
  font-size: 0.92rem;
  color: #444;
}

@media (max-width: 767.98px) {
  .product-detail {
    padding: 1.4rem;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }
}
.product-gallery,
.product-carousel,
.product-carousel .carousel-inner,
.product-carousel .carousel-item {
  height: 100%;
  border-radius: 16px;
}
.product-suggestions {
  margin-top: 3rem;
}

.product-suggestions-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.product-suggestions-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #6b1437;
}

.product-suggestions-link:hover {
  color: #d2a35b;
}

.product-card-suggestion {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.product-name-sm {
  font-size: 1rem;
}

.product-meta-sm {
  font-size: 0.8rem;
}

.product-desc-sm {
  font-size: 0.8rem;
  min-height: auto;
}

.product-price-sm {
  font-size: 0.95rem;
}

/* bottone piccolo per suggeriti */
.btn-product-sm {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icona carrello nell'header (desktop) */
.nav-cart-item {
  margin-left: 1rem;
}

.btn-cart-icon {
  border: none;
  background: transparent;
  position: relative;
  padding: 0.3rem 0.6rem;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cart-icon:hover {
  color: #d2a35b;
}

/* Badge quantità generico (riusato anche sul floating) */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  transform: translate(30%, -30%);
  background: #d2a35b;
  color: #1b1b1b;
  border-radius: 999px;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Bottone carrello fluttuante (mobile) */
.floating-cart-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 5.4rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #6b1437, #d2a35b);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  display: none; /* di base nascosta, la mostriamo con media query */
  align-items: center;
  justify-content: center;
  z-index: 1060; /* sopra quasi tutto (anche navbar mobile) */
}

.floating-cart-btn i {
  font-size: 1.4rem;
  color: #fff;
}

/* badge sul floating un po' più interno */
.floating-cart-btn .cart-badge {
  top: 6px;
  right: 6px;
  transform: none;
}

/* Solo su mobile mostriamo il floating e nascondiamo il carrello nel menu */
@media (max-width: 991.98px) {
  .floating-cart-btn {
    display: flex;
  }

  .nav-cart-item {
    display: none !important;
  }
}

/* ========== GALLERY PRODOTTO ========== */

.product-gallery {
  position: relative;
}

/* Contenitore slide: forma "bottiglia" */
.product-carousel .carousel-item {
  aspect-ratio: 1 / 2.6;         /* verticale tipo bottiglia */
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-carousel .carousel-item {
    aspect-ratio: 1 / 2.1;       /* un filo più bassa su mobile */
  }
}

/* Immagine principale */
.product-detail-image {
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

/* Zoom leggero on hover (solo desktop) */
@media (min-width: 992px) {
  .product-carousel:hover .product-detail-image {
    transform: scale(1.05);
  }
}

/* Pulsante fullscreen in alto a destra */
.product-zoom-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Thumbs sotto */
.product-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-thumb {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  flex: 0 0 70px;
  max-width: 80px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.product-thumb:hover {
  transform: translateY(-1px);
}

.product-thumb.active {
  border-color: var(--primary-wine, #6b1437);
  box-shadow: 0 0 0 1px rgba(210, 163, 91, 0.7);
}

/* Modal fullscreen */
.product-gallery-modal .modal-content {
  border-radius: 16px;
  border: none;
}

.product-detail-image-modal {
  max-height: 80vh;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* rendi i controlli del carosello un po' più eleganti nella modal */
.product-gallery-modal .carousel-control-prev-icon,
.product-gallery-modal .carousel-control-next-icon {
  filter: invert(1);
}

.inquiry-tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 768px){
  .inquiry-tiles{ grid-template-columns: 1fr; }
}
.inquiry-tiles .tile{
  display:block;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:14px 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  background:#fff;
}
.inquiry-tiles .tile:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.btn-check:checked + .tile{
  border-color: rgba(0,0,0,.7);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.tile-icon{
  width:40px; height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  margin-bottom:10px;
  font-size:18px;
}
.tile-title{ font-weight:800; }
.tile-desc{ color: rgba(0,0,0,.6); font-size: .9rem; margin-top:2px; }

.qty-wrap{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap:8px;
  align-items:center;
}
.qty-wrap input{
  height: 42px;
  border-radius: 12px;
}
.qty-wrap button{
  height: 42px;
  border-radius: 12px;
}

.shop-maint-banner{
  position: sticky;
  top: 78px; /* altezza header fisso (regola se serve) */
  z-index: 1030;
  background: rgb(255, 255, 255);
  border-bottom: 1px solid rgba(255, 69, 0, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 19px 20px 42px rgb(125, 13, 13, 0.87);
}

.shop-maint-inner{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 0;
  color:black;
  font-size:0.95rem;
}

.shop-maint-inner strong{
  background: rgba(255,69,0,.25);
  border: 1px solid rgba(255,69,0,.5);
  padding:4px 10px;
  border-radius:999px;
  font-weight:700;
}

