/* TABELLA CARRELLO */
/* stili desktop */
.cart-table { width: 100%; max-width: 100%; background: #fff; border-collapse: collapse; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.cart-table thead { background: #f8f9fa; border-bottom: 2px solid #dee2e6; }
.cart-table th { padding: 15px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; color: #000000; }
.cart-table td { padding: 20px 15px; vertical-align: middle; border-bottom: 1px solid #e9ecef; }
.cart-table .thumb-prod { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e9ecef; }
.cart-table .qnt-container { position: relative; width: 70px; height: 48px; border-left: #ccc 1px solid; border-top: #ccc 1px solid; box-sizing: border-box; }
.cart-table .qnt-container input { float: left; display: block; width: 46px; height: 46px; margin: 0 !important; font-size: 20px; font-weight: bold; text-align: center; line-height: 46px; color: #000; border: 0; border-bottom: #ccc 1px solid; border-right: #ccc 1px solid; z-index: 1; }
.cart-table .qnt-container ul { float: right; display: block; width: 23px; height: 47px; z-index: 2; }
.cart-table .qnt-container ul li { width: 23px; height: 23px; background-color: #fff; border-bottom: #ccc 1px solid; border-right: #ccc 1px solid; }
.cart-table .qnt-container ul li a:link,
.cart-table .qnt-container ul li a:visited { display: block; width: 23px; height: 23px; font-size: 24px; font-weight: 600; text-align: center; line-height: 23px; }
.cart-table .thumb-prod { width: 100px; height: auto; }
.cart-table tr td.desk { display: table-cell !important; }
.cart-table .dati_prodotto { font-size: 14px; line-height: 18px; font-weight: 400; color: #777777; }
.cart-table .prezzo_prodotto { font-size: 14px; line-height: 20px; font-weight: 500; color: #000000; }

/* stili mobile */
@media (max-width: 768px) {
  .cart-table thead { display: none; }
  .cart-table tbody { display: block; width: 100%; }
  .cart-table tr { display: grid; grid-template-columns: 70px 1fr 1fr; grid-template-rows: auto auto auto; gap: 12px; padding: 15px; border-bottom: 8px solid #f8f9fa; margin-bottom: 0; width: 100%; max-width: 100%; }
  .cart-table tr:last-child { border-bottom: none; }
  .cart-table td { padding: 0; border: none; min-width: 0; overflow: hidden; }
  .cart-table td:nth-child(3)::before {
    display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #495057; grid-column: 2; grid-row: 1; }
  .cart-table td:nth-child(4)::before { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #495057; text-align: right; }
  .cart-table td:nth-child(1) { grid-column: 1; grid-row: 2; align-self: start; }
  .cart-table td:nth-child(3) { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; }
  .cart-table td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; font-weight: 600; font-size: 16px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; align-self: start; gap: 4px; }
  .cart-table td:nth-child(2) { grid-column: 2; grid-row: 3; align-self: start; }
  .cart-table td:nth-child(5) { grid-column: 3; grid-row: 3; display: flex; justify-content: flex-end; align-items: flex-start; align-self: start; }
  .cart-table .thumb-prod { width: 70px; height: 70px; }
  .cart-table td:nth-child(3)::before,
  .cart-table td:nth-child(4)::before { display: block; }
  .cart-table tr::before { content: ''; grid-column: 1; grid-row: 1; }
  .cart-table td:nth-child(1)::after { content: ''; display: none; }
}

/* TABELLA CHECKOUT */
/* stili desktop */
.cart-table-checkout { width: 100%; max-width: 100%; background: #fff; border-collapse: collapse; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 20px; }
.cart-table-checkout thead { background: #f8f9fa; border-bottom: 2px solid #dee2e6; }
.cart-table-checkout th { padding: 15px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; color: #000000; }
.cart-table-checkout td { padding: 20px 15px; vertical-align: middle; border-bottom: 1px solid #e9ecef; }
.cart-table-checkout .thumb-prod { width: 100px; height: auto; object-fit: cover; border-radius: 8px; border: 1px solid #e9ecef; }
.cart-table-checkout .quantita-value { font-size: 20px; font-weight: bold; color: #000; text-align: center; }
.cart-table-checkout .dati_prodotto { font-size: 11px; line-height: 15px; font-weight: 400; color: #777777; }
.cart-table-checkout .nome_prodotto { font-size: 14px; line-height: 18px; font-weight: 400; text-transform: uppercase; color: #000; text-decoration: none; }
.cart-table-checkout .nome_prodotto:hover { color: #000; }
.cart-table-checkout .prezzo_prodotto { font-size: 14px; line-height: 20px; font-weight: 500; color: #000000; }

/* stili mobile */
@media (max-width: 768px) {
  .cart-table-checkout thead { display: none; }
  .cart-table-checkout tbody { display: block; width: 100%; }
  .cart-table-checkout tr { display: grid; grid-template-columns: 70px 1fr auto; grid-template-rows: auto auto; gap: 12px; padding: 15px; border-bottom: 8px solid #f8f9fa; margin-bottom: 0; }
  .cart-table-checkout tr:last-child { border-bottom: none; }
  .cart-table-checkout td { grid-column: 2; grid-row: 3; align-self: start; padding: 0; border: none; min-width: 0; overflow: hidden; }
  .cart-table-checkout td:nth-child(3)::before { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #495057; margin-bottom: 4px; }
  .cart-table-checkout td:nth-child(4)::before { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #495057; margin-bottom: 4px; }
  .cart-table-checkout td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: start; }
  .cart-table-checkout td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: start; overflow: hidden; word-wrap: break-word; }
  .cart-table-checkout td:nth-child(3) .dati_prodotto { margin: 0; }
  .cart-table-checkout td:nth-child(4) { grid-column: 3; grid-row: 1; text-align: right; font-weight: 600; font-size: 16px; align-self: start; overflow: hidden; }
  .cart-table-checkout td:nth-child(4) .prezzo_prodotto { margin: 0; }
  .cart-table-3 td:nth-child(2) { grid-column: 2; grid-row: 2; align-self: start; }
  .cart-table-checkout .thumb-prod { width: 70px; height: 70px; }
  .cart-table-checkout .quantita-mobile { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .cart-table-checkout .quantita-mobile .label { font-weight: 600; color: #495057; text-transform: uppercase; }
  .cart-table-checkout .quantita-mobile .value { font-weight: bold; color: #000; }
}
@media (min-width: 769px) {
  .cart-table-checkout .quantita-mobile { display: none; }
}
@media (max-width: 768px) {
  .cart-table-checkout .quantita-value { display: none; }
}


/* regole che devono essere aggiunte a 'custom.css' */
.cart-table .qnt-container { border-left: #dadada 1px solid; border-top: #dadada 1px solid; border-radius: 7px; }
.cart-table .qnt-container input { font-family: "BauLF", Arial, sans-serif !important; border-bottom: #dadada 1px solid; border-right: #dadada 1px solid; border-radius: 7px 0 0 7px; }
.cart-table .qnt-container ul { border-radius: 0 7px 7px 0; }
.cart-table .qnt-container ul li a:link,
.cart-table .qnt-container ul li a:visited { font-size: 19px; color: #000; }
.cart-table .qnt-container ul li a:hover { color: #000; }
.cart-table .qnt-container ul li { border-bottom: #dadada 1px solid; border-right: #dadada 1px solid; }
.cart-table .qnt-container ul li:nth-of-type(1) { border-radius: 0 7px 0 0; }
.cart-table .qnt-container ul li:nth-of-type(2) { border-radius: 0 0 7px 0; }
.cart-table .dati_prodotto { font-size: 11px; line-height: 15px; font-weight: 400; color: #777; }
.cart-table .nome_prodotto:link,
.cart-table .nome_prodotto:visited { font-size: 14px; line-height: 18px; font-weight: 400; text-transform: uppercase !important; color: #000; }
.cart-table .nome_prodotto:hover { color: #000; }
.cart-table .rimuovi_prodotto:link,
.cart-table .rimuovi_prodotto:visited { display: block; width: 48px; height: 48px; font-size: 20px; line-height: 46px; font-weight: 400; text-align: center; color: #000; border: #000 1px solid; border-radius: 7px; }
.cart-table .rimuovi_prodotto:hover { color: #fff; background-color: #000; }
@media (max-width: 479px) {
  .table-cart td,
  .table-cart p { font-size: 16px !important; }
  .table-cart p.subtotale { padding: 15px 0 0 0; }
  .table-cart td { padding: 5px 15px 0 0; }
  .table-cart .cod-promozionale input{ width: 100%; }
}