/*
Theme Name: Italianbay
Description: Tema e-commerce premium per marketplace italiano con integrazione WooCommerce
Version: 1.0
Author: Italianbay Team
Text Domain: italianbay
*/

/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f9fafb;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111827;
}

.site-logo img {
  height: 40px;
  margin-right: 12px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #16a34a, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #16a34a;
}

/* Search Bar */
.header-search {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #16a34a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* Cart & User Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-icon, .user-icon {
  position: relative;
  padding: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.3s;
}

.cart-icon:hover, .user-icon:hover {
  color: #16a34a;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 10;
}

.cart-count.updating {
  animation: cartCountPulse 0.6s ease-in-out;
}

@keyframes cartCountPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); background: #dc2626; }
  100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef2f2 100%);
  padding: 4rem 0;
}

.hero-content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #111827;
  background: linear-gradient(135deg, #16a34a, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .hero-description {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-5px);
}

.btn-primary {
  background: linear-gradient(135deg, #16a34a, #dc2626);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #374151;
  padding: 1rem 2rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: #16a34a;
  color: #16a34a;
}

.features-section .container > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.features-section .feature-item {
  text-align: center;
}

.features-section .feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.features-section .feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.features-section .feature-description {
  color: #6b7280;
}

/* Responsive Features */
@media (max-width: 768px) {
  .features-section .container > div {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 500px;
  }
}

/* Product Grid */
.products-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* WooCommerce Product Grid Override */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  background: white !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s ease !important;
  margin: 0 !important;
  position: relative !important;
  border: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 450px !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
  border-color: #e2e8f0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.08) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin: 1.5rem 1.5rem 0.75rem 1.5rem !important;
  line-height: 1.4 !important;
  color: #1f2937 !important;
  transition: color 0.3s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: #16a34a !important;
}
/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Category Badge */
.woocommerce ul.products li.product .product-category {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #16a34a !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 1.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    z-index: 5 !important;
    backdrop-filter: blur(10px) !important;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
  width: 100% !important;
  max-width: none !important;
  min-height: 450px !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-info {
  padding: 1.5rem !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-category {
  color: #16a34a;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.product-title a:hover {
  color: #16a34a;
}

/* ENHANCED Product Description - SEMPRE VISIBILE E BEN POSIZIONATA */
.woocommerce ul.products li.product .product-description {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin: 0 1.5rem 1rem 1.5rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 4.5rem !important;
    flex-grow: 1 !important;
    flex-shrink: 0 !important;
}

/* ENHANCED Product Price - GESTIONE DINAMICA SPAZIO */
.woocommerce ul.products li.product .price {
    margin: 0 1.5rem 1rem 1.5rem !important;
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

/* ENHANCED Product Actions - SEMPRE IN FONDO */
.woocommerce ul.products li.product .product-actions {
    margin: auto 1.5rem 1.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.original-price {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  color: #fbbf24;
  font-size: 0.875rem;
}

.rating-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.add-to-cart-btn {
  width: 100%;
  background: #16a34a;
  color: white;
  border: none;
  padding: 0.875rem 1rem !important;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  flex-shrink: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.add-to-cart-btn:hover {
  background: #15803d;
}


/* Pulsante Vedi Dettagli - SEMPRE PRESENTE */
.btn-view-details {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  background: transparent !important;
  color: #374151 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
}

.btn-view-details:hover {
  border-color: #16a34a !important;
  color: #16a34a !important;
  background: #f0fdf4 !important;
  transform: translateY(-2px) !important;
}

/* Pulsante Aggiungi al Carrello - QUANDO PRESENTE */
.woocommerce ul.products li.product .product-actions .button,
.woocommerce ul.products li.product .product-actions .btn-add-to-cart {
  width: 100% !important;
  background: linear-gradient(135deg, #16a34a, #dc2626) !important;
  color: white !important;
  border: none !important;
  padding: 1rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
}

.woocommerce ul.products li.product .product-actions .button:hover,
.woocommerce ul.products li.product .product-actions .btn-add-to-cart:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4) !important;
  background: linear-gradient(135deg, #15803d, #b91c1c) !important;
}

.btn-icon {
  font-size: 1rem !important;
}

/* Enhanced Product Card Layout */

/* Categories Section */
/* COMPACT Categories Grid - 4-5 per row */
.categories-grid-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.category-card-compact {
  background: white;
  border-radius: 1rem;
    padding: 0 1.5rem !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.category-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-card-compact a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-image-compact {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.category-image-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-compact:hover .category-image-compact img {
  transform: scale(1.1);
}

.category-info-compact {
  padding: 1.25rem;
  text-align: center;
}

.category-info-compact h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.category-info-compact p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section a[href^="mailto:"]:hover {
    color: #16a34a !important;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    gap: 0;
  }
  
  .nav-menu li {
    border-bottom: 1px solid #f3f4f6;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 0;
    color: #374151;
  }
  
  .main-navigation.active .nav-menu {
    display: flex;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  .product-card {
    min-height: 520px !important;
  }
  
  .product-image {
    height: 200px !important;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* ENHANCED WooCommerce Mobile 768px - COMPLETAMENTE RIFATTO */
  .woocommerce ul.products li.product {
    min-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .woocommerce ul.products li.product img {
    height: 220px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem !important;
    margin: 1.5rem 1.5rem 0.75rem 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  .woocommerce ul.products li.product .product-description {
    margin: 0 1.5rem 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    min-height: 4.5rem !important;
    flex-grow: 1 !important;
  }
  
  .woocommerce ul.products li.product .price {
    margin: 0 1.5rem 1rem 1.5rem !important;
    font-size: 1.25rem !important;
    margin-top: auto !important;
  }
  
  .woocommerce ul.products li.product .product-actions {
    margin: 0 1.5rem 1.5rem 1.5rem !important;
    gap: 0.75rem !important;
    margin-top: 0 !important;
  }
  
  .woocommerce ul.products li.product .btn-view-details {
    padding: 0.875rem 1rem !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
  }
  
  .woocommerce ul.products li.product .button {
    margin: 0 !important;
    width: 100% !important;
    padding: 1rem !important;
    font-size: 0.95rem !important;
    min-height: 52px !important;
  }
  
  /* NUOVO LAYOUT HEADER MOBILE */
  .header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    align-items: center;
  }
  
  .site-branding {
    grid-column: 1 / -1;
    justify-self: center;
    order: 1;
  }
  
  .main-navigation {
    justify-self: start;
    order: 2;
  }
  
  .header-actions {
    justify-self: end;
    order: 3;
  }
  
  .header-search {
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
    order: 4;
  }
  
  .hero-content-text-only {
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .hero-content-text-only h1 {
    font-size: 2rem;
  }
  
  .hero-content-text-only .hero-description {
    font-size: 1.125rem;
  }
  
  /* Hero responsive */
  .hero-content-with-image {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  .hero-text {
    text-align: center !important;
  }
  
  .hero-text h1 {
    font-size: 2rem !important;
  }
  
  .hero-text .hero-description {
    font-size: 1.125rem !important;
  }
  
  .hero-image img {
    max-width: 300px !important;
  }
  
  /* Categories responsive */
  .categories-grid-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  .category-image-compact {
    height: 100px;
  }
  
  .category-info-compact {
    padding: 1rem;
  }
  
  .category-info-compact h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content-text-only {
    padding: 1rem 0;
  }
  
  .hero-content-text-only h1 {
    font-size: 1.75rem;
  }
  
  .hero-content-text-only .hero-description {
    font-size: 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.75rem !important;
  }
  
  .hero-text .hero-description {
    font-size: 1rem !important;
  }
  
  .hero-image img {
    max-width: 250px !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .product-card {
    min-height: 380px !important;
  }
  
  .product-image {
    height: 160px !important;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  .add-to-cart-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.4rem;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  /* ENHANCED WooCommerce Mobile 480px - COMPLETAMENTE RIFATTO */
  .woocommerce ul.products li.product {
    min-height: 460px !important;
  }
  
  .woocommerce ul.products li.product img {
    height: 220px !important;
  }
  
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    margin: 1.25rem 1.25rem 0.75rem 1.25rem !important;
    line-height: 1.3 !important;
  }
  
  .woocommerce ul.products li.product .product-description {
    margin: 0 1.25rem 1rem 1.25rem !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    min-height: 4rem !important;
    flex-grow: 1 !important;
  }
  
  .woocommerce ul.products li.product .price {
    margin: 0 1.25rem 1rem 1.25rem !important;
    font-size: 1.125rem !important;
    margin-top: auto !important;
  }
  
  .woocommerce ul.products li.product .product-actions {
    margin: 0 1.25rem 1.25rem 1.25rem !important;
    gap: 0.75rem !important;
    margin-top: 0 !important;
  }
  
  .woocommerce ul.products li.product .btn-view-details {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    min-height: 44px !important;
    line-height: 1.3 !important;
  }
  
  .woocommerce ul.products li.product .button {
    margin: 0 !important;
    width: 100% !important;
    padding: 0.875rem !important;
    font-size: 0.875rem !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
  }
  
  /* Categories mobile */
  .categories-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .category-image-compact {
    height: 80px;
  }
  
  .category-info-compact {
    padding: 0.75rem;
  }
  
  .category-info-compact h3 {
    font-size: 0.85rem;
  }
  
  .category-info-compact p {
    font-size: 0.8rem;
  }
}

/* WooCommerce Integration Styles */
.woocommerce-page .content-area {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.woocommerce .products .product {
  margin-bottom: 2rem;
}

.woocommerce .cart-collaterals {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
}

.woocommerce-checkout .checkout {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* Content Area Styles */
.content-area {
  background: white;
  padding: 2rem 0;
  margin: 2rem 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  line-height: 1.7;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

.page-content p {
  margin-bottom: 1.5rem;
  color: #374151;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.page-content blockquote {
  border-left: 4px solid #16a34a;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.page-content a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.3s;
}

.page-content a:hover {
  color: #15803d;
  text-decoration: underline;
}

.page-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s;
}

.page-links a:hover {
  background: #16a34a;
  color: white;
}

/* Widget Styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.footer-section .widget-title {
  color: white;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.widget ul li a:hover {
  color: white;
}

.widget p {
  color: #d1d5db;
  line-height: 1.6;
}

/* Search Results Specific Styles */
.search-results .woocommerce ul.products,
body.search .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(var(--search-columns, 4), 1fr) !important;
  gap: 2rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Search form in results */
.search-form-container {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.search-form-container input[type="search"] {
  flex: 1;
  min-width: 200px;
}

.search-form-container button {
  transition: all 0.3s ease;
}

.search-form-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

/* BEAUTIFUL Add to Cart Message */
.woocommerce-message.custom-cart-message {
    background: white !important;
    border: 1px solid #d1fae5 !important;
    border-radius: 1rem !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15) !important;
    color: inherit !important;
}

.custom-cart-message .message-content {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem 2rem !important;
}

.custom-cart-message .message-icon {
    font-size: 2rem !important;
    flex-shrink: 0 !important;
}

.custom-cart-message .message-text {
    flex-grow: 1 !important;
}

.custom-cart-message .message-text strong {
    color: #16a34a !important;
    font-size: 1.125rem !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
}

.custom-cart-message .message-text span {
    color: #6b7280 !important;
    font-size: 1.125rem !important;
}

.custom-cart-message .message-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
}
    margin: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 1rem !important;
}

.custom-cart-message .view-cart-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3) !important;
    color: white !important;
}

.custom-cart-message .checkout-btn {
    background: transparent !important;
    color: #16a34a !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid #16a34a !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.custom-cart-message .checkout-btn:hover {
    background: #16a34a !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
    .custom-cart-message .message-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .custom-cart-message .message-actions {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .custom-cart-message .view-cart-btn,
    .custom-cart-message .checkout-btn {
        flex: 1 !important;
        text-align: center !important;
    }
}

/* Hide default WooCommerce messages */
.woocommerce-message:not(.custom-cart-message) {
    display: none !important;
}

/* ========================================
   SINGLE PRODUCT PAGE STYLES - ITALIANBAY
   ======================================== */

/* Single Product Container */
.single-product .woocommerce div.product {
    background: white !important;
    border-radius: 1.5rem !important;
    padding: 3rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 1.5rem !important;
    align-items: start !important;
}

/* Product Images Section */
.single-product .woocommerce-product-gallery {
    position: relative !important;
    margin: 0 !important;
    max-width: 120px !important;
    width: 100% !important;
}

.single-product .woocommerce-product-gallery__wrapper {
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border: 3px solid #f1f5f9 !important;
    transition: all 0.4s ease !important;
    max-height: 120px !important;
    height: 120px !important;
}

.single-product .woocommerce-product-gallery__wrapper:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    border-color: #e2e8f0 !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* Sale Badge */
.single-product .onsale,
.woocommerce div.product .onsale {
    position: static !important;
    display: inline-block !important;
    margin-left: 1rem !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    z-index: 1 !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Product Summary Section */
.single-product .summary {
    padding: 0 !important;
}

/* Product Title */
.single-product .product_title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #16a34a, #dc2626) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Product Price */
.single-product .price {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    border: 2px solid #bbf7d0 !important;
    border-radius: 1rem !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 2rem !important;
    display: inline-block !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15) !important;
    position: relative !important;
}

.single-product .price .amount,
.single-product .price ins .amount {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #16a34a !important;
}

.single-product .price del {
    color: #9ca3af !important;
    font-size: 1.5rem !important;
    margin-right: 1rem !important;
}

.single-product .price del .amount {
    color: #9ca3af !important;
}

/* Stock Status */
.single-product .stock {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    display: inline-block !important;
    border: 1px solid #bbf7d0 !important;
}

.single-product .stock.out-of-stock {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

/* Product Short Description */
.single-product .woocommerce-product-details__short-description {
    background: #f8fafc !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    margin-bottom: 2rem !important;
    border-left: 4px solid #16a34a !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

.single-product .woocommerce-product-details__short-description p {
    margin-bottom: 1rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
/* Add to Cart Form */
.single-product .cart {
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.single-product .cart .quantity {
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.single-product .cart .quantity label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 1.125rem !important;
}

.single-product .cart .quantity input {
    width: 80px !important;
    padding: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
}

.single-product .cart .quantity input:focus {
    outline: none !important;
    border-color: #16a34a !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* Add to Cart Button */
.single-product .cart .single_add_to_cart_button {
    width: 100% !important;
    background: linear-gradient(135deg, #16a34a, #dc2626) !important;
    color: white !important;
    border: none !important;
    padding: 1.75rem 2rem !important;
    border-radius: 1rem !important;
    font-weight: 700 !important;
    font-size: 1.375rem !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.single-product .cart .single_add_to_cart_button:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.4) !important;
    background: linear-gradient(135deg, #15803d, #b91c1c) !important;
}

/* FORCE FIX - Pulsanti Add to Cart SEMPRE allineati */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .ajax_add_to_cart,
.woocommerce ul.products li.product .single_add_to_cart_button,
.woocommerce ul.products li.product button[name="add-to-cart"] {
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #16a34a, #dc2626) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product .ajax_add_to_cart:hover,
.woocommerce ul.products li.product .single_add_to_cart_button:hover,
.woocommerce ul.products li.product button[name="add-to-cart"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4) !important;
    background: linear-gradient(135deg, #15803d, #b91c1c) !important;
}

/* FORCE FIX - Container dei pulsanti */
.woocommerce ul.products li.product .product-actions {
    margin: auto 1.5rem 1.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    width: calc(100% - 3rem) !important;
    align-items: stretch !important;
}

.woocommerce ul.products li.product .product-actions > * {
    width: 100% !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* OVERRIDE tutti i margini WooCommerce che causano problemi */
.woocommerce ul.products li.product .product-actions .button,
.woocommerce ul.products li.product .product-actions .add_to_cart_button,
.woocommerce ul.products li.product .product-actions .ajax_add_to_cart {
    margin: 0 !important;
    width: 100% !important;
    flex: 1 !important;
    align-self: stretch !important;
}

/* NUCLEAR OPTION - Forza tutti i pulsanti WooCommerce */
.woocommerce .products .product .button,
.woocommerce .products .product .add_to_cart_button,
.woocommerce .products .product .ajax_add_to_cart {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* SPECIFICO per il container prodotto */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product .product-actions {
    margin-top: auto !important;
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    width: calc(100% - 3rem) !important;
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

/* OVERRIDE WooCommerce default button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    width: auto !important;
}

/* Ma FORZA i pulsanti nei prodotti */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce ul.products li.product input.button {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}
}

.single-product .cart .single_add_to_cart_button:before {
    content: "🛒 " !important;
    margin-right: 0.75rem !important;
    font-size: 1.25rem !important;
}

/* Product Meta */
.single-product .product_meta {
    background: #f8fafc !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    margin-top: 2rem !important;
    border: 1px solid #e2e8f0 !important;
}

.single-product .product_meta > span {
    display: block !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    color: #374151 !important;
}

.single-product .product_meta > span:last-child {
    margin-bottom: 0 !important;
}

.single-product .product_meta a {
    color: #16a34a !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.single-product .product_meta a:hover {
    color: #15803d !important;
    text-decoration: underline !important;
}

/* Product Tabs */
.single-product .woocommerce-tabs {
    background: white !important;
    border-radius: 1rem !important;
    margin-top: 3rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important;
}

.single-product .woocommerce-tabs .tabs {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
}

.single-product .woocommerce-tabs .tabs li {
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

.single-product .woocommerce-tabs .tabs li a {
    display: block !important;
    padding: 1.5rem 2rem !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
}

.single-product .woocommerce-tabs .tabs li.active a,
.single-product .woocommerce-tabs .tabs li a:hover {
    color: #16a34a !important;
    background: white !important;
    border-bottom-color: #16a34a !important;
}

.single-product .woocommerce-tabs .panel {
    padding: 3rem !important;
    background: white !important;
}

.single-product .woocommerce-tabs .panel h2 {
    color: #111827 !important;
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.single-product .woocommerce-tabs .panel p {
    color: #374151 !important;
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-product .woocommerce div.product {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem !important;
    }
    
    .single-product .woocommerce-product-gallery {
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .single-product .woocommerce-product-gallery__wrapper {
        max-height: 300px !important;
    }
    
    .single-product .woocommerce-product-gallery__image img {
        max-height: 300px !important;
    }
    
    .single-product .product_title {
        font-size: 2rem !important;
    }
    
    .single-product .price .amount,
    .single-product .price ins .amount {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 768px) {
    .single-product .woocommerce div.product {
        margin: 1rem !important;
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }
    
    .single-product .woocommerce-product-gallery {
        max-width: 250px !important;
        margin: 0 auto !important;
    }
    
        padding: 1rem !important;
        font-size: 0.9rem !important;
        min-height: 52px !important;
        font-weight: 700 !important;
    
    .single-product .woocommerce-product-gallery__image img {
        max-height: 250px !important;
    }
    
    .single-product .product_title {
        font-size: 1.75rem !important;
        text-align: center !important;
    }
    
    .single-product .price {
        text-align: center !important;
        display: block !important;
        font-size: 1.125rem !important;
    }
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.8rem !important;
    .single-product .price .amount,
    .single-product .price ins .amount {
        font-size: 1.5rem !important;
    }
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        min-height: 4rem !important;
        -webkit-line-clamp: 3 !important;
    }
    
    .single-product .cart .single_add_to_cart_button {
        padding: 1.5rem !important;
        font-size: 1.25rem !important;
        min-height: 2rem !important;
    }
    
    .single-product .woocommerce-tabs .tabs {
        flex-direction: column !important;
    }
    
    .single-product .woocommerce-tabs .panel {
        padding: 2rem !important;
    }
}
        height: 180px !important;
@media (max-width: 480px) {
    .single-product .woocommerce div.product {
        margin: 0.5rem !important;
        font-size: 1rem !important;
    }
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.6rem !important;
    .single-product .woocommerce-product-gallery {
        max-width: 200px !important;
    }
    
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        min-height: 3.5rem !important;
        -webkit-line-clamp: 3 !important;
    
    .single-product .woocommerce-product-gallery__image img {
        max-height: 200px !important;
    }
        font-size: 0.95rem !important;
        min-height: 4.5rem !important;
        flex-grow: 1 !important;
    .single-product .product_title {
        font-size: 1.5rem !important;
    }
    
        gap: 0.75rem !important;
        flex-shrink: 0 !important;
        gap: 1rem !important;
        flex-shrink: 0 !important;
        font-size: 1.25rem !important;
        height: 220px !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
        line-height: 1.3 !important;
        border-width: 2px !important;
        font-size: 1.125rem !important;
        border-width: 2px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    
        padding: 0.875rem !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        min-height: 4.5rem !important;
        flex-grow: 1 !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }
    
        font-size: 1.25rem !important;
        margin-top: auto !important;
        padding: 1.5rem !important;
    }
}

    /* ENHANCED Mobile 480px Product Cards - OTTIMIZZATO */
        margin-top: 0 !important;
.single-product .woocommerce div.product {
        min-height: 520px !important;
        display: flex !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 52px !important;
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
        padding: 1rem !important;
        font-size: 0.95rem !important;
        min-height: 52px !important;
    }
}


/* === MOD: Cart – Coupon & Checkout buttons === */
.woocommerce .cart .coupon #coupon_code,
.woocommerce-page .cart .coupon #coupon_code{
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  font-size: 15px;
}
.woocommerce .cart .coupon .button,
.woocommerce-page .cart .coupon .button{
  border: 0;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 9999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22,163,74,0.25);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.woocommerce .cart .coupon .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(22,163,74,0.35);
  opacity: .95;
}
.woocommerce .wc-proceed-to-checkout .checkout-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(90deg,#16a34a,#22c55e);
  color: #fff !important;
  border: 0;
  box-shadow: 0 14px 30px rgba(34,197,94,.35);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.woocommerce .wc-proceed-to-checkout .checkout-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(34,197,94,.45);
  filter: saturate(1.05);
}
.woocommerce .wc-proceed-to-checkout{
  margin-top: 14px;
}
.woocommerce .cart .actions .button[name="update_cart"]{
  display:none !important;
}
.qty-static,
.quantity-fixed{
  display:inline-block;
  min-width: 36px;
  text-align:center;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
}



/* === MOD v2: Stronger selectors for WooCommerce cart === */

/* Coupon input */
.woocommerce-cart form.woocommerce-cart-form .actions .coupon #coupon_code,
.woocommerce .woocommerce-cart-form .actions .coupon #coupon_code,
.woocommerce-page form.woocommerce-cart-form .actions .coupon #coupon_code {
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 14px !important;
  font-size: 15px !important;
}

/* Apply coupon button (covers input[type=submit] and button) */
.woocommerce-cart form.woocommerce-cart-form .actions .coupon .button,
.woocommerce-cart form.woocommerce-cart-form .actions .coupon [name="apply_coupon"],
.woocommerce .woocommerce-cart-form .actions .coupon .button,
.woocommerce .woocommerce-cart-form .actions .coupon [name="apply_coupon"] {
  border: 0 !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(22,163,74,0.25) !important;
  transform: translateY(0) !important;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease !important;
  line-height: 1 !important;
}
.woocommerce-cart form.woocommerce-cart-form .actions .coupon .button:hover,
.woocommerce-cart form.woocommerce-cart-form .actions .coupon [name="apply_coupon"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(22,163,74,0.35) !important;
  opacity: .95 !important;
}

/* Proceed to checkout button (anchor) */
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button,
.woocommerce-page .wc-proceed-to-checkout .checkout-button,
.woocommerce a.checkout-button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 16px 22px !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg,#16a34a,#22c55e) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(34,197,94,.35) !important;
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease !important;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce a.checkout-button.button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 36px rgba(34,197,94,.45) !important;
  filter: saturate(1.05) !important;
}
.woocommerce .wc-proceed-to-checkout{ margin-top: 14px !important; }

/* Ensure any leftover Update Cart button stays hidden */
.woocommerce .cart .actions .button[name="update_cart"],
form.woocommerce-cart-form .actions .button[name="update_cart"] {
  display: none !important;
}

/* Static quantity chip */
.woocommerce-cart td.product-quantity .qty-static,
.woocommerce td.product-quantity .qty-static{
  display:inline-block;
  min-width: 36px;
  text-align:center;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
}



/* === MOD v3: Target exact markup from italianbay.com === */

/* Procedi con l'ordine (exact classes) */
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward,
a.checkout-button.button.alt.wc-forward {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 16px 22px !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg,#16a34a,#22c55e) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(34,197,94,.35) !important;
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease !important;
}
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button.button.alt.wc-forward:hover,
a.checkout-button.button.alt.wc-forward:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 36px rgba(34,197,94,.45) !important;
  filter: saturate(1.05) !important;
}

/* Coupon area – exact elements you provided */
form.woocommerce-cart-form .actions .coupon input#coupon_code.input-text,
.woocommerce form.woocommerce-cart-form .actions .coupon input#coupon_code.input-text {
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 14px !important;
  font-size: 15px !important;
}

form.woocommerce-cart-form .actions .coupon button.button[name="apply_coupon"],
.woocommerce form.woocommerce-cart-form .actions .coupon button.button[name="apply_coupon"] {
  border: 0 !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(22,163,74,0.25) !important;
  transform: translateY(0) !important;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease !important;
  line-height: 1 !important;
}
form.woocommerce-cart-form .actions .coupon button.button[name="apply_coupon"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(22,163,74,0.35) !important;
  opacity: .95 !important;
}
