@keyframes fade-in-title {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* template.css (títulos mejorados y dinámicos con sombreado, subrayado, animación) */

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #fef3ff);
  color: #333;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  animation: fade-in-title 0.8s ease-in-out both;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: #6a11cb;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Header */
.header {
  background-color: #5f19e9;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo {
  height: 80px;
  width: 80px;
  margin-right: 12px;
}

.logo.small-logo {
  height: 30px;
  width: 30px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

/* Search Bar */
.search-container {
  position: relative;
}

.search-box {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  min-width: 220px;
  max-width: 260px;
}

/* Categories */
.categories.centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
  background: white;
  gap: 8px;
}

.category-button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.category-button.home { background-color: #53d1dd; }
.category-button.tech { background-color: #d6ff6b; color: black; }
.category-button.wellness { background-color: #d287f4; }
.category-button.lifestyle { background-color: #59c2ff; }
.category-button.hot { background-color: #ff9344; color: black; }
.category-button.deals { background-color: #ffe661; color: black; }
.category-button.clothing { background-color: #c4382d; }
.category-button.pets { background-color: #41dbe0; color: black; }
.category-button.gaming { background-color: #8e99a7; }
.category-button.cars { background-color: #ff0000; }
.category-button.travel { background-color: #00c97b; }

.category-button:hover {
  filter: brightness(0.95);
}

/* Gallery */
.product-gallery {
  padding: 30px 15px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  gap: 24px;
  padding: 10px;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 32px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-description {
  margin: auto;
  max-width: 800px;
  background: #f5edff;
  padding: 24px 28px;
  border-radius: 14px;
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.btn {
  padding: 10px 18px;
  background-color: #5f19e9;
  color: white;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #4216a8;
}

.footer-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Comparison Table */
.comparison-section {
  text-align: center;
  padding: 40px 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

th, td {
  padding: 16px;
  text-align: center;
  border: 1px solid #eee;
}

th {
  background-color: #5f19e9;
  color: white;
  font-size: 16px;
}

td {
  font-size: 14px;
}

.highlight-col {
  background-color: #c6ff69;
  color: #000000 !important;
}

.stars {
  color: #f4c150;
  font-size: 1.2em;
}

.check {
  color: #00c853;
  font-weight: bold;
}

.cross {
  color: #e53935;
  font-weight: bold;
}

/* Footer */
footer {
  background: #5f19e9;
  color: white;
  text-align: center;
  padding: 20px;
}

footer a {
  color: white;
  text-decoration: underline;
}

.header {
  background-color: #5f19e9;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.logo {
  height: 100px;
  width: 100px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
  gap: 12px;
}

.search-box {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  min-width: 260px;
  max-width: 300px;
}

.header {
  background-color: #5f19e9;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
}

.logo {
  height: 80px;
  width: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 20px;
  gap: 12px;
  margin-right: 0;
}

.search-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.search-box {
  placeholder: "Discover what matters";
  
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 280px;
  max-width: 100%;

}

.header {
  background-color: #5f19e9;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo {
  height: 56px;
  width: 56px;
  margin-right: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.search-box {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 260px;
  max-width: 100%;
}
#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
  font-size: 14px;
}

#suggestions div {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

#suggestions div:hover {
  background-color: #f0f0f0;
}
.category-button,
.btn {
  transition: all 0.25s ease-in-out;
}
.category-button.summer {
  background-color: #FFDA7A; /* amarillo solar */
  color: #d14e00;
}

.category-button.july4 {
  background: linear-gradient(to right, #002868, #ffffff, #bf0a30); /* bandera de USA */
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}


/* --- Smart Search Styles --- */
.search-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.search-box {
  padding: 10px 20px;
  width: 300px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
  transition: 0.3s ease all;
}

.search-box:focus {
  box-shadow: 0 0 5px #fff, 0 0 10px #c084fc;
}

.autocomplete-items {
  position: absolute;
  top: 40px;
  width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 99;
  font-size: 14px;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.autocomplete-item:hover {
  background-color: #eee;
  color: #000;
}
