/* styles.css */
:root{
  --brand:#ff6a00;
  --brand-dark:#d35400;
  --text:#222;
  --muted:#666;
  --bg:#ffffff;
  --card:#fff;
}

*{box-sizing:border-box}
body{margin:0;font-family:Arial, sans-serif;color:var(--text);background:var(--bg)}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* header */
.topbar{position:sticky;top:0;z-index:50;background:rgba(17,17,17,.9);backdrop-filter:blur(6px);color:#fff}
.nav{display:flex;justify-content:space-between;align-items:center;height:60px}
.brand{font-weight:700;color:var(--brand)}
.menu{display:flex;gap:16px;align-items:center}
.menu a{color:#fff;text-decoration:none}
.btn,.btn-secondary{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:10px;text-decoration:none}
.btn{background:var(--brand);color:#fff}
.btn:hover{background:var(--brand-dark)}
.btn-secondary{background:#eee;color:#111;border:1px solid #ddd}

/* hero */
.hero{position:relative;height:80vh;display:grid;place-items:center;color:#fff;text-align:center;overflow:hidden}
.hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.18)); z-index:2; pointer-events:none }
.hero-content{ position:relative; z-index:4; display:block; width:min(980px,92%); }
.btn-hero{background:var(--brand);color:#fff;padding:10px 18px;border-radius:10px;text-decoration:none;display:inline-block;margin-top:12px}

/* elemento de fondo del hero para parallax (el borde inferior de la imagen coincide con el hero) */
.hero-bg{
  position:absolute; inset:0; /* cubrir todo el hero */
  background-image: url("img/Fondo.jpeg");
  background-position: center center; background-size:cover; background-repeat:no-repeat;
  z-index:1; pointer-events:none;
}

/* Barra de búsqueda profesional */
.search-bar {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 28px auto 0;
  position: relative;
}

.search-input {
  flex: 1;
  height: 58px;
  padding: 0 24px;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1f2937;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(255, 106, 0, 0.2), 0 4px 6px -2px rgba(255, 106, 0, 0.1);
  transform: translateY(-2px);
}

.search-btn {
  height: 58px;
  padding: 0 36px;
  font-size: 17px;
  font-weight: 700;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, #ff8533 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(255, 106, 0, 0.4), 0 2px 4px -1px rgba(255, 106, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-btn:hover {
  background: linear-gradient(135deg, #ff8533 0%, var(--brand) 100%);
  box-shadow: 0 10px 15px -3px rgba(255, 106, 0, 0.5), 0 4px 6px -2px rgba(255, 106, 0, 0.4);
  transform: translateY(-2px);
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn i {
  font-size: 20px;
}

/* Responsive para búsqueda */
@media (max-width: 640px) {
  .search-bar {
    flex-direction: column;
    gap: 12px;
    max-width: 94%;
  }
  
  .search-input {
    height: 58px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
    border-radius: 14px !important;
    border-width: 2px !important;
  }
  
  .search-btn {
    height: 58px !important;
    width: 100% !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 0 24px !important;
  }
  
  .search-btn i {
    font-size: 20px !important;
  }
}

/* Botones de acción del hero */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 180px;
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn i {
  font-size: 18px;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff8533 100%);
  color: #ffffff;
  border: none;
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ff8533 0%, var(--brand) 100%);
  box-shadow: 0 10px 15px -3px rgba(255, 106, 0, 0.4), 0 4px 6px -2px rgba(255, 106, 0, 0.3);
  transform: translateY(-2px);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-secondary:hover {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 10px 15px -3px rgba(255, 106, 0, 0.2), 0 4px 6px -2px rgba(255, 106, 0, 0.1);
  transform: translateY(-2px);
}

.hero-actions .btn-lg {
  height: 54px;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* secciones */
.section{
  padding:60px 0;
  text-align:center;
  position:relative;
}
.section.bg-accent{
  background:linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
}
.section-title{
  display:inline-block;
  border-bottom:3px solid var(--brand);
  padding-bottom:10px;
  margin-bottom:12px;
  font-size:28px;
  font-weight:800;
  color:#111827;
  letter-spacing:-0.025em;
  position:relative;
}
.section-title::after{
  content:'';
  position:absolute;
  bottom:-3px;
  left:50%;
  transform:translateX(-50%);
  width:60%;
  height:3px;
  background:linear-gradient(90deg, transparent, var(--brand), transparent);
}
.section-description{
  font-size:16px;
  color:#6b7280;
  max-width:720px;
  margin:0 auto 36px;
  line-height:1.6;
  font-weight:400;
  letter-spacing:-0.01em;
}

/* carrusel */
.carousel{position:relative;padding:0 48px} /* espacio para flechas */
.track{
  display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:8px 6px 12px;scrollbar-width:none;scroll-behavior:smooth;
}
.track::-webkit-scrollbar{display:none}
.track>*{scroll-snap-align:start}
.track.dragging{cursor:grabbing}

/* tarjetas categoría grandes */
.card{
  background:var(--card);
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  padding:28px 20px;
  text-align:center;
  transition:all .3s cubic-bezier(.4,0,.2,1);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, var(--brand), #ff8c42);
  transform:scaleX(0);
  transition:transform .3s ease;
}
.card:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  border-color:var(--brand);
}
.card:hover::before{
  transform:scaleX(1);
}
.cat.card{flex:0 0 380px;min-width:380px;min-height:300px;padding:32px 24px}
.circle{
  width:180px;
  height:180px;
  border-radius:50%;
  background:#ffffff;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:72px;
  transition:all .3s ease;
  box-shadow:0 12px 24px rgba(0,0,0,.1), inset 0 2px 4px rgba(255,255,255,.8);
  border:3px solid rgba(255,255,255,.9);
}
.card:hover .circle{
  transform:scale(1.08) rotate(5deg);
  background:#ffffff;
  box-shadow:0 18px 36px rgba(255,106,0,.35), inset 0 2px 4px rgba(255,255,255,.8);
  border-color:rgba(255,106,0,.2);
}
.cat-name{
  font-weight:700;
  font-size:20px;
  color:#111827;
  margin-top:16px;
  letter-spacing:-0.025em;
  line-height:1.4;
  text-shadow:0 1px 2px rgba(0,0,0,.05);
  min-height:56px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-wrap:break-word;
  text-overflow:ellipsis;
}

/* ofertas */
.offer-card{
  flex:0 0 300px;
  min-width:300px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:16px;
  text-align:center;
  transition:all .3s cubic-bezier(.4,0,.2,1);
  position:relative;
  overflow:hidden;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}
.offer-card::after{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,106,0,.1) 0%, transparent 70%);
  opacity:0;
  transition:opacity .3s ease;
}
.offer-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  border-color:var(--brand);
}
.offer-card:hover::after{
  opacity:1;
}
.offer-card .thumb{
  height:160px;
  border-radius:16px;
  background:#ffffff;
  margin-bottom:12px;
  overflow:hidden;
  position:relative;
}
.offer-card .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.offer-card:hover .thumb img{
  transform:scale(1.1);
}
.offer-card .tag{
  display:inline-block;
  background:linear-gradient(135deg, var(--brand) 0%, #ff8c42 100%);
  color:#fff;
  font-size:13px;
  font-weight:700;
  border-radius:8px;
  padding:6px 12px;
  margin-bottom:8px;
  box-shadow:0 4px 6px rgba(255,106,0,.3);
  letter-spacing:0.5px;
  text-transform:uppercase;
}
.price{
  font-weight:700;
  font-size:24px;
  color:var(--brand);
  margin:8px 0;
}

/* flechas */
.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:2px solid #e5e7eb;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  box-shadow:0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  transition:all .3s ease;
  backdrop-filter:blur(8px);
}
.arrow:hover{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
  transform:translateY(-50%) scale(1.1);
  box-shadow:0 20px 25px -5px rgba(255,106,0,.3), 0 10px 10px -5px rgba(255,106,0,.2);
}
.arrow.left{left:8px}
.arrow.right{right:8px}
.arrow:active{transform:translateY(-50%) scale(.95)}
.arrow[disabled]{
  opacity:.3;
  pointer-events:none;
  background:#f3f4f6;
}
.arrow i{
  font-size:18px;
  transition:transform .3s ease;
}
.arrow:hover i{
  transform:scale(1.2);
}

/* footer */
.footer{background:#111;color:#eee;margin-top:56px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;padding:24px 0}
.copy{padding:12px 0;color:#aaa;border-top:1px solid #333;text-align:center;font-size:14px}

/* responsive */
@media (max-width:768px){
  .cat.card{flex-basis:300px;min-width:300px;min-height:240px;padding:24px 18px}
  .circle{width:140px;height:140px;font-size:56px}
  .cat-name{font-size:18px;margin-top:12px}
  .carousel{padding:0 40px}
}
/* styles.css, asegúrate de tener esto */
.track { overflow-x: auto; display: flex; gap: 24px; scroll-snap-type: x mandatory; }
.track > * { scroll-snap-align: start; }
.track.dragging { cursor: grabbing; }
.arrow[disabled] { opacity: .35; pointer-events: none; }

/* Tamaño grande de tarjetas y círculos */
.cat.card { flex: 0 0 360px; min-width: 360px; min-height: 260px; }
.circle { width: 160px; height: 160px; border-radius: 50%; background: #e7e7e7; margin: 0 auto 12px; }
/* Carrusel y tamaños grandes */
.carousel{position:relative;padding:0 48px}
.track{
  display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:8px 6px 12px;scrollbar-width:none;scroll-behavior:smooth;
}
.track::-webkit-scrollbar{display:none}
.track>*{scroll-snap-align:start}
.track.dragging{cursor:grabbing}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:1px solid #ddd;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.arrow.left{left:8px}
.arrow.right{right:8px}
.arrow[disabled]{opacity:.35;pointer-events:none}

.cat.card{flex:0 0 360px;min-width:360px;min-height:260px}
.circle{width:160px;height:160px;border-radius:50%;background:#e7e7e7;margin:0 auto 12px}
:root{
  --brand:#ff6a00;
  --brand-dark:#d35400;
  --text:#1f2937;
  --white:#fff;
}

/* TOPBAR */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(17,17,17,.35); color:#fff;
  backdrop-filter:blur(8px);
  transition:background .25s ease;
}
.topbar.scrolled{ background:rgba(17,17,17,.92); }

.nav{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-mark{
  width:32px; height:32px; border-radius:50%;
  background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:700;
}
.brand-text{ color:#fff; font-weight:700; letter-spacing:.2px; }

.menu{ display:flex; align-items:center; gap:18px; }
.menu a{ color:#fff; text-decoration:none; }
.menu .btn.small{ padding:8px 12px; border-radius:8px; background:var(--brand); color:#fff; }
.icon-btn{ position:relative; display:inline-flex; align-items:center; gap:6px; color:#fff; text-decoration:none; }
.icon-btn #cartCount{
  font-size:12px; background:#fff; color:#111; border-radius:10px; padding:0 6px; line-height:18px;
}

/* Burger móvil */
.burger{ display:none; background:transparent; border:0; color:#fff; font-size:20px; }
@media (max-width:900px){
  .burger{ display:block; }
  .menu{ position:absolute; top:64px; right:16px; left:16px; flex-direction:column; gap:12px;
         background:rgba(17,17,17,.96); padding:14px; border-radius:12px; display:none; }
  .menu.open{ display:flex; }
}

/* HERO */
.hero{
  position:relative; height:82vh; min-height:520px;
  display:grid; place-items:center; text-align:center; color:#fff; padding-top:64px; overflow:hidden;
}
/* overlay y contenido manejados más arriba junto a .hero-bg */

.hero-title{ font-size:48px; margin:0 0 6px; }
.hero-sub{ font-size:18px; margin:0 0 18px; opacity:.95; }

/* Searchbar sobre el hero */
.searchbar{
  display:flex; align-items:center; gap:10px;
  background:#ffffffea; border-radius:999px; padding:10px 12px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  width:min(760px,100%); margin:0 auto 16px;
}
.searchbar i{ color:#6b7280; }
.searchbar input{
  flex:1; border:0; outline:0; background:transparent; font-size:16px; color:#111;
}
.searchbar .btn{
  background:var(--brand); color:#fff; border:0; padding:10px 16px; border-radius:999px; cursor:pointer;
}
.searchbar .btn:hover{ background:var(--brand-dark); }

/* Botón principal del hero */
.btn-hero{
  display:inline-block; background:var(--brand); color:#fff; text-decoration:none;
  padding:12px 18px; border-radius:12px; font-weight:600;
  box-shadow:0 10px 22px rgba(255,106,0,.25);
}
.btn-hero:hover{ background:var(--brand-dark); }

/* Ajustes responsivos */
@media (max-width:700px){
  .hero-title{ font-size:36px; }
  .searchbar{ gap:8px; }
  .searchbar .btn{ padding:10px 14px; }
}
/* Tarjeta de producto genérica */
.product-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:12px;
  width:100%;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  transition:all .3s cubic-bezier(.4,0,.2,1);
  text-align:left;
  position:relative;
  overflow:hidden;
}
.product-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(135deg, transparent 0%, rgba(255,106,0,.05) 100%);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}
.product-card:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 20px 25px -5px rgba(0,0,0,.15), 0 10px 10px -5px rgba(0,0,0,.1);
  border-color:var(--brand);
}
.product-card:hover::before{
  opacity:1;
}

.product-thumb{
  width:100%;
  height:160px;
  border-radius:12px;
  margin-bottom:10px;
  background: white;
  overflow:hidden;
  position:relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position: center;
  background: white;
  transition:transform .4s ease;
}
.product-card:hover .product-thumb img{
  transform:scale(1.15) rotate(2deg);
}
.badge{
  position:absolute;
  top:10px;
  left:10px;
  background:linear-gradient(135deg, var(--brand) 0%, #ff8c42 100%);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:5px 10px;
  border-radius:6px;
  z-index:10;
  box-shadow:0 4px 6px rgba(255,106,0,.4);
  text-transform:uppercase;
  letter-spacing:0.4px;
}
.product-header{ position:relative; }

.product-title{
  font-weight:700;
  margin:6px 0;
  color:#111827;
  font-size:13px;
  line-height:1.4;
  min-height:54px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-wrap:break-word;
  text-overflow:ellipsis;
}
.product-meta{
  font-size:11px;
  color:#6b7280;
  margin-bottom:8px;
}

.rating{
  color:#f59e0b;
  font-size:12px;
  letter-spacing:.3px;
  display:flex;
  align-items:center;
  gap:3px;
  margin:5px 0;
}

.price-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0;
}
.price-new{
  color:var(--brand);
  font-weight:800;
  font-size:18px;
}
.price-old{
  color:#9ca3af;
  text-decoration:line-through;
  font-size:13px;
}

.add-btn{
  width:100%;
  height:38px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  background:linear-gradient(135deg, var(--brand) 0%, #ff8c42 100%);
  color:#fff;
  font-weight:700;
  font-size:13px;
  transition:all .3s ease;
  box-shadow:0 4px 6px rgba(255,106,0,.3);
  text-transform:uppercase;
  letter-spacing:0.4px;
}
.add-btn:hover{
  background:linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  box-shadow:0 8px 12px rgba(255,106,0,.4);
  transform:translateY(-2px);
}
.add-btn:active{
  transform:translateY(0);
}

/* Carrusel de ofertas usa el mismo track */
#offerTrack .product-card{ flex:0 0 300px; min-width:300px; }

/* Grilla de nuevos productos */
.products-grid{
  display:grid; gap:24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width:1100px){ .products-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:768px){ .products-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:480px){ .products-grid{ grid-template-columns: 1fr; } }

/* Tarjetas para nuevos productos (carrusel) */
#newTrack .product-card{ flex:0 0 300px; min-width:300px; }
#featuredTrack .product-card{ flex:0 0 300px; min-width:300px; }


/* QUIÉNES SOMOS */
.about{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center}
.about .about-img{width:100%;height:auto;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.12);object-fit:cover}
.about .text p{margin:0 0 10px;color:#374151}
.about .btn{margin-top:8px}
@media (max-width:900px){.about{grid-template-columns:1fr;gap:18px}}

/* TABS SERVICIOS */
.tabs-header{position:relative;display:flex;flex-wrap:wrap;gap:8px;background:#fff;border:1px solid #ececec;border-radius:12px;padding:8px}
.tab{
  position:relative;background:#fff;border:1px solid #e6e6e6;border-radius:10px;
  padding:8px 12px;cursor:pointer;color:#374151;display:inline-flex;align-items:center;gap:8px
}
.tab.active{color:#111;border-color:var(--brand)}
.tabs-underline{
  position:absolute;height:3px;background:var(--brand);bottom:-1px;left:8px;width:120px;border-radius:2px;transition:left .25s,width .25s
}

.tabs-panels{margin-top:18px}
.panel{display:none}
.panel.active{display:block}
.panel-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:center}
.panel-grid img{width:100%;border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.1);object-fit:cover}
.bullets{margin:10px 0 0 0;padding:0 0 0 18px;color:#374151}
.bullets li{margin:4px 0}
@media (max-width:900px){.panel-grid{grid-template-columns:1fr}}


/* Estilo profesional para el texto de “Nuestros servicios” */

/* Corrige centrado heredado y define tipografía limpia */
#servicios .panel-grid > div{
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
  color: #374151;
  line-height: 1.6;
}

/* Título del panel */
#servicios .panel h3{
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #111827;
  text-align: center;
}

/* Párrafo destacado */
#servicios .panel-grid > div p:first-of-type{
  margin: 0 0 12px;
  font-size: 16px;
  color: #4b5563;
  text-align: center;
}

/* Lista elegante con checks y dos columnas en desktop */
#servicios .bullets{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 18px;
}
#servicios .bullets li{
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #374151;
}
#servicios .bullets li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Tarjeta de contenido con sutil realce */
#servicios .panel-grid > div{
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

/* Imagen alineada y con bordes suaves */
#servicios .panel-grid img{
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  object-fit: cover;
}

/* Espaciado entre columnas */
#servicios .panel-grid{
  gap: 22px;
}

/* Responsive: una columna y tipografía cómoda en móvil */
@media (max-width: 900px){
  #servicios .panel-grid > div{
    padding: 16px;
  }
  #servicios .bullets{
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px){
  #servicios .bullets{
    grid-template-columns: 1fr 1fr;
  }
}
/* QUIÉNES SOMOS, look profesional */
.about{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #f7f8fa;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

/* Logout modal styles */
#logoutModal{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,0.45);z-index:1200;opacity:0;transition:opacity .22s ease;
}
#logoutModal.show{ display:flex; opacity:1; }
#logoutModal > div{ background:var(--white); color:var(--text); padding:20px; border-radius:12px; width:min(420px,92%); box-shadow:0 18px 60px rgba(2,6,23,.4); transform:translateY(6px) scale(.98); transition:transform .26s cubic-bezier(.2,.9,.2,1), opacity .2s; opacity:0 }
#logoutModal.show > div{ transform:translateY(0) scale(1); opacity:1 }
#logoutModal p{ margin:0 0 12px; font-size:16px }
#logoutModal .modal-actions{ display:flex; gap:10px; justify-content:center }
#logoutModal .btn{ min-width:110px; padding:8px 12px; border-radius:10px }
#logoutModal .btn-secondary{ background:#f3f4f6; color:#111; border:0 }
#logoutModal .btn-confirm{ background:var(--brand); color:#fff; border:0 }

/* small responsive tweak for modal buttons */
@media (max-width:420px){ #logoutModal .modal-actions{ flex-direction:column } }

/* Columna de texto */
.about .text{
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  color: #374151;
  line-height: 1.7;
}
.about .text h2{
  margin: 0 0 10px;
  font-size: 28px;
  color: #111827;
  text-align: center;
  position: relative;
}
.about .text h2::after{
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 8px auto 0;
}
.about .text p{
  margin: 10px 0;
  font-size: 16px;
  color: #4b5563;
}
.about .btn{
  display: inline-block;
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(255,106,0,.18);
}
.about .btn:hover{
  background: var(--brand-dark);
}

/* Columna de imagen */
.about .media{
  position: relative;
}
.about .about-img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
/* Sombra suave tipo “card” detrás de la imagen */
.about .media::after{
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  filter: blur(18px);
  background: radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,.08), transparent 60%);
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 980px){
  .about{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .about .text h2{ font-size: 24px; }
}
/* styles.css — Animaciones globales */

/* Preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Variables de tiempo y curva */
:root{
  --easing: cubic-bezier(.22,.61,.36,1);
  --dur-s: .35s;
  --dur-m: .6s;
  --dur-l: .9s;
}

/* Estados base de aparición */
.reveal{ opacity: 0; transform: translateY(14px); filter: blur(2px); }
.reveal.in-view{ opacity: 1; transform: none; filter: none; }

/* Tipos de animación */
.reveal.fade   { animation: fadeIn var(--dur-m) var(--easing) both; }
.reveal.up     { animation: fadeUp var(--dur-m) var(--easing) both; }
.reveal.scale  { animation: scaleIn var(--dur-m) var(--easing) both; }
.reveal.right  { animation: slideRight var(--dur-m) var(--easing) both; }
.reveal.left   { animation: slideLeft var(--dur-m) var(--easing) both; }

/* Stagger por variable */
.reveal.in-view{ animation-delay: var(--delay, 0s); }

/* Keyframes */
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px) } to { opacity:1; transform:none } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.96) } to { opacity:1; transform:scale(1) } }
@keyframes slideRight { from { opacity:0; transform:translateX(-18px) } to { opacity:1; transform:none } }
@keyframes slideLeft  { from { opacity:0; transform:translateX(18px) } to { opacity:1; transform:none } }

/* Suaves en elementos interactivos existentes */
.card, .product-card, .cat.card, .offer-card, .tab, .btn, .btn-hero, .arrow {
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), background-color .2s var(--easing), color .2s var(--easing), opacity .2s var(--easing);
}

/* Hero pequeño parallax visual */
.hero { will-change: background-position; }
/* Ajusta imágenes grandes en móvil */

/* Generales */
.about .about-img,
#servicios .panel-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Teléfonos: recorta a relación 16:9 y limita altura */
@media (max-width: 768px) {
  .about { padding: 16px; }
  .about .about-img,
  #servicios .panel-grid img {
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .about .about-img,
  #servicios .panel-grid img {
    max-height: 220px;
  }
}
/* Overlay de texto sobre la imagen en los paneles */
#servicios .panel-grid.overlay{
  position: relative;
  grid-template-columns: 1fr; /* una sola columna para que la imagen ocupe todo */
}

#servicios .panel-grid.overlay .media{
  position: relative;
}

#servicios .panel-grid.overlay .media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

#servicios .panel-grid.overlay .info-card{
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  z-index: 2;
}

/* Variante si quieres la tarjeta hacia la derecha */
#servicios .panel-grid.overlay.right .info-card{
  left: auto;
  right: 5%;
}

/* Móvil: la tarjeta baja debajo de la imagen */
@media (max-width: 900px){
  #servicios .panel-grid.overlay .info-card{
    position: static;
    transform: none;
    max-width: 100%;
    margin-top: 12px;
  }
}
/* Overlay de texto sobre imagen en servicios */
#servicios .panel-grid.overlay{
  position: relative;
  grid-template-columns: 1fr; /* la imagen ocupa todo el ancho */
}

#servicios .panel-grid.overlay .media{ position: relative; }
#servicios .panel-grid.overlay .media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

#servicios .panel-grid.overlay .info-card{
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  max-width: 520px;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  z-index: 2;
}

/* Variante a la derecha cuando agregues .right al contenedor */
#servicios .panel-grid.overlay.right .info-card{
  left: auto;
  right: 5%;
}

/* Móvil */
@media (max-width: 900px){
  #servicios .panel-grid.overlay .info-card{
    position: static;
    transform: none;
    max-width: 100%;
    margin-top: 12px;
  }
  #servicios .panel-grid.overlay .media img{
    max-height: 260px;
  }
}
/* Ajustes finos del overlay: coloca la tarjeta dentro de la foto sin salirse */
#servicios .panel-grid.overlay{
  display: block;              /* evita “huecos” del grid */
  position: relative;
}

#servicios .panel-grid.overlay .media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;            /* recorta bordes de la imagen */
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

#servicios .panel-grid.overlay .media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Tarjeta superpuesta: pegada a la foto y con margen interior seguro */
#servicios .panel-grid.overlay .info-card{
  position: absolute;
  right: clamp(16px, 5%, 48px);
  bottom: clamp(12px, 6%, 40px);
  left: auto;
  transform: none;             /* quita el translateY que la descentraba */
  max-width: min(560px, 48%);
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 22px 48px rgba(0,0,0,.18);
  z-index: 2;
}

/* Variante a la izquierda si el contenedor tiene .left */
#servicios .panel-grid.overlay.left .info-card{
  left: clamp(16px, 5%, 48px);
  right: auto;
}

/* Tipografía y columnas de la lista dentro de la tarjeta */
#servicios .panel-grid.overlay .info-card h3{
  margin: 0 0 8px;
  text-align: center;
  color: #111827;
}
#servicios .panel-grid.overlay .info-card p{
  margin: 0 0 12px;
  color: #4b5563;
  text-align: center;
}
#servicios .panel-grid.overlay .bullets{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
#servicios .panel-grid.overlay .bullets li{
  position: relative;
  padding-left: 22px;
  color: #374151;
}
#servicios .panel-grid.overlay .bullets li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

/* Móvil: tarjeta debajo, ancho completo, sin solaparse */
@media (max-width: 900px){
  #servicios .panel-grid.overlay .info-card{
    position: static;
    max-width: 100%;
    margin-top: 12px;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
  }
  #servicios .panel-grid.overlay .bullets{
    grid-template-columns: 1fr;
  }
}
/* styles.css — actualización para overlay en “Nuestros servicios” */

/* Contenedor de panel en modo overlay */
#servicios .panel-grid.overlay{
  display: block;
  position: relative;
  margin-top: 10px;
}

/* Imagen con recorte y sombra */
#servicios .panel-grid.overlay .media{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
#servicios .panel-grid.overlay .media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Tarjeta de texto superpuesta */
#servicios .panel-grid.overlay .info-card{
  position: absolute;
  right: clamp(16px, 5%, 48px);
  bottom: clamp(12px, 6%, 42px);
  max-width: min(560px, 48%);
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 22px 48px rgba(0,0,0,.18);
  z-index: 2;
}

/* Variante a la izquierda si el contenedor tiene .left */
#servicios .panel-grid.overlay.left .info-card{
  left: clamp(16px, 5%, 48px);
  right: auto;
}

/* Tipografía interna */
#servicios .panel-grid.overlay .info-card h3{
  margin: 0 0 8px;
  text-align: center;
  color: #111827;
}
#servicios .panel-grid.overlay .info-card p{
  margin: 0 0 12px;
  color: #4b5563;
  text-align: center;
}
#servicios .panel-grid.overlay .bullets{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
#servicios .panel-grid.overlay .bullets li{
  position: relative;
  padding-left: 22px;
  color: #374151;
}
#servicios .panel-grid.overlay .bullets li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Tabs: mejor foco y underline */
.tabs-header{ position: relative; }
.tabs-header .tab:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.tabs-underline{
  position: absolute;
  bottom: -2px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  left: 0; width: 0;
  transition: left .25s, width .25s;
}

/* Móvil */
@media (max-width: 900px){
  #servicios .panel-grid.overlay .info-card{
    position: static;
    max-width: 100%;
    margin-top: 12px;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
  }
  #servicios .panel-grid.overlay .bullets{
    grid-template-columns: 1fr;
  }
  #servicios .panel-grid.overlay .media img{
    max-height: 260px;
  }
}
@media (max-width: 480px){
  #servicios .panel-grid.overlay .media img{ max-height: 220px; }
}
/* Tarjeta con imagen de fondo para servicios */
.svc-card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
  border: 1px solid #eef0f2;
  background:
    linear-gradient(to bottom right, rgba(0,0,0,.15), rgba(0,0,0,.35)),
    var(--svc-bg) center/cover no-repeat;
}

/* Contenedor del texto dentro de la tarjeta */
.svc-content{
  position: relative;
  max-width: 820px;
  margin: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  color: #374151;
}
.svc-content h3{
  margin: 0 0 8px;
  color: #111827;
  text-align: center;
}
.svc-content p{ margin: 0 0 10px; text-align: center; }

/* Lista con checks en dos columnas en desktop */
.svc-list{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
.svc-list li{
  position: relative;
  padding-left: 22px;
}
.svc-list li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

/* Responsivo */
@media (max-width: 900px){
  .svc-card{ min-height: 300px; }
  .svc-content{ margin: 14px; padding: 14px 16px; }
  .svc-list{ grid-template-columns: 1fr; }
}

/* styles.css añadidos mínimos para products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card.product {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.card.product .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ddd;
}
.card.product .card-body {
  padding: 12px;
}
.card.product .brand {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.card.product .name {
  font-size: 1rem;
  margin-bottom: 6px;
}
.card.product .desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}
.card.product .price {
  font-weight: 700;
  margin-bottom: 8px;
}
.skeleton { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0% { opacity: .6; } 50% { opacity: 1; } 100% { opacity: .6; } }
/* Opcional por si hay overlays que bloquean el clic */
#catTrack .cat.card { cursor: pointer; }
#catTrack .cat.card * { pointer-events: none; }
#catTrack .cat.card { pointer-events: auto; }
/* FRONTEND/styles.css: complementos para products */
.filters.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.filters-left { display: flex; gap: 8px; align-items: center; }
.filters-right { display: flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #222;
  font-size: .9rem;
  cursor: pointer;
}
.select select { padding: 8px 10px; border-radius: 6px; border: 1px solid #d8dee6; background: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card.product { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.card.product .thumb { width: 100%; height: 180px; object-fit: contain; object-position: center; background: white; }
.card.product .card-body { padding: 12px; }
.card.product .brand { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.card.product .name { font-size: 1rem; margin-bottom: 6px; }
.card.product .desc { font-size: .9rem; color: #555; margin-bottom: 8px; }
.card.product .price { font-weight: 700; margin-bottom: 8px; }
.card.product .rating { font-size: .95rem; margin-bottom: 8px; }

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; }
.pager a { padding: 8px 12px; border-radius: 6px; border: 1px solid #d8dee6; text-decoration: none; color: #222; }
.pager a.active { background: #111827; color: #fff; border-color: #111827; }
.pager a.disabled { pointer-events: none; opacity: .5; }

/* ===== ANIMACIONES Y EFECTOS ADICIONALES ===== */

/* Animación de entrada para elementos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efecto de pulso para badges */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Efecto de brillo en hover para botones */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.add-btn,
.btn-primary {
  position: relative;
  overflow: hidden;
}

.add-btn::after,
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left 0.5s ease;
}

.add-btn:hover::after,
.btn-primary:hover::after {
  left: 100%;
}

/* Mejora del track del carrusel */
.track {
  padding: 12px 8px 16px;
  scroll-padding: 0 24px;
}

/* Indicador de scroll para el carrusel */
.carousel::before {
  content: '';
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 8px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
}

/* Efecto glass-morphism para cards */
.card.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradiente animado para headers */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.section-title.animated {
  background: linear-gradient(90deg, #111827, var(--brand), #ff8c42, var(--brand), #111827);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Skeleton loading para productos */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mejora de accesibilidad - focus visible */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}
/* ===== OPTIMIZACIONES M�VILES PARA PRODUCTOS ===== */
@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-description {
    font-size: 14px;
    margin-bottom: 28px;
    padding: 0 16px;
  }
  
  .product-card {
    max-width: 280px;
    padding: 10px;
  }
  
  .product-thumb {
    height: 145px;
    background: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .product-thumb img {
    object-fit: contain !important;
    object-position: center !important;
  }
  
  .product-title {
    font-size: 11px;
    min-height: 36px;
  }
  
  .product-meta {
    font-size: 10px;
  }
  
  .price-row {
    gap: 6px;
  }
  
  .price-new {
    font-size: 17px;
  }
  
  .add-btn {
    height: 36px;
    font-size: 12px;
  }
  
  #featuredTrack .product-card,
  #offersTrack .product-card {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 36px 0;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .section-description {
    font-size: 14px;
    margin-bottom: 24px;
    padding: 0 12px;
  }
  
  .cat.card {
    flex: 0 0 260px;
    min-width: 260px;
    min-height: 220px;
    padding: 20px 16px;
  }
  
  .circle {
    width: 120px;
    height: 120px;
    font-size: 48px;
    margin-bottom: 14px;
  }
  
  .cat-name {
    font-size: 16px;
    margin-top: 10px;
  }
  
  .product-card {
    max-width: 220px;
    padding: 8px;
  }
  
  .product-thumb {
    height: 130px;
    background: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .product-thumb img {
    object-fit: contain !important;
    object-position: center !important;
  }
  
  .product-title {
    font-size: 10px;
    min-height: 32px;
  }
  
  .product-meta {
    font-size: 10px;
  }
  
  .price-new {
    font-size: 16px;
  }
  
  .price-old {
    font-size: 12px;
  }
  
  .add-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  #featuredTrack .product-card,
  #offersTrack .product-card {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

@media (max-width: 400px) {
  .section {
    padding: 28px 0;
  }
  
  .section-title {
    font-size: 19px;
  }
  
  .section-description {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .cat.card {
    flex: 0 0 240px;
    min-width: 240px;
    min-height: 200px;
    padding: 18px 14px;
  }
  
  .circle {
    width: 100px;
    height: 100px;
    font-size: 42px;
    margin-bottom: 12px;
  }
  
  .cat-name {
    font-size: 15px;
    margin-top: 8px;
  }
  
  .product-card {
    max-width: 180px;
    padding: 8px;
  }
  
  .product-thumb {
    height: 120px;
  }
  
  .product-title {
    font-size: 10px;
    min-height: 30px;
  }
  
  .product-meta {
    font-size: 9px;
  }
  
  .rating {
    font-size: 9px;
  }
  
  .price-new {
    font-size: 14px;
  }
  
  .price-old {
    font-size: 10px;
  }
  
  .add-btn {
    height: 32px;
    font-size: 10px;
  }
  
  #featuredTrack .product-card,
  #offersTrack .product-card {
    flex: 0 0 180px;
    min-width: 180px;
  }
}
