/*
Theme Name: Tiendita Leo y Lali
Theme URI: https://tienditaleoylali.cl
Author: Tu Nombre
Description: Tema personalizado para la Tiendita de Leo y Lali con integración de WooCommerce y MercadoPago.
Version: 1.0
Text Domain: tienditaleoylali
*/

/* ===== VARIABLES ===== */
:root {
  --purple: #A47DAB;
  --purple-dark: #8E6695;
  --purple-light: #FAF5FF;
  --purple-border: #E9D8F4;
  --text-dark: #2C3E50;
  --text-mid: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --bg-soft: #F8FAFC;
  --white: #FFFFFF;
  --green: #38A169;
  --red: #E53E3E;
  --blue: #3182CE;
}

/* ===== FUENTE PERSONALIZADA: Brownies Cake ===== */
/*
  Archivos necesarios en: wp-content/themes/TU-TEMA/fonts/
    - brownies_cake.woff2  (más liviano, navegadores modernos)
    - brownies_cake.woff   (compatibilidad media)
    - brownies_cake.ttf    (compatibilidad amplia)
    - brownies_cake.otf    (fallback)

  Ruta asumida: misma carpeta del tema.
  Si subes las fuentes a otra carpeta ajusta la ruta en url().
*/
@font-face {
  font-family: 'BrowniesCake';
  src:
    url('fonts/brownies_cake.woff2') format('woff2'),
    url('fonts/brownies_cake.woff')  format('woff'),
    url('fonts/brownies_cake.ttf')   format('truetype'),
    url('fonts/brownies_cake.otf')   format('opentype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap; /* evita FOIT — muestra texto en Poppins mientras carga */
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins',sans-serif; scroll-behavior:smooth; }
body { background:#FFFFFF; color:var(--text-dark); overflow-x:hidden; }

/* ... (PEGA AQUÍ TODO EL RESTO DE TU CÓDIGO CSS HASTA EL FINAL DE LOS @MEDIA) ... */


/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  /* Evitar conflicto con barra admin de WordPress */
  padding-top: 0 !important;
}
/* Compensar la barra de administración de WordPress cuando está activo */
body.admin-bar #pageLoader { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #pageLoader { top: 46px; }
}

/* ===== LOADER ===== */
#pageLoader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: opacity .4s ease;
}
#pageLoader .loader-logo {
  font-family: 'BrowniesCake', 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: normal;
  color: var(--purple);
  letter-spacing: 1px;
}
#pageLoader .loader-bar {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
#pageLoader .loader-fill {
  height: 100%;
  width: 0;
  background: var(--purple);
  border-radius: 10px;
  animation: loadFill 1.5s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ===== TOASTS ===== */
#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  border-left: 4px solid var(--green);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  animation: slideInToast .3s ease;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
}
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: var(--blue); }
.toast.warning { border-left-color: #DD6B20; }
@keyframes slideInToast {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOutToast {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ===== BANNER ===== */
.banner-superior {
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid var(--purple);
}
.banner-superior img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

/* ===== HEADER / NAV ===== */
.tiendita-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
/* Si WordPress muestra la barra admin, empujar el header sticky */
.admin-bar .tiendita-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .tiendita-header { top: 46px; }
}

.logo-texto {
  font-family: 'BrowniesCake', 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: normal; /* BrowniesCake ya tiene su propio peso visual */
  color: var(--purple);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* NAV menú */
.menu-horizontal {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.menu-horizontal > li { position: relative; }
.menu-horizontal a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: .2s;
  cursor: pointer;
  border-radius: 8px;
  background: none;
  border: none;
}
.menu-horizontal a:hover { color: var(--purple); background: var(--purple-light); }
.flecha-menu { font-size: 10px; transition: transform .2s ease; display: inline-block; }

/* Submenús */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  min-width: 230px;
  list-style: none;
  padding: 8px 0;
  margin-top: 5px;
  z-index: 1100;
}
.submenu li a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  display: block;
  border-radius: 0;
  width: 100%;
}
.submenu li a:hover { background: var(--purple-light); color: var(--purple); }
.menu-horizontal > li:hover .submenu { display: block; }
.menu-horizontal > li:hover > a .flecha-menu {
  transform: rotate(180deg);
  color: var(--purple);
}

/* Botones header */
.btn-login-header {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.btn-login-header:hover { background: var(--purple); color: white; }
.btn-login-header.activo { background: var(--purple); color: white; }
.carrito-badge-header {
  background: var(--purple);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.carrito-badge-header:hover { background: var(--purple-dark); }
.badge-numero {
  background: white;
  color: var(--purple);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SECCIONES ===== */
.tiendita-section {
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.titulo {
  font-family: 'BrowniesCake', 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: normal; /* la fuente decorativa no necesita bold */
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 1px;
}
.titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}
.subtitulo-personalizar {
  font-family: 'BrowniesCake', 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: normal;
  color: var(--purple);
  margin: 25px 0 15px 0;
  border-left: 4px solid var(--purple);
  padding-left: 10px;
  letter-spacing: 0.5px;
}

/* ===== FILTROS ===== */
.barra-filtros {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.input-buscar {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 25px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: .2s;
  font-family: 'Poppins', sans-serif;
}
.input-buscar:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(164,125,171,.15);
}
.select-categoria {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 25px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  background: white;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  /* Anular el select global de WordPress si interfiere */
  width: auto !important;
  margin: 0 !important;
}
.select-categoria:focus { border-color: var(--purple); }

/* ===== CATÁLOGO / CARDS ===== */
.productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 15px rgba(0,0,0,.03);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(164,125,171,.15);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--purple);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
}
.card-badge.agotado { background: #718096; }
.card-badge.oferta  { background: #E53E3E; }
.info {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.info h3 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.3;
}
.info .descripcion-corta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.precio {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--purple);
}
.precio .precio-tachado {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 400;
}
.stock-tag {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}
.stock-tag.bajo { color: #DD6B20; }
.stock-tag.sin  { color: var(--red); }

/* ===== BOTONES GENERALES ===== */
.btn {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  background: var(--purple);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  font-family: 'Poppins', sans-serif;
}
.btn:hover:not(:disabled) { background: var(--purple-dark); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: #CBD5E0; cursor: not-allowed; color: #718096; }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.card-skeleton { height: 320px; border-radius: 16px; }

/* ===== PAGINACIÓN ===== */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pag-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}
.pag-btn:hover, .pag-btn.activa {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

/* ===== INSTAGRAM ===== */
.instagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.insta-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 15px rgba(0,0,0,.03);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.insta-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,.08);
}
.insta-img-container {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}
.insta-img-container svg { width: 60px; height: 60px; fill: white; margin-bottom: 15px; }
.insta-img-container span { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.reel-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.insta-info { padding: 15px; background: var(--white); }
.likes { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--purple); }
.comentarios p { margin-bottom: 6px; font-size: 13px; color: var(--text-mid); }
.comentarios b { color: var(--text-dark); }

/* ===== UBICACIÓN ===== */
.ubicacion-container {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 15px rgba(0,0,0,.03);
}
.ubicacion-texto {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--purple);
  font-weight: 600;
}

/* ===== BOTONES FLOTANTES ===== */
.carrito-btn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 65px;
  height: 65px;
  border: none;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 26px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(164,125,171,.4);
  transition: transform .2s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carrito-btn:hover { transform: scale(1.08); }
.whatsapp-btn {
  position: fixed;
  right: 25px;
  bottom: 90px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  transition: transform .2s, background .2s;
  text-decoration: none;
}
.whatsapp-btn svg { width: 36px; height: 36px; fill: white; }
.whatsapp-btn:hover { transform: scale(1.08); background: #20BA5A; }
.carrito-float-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ===== POPUP AGREGADO ===== */
.popup {
  position: fixed;
  right: 25px;
  bottom: 105px;
  width: 320px;
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  display: none;
  z-index: 9999;
  box-shadow: 0 15px 35px rgba(0,0,0,.1);
  border: 1px solid var(--border);
  text-align: center;
  animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup h2 { font-size: 18px; color: var(--green); margin-bottom: 5px; }
.popup p  { font-size: 13px; margin-bottom: 15px; color: var(--text-light); }

/* ===== BASE MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 99999;
  overflow-y: auto;  /* FIX: permitir scroll si el modal es más alto que la pantalla */
}
.btn-cerrar-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.btn-cerrar-x:hover { background: var(--purple); color: white; }

/* ===== MODAL CARRITO ===== */
.carrito-box {
  background: var(--white);
  width: 100%;
  max-width: 1100px;
  border-radius: 20px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  max-height: 85vh;
  overflow: hidden; /* FIX: columnas con scroll interno */
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  position: relative;
}
.lista {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 20px;
  overflow-y: auto;    /* FIX: scroll en la lista de items */
  border: 1px solid var(--border);
  min-height: 0;       /* FIX: necesario para que overflow-y funcione en grid */
}
.lista h2 {
  color: var(--purple);
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  position: sticky; /* FIX: título fijo mientras se hace scroll en la lista */
  top: 0;
  background: var(--bg-soft);
  z-index: 1;
}
.resumen {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 20px;
  height: fit-content;
  border: 1px solid var(--border);
  overflow-y: auto;    /* FIX: scroll si el resumen es largo en pantallas pequeñas */
  max-height: calc(85vh - 50px);
}
.resumen h2 { color: var(--purple); font-size: 20px; margin-bottom: 15px; }
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.item-left { display: flex; align-items: center; gap: 15px; }
.item img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}
.item h3 { font-size: 14px; color: var(--text-dark); max-width: 180px; line-height: 1.3; }
.item p  { font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--purple); }
.item span.nota {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.cantidad {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.cantidad button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--purple);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
}
.cantidad button:hover { background: var(--purple-dark); }
.cantidad span {
  width: 35px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.total {
  font-size: 34px;
  font-weight: 700;
  margin: 15px 0;
  color: var(--purple);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  word-break: break-all; /* FIX: evitar desbordamiento con totales grandes */
}
.cupon-box { display: flex; gap: 10px; margin-top: 8px; margin-bottom: 15px; }
.cupon-box input {
  flex: 1;
  min-width: 0; /* FIX: evitar desbordamiento del input en flex */
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}
.desglose-linea { font-size: 12px; color: var(--text-light); line-height: 1.8; }

/* ===== MODAL CONFECCIÓN ===== */
.confeccion-box {
  background: var(--white);
  width: 100%;
  max-width: 700px;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.confeccion-titulo {
  font-family: 'BrowniesCake', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-soft);
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.upload-box {
  border: 2px dashed var(--purple);
  background: var(--purple-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.upload-box:hover { background: #F3E8FF; }
.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-box p    { font-size: 14px; color: #6B46C1; font-weight: 500; }
.upload-box span { font-size: 11px; color: #A0AEC0; display: block; margin-top: 4px; }
.preview-img-container { margin-top: 10px; display: none; text-align: center; }
.preview-img-container img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}
textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  resize: vertical; /* FIX: era none, ahora permite resize vertical */
  transition: border-color .2s;
  font-family: 'Poppins', sans-serif;
}
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(164,125,171,.15);
}
.confeccion-contador { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.confeccion-contador button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: var(--purple);
  color: white;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  line-height: 1;
}
.confeccion-contador button:hover { background: var(--purple-dark); }
.confeccion-contador span {
  font-size: 18px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
  color: var(--text-dark);
}

/* ===== MODAL AUTH ===== */
.auth-box {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  user-select: none;
}
.auth-tab.activa { color: var(--purple); border-bottom-color: var(--purple); }
.auth-form { display: none; }
.auth-form.activo { display: block; }
.input-group { margin-bottom: 16px; }
.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.input-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s;
  font-family: 'Poppins', sans-serif;
  background: var(--white);
}
.input-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(164,125,171,.15);
}
.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
}
.btn-auth:hover { background: var(--purple-dark); }
.perfil-info {
  background: var(--purple-light);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.perfil-info h3 { font-size: 16px; color: var(--purple); font-weight: 700; margin-bottom: 4px; }
.perfil-info p  { font-size: 13px; color: var(--text-mid); }
.btn-outline {
  background: white;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
}
.btn-outline:hover { background: var(--purple-light); }

/* ===== MODAL PEDIDOS ===== */
.pedidos-box {
  background: var(--white);
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 85vh;
  overflow-y: auto;
}
.pedido-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg-soft);
  transition: border-color .2s;
}
.pedido-card:hover { border-color: var(--purple-border); }
.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}
.pedido-id { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.pedido-estado {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* FIX: los estados usaban clases de WooCommerce (pending, processing, completed...)
   que diferían de las clases CSS (pendiente, procesando, completado...) */
.pedido-estado.pending,
.pedido-estado.pendiente   { background: #FFF3E0; color: #E65100; }
.pedido-estado.processing,
.pedido-estado.procesando  { background: #E3F2FD; color: #1565C0; }
.pedido-estado.completed,
.pedido-estado.completado  { background: #E8F5E9; color: #2E7D32; }
.pedido-estado.cancelled,
.pedido-estado.cancelado   { background: #FFEBEE; color: #C62828; }
.pedido-estado.on-hold,
.pedido-estado.on_hold     { background: #FFF9C4; color: #F57F17; }
.pedido-estado.refunded    { background: #E8EAF6; color: #283593; }
.pedido-items  { font-size: 13px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.5; }
.pedido-total  { font-size: 15px; font-weight: 700; color: var(--purple); }

/* ===== MODAL PAGO MERCADOPAGO ===== */
.pago-box {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.pago-titulo    { font-family: 'BrowniesCake','Poppins',sans-serif; font-size: 26px; font-weight: normal; color: var(--text-dark); margin-bottom: 5px; letter-spacing: 0.5px; }
.pago-subtitulo { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.mp-logo-area {
  background: linear-gradient(135deg, #009EE3, #00BCE3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.mp-logo-area .mp-icon { font-size: 32px; flex-shrink: 0; }
.mp-logo-area strong { font-size: 16px; font-weight: 700; display: block; }
.mp-logo-area span   { font-size: 12px; opacity: .85; }
.metodos-pago {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.metodo-btn {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: white;
  user-select: none;
}
.metodo-btn:hover,
.metodo-btn.seleccionado { border-color: var(--purple); background: var(--purple-light); }
.metodo-btn .metodo-icono  { font-size: 24px; margin-bottom: 6px; }
.metodo-btn .metodo-nombre { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.resumen-pago { background: var(--bg-soft); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.resumen-pago-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
  gap: 10px;
}
.resumen-pago-row span:last-child { font-weight: 600; text-align: right; }
.resumen-pago-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 6px;
}
.btn-pagar-mp {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #009EE3, #00BCE3);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 6px 20px rgba(0,158,227,.3);
  font-family: 'Poppins', sans-serif;
}
.btn-pagar-mp:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,158,227,.4);
}
.btn-pagar-mp:disabled {
  background: #CBD5E0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.seguridad-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  justify-content: center;
  margin-top: 12px;
}

/* ===== PANEL ADMIN ===== */
.admin-box {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  transition: .2s;
  font-family: 'Poppins', sans-serif;
}
.admin-tab.activa { background: var(--purple); color: white; border-color: var(--purple); }
.admin-panel { display: none; }
.admin-panel.activo { display: block; }
.tabla-inventario { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla-inventario th {
  background: var(--purple-light);
  color: var(--purple);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.tabla-inventario td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tabla-inventario tr:hover td { background: var(--bg-soft); }
.stock-input {
  width: 70px; /* FIX: ampliado de 60px para mejor UX */
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}
.btn-sm {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
.btn-sm.guardar  { background: var(--green); color: white; }
.btn-sm.guardar:hover { background: #2F855A; }
.btn-sm.editar   { background: var(--purple-light); color: var(--purple); border: 1px solid var(--purple-border); }
.btn-sm.editar:hover  { background: var(--purple-border); }
.btn-sm.eliminar { background: #FFF5F5; color: var(--red); border: 1px solid #FEB2B2; }
.btn-sm.eliminar:hover { background: #FED7D7; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  text-align: center;
}
.stat-card .stat-numero { font-size: 28px; font-weight: 700; color: var(--purple); }
.stat-card .stat-label  { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== SELECT GLOBAL (sólo dentro de .tiendita-section y modales) ===== */
/* FIX: en lugar de sobrescribir el select global de WordPress,
   acotamos el selector para evitar conflictos */
.tiendita-section select,
.modal select,
.resumen select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

/* ===== SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.tiendita-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 24px 5%;
  font-size: 13px;
  margin-top: 60px;
}
.tiendita-footer a { color: var(--purple); text-decoration: none; }
.tiendita-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .productos     { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .carrito-box   { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .lista         { max-height: 40vh; }
  .metodos-pago  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .tiendita-header {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .logo-texto { font-size: 24px; }
  .menu-horizontal { justify-content: center; flex-wrap: wrap; gap: 4px; }
  .menu-horizontal a { font-size: 12px; padding: 6px 8px; }
  .submenu { position: static; box-shadow: none; border: none; width: 100%; background: var(--purple-light); display: none; }
  .menu-horizontal > li:hover .submenu { display: block; }
  .header-actions { justify-content: center; }
  .btn-login-header, .carrito-badge-header { font-size: 12px; padding: 6px 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .popup { right: 10px; width: calc(100vw - 20px); bottom: 90px; }
}
@media (max-width: 600px) {
  .productos    { grid-template-columns: 1fr; }
  .instagram    { grid-template-columns: 1fr; }
  .item         { flex-direction: column; align-items: flex-start; }
  .cupon-box    { flex-direction: column; }
  .barra-filtros { flex-direction: column; align-items: stretch; }
  .metodos-pago { grid-template-columns: 1fr 1fr; }
  .carrito-box  { padding: 15px; }
  .pago-box     { padding: 20px; }
  .auth-box     { padding: 24px; }
  .btn-pagar-mp { font-size: 14px; padding: 14px; }
}
@media (max-width: 400px) {
  .metodos-pago { grid-template-columns: 1fr; }
}

/* ===================================================================
   NUEVOS ESTILOS — Foto del cliente + Instagram Smash Balloon
   =================================================================== */

/* ── Tabs de origen de imagen (Desde archivo / Desde cámara) ─────── */
.origen-imagen-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.origen-tab {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.origen-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.origen-tab.activa {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 600;
}

/* ── Panel de cada opción de subida ──────────────────────────────── */
.panel-origen { margin-bottom: 4px; }

/* ── Upload box (drag & drop mejorado) ───────────────────────────── */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-soft);
  user-select: none;
}
.upload-box:hover,
.upload-box:focus-within {
  border-color: var(--purple);
  background: var(--purple-light);
}
.upload-box p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.upload-box span {
  font-size: 12px;
  color: var(--text-light);
}

/* ── Vista previa de imagen cargada ─────────────────────────────── */
.preview-img-container {
  margin-top: 12px;
  text-align: center;
}
.preview-img-container img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 2px solid var(--green);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  object-fit: contain;
  background: var(--bg-soft);
}

/* ── Nota informativa debajo del upload ─────────────────────────── */
.nota-imagen {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--purple-light);
  border-radius: 8px;
  border-left: 3px solid var(--purple);
}

/* ── Precio dinámico en modal de confección ─────────────────────── */
#precioDinamicoConfeccion {
  background: var(--purple-light);
  border-radius: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--purple-border);
}

/* ── Estado de subida de imagen ─────────────────────────────────── */
#estadoSubidaImagen {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
}

/* ── Wrapper del feed de Instagram Smash Balloon ─────────────────── */
.instagram-feed-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sobrescrituras del plugin Smash Balloon para que combine con el diseño */
.instagram-feed-wrapper #sbi_wrap {
  font-family: 'Poppins', sans-serif !important;
}
.instagram-feed-wrapper #sbi_load .sbi_load_btn,
.instagram-feed-wrapper .sbi_follow_btn a {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  border-radius: 25px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: background .2s !important;
}
.instagram-feed-wrapper #sbi_load .sbi_load_btn:hover,
.instagram-feed-wrapper .sbi_follow_btn a:hover {
  background: var(--purple-dark) !important;
  border-color: var(--purple-dark) !important;
}
.instagram-feed-wrapper .sbi_item {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* ── Responsive nuevos elementos ────────────────────────────────── */
@media (max-width: 600px) {
  .origen-imagen-tabs  { flex-direction: column; }
  .preview-img-container img { max-height: 160px; }
  .instagram-feed-wrapper { padding: 0 8px; }
}

/* ===== NUEVOS ESTILOS PARA ADMIN ===== */
.tabla-inventario td img {
  cursor: pointer;
  transition: transform 0.2s;
}
.tabla-inventario td img:hover {
  transform: scale(1.05);
}
.admin-panel .form-group {
  margin-bottom: 20px;
}
.admin-panel .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
#ventasChart {
  max-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 10px;
}

/* ===== NUEVO: GRID DE SECCIONES A DOS COLUMNAS ===== */
.tiendita-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.tiendita-sections-grid .tiendita-section {
  padding: 0;
  margin-bottom: 2rem;
  background: transparent;
  box-shadow: none;
  break-inside: avoid;
}

/* En móvil vuelve a una columna */
@media (max-width: 768px) {
  .tiendita-sections-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== IMÁGENES DE PRODUCTOS SIN CORTAR ===== */
.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 8px;
}

.card .info {
  padding: 12px;
}

/* ===== BOTONES DEL PANEL ADMIN MEJORADOS ===== */
.admin-box .btn-sm {
  padding: 6px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.admin-box td {
  vertical-align: middle;
}

.admin-box .stock-input {
  width: 80px;
  padding: 5px;
}

.admin-box .tabla-inventario td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ===== FILTRO DE CATEGORÍAS EN SECCIÓN CONFECCIÓN ===== */
.filtro-confeccion {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.filtro-confeccion .input-buscar,
.filtro-confeccion .select-categoria {
  max-width: 250px;
  width: 100%;
}

/* ===== CARD PARA PRODUCTOS PERSONALIZABLES DESTACADOS ===== */
.card-personalizable {
  border-left: 4px solid var(--purple);
}


/* estilos esporadiscos*/

.conmutador-catalogo-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.conmutador-catalogo-tabs::-webkit-scrollbar {
  height: 4px;
}
.conmutador-catalogo-tabs .tab-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.conmutador-catalogo-tabs .tab-btn.active, 
.conmutador-catalogo-tabs .tab-btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.barra-filtros-unica {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .barra-filtros-unica { flex-direction: column; }
}

/* ── Detalle producto: layout base ── */
.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.detalle-img-col {
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 400px;
  height: 520px;           /* fija la altura en desktop/tablet */
}

.detalle-info-col {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 520px;
}

/* ── Móvil: columna única + imagen acotada ── */
@media (max-width: 640px) {
  .detalle-grid {
    grid-template-columns: 1fr;  /* una columna */
    height: auto;
    max-height: 90dvh;           /* el modal no supera el 90% de la pantalla */
    overflow-y: auto;            /* scroll en el grid completo */
  }

  .detalle-img-col {
    height: 220px;               /* imagen pequeña y fija en móvil */
    min-height: unset;
    padding: 8px;
  }

  .detalle-info-col {
    max-height: unset;           /* no limitar: el grid ya controla el scroll */
    overflow-y: visible;
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .detalle-grid {
    grid-template-columns: 1fr;
  }
  .detalle-grid img {
    max-height: 250px;
    object-fit: cover;
  }
}

/* ===== OCULTAR BANNER COOKIES ===== */
#cookie-admin-bar,
.cookie-admin-bar,
#cookieadmin-bar,
.cookieadmin-bar,
#cli-bar-container,
.cli-bar-container,
#cookie-law-info-bar,
.cookie-notice-container,
.ca-cookie-bar,
.ca-bar,
.cookieadmin-frontend,
.cookie-admin-frontend,
[id*="cookie"],
[class*="cookie-admin"],
[class*="ca-cookie"],
[class*="cookieadmin"],
div[style*="position:fixed"][style*="bottom"] {
  display: none !important;
}

/* ===== MÓVIL HORIZONTAL (landscape) ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .tiendita-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
  }
  .logo-texto {
    font-size: 18px;
    flex-shrink: 0;
  }
  .menu-horizontal {
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
  }
  .menu-horizontal a {
    font-size: 11px;
    padding: 5px 7px;
  }
  .header-actions {
    justify-content: center;
  }
  .btn-login-header,
  .carrito-badge-header {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ===== LOGO COMPACTO EN MÓVIL ===== */
@media (max-width: 900px) {
  .logo-texto {
    font-size: 20px !important;
    white-space: nowrap;
  }
}


/* ===== MODAL DETALLE EN HORIZONTAL MÓVIL ===== */
@media (max-width: 900px) and (orientation: landscape) {
  #modalDetalleProducto {
    align-items: flex-start;
    overflow-y: auto;
    padding: 10px;
  }
  #modalDetalleProducto .pago-box {
    max-width: 100%;
    max-height: none;
    overflow: visible;
  }
  .detalle-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .detalle-img-col {
    height: 200px;
    min-height: unset;
  }
  .detalle-info-col {
    max-height: none;
    overflow-y: visible;
    padding: 16px;
  }
}

/* ===== MODAL DETALLE HORIZONTAL MÓVIL ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .modal {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 8px !important;
  }
  #modalDetalleProducto .pago-box {
    max-height: none !important;
    overflow: visible !important;
    margin: auto;
  }
  .detalle-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: none !important;
  }
  .detalle-img-col {
    height: 180px !important;
    min-height: unset !important;
  }
  .detalle-info-col {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 16px !important;
  }
}