
:root {
  --bg: rgba(248, 250, 252, 0.9);
  --surface: rgba(255, 255, 255, 0.85);
  --border: rgba(226, 232, 240, 0.7);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 20px -3px rgba(0,0,0,0.08);
  --radius-lg: 20px;
  --radius-sm: 10px;
}
body.dark-mode {
  --bg: rgba(15, 23, 42, 0.95);
  --surface: rgba(30, 41, 59, 0.85);
  --border: rgba(51, 65, 85, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand: #3b82f6;
  --brand-hover: #60a5fa;
}

* { box-sizing: border-box; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background-image: linear-gradient(180deg, rgba(2,6,23,.62), rgba(15,23,42,.75)), url('imagenes/bg-pattern.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: var(--bg);
  background-blend-mode: overlay;
}


  
.top-bar { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.brand-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo-img { height: 45px; width: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 16px; }


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

.social-icon { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none; 
  box-shadow: var(--shadow-sm); 
  transition: transform 0.2s;
  overflow: hidden; 
}
.social-icon:hover { transform: translateY(-2px); }


.social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-tk { background: #000; border: 1px solid #25f4ee; }
.social-help { background: #475569; font-size: 1.1rem; color: white; }


.social-icon img {
  width: 60%;  
  height: 60%;
  object-fit: contain;
}

.theme-toggle { background: var(--border); border: none; font-size: 1.2rem; cursor: pointer; padding: 6px 10px; border-radius: 20px; color: var(--text-main); display: flex; align-items: center; justify-content: center;}
.btn-admin-nav { text-decoration: none; color: var(--brand); font-weight: 600; font-size: 0.9rem; border: 2px solid var(--brand); padding: 6px 16px; border-radius: 20px; transition: 0.2s; }
.btn-admin-nav:hover { background: var(--brand); color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px; padding-bottom: 60px; }
.hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: #000; margin-bottom: 32px; box-shadow: var(--shadow-md); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-carousel .carousel-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 12; }
.hero-carousel .carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-carousel .carousel-dots .dot.active { background: #fff; }

.toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.search-container { display: flex; width: 100%; position: relative; }
.search-container input { width: 100%; padding: 14px 16px 14px 46px; background: var(--surface); color: var(--text-main); border: 2px solid var(--border); border-radius: var(--radius-sm); outline: none; font-size: 1rem; transition: 0.2s; backdrop-filter: blur(10px); }
.search-container input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.3rem; }

.categories { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.tab-btn { background: var(--surface); backdrop-filter: blur(10px); border: 2px solid var(--border); color: var(--text-main); padding: 10px 24px; border-radius: 25px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: 0.2s; font-size: 0.95rem; }
.tab-btn:hover { border-color: var(--brand); }

.section { display: none; } .section.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }


.btn, .tab-btn.active, .add-btn, .login-btn {
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
    color: white !important;
}
.btn:hover, .tab-btn.active:hover, .add-btn:hover, .login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.card, .panel, .login-container {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.media { width: 100%; aspect-ratio: 1/1; position: relative; padding: 16px; display: flex; align-items: center; justify-content: center; background: transparent; overflow: hidden; border-bottom: 1px solid var(--border); }
.media img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card:hover .media img { transform: scale(1.08) translateY(-5px); }

.card-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid var(--border); color: #111; width: 34px; height: 34px; border-radius: 50%; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; opacity: 0; transition: opacity 0.2s; box-shadow: var(--shadow-sm); }
.media:hover .card-arrow { opacity: 1; }
.card-arrow.left { left: 10px; } .card-arrow.right { right: 10px; }

.img-dots { position: absolute; bottom: 10px; display: flex; gap: 6px; z-index: 5; }
.dot { width: 8px; height: 8px; background: rgba(100,116,139,0.4); border-radius: 50%; transition: 0.2s; }
.dot.active { background: var(--brand); width: 16px; border-radius: 4px; }

.badge { position: absolute; top: 12px; left: 12px; background: var(--text-main); color: var(--surface); font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; z-index: 6; letter-spacing: 0.5px; }
.content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.title { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px 0; color: var(--text-main); line-height: 1.4; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tags { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.price-value { color: #f59e0b; font-size: 1.2rem; font-weight: 700; }

.brand-name {
    background: linear-gradient(to right, var(--brand), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}


::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--brand), #8b5cf6); border-radius: 10px; }


.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 90%; max-height: 85vh; background: transparent; position: relative; }
.lightbox-close { position: absolute; top: -50px; right: 0; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; z-index: 10; backdrop-filter: blur(4px);}
.lightbox-arrow.left { left: -70px; } .lightbox-arrow.right { right: -70px; }
.lightbox-img-wrapper { overflow: hidden; display: flex; align-items: center; justify-content: center; max-height: 80vh; background: var(--surface); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 20px;}
.lightbox-img { max-width: 100%; max-height: 75vh; object-fit: contain; cursor: zoom-in; transition: transform 0.2s ease-out; }
.lightbox-img.zoomed { transform: scale(2.5); cursor: zoom-out; }

.cart-fab { position: fixed; bottom: 24px; right: 24px; background: var(--surface); color: var(--brand); border: 2px solid var(--brand); border-radius: 30px; padding: 14px 24px; font-weight: 700; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; gap: 10px; z-index: 100; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);}
.cart-badge { background: var(--brand); color: white; border-radius: 12px; padding: 2px 8px; font-size: 0.85rem; }
.hidden { display: none; }


.wsp-fab { 
  position: fixed; 
  bottom: 24px; 
  left: 24px; 
  background: #25d366; 
  width: 60px; 
  height: 60px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none; 
  z-index: 100; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.wsp-fab:hover { transform: scale(1.08); }


.wsp-fab img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.container { max-width: 750px; margin: 0 auto; background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
h1 { font-size: 1.6rem; font-weight: 800; margin-top: 0; margin-bottom: 24px; color: var(--text-main); border-bottom: 2px solid var(--border); padding-bottom: 16px; display: flex; align-items: center; gap: 10px; }

.lista-productos { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.item-carrito { display: flex; justify-content: space-between; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.4); gap: 16px; box-shadow: var(--shadow-sm); }
body.dark-mode .item-carrito { background: rgba(30,41,59,0.4); }
.item-info { display: flex; align-items: center; gap: 16px; flex: 1; }
.item-img { width: 80px; height: 80px; background: rgba(0,0,0,0.04); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); flex-shrink: 0; }
body.dark-mode .item-img { background: rgba(255,255,255,0.04); }
.item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-detalles { display: flex; flex-direction: column; gap: 6px; }
.item-titulo { font-weight: 600; font-size: 1.05rem; color: var(--text-main); line-height: 1.3; }


.item-controles { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.btn-qty { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-main); font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.btn-qty:hover { background: var(--brand); color: white; border-color: var(--brand); }
.item-cantidad { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; color: var(--text-main); }

.btn-eliminar { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; cursor: pointer; font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: 0.2s; }
.btn-eliminar:hover { background: #ef4444; color: white; }

.acciones { display: flex; flex-direction: column; gap: 16px; }
.btn-whatsapp { width: 100%; padding: 16px; background: #10b981; color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: #059669; transform: translateY(-2px); }
.btn-volver { width: 100%; padding: 14px; background: transparent; color: var(--brand); border: 2px solid var(--brand); border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: 0.2s; }
.btn-volver:hover { background: var(--brand); color: white; }
.carrito-vacio { text-align: center; padding: 50px 20px; color: var(--text-muted); font-size: 1.1rem; }


.resumen-info-box { background: rgba(37,99,235,0.05); border: 1px dashed var(--brand); padding: 16px; border-radius: 10px; margin-bottom: 24px; font-size: 0.95rem; color: var(--text-main); display: flex; justify-content: space-between; font-weight: 600; }

.main-footer { background: var(--surface); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 40px 24px 20px 24px; margin-top: 60px; font-size: 0.9rem; color: var(--text-muted); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--text-main); font-size: 1.1rem; margin-top: 0; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; padding-top: 20px; text-align: center; font-size: 0.85rem; }

@media (max-width: 768px) {
  .lightbox-arrow.left { left: 10px; } .lightbox-arrow.right { right: 10px; } .lightbox-close { top: 10px; right: 10px; }
  .brand-name { display: none; }
  .hero-carousel { min-height: 240px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-carousel { min-height: 200px; margin-bottom: 20px; }
  .hero-carousel .carousel-dots { bottom: 10px; }
  .hero-carousel .carousel-dots .dot { width: 8px; height: 8px; }
  .container { border-radius: 0; border: none; box-shadow: none; padding: 20px 16px; }
  .item-carrito { flex-direction: column; align-items: stretch; }
  .item-info { align-items: flex-start; }
  .btn-eliminar { align-self: flex-end; }
}
.login-page{
display:flex!important;
justify-content:center;
align-items:center;
min-height:100vh;
background:linear-gradient(135deg,#111827,#0f766e);
}
.login-container{
background:#fff;
padding:40px;
border-radius:25px;
box-shadow:0 20px 50px #0005;
width:380px;
text-align:center;
}
.login-sub{color:#666;}
.register-btn{
margin-top:15px;
background:#e5e7eb;
border:0;
padding:12px;
border-radius:10px;
cursor:pointer;
width:100%;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.dark-mode .card {
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}


.media img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover .media img {
    transform: scale(1.1) translateY(-2px);
}


.tab-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
body.dark-mode .tab-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
}
.tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border-color: transparent;
}


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, #94a3b8, #64748b); 
    border-radius: 10px; 
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #6366f1);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   
    background: linear-gradient(var(--bg), var(--bg)), url('imagenes/bg-pattern.svg') no-repeat center center fixed;
    background-size: cover;
    transition: background 0.3s ease, color 0.3s ease;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
  --radius-lg: 16px;
  --radius-sm: 10px;
  --header-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

body.dark-mode {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --brand: #3b82f6;
  --brand-hover: #60a5fa;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.5);
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.top-bar {
  background: var(--header-bg) !important;
  color: #ffffff !important;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1050;
  backdrop-filter: blur(10px);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff !important;
}

.brand-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.social-icons-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  text-decoration: none;
  color: white;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.social-icon img {
  width: 20px;
  height: 20px;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.btn-admin-nav {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.btn-admin-nav:hover {
  background: white;
  color: #0f172a !important;
}

.search-box input {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-main);
  border-radius: 50px;
  padding: 14px 25px;
  font-size: 1rem;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 10px 0;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

body.dark-mode .card-media {
  background: #0f172a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.badge-custom {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-body-custom {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-main);
  line-height: 1.4;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 12px 0;
}

.product-features {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-add-cart {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: var(--brand-hover);
  transform: scale(1.02);
}


.btn-floating-wsp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-weight: 700;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-floating-wsp:hover {
  transform: scale(1.05);
  color: white;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-floating-wsp img {
  width: 24px;
  height: 24px;
}

.btn-floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  text-decoration: none;
  font-weight: 700;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-floating-cart:hover {
  transform: scale(1.05);
  color: white;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.cart-counter {
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
}