/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  /* ===== FONDOS ===== */
  --bg-main: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-soft: #eef2ff;

  /* ===== TEXTOS ===== */
  --text-main: #1e293b;
  --text-strong: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* ===== COLORES TECNO PASTEL ===== */
  --accent: #a5b4fc;     /* violeta */
  --accent-2: #7dd3fc;   /* celeste */

  /* ===== UI ===== */
  --border-color: #e2e8f0;
  --hover-bg: #f1f5f9;

  /* ===== ESTADOS ===== */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}



body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden; /* evita scroll horizontal */
}

/* ===== CONTAINER ===== */
.container {
  width: 92%;
  margin: auto;
}

/* pantallas grandes */
@media (min-width: 1400px) {
  .container {
    max-width: 1700px;
  }
}

/* ===== HEADER ===== */


.header {
  background: var(--bg-secondary);
  color: var(--text-strong);
  padding: 15px 0;
  position: sticky;
  text-align: center;
  top: 0;
  z-index: 1000;
}


.logo {
  font-size: 42px;
  letter-spacing: 3px;
}

.logo,
.logo-mobile {
  color: var(--text-strong);
}

.subtitle {
  margin-top: 10px;
  font-weight: 300;
  opacity: 0.8;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===== BUSCADOR ===== */
.search-input {
  position: relative;
  width: 300px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}



/* ===== CATEGORIAS ===== */
.categories {
  position: sticky;
  top: 147px;
  z-index: 999;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.categories button {
  flex: 0 0 auto;
  background: #f5f5f5;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 18px;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.2s;
}

.categories::-webkit-scrollbar {
  display: none;
}


/* ===== GRID PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

/* ===== CARD ===== */

.product-card {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* ===== IMAGEN ===== */
.product-image {
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  
  overflow: hidden;
}

.product-image img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

/* ===== INFO ===== */
.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
}

.desc {
  font-size: 13px;
  color: #777;
}

/* ===== PRECIO ===== */
.price {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.new-price {
  color: #e60023;
  font-weight: 700;
  font-size: 20px;
}

/* ===== BOTON ===== */
.buy-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.buy-btn:hover {
  background: var(--accent-2);
}

.buy-btn:active {
  transform: scale(0.95);
}


/* ===== FOOTER ===== */
.footer {
  background: #F4C2C2;
  color: #928e8e;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

/* ===== LOGIN / REGISTER ===== */

.login-icon {
  background: var(--bg-soft);
  color: white;
  padding: 8px 10px;
  border-radius: 50%;
  cursor: pointer;
}

#login, #register {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);

  display: none;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: 0.25s ease;
}

#login.active,
#register.active {
  display: flex;
  opacity: 1;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 14px;
  width: 320px;

  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transform: translateY(30px);
  transition: 0.25s ease;
}

#login.active .login-box,
#register.active .login-box {
  transform: translateY(0);
}

.login-box input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.login-box button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #B4E4D8;
  color: rgb(68, 156, 119);
  font-weight: 600;
  cursor: pointer;
}

/* ===== CARRITO ===== */
.cart-icon {
  background: var(--bg-soft);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

#cartCount {
  background: red;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
  font-size: 12px;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;

  width: 340px;
  height: 100dvh;

  background: white;

  box-shadow: -10px 0 30px rgba(0,0,0,0.2);

  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);

  z-index: 2000;

  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  transform: translateX(0);
}

.cart-header {
  padding: 15px;
  background: #F4C2C2;
  color: white;
  display: flex;
  justify-content: space-between;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.cart-footer button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #25d366;
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  backdrop-filter: blur(3px);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s ease;

  z-index: 1500;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

@keyframes bounceCart {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-icon.bump {
  animation: bounceCart 0.4s ease;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;

  transform: translateX(-50%) translateY(40px);
  background: black;
  color: white;

  padding: 14px 22px;
  border-radius: 10px;

  font-size: 14px;

  opacity: 0;

  transition: all 0.35s cubic-bezier(.22,.61,.36,1);

  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html {
  scroll-behavior: smooth;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .subtitle {
    display: none;
  }

  .logo {
    grid-column: 2;
    font-size: 20px;
    text-align: center;
  }

  .search-icon {
    display: none;
  }



  .header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    grid-column: 1;
    font-size: 24px;
  }



  .header-right {
    grid-column: 3;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

  .search-input {
    width: 100%;
    margin-top: 10px;
  }

  .search-input input {
    padding: 12px;
    font-size: 16px;
  }

  

  

  .cart-panel {
    width: 60%;
  }

  .categories {
    display: none;
  }

  .menu-toggle {
  display: block !important;
}


  .logo {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

 /* .search-container {
    margin-top: 10px;
  }
*/
}



/* ===== HAMBURGUESA ===== */

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: var(--text-strong);
}

/* ===== MENÃš LATERAL ===== */

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  color: var(--text-main);
  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: bold;
}

.side-menu button {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
}

.side-menu button:hover {
  background: var(--hover-bg);
  color: var(--text-light);
}

/* overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;

  z-index: 2500;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu-toggle {
  grid-column: 1;
  grid-row: 1;
}

.logo {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.header-right {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

.search-input {
  grid-column: 1 / 4;
  grid-row: 2;
  width: 100%;
}

.suggestions-box {
  position: absolute;
  width: 100%;
  background: white;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

mark {
  background: yellow;
  color: black;
  padding: 0 2px;
  border-radius: 3px;
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
}

/* LOGO */
.logo-mobile {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}

/* BUSCADOR CONTENEDOR */

/*
.search-container {
  width: 100%;
  margin-top: 15px;
}
*/




@media (min-width: 769px) {


  .search-container {
    margin-top: 0;
    padding: 0 20px;
  }

}


/* ===== NUEVO CARRITO PRO ===== */

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fafafa;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  animation: fadeCart 0.3s ease;
}

/* imagen */
.cart-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

/* info */
.cart-info {
  flex: 1;
}

.cart-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-price {
  color: #999;
  font-size: 13px;
  margin-bottom: 6px;
}

/* controles */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  width: 26px;
  height: 26px;
  border: none;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
}

.cart-controls span {
  font-size: 14px;
}

/* derecha */
.cart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.cart-subtotal {
  font-weight: bold;
  color: #e60023;
}

/* eliminar */
.cart-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: #999;
}

.cart-remove:hover {
  color: red;
}

/* animacion */
@keyframes fadeCart {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-total-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.site-footer {
  background: #f2f2f2;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
}

.footer-section p {
  font-size: 14px;
  color: #555;
}

.map-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366; /* fondo verde */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  width: 35px;
  height: 35px;
  background: #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #000;
  color: #fff;
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-img-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* contador */
#cartCount {
  position: absolute;
  top: -6px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.cart-img-icon {
  transition: transform 0.2s ease;
}

.cart-icon:hover .cart-img-icon {
  transform: scale(1.1);
}

.login-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-img-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.login-img-icon {
  transition: transform 0.2s ease;
}

.login-icon:hover .login-img-icon {
  transform: scale(1.1);
}

.product-image img {
  will-change: transform;
}

/* ===== PRODUCT MODAL ===== */

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 4000;
}

.product-modal.active {
  display: flex;
}

.product-modal-content {
  background: white;
  width: 90%;
  max-width: 900px;
  border-radius: 14px;
  padding: 20px;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-modal-images img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.product-modal-info h2 {
  margin-bottom: 10px;
}

.close-modal {
  cursor: pointer;
  float: right;
  font-size: 20px;
}

/* mobile */
@media (max-width: 768px) {
  .product-modal-body {
    grid-template-columns: 1fr;
  }
}

#changePasswordModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#changePasswordModal.active {
  display: flex;
}

.carousel {
  display: none; /* 🔥 oculto por defecto */
  position: relative;
  width: 100%;
  height: clamp(200px, 35vw, 400px);
  overflow: hidden;
  border-radius: 14px;
  margin: 15px 0;
}

.carousel.active {
  display: block;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* ðŸ”¥ mÃ¡s premium */
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== DOTS ===== */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots span.active {
  background: white;
  transform: scale(1.2);
}

.banner {
  width: 100%;
  height: 250px; 
  overflow: hidden;
  border-radius: 10px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}


.product-image {
  height: 180px;
}

@media (min-width: 769px) {
  .product-image {
    height: 260px;
  }
}

@media (min-width: 1200px) {
  .product-image {
    height: 300px;
  }
}

.header-main {
  align-items: center;
  gap: 15px;
}

/* buscador ocupa todo */
.search-input {
  width: 100%;
}

/* derecha */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}


.menu-toggle {
  justify-self: start;
}

@media (max-width: 768px) {
  .categories {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .product-image {
    height: 300px;
  }
}


.product-card:hover {
  transform: translateY(-4px);
}


main.container h2 {
  margin-bottom: 20px;
}

/* ===== MÁS DROPDOWN ===== */
.more-wrapper {
  position: relative;
}

.more-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 10px;
  display: none;
  min-width: 180px;
  z-index: 2000;
}

.more-dropdown.active {
  display: block;
}

.more-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  background: none;
}

.more-dropdown button:hover {
  background: #f5f5f5;
}


.more-dropdown {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
  pointer-events: none;
}

.more-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.stock{
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0;
}

.stock.ok{
  color: #2ecc71;
}

.stock.low{
  color: #f39c12;
}

.stock.out{
  color: #e74c3c;
}

/* Mostrar el boton dehabilitado o habilitado segun stock */

.buy-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}



.user-menu {
  position: relative;
}

.user-trigger {
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 10px;
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 1000;
}

.user-dropdown.active {
  display: flex;
}

.user-dropdown button {
  background: none;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}

.user-dropdown button:hover {
  background: #f5f5f5;
}

.user-header {
  padding: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 5px;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-minor {
  font-size: 14px;
  color: #666;
}

.price-major {
  font-size: 16px;
  font-weight: bold;
  color: #111;
}

.user-greeting-top {
  font-size: 14px;
  font-weight: 600;
  margin-right: 10px;
}

/* PRECIO PRINCIPAL (minorista o visitante) */
.price-main {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

/* BLOQUE MAYORISTA */
.price-wholesale {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* precio por menor */
.price-minor-line {
  font-size: 14px;
  color: #777;
}

/* precio por mayor (PROTAGONISTA) */
.price-major-line {
  font-size: 22px;
  font-weight: 700;
  color: rgb(68, 156, 119);
}

#carouselTrack {
  display: flex;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
}



/* ============================= */
/* 🔥 TECNOLOCK THEME (OVERRIDE) */
/* ============================= */

/* BODY */
body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* LOGO */
.logo,
.logo-mobile {
  color: var(--text-light);
}



/* CATEGORÍAS */



.categories button:hover {
  color: var(--accent);
}


/* CARDS */
.product-card {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  overflow: hidden;
}

/* IMAGEN */
.product-image {
  background: var(--bg-secondary)
}

/* TEXTO */
.desc {
  color: var(--text-muted);
}

/* PRECIOS */
.old-price {
  color: #6b7280;
}

.new-price {
  color: var(--accent);
}

/* BOTÓN */


/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--text-muted);
}

/* CARRITO */
.cart-panel {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.cart-header {
  background: var(--bg-dark);
}

.cart-footer button {
  background: var(--accent);
}

/* ITEMS CARRITO */
.cart-item {
  background: var(--bg-dark);
}



/* DROPDOWNS */
.more-dropdown,
.user-dropdown {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* TOAST */
.toast {
  background: var(--bg-dark);
}

/* LOGIN */
.login-box {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.login-box input {
  background: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid #1f2937;
  z-index: 9000;
}

/* SCROLLBAR (opcional pro) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}


/* FIX DROPDOWN USUARIO */
.user-dropdown {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.user-dropdown button {
  color: var(--text-main);
}

.user-dropdown button:hover {
  background: #1f2937;
  color: var(--text-light);
}

.user-header {
  color: var(--text-light);
}

/* FIX FOOTER TECNOLOCK */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-main);
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-light);
}

.footer-section p {
  color: var(--text-muted);
}

/* ICONOS */
.social-icons a {
  background: --accent-2;
  color: var(--text-main);
}

.social-icons a:hover {
  background: var(--accent);
  color: #022c22;
}

.buy-now,
.orders-header button,
.login-box button {
  background: var(--accent);
  color: #022c22;
}

.buy-btn:hover,
.buy-now:hover {
  background: var(--accent-2);
  color: #000;
}

#searchInput {
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid var(--accent);
  background: var(--bg-soft);
  color: var(--text-main);
}

#searchInput::placeholder {
  color: var(--text-muted);
}

#searchInput:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(125,211,252,0.25);
}



.product-image {
  background: var(--bg-secondary)
}



.footer,
.site-footer {
  background: var(--bg-soft);
  color: var(--text-main);
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-strong);
}

.footer-section p {
  color: var(--text-muted);
}



.cart-panel {
  background: var(--bg-secondary);
}

.cart-header {
  background: var(--bg-soft);
  color: var(--text-strong);
}

.cart-item {
  background: var(--bg-soft);
}

.cart-subtotal {
  color: var(--accent);
}

.logo-mobile img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* contenido scrolleable */
.menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

/* footer fijo */
.menu-footer {
  padding: 15px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px 15px 5px;
}

.menu-header span {
  font-size: 18px;
  font-weight: 600;
}

.menu-header button {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.side-menu button {
  width: 100%;
  text-align: center;
  padding: 14px;
  border: none;
  background: none;
  cursor: pointer;

  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.side-menu button:hover {
  background: var(--hover-bg);
}

.menu-footer {
  display: flex;
  gap: 10px;
}

.menu-footer button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-login {
  background: #e5e7eb;
  color: #111;
}

.btn-register {
  background: var(--accent);
  color: #022c22;
}

@media (max-width: 768px) {

  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .side-menu button {
    text-align: center;
    text-transform: uppercase;
  }

  .menu-footer {
    display: flex;
    gap: 10px;
  }

  .login-icon {
    display: none;
  }

}


.btn-orders {
  background: #4f46e5;
  color: white;
}

.btn-logout {
  background: #ef4444;
  color: white;
}

/* CONTENEDOR */
.menu-footer {
  display: flex;
  gap: 10px;
  padding: 12px;
}

/* BASE BOTONES */
.menu-footer button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: 0.2s ease;
}

/* 👤 NO LOGEADO */
.btn-login {
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-register {
  background: var(--accent-2);
  color: var(--text-strong);
  border: none;
}

.btn-register:hover {
  opacity: 0.9;
}

/* 🔐 LOGEADO */
.btn-orders {
  background: var(--bg-soft);
  color: var(--text-main);
}

.btn-orders:hover {
  background: var(--hover-bg);
}

/* 🚪 LOGOUT */
.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-login {
  background: var(--accent);
  color: var(--text-strong);
  border: 1px solid rgba(0,0,0,0.05);
}

.btn-login:hover {
  filter: brightness(0.95);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* TEXTO */
.menu-header span {
  font-weight: 600;
  color: var(--text-strong);
  padding-left: 4px;
}

/* BOTÓN X */
.menu-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .user-greeting-top {
    display: none;
  };
  #userGreetingTop {
    display: none !important;
  }
}

#productsTitle {
  transform: translateY(5px);
}