/* ==========================
   HEADER
   ========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 16, 46, 0.3);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  text-decoration: none;
}

.logo-area:hover,
.logo-area:focus {
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(200, 16, 46, 0.5));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
  text-transform: uppercase;
  overflow: visible;
  text-overflow: clip;
}

/* Desktop Nav */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    gap: 1.25rem;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--kitsune-red);
  transition: width var(--transition-normal);
  box-shadow: var(--shadow-glow);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.action-btn {
  color: var(--white);
  font-size: 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background-color: rgba(200, 16, 46, 0.1);
  color: var(--ember);
}

.tvf-header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 40px;
  z-index: 1200;
  transition: width var(--transition-fast);
}

.tvf-header-search.open {
  width: min(330px, 34vw);
}

.tvf-header-search.open .tvf-search-toggle {
  width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.tvf-header-search-form {
  position: relative;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), width var(--transition-fast);
  z-index: 1202;
}

.tvf-header-search.open .tvf-header-search-form {
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

.tvf-header-search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(242, 184, 75, 0.48);
  border-radius: 999px;
  background: #130f10;
  color: var(--white);
  padding: 0 1rem 0 2.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.42);
}

.tvf-header-search-form::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--sun-gold);
  transform: translateY(-50%);
  z-index: 1;
}

.tvf-live-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(390px, calc(100vw - 2rem));
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(242, 184, 75, 0.22);
  border-radius: 10px;
  background: rgba(15, 11, 12, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  display: none;
  z-index: 1203;
}

.tvf-live-results.has-results {
  display: block;
}

.tvf-live-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tvf-live-result:hover {
  background: rgba(194, 15, 47, 0.14);
}

.tvf-fav-toggle.active,
.tvf-fav-toggle.active i {
  color: var(--ember);
}

.tvf-live-result img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 7px;
  background: var(--paper);
}

.tvf-live-result-title,
.tvf-live-result-price {
  display: block;
  min-width: 0;
}

.tvf-live-result-title {
  font-weight: 800;
  font-size: 0.86rem;
}

.tvf-live-result-price {
  margin-top: 0.18rem;
  color: var(--sun-gold);
  font-family: var(--font-accent);
  font-size: 0.8rem;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--kitsune-red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .tvf-header-search.open {
    position: absolute;
    right: 0;
    width: min(72vw, 310px);
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  max-width: 100vw;
  height: 100vh;
  background-color: var(--void);
  border-left: 1px solid var(--smoke);
  z-index: 1002;
  padding: 6rem 2rem 2rem;
  transform: translateX(105%);
  transition: transform var(--transition-normal);
  box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ghost);
  border-bottom: 1px solid var(--smoke);
  padding-bottom: 0.5rem;
  display: block;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================
   BUTTONS
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--kitsune-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

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

.btn-primary:hover {
  background-color: var(--ember);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--kitsune-red);
}

.btn-outline:hover {
  background-color: rgba(200, 16, 46, 0.1);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--smoke);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #3A3A3A;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--kitsune-red);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

/* ==========================
   CARDS (Products)
   ========================== */
.product-card {
  background-color: var(--void);
  border-radius: var(--radius-md);
  border: 1px solid var(--smoke);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: rgba(200, 16, 46, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  transform: translateY(-5px);
}

.card-image-wrapper {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect ratio */
  background-color: var(--white);
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--transition-slow);
}

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

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--white);
}

.badge-tag.oferta {
  position: relative;
  padding: 0.38rem 0.9rem 0.38rem 1rem;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(135deg, var(--kitsune-red), var(--ember));
  box-shadow: 0 8px 18px rgba(194, 15, 47, 0.36);
}

.badge-tag.oferta::after {
  content: "";
  position: absolute;
  top: 0;
  right: -0.62rem;
  width: 0;
  height: 0;
  border-top: 0.78rem solid transparent;
  border-bottom: 0.78rem solid transparent;
  border-left: 0.62rem solid var(--ember);
}

.badge-tag.oferta::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.08rem;
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  z-index: 1;
}

.badge-tag.novedad,
.badge-tag.reserva {
  position: relative;
  padding: 0.34rem 0.72rem 0.34rem 1.05rem;
  border-radius: 999px 6px 6px 999px;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.badge-tag.novedad::before,
.badge-tag.reserva::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
}

.badge-tag.novedad {
  background: linear-gradient(135deg, #2e8b57, #72d889);
  color: #07140c;
  box-shadow: 0 8px 18px rgba(46, 139, 87, 0.28);
}

.badge-tag.reserva {
  background: linear-gradient(135deg, #3340a8, #71a7ff);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(65, 105, 225, 0.3);
}
.badge-tag.agotado { background-color: #808080; }

.card-actions-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
}

.product-card:hover .card-actions-overlay {
  opacity: 1;
  transform: translateX(0);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.8rem;
  color: var(--kitsune-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--ghost);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  text-decoration: none;
}

.product-card:hover .card-title {
  color: var(--white);
  text-decoration: none;
}

.card-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.price-old {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: #808080;
  text-decoration: line-through;
}

.price-sale {
  color: var(--ember);
  text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.btn-add-cart {
  width: 100%;
  text-decoration: none;
}

.product-card a,
.product-card a:hover,
.product-card .button,
.product-card .button:hover,
.btn-add-cart,
.btn-add-cart:hover {
  text-decoration: none;
}

/* ==========================
   FOOTER
   ========================== */
.site-footer {
  background-color: var(--void);
  border-top: 1px solid var(--smoke);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Patrón de ondas japonés (seigaiha) sutil en el fondo */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at 100% 50%, transparent 20%, rgba(200, 16, 46, 0.03) 21%, rgba(200, 16, 46, 0.03) 34%, transparent 35%, transparent),
                    radial-gradient(circle at 0% 50%, transparent 20%, rgba(200, 16, 46, 0.03) 21%, rgba(200, 16, 46, 0.03) 34%, transparent 35%, transparent);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo-img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #A0A0A0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--smoke);
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--kitsune-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--kitsune-red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #A0A0A0;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--smoke);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright, .credits {
  font-size: 0.85rem;
  color: #808080;
}

.credits a {
  color: inherit;
  text-decoration: none;
}

.credits a:hover {
  color: var(--sun-gold);
  text-decoration: none;
}

/* ==========================
   FORMS & INPUTS
   ========================== */
.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ghost);
}

.input-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--smoke);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.input-field:focus {
  border-color: var(--kitsune-red);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

/* ==========================
   BREADCRUMBS
   ========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #A0A0A0;
  margin-bottom: 2rem;
}

.breadcrumb a:hover {
  color: var(--kitsune-red);
}

.breadcrumb-separator {
  color: var(--smoke);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--void);
  border-left: 4px solid var(--kitsune-red);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s forwards;
}

.toast-product-image {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(242, 184, 75, 0.35);
}

.cart-pulse {
  animation: cartPulse 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); box-shadow: 0 0 0 8px rgba(194, 15, 47, 0.18); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
  animation: fadeOutRight 0.3s forwards;
}

@keyframes fadeOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ==========================
   VISUAL REWORK OVERRIDES
   ========================== */
.site-header {
  height: 74px;
  background:
    linear-gradient(90deg, rgba(8, 6, 6, 0.94), rgba(19, 12, 13, 0.9)),
    rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid rgba(242, 184, 75, 0.2);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 15, 47, 0.8), rgba(242, 184, 75, 0.55), transparent);
}

.header-inner {
  gap: 1rem;
  min-width: 0;
}

.logo-area {
  flex: 0 0 auto;
  min-width: max-content;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(194, 15, 47, 0.45));
}

.logo-text {
  flex: 0 0 auto;
  max-width: none;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.main-nav {
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.35rem);
  min-width: 0;
}

.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.header-actions {
  flex-shrink: 0;
  gap: 0.45rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.action-btn:hover {
  border-color: rgba(242, 184, 75, 0.42);
  background: rgba(194, 15, 47, 0.16);
}

.mobile-drawer {
  background:
    radial-gradient(circle at 20% 10%, rgba(194, 15, 47, 0.22), transparent 16rem),
    linear-gradient(180deg, #151010, #090707);
  border-left-color: rgba(242, 184, 75, 0.25);
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  letter-spacing: 0.08em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kitsune-red), var(--ember));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(194, 15, 47, 0.28);
}

.btn-outline {
  border-color: rgba(242, 184, 75, 0.5);
  background: rgba(255, 255, 255, 0.035);
}

.product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #130f10;
  border-color: rgba(242, 184, 75, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 75% 0%, rgba(194, 15, 47, 0.14), transparent 44%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  border-color: rgba(242, 184, 75, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 26px rgba(194, 15, 47, 0.24);
}

.card-image-wrapper {
  padding-top: 112%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95), rgba(245, 231, 205, 0.9) 45%, rgba(222, 193, 143, 0.76)),
    var(--paper);
}

.card-image-wrapper::after {
  content: "";
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.16), transparent 68%);
}

.card-image {
  padding: 0.55rem;
  z-index: 1;
  filter: drop-shadow(0 16px 18px rgba(20, 12, 10, 0.26));
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.card-category {
  margin: 0;
  color: var(--sun-gold);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ffd36d;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  white-space: nowrap;
}

.card-rating.muted {
  color: #9fb3ff;
}

.card-title {
  min-height: 2.8em;
}

.btn-add-cart {
  margin-top: auto;
}

.btn-add-cart:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.45);
}

.badge-tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.badge-tag.oferta {
  border-color: rgba(255, 255, 255, 0.28);
}

.badge-tag.novedad {
  background: linear-gradient(135deg, #2e8b57, #72d889);
}

.badge-tag.reserva {
  background: linear-gradient(135deg, #3340a8, #71a7ff);
}

@media (max-width: 575px) {
  .site-header {
    height: 68px;
  }

  .container {
    padding: 0 1rem;
  }

  .logo-img {
    height: 40px;
  }

  .logo-text {
    display: block;
    width: 5.9rem;
    min-width: 5.9rem;
    max-width: 5.9rem;
    font-size: 0.64rem;
    line-height: 1.08;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .action-btn,
  .menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .hide-on-small {
    display: none;
  }

  .site-header .header-actions .hide-on-small {
    display: flex;
  }

  .card-content {
    padding: 1rem;
  }

  .card-meta {
    display: block;
  }

  .card-rating {
    margin-top: 0.3rem;
  }

  .btn-add-cart {
    min-height: 40px;
    padding: 0.55rem 0.45rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  .btn-add-cart i {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .logo-img {
    height: 42px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .main-nav {
    gap: 0.7rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) and (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 380px) {
  .logo-area {
    gap: 0.35rem;
  }

  .logo-img {
    height: 36px;
  }

  .logo-text {
    width: 6.15rem;
    min-width: 6.15rem;
    max-width: 6.15rem;
    font-size: 0.64rem;
  }

  .header-actions {
    gap: 0.15rem;
  }

  .action-btn,
  .menu-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .logo-text {
    width: 4.8rem;
    min-width: 4.8rem;
    max-width: 4.8rem;
    font-size: 0.54rem;
  }
}

@media (max-width: 340px) {
  .logo-text {
    display: none;
  }
}

/* Mobile footer alignment */
@media (max-width: 767px) {
  .social-links {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}
