/* Fonts i base */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: #faf5ef;
  color: #3a2a27;
  line-height: 1.6;
}

.logo {
  display: inline-block;
  padding: 10px;
  transition: transform 0.3s ease;
}

.logo img {
  height: 60px;
  width: auto;
  cursor: pointer;
  display: block;
}

.logo:hover {
  transform: scale(1.05);
}

/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
/* ======= Header general ======= */
header {
  background-color: #7b1113;
  padding: 0 40px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ======= Logo a la izquierda ======= */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 180px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* ======= Menú principal a la derecha ======= */
.nav-principal {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-principal a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-principal a:hover {
  color: #ffddc4;
}


/* ======= Botón ☰ desplegable ======= */
.menu-desplegable {
  position: relative;
}

.menu-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 6px 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
  color: #ffddc4;
}

/* ======= Menú desplegable oculto ======= */
.dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 12px 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dropdown.visible {
  opacity: 1;
  pointer-events: auto;
}

.dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  text-decoration: none;
  color: #ff073a;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
  background-color: rgba(255, 7, 58, 0.15);
  color: white;
}

.dropdown hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 6px 0;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .logo img {
    height: 100px;
    margin-bottom: 10px;
  }

  .nav-principal {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}


nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #ffddc4;
}

/* Hero */
.hero {
  background-image: url('../img/guindillas1.png');
  background-size: cover;
  background-position: center;
  padding: 160px 40px;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 55px;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

/* Presentació */
.presentacio {
  display: flex;
  padding: 80px 40px;
  gap: 40px;
  align-items: center;
}

.presentacio-img {
  background-image: url('../img/passio.png');
  width: 50%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.presentacio-text {
  width: 50%;
}

.presentacio-text h2 {
  font-size: 35px;
  font-family: "Playfair Display";
  margin-bottom: 20px;
}

/* Productes destacats */
.productes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* centra verticalmente */
  align-items: center;
  padding: 40px 20px;
  /* reduce espacio arriba/abajo */
  gap: 30px;
  /* espacio entre título y tarjetas */
  min-height: 100vh;
  /* ocupa toda la altura visible */
  background-color: #faf5ef;
  transition: background-color 0.6s ease;
}

.productes h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  text-align: center;
  margin: 0;
  /* elimina margen extra */
  color: #7b1113;
  transition: color 0.6s ease;
}

/* Grid en una sola línia */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-grid::-webkit-scrollbar {
  height: 8px;
}

.product-grid::-webkit-scrollbar-thumb {
  background-color: #7b1113;
  border-radius: 4px;
}

body.dark-mode .productes {
  background-color: #1c0202;
}

body.dark-mode .productes h2 {
  color: #ffddc4;
}

/* Tarjeta de producto */
.product-card {
  width: 280px;
  background-color: #fff;
  border: 1px solid rgba(123, 17, 19, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* asegura que texto y botón se distribuyan */
  align-items: center;
  min-height: 440px;
  /* altura uniforme para todas las tarjetas */
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.product-card img.product-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px 16px 0 0;
}

/* Contenido de la tarjeta */
.product-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* empuja el botón al fondo */
  flex: 1;
  padding: 20px;
  text-align: center;
  width: 100%;
  background-color: #fff8f0;
  border-radius: 0 0 16px 16px;
}

.product-card h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #7b1113;
}

.product-card p {
  font-size: 16px;
  margin: 0 0 20px 0;
  color: #3a2a27;
}

/* Hover */
.product-card:hover {
  transform: scale(1.05);
  border: 1px solid #ff073a;
  box-shadow: 0 0 12px #ff073a, 0 0 24px #ff073a;
}

/* Botón */
.btn {
  background-color: #7b1113;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-top: auto;
  /* empuja el botón al fondo */
  margin-bottom: 10px;
  align-self: center;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: #5c0d0f;
  transform: scale(1.05);
  border: 2px solid #ff073a;
  box-shadow: 0 0 10px #ff073a;
}


/* 🌙 Modo oscuro */
body.dark-mode .product-card {
  background-color: #2a0a0a;
  border: none;
  box-shadow: none;
}

body.dark-mode .product-card-content {
  background-color: #3b0f0f;
  border: none;
}

body.dark-mode .product-card h3 {
  color: #ffddc4;
}

body.dark-mode .product-card p {
  color: #e0e0e0;
}

body.dark-mode .product-card:hover {
  transform: scale(1.05);
  border: 2px solid #ff073a;
  box-shadow: 0 0 15px #ff073a, 0 0 30px #ff073a;
}

body.dark-mode .btn {
  background-color: #7b1113;
  color: white;
}

body.dark-mode .btn:hover {
  background-color: #ff073a;
  color: #fff;
  border: 2px solid #ff073a;
  box-shadow: 0 0 10px #ff073a;
}

/* Blog */
.blog {
  padding: 40px;
}

.blog h2 {
  font-family: "Playfair Display";
  font-size: 34px;
  text-align: center;
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 240px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.blog-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

.blog1 {
  background-image: url('../img/guindillas1.png');
}

.blog2 {
  background-image: url('../img/guindillas2.png');
}

.blog3 {
  background-image: url('../img/guindillas1.png');
}

/* Footer compacto */
footer {
  background-color: #7b1113;
  color: #ffffff;
  padding: 60px 40px;
  border-top: 2px solid #5d0c0d;
  font-size: 16px;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-column.contacto ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column.contacto li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #f5f5f5;
  transition: color 0.3s ease;
}

.footer-column.contacto li span {
  font-size: 18px;
}

.footer-column.contacto a {
  color: #ffddc4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-column.contacto a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 🌙 Modo oscuro */
body.dark-mode .footer-column.contacto li {
  color: #e0e0e0;
}

body.dark-mode .footer-column.contacto a {
  color: #ffddc4;
}

body.dark-mode .footer-column.contacto a:hover {
  color: #ffffff;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffddc4;
  font-weight: 600;
}

.footer-column p,
.footer-column a {
  font-size: 15px;
  margin: 4px 0;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Newsletter */
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ffddc4;
  font-size: 14px;
  background-color: #fff8f0;
  color: #3a2a27;
}

.newsletter button.btn {
  background-color: #a33b3d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter button.btn:hover {
  background-color: #8c2f31;
}

/* Mensaje final */
.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #ffddc4;
}

/* 🌙 Modo oscuro */
body.dark-mode footer {
  background-color: #380202;
  color: #f5f5f5;
  border-color: #440909;
}

body.dark-mode .footer-column h3 {
  color: #ffddc4;
}

body.dark-mode .footer-column p,
body.dark-mode .footer-column a {
  color: #e0e0e0;
}

body.dark-mode .newsletter input {
  background-color: #2a0a0a;
  color: #f5f5f5;
  border-color: #7b1113;
}

body.dark-mode .newsletter button.btn {
  background-color: #a33b3d;
}

body.dark-mode .newsletter button.btn:hover {
  background-color: #ff5a5a;
}

body.dark-mode .footer-bottom {
  color: #ffddc4;
}

/* Responsive */
@media (max-width: 768px) {
  .presentacio {
    flex-direction: column;
  }

  .presentacio-img,
  .presentacio-text {
    width: 100%;
  }

  .product-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-card {
    width: 100%;
    max-width: 320px;
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Botón flotante */
#toggle-theme {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #7b1113;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

#toggle-theme:hover {
  background-color: #5c0d0f;
  transform: scale(1.1);
}

/* Modo oscuro */
body.dark-mode {
  background-color: #1c0202;
  color: #f5f5f5;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #380202;
  border-color: #440909;
}

body.dark-mode .product-card {
  background-color: #2a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.03);
  overflow: visible;
}

body.dark-mode .product-card:hover {
  transform: scale(1.05);
  border: 1px solid #ff073a;
  box-shadow: 0 0 12px #ff073a, 0 0 24px #ff073a;
}

body.dark-mode .product-card-content {
  border: none;
}

body.dark-mode .btn {
  background-color: #a33b3d;
  color: white;
}

body.dark-mode .btn:hover {
  background-color: #ff5a5a;
  color: #fff;
  border: 2px solid #ff5a5a;
  box-shadow: 0 0 8px #ff5a5a;
}

body.dark-mode .product-card h3 {
  color: #ffddc4;
}

body.dark-mode .product-card p {
  color: #e0e0e0;
}




/* Proposta de valor */
.proposta-valor {
  background: linear-gradient(135deg, #fff8f0, #ffe5dc);
  padding: 60px 40px;
  font-family: 'Montserrat', sans-serif;
  color: #3a2a27;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: 0.6s ease, color 0.6s ease;
}

.proposta-valor h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: #c0392b;
  margin-bottom: 25px;
  text-align: center;
  transition: color 0.6s ease;
}

.proposta-valor p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: center;
  line-height: 1.7;
  transition: color 0.6s ease;
}

.proposta-valor ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.proposta-valor li {
  background-color: #fff;
  border: 2px solid #ffddc4;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #7b1113;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

.proposta-valor li:hover {
  transform: scale(1.05);
  border-color: #ff5a5a;
  box-shadow: 0 0 10px #ff5a5a;
}

/* Modo oscuro para proposta de valor */
body.dark-mode .proposta-valor {
  background: linear-gradient(135deg, #2a0a0a, #3b0f0f);
  color: #f5f5f5;
}

body.dark-mode .proposta-valor h2 {
  color: #ffddc4;
}

body.dark-mode .proposta-valor p {
  color: #e0e0e0;
}

body.dark-mode .proposta-valor li {
  background-color: #370505;
  color: #ffddc4;
  border-color: #7b1113;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .proposta-valor li:hover {
  transform: scale(1.05);
  border-color: #ff5a5a;
  box-shadow: 0 0 10px #ff5a5a;
}

/* Responsive */
@media (max-width: 768px) {
  .proposta-valor ul {
    flex-direction: column;
    align-items: center;
  }

  .proposta-valor li {
    width: 100%;
    max-width: 320px;
  }
}



/* Enllaç al blog */
.enllac-blog {
  padding: 40px;
  text-align: center;
}

.enllac-blog h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.blog-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.blog-preview img {
  width: 160px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-text p {
  font-size: 15px;
  margin-bottom: 12px;
}

/* Newsletter al footer */
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.newsletter button {
  align-self: flex-start;
}

.footer-legals-line {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #ffddc4;
}

.footer-legals-line a {
  color: #ffddc4;
  text-decoration: none;
  font-weight: 500;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-legals-line a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === Botón del formulario igual que en index === */

.newsletter .btn {
  width: 100%;
  /* mismo ancho que los inputs */
  padding: 14px 0;
  /* altura elegante */
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px;
  /* igual que index */
  font-weight: 600;
  /* mismo grosor */
  letter-spacing: 0.5px;
  /* estilo index */
  border-radius: 8px;
  background-color: #7b1113;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter .btn:hover {
  background-color: #5c0d0f;
  transform: scale(1.03);
}

/* === Modo oscuro === */
body.dark-mode .newsletter .btn {
  background-color: #a33b3d;
}

body.dark-mode .newsletter .btn:hover {
  background-color: #ff5a5a;
}



/* Menú principal */
nav ul.nav-principal {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul.nav-principal li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffddc4;
}



/* Transiciones generales */
body,
header,
footer,
.nav-principal a,
.dropdown,
.mvv-card,
.product-card,
.btn,
.newsletter input,
.newsletter button.btn {
  transition: background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

body.dark-mode .dropdown a {
  color: #ffffff;
  /* blanco puro */
}



/* ======= Selector de idioma con bandera ======= */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.lang-btn:hover {
  transform: scale(1.1);
}

.flag-icon {
  width: 28px;
  height: auto;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Transiciones generales
=========================== */
body,
header,
footer,
.nav-principal a,
.dropdown,
.hero-producte-simple,
.detall-text,
.btn,
.newsletter input,
.newsletter button.btn {
  transition: background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background-color: transparent;
  border: 2px solid #ffddc4;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.lang-btn:hover {
  background-color: #ffddc4;
  color: #7b1113;
  transform: scale(1.05);
}

.lang-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 80px;
  background: rgba(255, 221, 196, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lang-menu.visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.lang-menu li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  display: block;
  text-align: center;
  padding: 4px 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #7b1113;
  border-radius: 6px;
}

/* === Ajustes solicitados para el menú de idioma === */

/* Fondo semitransparente + texto rojo oscuro en modo claro */
.lang-menu {
  background: rgba(255, 221, 196, 0.85) !important;
}

.lang-menu li a {
  color: #7b1113 !important;
  /* rojo oscuro */
}

/* Hover en modo claro */
.lang-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #7b1113 !important;
}

/* === Modo oscuro === */
body.dark-mode .lang-menu {
  background: rgba(40, 10, 10, 0.85) !important;
}

body.dark-mode .lang-menu li a {
  color: #ffffff !important;
  /* blanco */
}

body.dark-mode .lang-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Botón flotante del carrito */
#cart-button {
  position: fixed;
  bottom: 80px;
  /* debajo del botón de modo oscuro */
  right: 20px;
  background-color: #7b1113;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 200;
}

#cart-button:hover {
  background-color: #5c0d0f;
  transform: scale(1.1);
}

/* Panel del carrito */
#cart-panel {
  position: fixed;
  bottom: 140px;
  right: 20px;
  width: 280px;
  background-color: #fff8f0;
  border: 2px solid #ffddc4;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 300;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.cart-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#cart-panel h3 {
  margin-top: 0;
  font-size: 18px;
  color: #7b1113;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

#cart-items li {
  font-size: 15px;
  margin-bottom: 6px;
  color: #3a2a27;
}

#cart-empty {
  font-size: 14px;
  color: #a33b3d;
  margin-bottom: 10px;
}

/* Modo oscuro */
body.dark-mode #cart-panel {
  background-color: #2a0a0a;
  border-color: #7b1113;
}

body.dark-mode #cart-panel h3,
body.dark-mode #cart-items li,
body.dark-mode #cart-empty {
  color: #ffddc4;
}

.afegir-carreto {
  background-color: #a33b3d;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.afegir-carreto:hover {
  background-color: #7b1113;
  transform: scale(1.05);
  border: 2px solid #ff073a;
  box-shadow: 0 0 10px #ff073a;
}

body.dark-mode .afegir-carreto {
  background-color: #7b1113;
  color: #ffddc4;
}

body.dark-mode .afegir-carreto:hover {
  background-color: #ff073a;
  color: white;
  border-color: #ff073a;
}

.afegir-carreto {
  background-color: #a33b3d;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.afegir-carreto:hover {
  background-color: #7b1113;
  transform: scale(1.05);
  border: 2px solid #ff073a;
  box-shadow: 0 0 10px #ff073a;
}

/* Modo oscuro */
body.dark-mode .afegir-carreto {
  background-color: #7b1113;
  color: #ffddc4;
}

body.dark-mode .afegir-carreto:hover {
  background-color: #ff073a;
  color: white;
  border-color: #ff073a;
}

/* ===== PRELOADER GENERAL ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Fondo transparente con blur fuerte */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  /* Ocultación suave */
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ===== SPINNER CIRCULAR ===== */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 221, 196, 0.4); /* tono suave */
  border-top-color: #ffddc4; /* color principal */
  border-radius: 50%;

  /* Velocidad ajustada (más lento y elegante) */
  animation: girar 1.4s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

/* ===== OCULTAR PRELOADER SUAVEMENTE ===== */
#preloader.oculto {
  opacity: 0;
  visibility: hidden;
}

/* ===== EVITAR QUE SE MUESTRE SI YA CARGÓ UNA VEZ ===== */
.skip-preloader #preloader {
  display: none !important;
}
