* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  min-height: 100vh;
  color: #1f2937;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.75rem;
  position: relative;
  min-height: 70px;
  gap: 1rem;
}

.admin-product-image {
  height: 140px;
}

.admin-edit-btn {
  margin-left: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: #0ea5e9;
  border-radius: 999px;
}

.admin-edit-btn:hover {
  background: #0284c7;
}

header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
  flex-shrink: 1;
  min-width: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span:first-child {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 3.5rem;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  border-radius: 0.4rem;
  background: transparent;
  padding: 0.1rem 0.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.cart-button {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #ef4444;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

main {
  padding: 3rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.2);
}

.product-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem 1.25rem 0 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image.image-error {
  opacity: 0.7;
  filter: grayscale(0.5);
}

.product-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
  pointer-events: none;
}

.product-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
  text-align: center;
  padding: 1rem;
}

.no-image-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.no-image-text {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.product-content {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.product-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.5px;
}

.price-unit {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
}

.add-to-cart-btn:active {
  transform: translateY(0px);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.loading {
  text-align: center;
  padding: 5rem 1rem;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid #dbeafe;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.error-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.error-content h3 {
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 0.25rem;
}

.error-content p {
  color: #dc2626;
  font-size: 0.875rem;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  animation: fadeIn 0.2s ease;
}

.cart-overlay.open {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 28rem;
  background: white;
  box-shadow: -20px 0 60px -10px rgba(0, 0, 0, 0.3);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.close-cart {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.5);
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #9ca3af;
}

.cart-item {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.cart-item:hover {
  background: #f3f4f6;
}

.cart-item-image {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.cart-item-name {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.cart-item-price {
  font-size: 0.95rem;
  color: #16a34a;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.quantity-btn {
  background: none;
  border: none;
  color: #16a34a;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1.1rem;
}

.quantity-btn:hover {
  background: #16a34a;
  color: white;
  border-radius: 50%;
}

.quantity-display {
  padding: 0 1rem;
  font-weight: 700;
  color: #1f2937;
  min-width: 2rem;
  text-align: center;
}


.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: none;
}
.remove-btn:active {
  transform: scale(0.95);
}
.remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
}

.cart-item-subtotal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.cart-item-subtotal-label {
  color: #6b7280;
}

.cart-item-subtotal-value {
  font-weight: bold;
  color: #16a34a;
}

.cart-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
  background: #f9fafb;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
}

.cart-total-value {
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -0.5px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: none;
  padding: 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
  letter-spacing: 0.3px;
}

.checkout-btn:hover {
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
}

.checkout-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.clear-cart-btn {
  width: 100%;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  padding: 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.clear-cart-btn:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

footer {
  background: linear-gradient(135deg, #1f3a3f 0%, #15803d 100%);
  color: #d1fae5;
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
  font-weight: 300;
  font-size: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation principale - Desktop */
.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:hover::after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 1001;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
}

.hamburger-menu:active span,
.hamburger-menu:focus span {
  outline: none;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #16a34a;
  margin-right: 2.5rem;
  letter-spacing: -1px;
  text-shadow: 1px 2px 6px rgba(22,163,74,0.08);
  text-transform: uppercase;
  transition: color 0.3s;
}

.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
  line-height: 1.1;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-slogan {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
  font-weight: 400;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.cta-button:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(22, 163, 74, 0.5);
}

.tiles-section {
  padding: 5rem 0;
  background: white;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  grid-auto-rows: 280px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tile-large {
  grid-column: span 2;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tile:hover img {
  transform: scale(1.1);
}

.tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
}

.tile-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tile-content p {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 300;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(22, 163, 74, 0.1);
}

.step:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.3);
}

.step-number {
  position: absolute;
  top: -1rem;
  right: 1rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.step-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.step p {
  color: #6b7280;
  line-height: 1.7;
  font-weight: 300;
  font-size: 0.95rem;
}

.instagram-section {
  padding: 5rem 0;
  background: white;
}

.instagram-container {
  max-width: 900px;
  margin: 0 auto;
}

.instagram-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.instagram-image-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.instagram-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(21, 128, 61, 0.90));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.instagram-image-wrapper:hover .instagram-overlay {
  opacity: 1;
}

.instagram-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.instagram-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.instagram-overlay p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.95;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #16a34a;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.instagram-follow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  background: #f0fdf4;
}

.map-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.map-container {
  height: 500px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  border: 2px solid rgba(22, 163, 74, 0.1);
}

.faq-section {
  padding: 5rem 0;
  background: white;
}

.faq-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  text-align: left;
  transition: all 0.3s ease;
  letter-spacing: -0.2px;
}

.faq-question:hover {
  background: rgba(22, 163, 74, 0.05);
}

.faq-icon {
  font-size: 1.75rem;
  color: #16a34a;
  font-weight: 300;
  transition: transform 0.4s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  padding: 0 2rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 2rem 2rem;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.8;
  font-weight: 300;
  font-size: 0.95rem;
}

body.home-page {
  background: white;
}

body.home-page main {
  padding: 0;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: auto;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex !important;
    overflow-y: auto;
    transition: right 0.35s ease-out;
  }

  .main-nav.active {
    right: 0 !important;
  }

  .hamburger-menu {
    display: flex;
  }

  .main-nav a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a::after {
    display: none !important;
  }

  .hero h2 {
    font-size: 1.875rem;
  }

  .cart-panel {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .tile-large {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.admin-card-primary {
  position: relative;
  overflow: hidden;
}

.admin-card-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 55%);
  pointer-events: none;
}

.admin-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-chip {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(220, 252, 231, 0.8);
  color: #047857;
  font-weight: 600;
}

.admin-form-container {
  border-radius: 2rem;
  border: none;
  background: #ffffff;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(22, 163, 74, 0.12);
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  transition: box-shadow 0.3s ease;
}

.admin-form-container:hover {
  box-shadow: 0 12px 50px rgba(22, 163, 74, 0.18);
}

.admin-form-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 2rem 2.5rem;
  margin: -2.5rem -2.5rem 2rem -2.5rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.admin-form-hero-icon {
  font-size: 4rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.2);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #16a34a;
}

.admin-form-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: -1px;
}

.admin-form-hero-desc {
  color: #dcfce7;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 400;
}

.admin-form .form-input,
.admin-form .form-textarea {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  font-size: 1.1rem !important;
  color: #1f2937 !important;
  font-weight: 500 !important;
  outline: none !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 0.85rem 1.2rem !important;
  border-radius: 0.85rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-form .form-input:hover,
.admin-form .form-textarea:hover {
  border-color: #16a34a !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.1) !important;
}

.admin-form .form-input:focus,
.admin-form .form-textarea:focus {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15), 0 4px 16px rgba(22, 163, 74, 0.15) !important;
  background: #f0fdf4 !important;
}

.admin-form .form-label {
  color: #16a34a !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: block !important;
  margin-bottom: 0.5rem !important;
}

.admin-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.admin-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.admin-form .form-row {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.form-input,
.form-textarea {
  width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35);
}

.form-help {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.9rem;
}

.form-row-inline {
  display: flex;
  gap: 1rem;
}

.form-field {
  flex: 1;
}

.admin-empty {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #ecfdf3;
  border-radius: 1rem;
  border: 1px dashed #86efac;
  color: #166534;
  font-size: 0.9rem;
}

.form-field-preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.image-preview-wrapper {
  margin-top: 0.45rem;
  width: 160px;
  height: 160px;
  border-radius: 1.25rem;
  background: #f1f5f9;
  border: 1px dashed #cbd5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-preview-wrapper::after {
  content: "📐";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(22, 163, 74, 0.9);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-preview-wrapper:hover::after {
  opacity: 1;
}

.image-preview-placeholder {
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.image-preview-wrapper:hover .image-preview {
  transform: scale(1.05);
}

.admin-table-wrapper {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: #f1f5f9;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table th {
  font-weight: 600;
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.admin-table-image-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.admin-table-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.admin-table-name {
  font-weight: 600;
  color: #111827;
}

.admin-table-provenance {
  color: #6b7280;
}

.admin-table-price {
  font-weight: 600;
  color: #16a34a;
}

@media (max-width: 900px) {
  .form-row-inline {
    flex-direction: column !important;
  }

  .admin-form-hero {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
  }

  .admin-form-hero-icon {
    font-size: 3rem !important;
  }

  .admin-form-hero-title {
    font-size: 1.6rem !important;
  }

  .admin-form-container {
    padding: 1.5rem !important;
  }

  .image-preview-wrapper {
    width: 120px !important;
    height: 120px !important;
  }
}

@media (max-width: 640px) {
  .form-row-inline {
    flex-direction: column !important;
  }

  .admin-form-container {
    padding: 1rem !important;
    margin-top: 1rem !important;
    border-radius: 1.25rem !important;
  }

  .admin-form-hero {
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.25rem !important;
    margin: -1rem -1rem 1rem -1rem !important;
    gap: 1rem !important;
    flex-direction: column !important;
  }

  .admin-form-hero-icon {
    font-size: 2.5rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .admin-form-hero-title {
    font-size: 1.3rem !important;
  }

  .admin-form-hero-desc {
    font-size: 0.85rem !important;
  }

  .admin-form .form-input,
  .admin-form .form-textarea {
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
  }

  .admin-form .form-label {
    font-size: 0.95rem !important;
  }

  .admin-card {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .admin-title {
    font-size: 1.4rem !important;
  }

  .admin-subtitle {
    font-size: 0.85rem !important;
  }

  .admin-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .image-preview-wrapper {
    width: 100px !important;
    height: 100px !important;
  }

  .add-to-cart-btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  .admin-table {
    font-size: 0.8rem !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem !important;
  }

  .admin-table-image-wrapper {
    width: 45px !important;
    height: 45px !important;
  }

  .admin-edit-btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
}
/* ==================== MODAL DE CONNEXION & AUTHENTIFICATION ==================== */

/* Modal Login Dialog */
#login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

#login-modal.active {
  display: flex;
}

.login-modal-content {
  background: white;
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.login-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.3px;
}

.close-modal {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.close-modal:hover {
  color: #1f2937;
  background: #f3f4f6;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#login-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  letter-spacing: -0.2px;
}

#login-form input {
  padding: 0.85rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  background: white;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#login-form input::placeholder {
  color: #9ca3af;
}

#login-form input:focus {
  outline: none;
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

#login-form input:hover {
  border-color: #bfdbfe;
}

#login-error {
  background: #fee2e2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  display: none;
  animation: slideDown 0.3s ease;
  margin-bottom: 0.5rem;
}

#login-error.show {
  display: block;
}

.login-submit-btn {
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  letter-spacing: 0.2px;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-signup-link {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
}

.login-signup-link a {
  color: #16a34a;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.login-signup-link a:hover {
  color: #15803d;
  border-bottom-color: #16a34a;
}

/* Navigation Buttons */
.nav-login-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-register-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-register-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-register-link:hover {
  opacity: 0.9;
}

.nav-register-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .login-modal-content {
    padding: 1.75rem;
    width: 95%;
  }

  .login-modal-title {
    font-size: 1.3rem;
  }

  #login-form {
    gap: 1rem;
  }

  .nav-login-btn,
  .nav-register-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}