/* --- Estilos Generales --- */
body {
  background-color: #f8f9fa;
}
.section-title {
  font-weight: 800;
  color: #212529;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

/* --- Banner Superior --- */
.banner-wrapper {
  height: 400px;
}
.banner-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* --- Contenido Principal y Cabecera de la Tienda --- */
.main-content {
  margin-top: -120px;
  position: relative;
}
.store-header {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
}
.logo-wrapper {
  flex-shrink: 0;
}
.logo-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.info-wrapper {
  flex-grow: 1;
}
.store-name {
  font-weight: 800;
  font-size: 2.5rem;
}
.store-description {
  color: #6c757d;
  font-size: 1.1rem;
}
.store-location {
  font-weight: 500;
}
.social-wrapper {
  display: flex;
  gap: 1rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.social-icon:hover {
  transform: scale(1.15);
}
.social-icon.facebook {
  background-color: #1877f2;
}
.social-icon.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.social-icon.tiktok {
  background-color: #000;
}

/* --- Tarjeta de Producto --- */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12);
}
.product-image-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.product-image-link img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image-link img {
  transform: scale(1.05);
}
.product-discount,
.product-category {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.product-discount {
  left: 1rem;
  background-color: #dc3545;
}
.product-category {
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}
.product-info {
  padding: 1rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
  .banner-wrapper {
    height: 250px;
  }
  .store-header {
    flex-direction: column;
    text-align: center;
  }
  .logo-img {
    width: 140px;
    height: 140px;
    margin-top: 0;
  }
  .main-content {
    margin-top: -100px;
  }
  .info-wrapper {
    order: 2;
  }
  .social-wrapper {
    order: 3;
  }
  .store-name {
    font-size: 2rem;
  }
}
