/* ==========================================================================
   AngelRos Premium Frontend Layer
   Archivo incremental: cargar DESPUÉS de responsive.css.
   Objetivo: mantener colores actuales y elevar UX con glass, suavidad y 3D.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Premium tokens derivados de la paleta actual
   -------------------------------------------------------------------------- */

:root {
  --premium-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --premium-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --premium-duration-fast: 260ms;
  --premium-duration: 580ms;
  --premium-duration-slow: 1050ms;

  --premium-glass-bg: rgb(255 253 249 / 0.64);
  --premium-glass-bg-strong: rgb(255 253 249 / 0.82);
  --premium-glass-border: rgb(255 255 255 / 0.54);
  --premium-glass-border-soft: rgb(250 237 205 / 0.72);
  --premium-glass-shadow: 0 24px 70px rgb(52 58 64 / 0.12);
  --premium-glass-shadow-soft: 0 18px 40px rgb(52 58 64 / 0.08);

  --premium-card-shadow: 0 18px 42px rgb(52 58 64 / 0.08);
  --premium-card-shadow-hover: 0 34px 78px rgb(52 58 64 / 0.16);
  --premium-gold-glow: 0 16px 44px rgb(212 163 115 / 0.22);
  --premium-sage-glow: 0 16px 44px rgb(204 213 174 / 0.28);
  --premium-lila-glow: 0 18px 56px rgb(233 213 255 / 0.42);

  --premium-line: linear-gradient(
    90deg,
    transparent,
    rgb(212 163 115 / 0.68),
    rgb(204 213 174 / 0.56),
    transparent
  );

  --premium-surface-gradient:
    radial-gradient(circle at 12% 18%, rgb(250 237 205 / 0.75), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgb(233 213 255 / 0.45), transparent 30rem),
    radial-gradient(circle at 78% 86%, rgb(204 213 174 / 0.42), transparent 28rem),
    var(--color-brand-paper);
}

/* --------------------------------------------------------------------------
   02. Base premium global
   -------------------------------------------------------------------------- */

html {
  scroll-padding-top: 6rem;
}

body {
  background: var(--premium-surface-gradient);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgb(52 58 64 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(52 58 64 / 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.5), transparent 80%);
}

::selection {
  background: rgb(212 163 115 / 0.28);
  color: var(--color-brand-ink);
}

a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   03. Utilities premium para nuevas secciones
   -------------------------------------------------------------------------- */

.premium-shell {
  position: relative;
  isolation: isolate;
}

.premium-section {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  overflow: clip;
}

.premium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 22%, rgb(250 237 205 / 0.48), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgb(233 213 255 / 0.28), transparent 24rem);
}

.premium-section__inner {
  max-width: var(--max-w-7xl);
  margin: 0 auto;
}

.premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-brand-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.premium-kicker::before,
.premium-kicker::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: rgb(212 163 115 / 0.55);
}

.premium-title {
  font-family: var(--font-serif);
  color: var(--color-brand-ink);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.premium-title em,
.premium-title .premium-accent {
  color: var(--color-brand-primary);
  font-style: italic;
  font-weight: 300;
}

.premium-lead {
  color: rgb(52 58 64 / 0.72);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.85;
  font-weight: 300;
}

.premium-glass {
  position: relative;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.72), rgb(255 253 249 / 0.42)),
    var(--premium-glass-bg);
  border: 1px solid var(--premium-glass-border);
  border-radius: var(--border-radius-3xl);
  box-shadow: var(--premium-glass-shadow-soft);
  overflow: hidden;
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .premium-glass {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
}

.premium-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.62), transparent 34%),
    radial-gradient(circle at 18% 12%, rgb(255 255 255 / 0.55), transparent 11rem);
  opacity: 0.9;
}

.premium-glass > * {
  position: relative;
  z-index: 1;
}

.premium-divider {
  width: min(9rem, 32vw);
  height: 1px;
  margin: 1.5rem auto;
  background: var(--premium-line);
}

/* --------------------------------------------------------------------------
   04. Navbar premium
   -------------------------------------------------------------------------- */

.navbar {
  border-bottom: 1px solid rgb(250 237 205 / 0.74);
  box-shadow: 0 10px 30px rgb(52 58 64 / 0.035);
  transition:
    background-color var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    transform var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft);
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .navbar {
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }
}

.navbar.navbar--scrolled {
  background-color: rgb(255 253 249 / 0.86);
  box-shadow: 0 18px 50px rgb(52 58 64 / 0.08);
  border-color: rgb(212 163 115 / 0.22);
}

.navbar__logo {
  filter: drop-shadow(0 10px 18px rgb(52 58 64 / 0.10));
  transition: transform var(--premium-duration) var(--premium-ease-spring);
}

.navbar__brand-wrapper:hover .navbar__logo {
  transform: rotate(-4deg) scale(1.045);
}

.navbar__title {
  text-shadow: 0 12px 40px rgb(52 58 64 / 0.08);
}

.navbar__link {
  position: relative;
  padding: 0.45rem 0;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  border-radius: var(--border-radius-full);
  background: var(--color-brand-primary);
  transition:
    width var(--premium-duration) var(--premium-ease-soft),
    left var(--premium-duration) var(--premium-ease-soft);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  left: 0;
  width: 100%;
}

.navbar__btn-buy {
  position: relative;
  overflow: hidden;
  box-shadow: var(--premium-gold-glow);
}

.navbar__btn-buy::before,
.btn::before {
  content: "";
  position: absolute;
  inset: -40% -140%;
  transform: translateX(-60%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.38), transparent);
  transition: transform 760ms var(--premium-ease-soft);
  pointer-events: none;
}

.navbar__btn-buy:hover::before,
.btn:hover::before {
  transform: translateX(60%) rotate(18deg);
}

/* --------------------------------------------------------------------------
   05. Hero premium
   -------------------------------------------------------------------------- */

.hero {
  min-height: clamp(620px, 80vh, 860px);
  padding: clamp(5rem, 9vw, 9rem) 0;
  background:
    radial-gradient(circle at 15% 22%, rgb(250 237 205 / 0.95), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgb(233 213 255 / 0.86), transparent 24rem),
    radial-gradient(circle at 74% 84%, rgb(204 213 174 / 0.68), transparent 26rem),
    linear-gradient(135deg, var(--color-brand-paper), var(--color-brand-lila));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: clamp(2rem, 4vw, 4rem);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 8% auto;
  width: clamp(10rem, 18vw, 18rem);
  height: clamp(10rem, 18vw, 18rem);
  background:
    radial-gradient(circle at 35% 35%, rgb(255 255 255 / 0.78), transparent 24%),
    radial-gradient(circle, rgb(212 163 115 / 0.24), transparent 68%);
  border-radius: 42% 58% 64% 36% / 48% 35% 65% 52%;
  filter: blur(1px);
  opacity: 0.9;
  animation: premiumMorph 11s var(--premium-ease-soft) infinite alternate;
  pointer-events: none;
}

.hero__bg-blob {
  animation: premiumFloat 9s var(--premium-ease-soft) infinite alternate;
  opacity: 0.44;
}

.hero__bg-blob--2 {
  animation-delay: -3s;
}

.hero__content {
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: clamp(2rem, 4vw, 4.5rem);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.62), rgb(255 253 249 / 0.30));
  border: 1px solid rgb(255 255 255 / 0.62);
  box-shadow: var(--premium-glass-shadow);
  transform-style: preserve-3d;
}

@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .hero__content {
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--border-radius-full);
  background: rgb(255 255 255 / 0.48);
  border: 1px solid rgb(255 255 255 / 0.56);
  box-shadow: 0 12px 30px rgb(212 163 115 / 0.12);
}

.hero__title {
  text-wrap: balance;
  text-shadow: 0 18px 50px rgb(52 58 64 / 0.09);
}

.hero__text {
  text-wrap: pretty;
}

.hero__actions .btn {
  min-height: 3.45rem;
}

/* --------------------------------------------------------------------------
   06. Botones premium
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    background-color var(--premium-duration) var(--premium-ease-soft),
    color var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--dark {
  box-shadow: 0 18px 38px rgb(52 58 64 / 0.20);
}

.btn--dark:hover {
  box-shadow: 0 22px 48px rgb(212 163 115 / 0.28);
}

.btn--outline-dark {
  background: rgb(255 253 249 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.btn--primary {
  border-radius: var(--border-radius-full);
  box-shadow: var(--premium-gold-glow);
}

.btn--primary:hover {
  box-shadow: 0 18px 45px rgb(52 58 64 / 0.18);
}

/* --------------------------------------------------------------------------
   07. Productos: cards 3D, glass, profundidad
   -------------------------------------------------------------------------- */

.products {
  position: relative;
}

.products__header {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.products__title {
  font-family: var(--font-serif);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.products__divider {
  height: 1px;
  width: 9rem;
  background: var(--premium-line);
  box-shadow: var(--premium-gold-glow);
}

.products__filter-container {
  position: sticky;
  top: 6.5rem;
  z-index: 8;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-full);
  background: rgb(255 253 249 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.62);
  box-shadow: 0 18px 42px rgb(52 58 64 / 0.07);
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .products__filter-container {
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
  }
}

.filter-btn {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
  transition:
    transform var(--premium-duration) var(--premium-ease-spring),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    background-color var(--premium-duration) var(--premium-ease-soft),
    color var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgb(52 58 64 / 0.08);
}

.filter-btn.is-active {
  transform: translateY(-2px) scale(1.035);
  box-shadow: var(--premium-gold-glow);
}

.products__grid {
  perspective: 1200px;
  transition: grid-template-columns 0.45s var(--premium-ease-soft);
}

.product-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 253 249 / 0.82));
  border: 1px solid rgb(255 255 255 / 0.68);
  border-radius: clamp(1.25rem, 2vw, 1.9rem);
  box-shadow: var(--premium-card-shadow);
  transform: translateZ(0);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft);
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .product-card {
    -webkit-backdrop-filter: blur(10px) saturate(135%);
    backdrop-filter: blur(10px) saturate(135%);
  }
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.44), transparent 36%),
    radial-gradient(circle at 80% 8%, rgb(212 163 115 / 0.12), transparent 9rem);
  opacity: 0;
  transition: opacity var(--premium-duration) var(--premium-ease-soft);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 1.15rem 1.15rem 1.15rem;
  height: 1px;
  z-index: 2;
  background: var(--premium-line);
  opacity: 0.65;
  pointer-events: none;
}

.product-card:hover {
  border-color: rgb(212 163 115 / 0.28);
  box-shadow: var(--premium-card-shadow-hover);
  transform: translateY(-10px) rotateX(1.6deg) rotateY(-1.6deg);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__image-wrapper {
  border-radius: clamp(1.1rem, 2vw, 1.7rem);
  margin: 0.72rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgb(250 237 205 / 0.8), transparent 52%),
    var(--color-gray-50);
}

.product-card__image {
  transition:
    transform 1200ms var(--premium-ease-soft),
    filter 1200ms var(--premium-ease-soft);
  will-change: transform;
}

.product-card:hover .product-card__image {
  transform: scale(1.075);
  filter: saturate(1.05) contrast(1.02);
}

.product-card__badges {
  z-index: 3;
}

.badge {
  border-radius: var(--border-radius-full);
}

.badge--light {
  background: rgb(255 253 249 / 0.72);
  border-color: rgb(255 255 255 / 0.72);
  box-shadow: 0 10px 22px rgb(52 58 64 / 0.09);
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .badge--light {
    -webkit-backdrop-filter: blur(10px) saturate(145%);
    backdrop-filter: blur(10px) saturate(145%);
  }
}

.product-card__content {
  position: relative;
  z-index: 4;
  padding: 1.45rem 1.35rem 1.65rem;
}

.product-card__title {
  letter-spacing: -0.015em;
  transition: color var(--premium-duration) var(--premium-ease-soft);
}

.product-card:hover .product-card__title {
  color: var(--color-brand-primary);
}

.product-card__transfer {
  border-top-color: rgb(212 163 115 / 0.18);
}

.product-card__actions {
  gap: 0.75rem;
}

.product-card.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

/* --------------------------------------------------------------------------
   07b. Grid density scaling for toggled 2-col / 3-col modes
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .products__grid.grid-cols-2 .product-card,
  .products__grid.grid-cols-3 .product-card {
    transition:
      transform var(--premium-duration) var(--premium-ease-soft),
      box-shadow var(--premium-duration) var(--premium-ease-soft),
      border-color var(--premium-duration) var(--premium-ease-soft),
      border-radius 0.45s var(--premium-ease-soft);
  }

  /* ----- 3 columns (aggressive scaling) ----- */
  .products__grid.grid-cols-3 .product-card {
    border-radius: clamp(1rem, 1.6vw, 1.5rem);
  }

  .products__grid.grid-cols-3 .product-card__image-wrapper {
    margin: 0.55rem;
    border-radius: clamp(0.9rem, 1.5vw, 1.4rem);
    aspect-ratio: 4 / 3;
    transition: margin 0.45s var(--premium-ease-soft), border-radius 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__content {
    padding: 1.1rem 1rem 1.25rem;
    transition: padding 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__title {
    font-size: 0.9rem;
    line-height: 1.22;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    transition: font-size 0.45s var(--premium-ease-soft), line-height 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__price {
    font-size: 1.1rem;
    line-height: 1.4rem;
    transition: font-size 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__installments {
    font-size: 9px;
  }

  .products__grid.grid-cols-3 .product-card__transfer-price {
    font-size: 1rem;
  }

  .products__grid.grid-cols-3 .product-card__transfer-text {
    font-size: 0.7rem;
  }

  .products__grid.grid-cols-3 .product-card__actions {
    gap: 0.5rem;
    padding-top: 0.75rem;
    transition: gap 0.45s var(--premium-ease-soft), padding-top 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    min-height: auto;
    transition: padding 0.45s var(--premium-ease-soft), font-size 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-3 .product-card__badges {
    top: 0.75rem;
    left: 0.75rem;
    gap: 0.35rem;
  }

  .products__grid.grid-cols-3 .badge {
    padding: 0.2rem 0.55rem;
    font-size: 8px;
  }

  /* ----- 2 columns (moderate scaling) ----- */
  .products__grid.grid-cols-2 .product-card {
    border-radius: clamp(1.1rem, 1.8vw, 1.7rem);
  }

  .products__grid.grid-cols-2 .product-card__image-wrapper {
    margin: 0.65rem;
    border-radius: clamp(1rem, 1.7vw, 1.55rem);
    transition: margin 0.45s var(--premium-ease-soft), border-radius 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-2 .product-card__content {
    padding: 1.25rem 1.15rem 1.45rem;
    transition: padding 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-2 .product-card__title {
    font-size: 1rem;
    line-height: 1.25;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: font-size 0.45s var(--premium-ease-soft), line-height 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-2 .product-card__price {
    font-size: 1.15rem;
    transition: font-size 0.45s var(--premium-ease-soft);
  }

  .products__grid.grid-cols-2 .product-card__actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    min-height: auto;
    transition: padding 0.45s var(--premium-ease-soft), font-size 0.45s var(--premium-ease-soft);
  }
}

/* --------------------------------------------------------------------------
   08. Cards y bloques informativos
   -------------------------------------------------------------------------- */

.feature-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.78), rgb(255 253 249 / 0.58));
  border: 1px solid rgb(255 255 255 / 0.62);
  box-shadow: var(--premium-glass-shadow-soft);
  transition:
    transform var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .feature-card {
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
  }
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgb(255 255 255 / 0.52), transparent 9rem),
    radial-gradient(circle at 88% 90%, rgb(204 213 174 / 0.24), transparent 8rem);
  opacity: 0;
  transition: opacity var(--premium-duration) var(--premium-ease-soft);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgb(212 163 115 / 0.22);
  box-shadow: var(--premium-card-shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  position: relative;
  box-shadow: var(--premium-sage-glow);
}

/* --------------------------------------------------------------------------
   09. Nuevos componentes para Home, Catálogo y Producto
   -------------------------------------------------------------------------- */

.premium-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.premium-visual-stack {
  position: relative;
  min-height: 34rem;
  perspective: 1200px;
}

.premium-floating-card {
  position: absolute;
  padding: 1rem;
  border-radius: var(--border-radius-3xl);
  background: rgb(255 253 249 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.68);
  box-shadow: var(--premium-glass-shadow);
  animation: premiumFloat 8s var(--premium-ease-soft) infinite alternate;
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .premium-floating-card {
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
  }
}

.premium-floating-card--main {
  inset: 0 auto auto 8%;
  width: min(78%, 26rem);
  transform: rotate(-3deg);
}

.premium-floating-card--small {
  right: 0;
  bottom: 8%;
  width: min(56%, 18rem);
  transform: rotate(5deg);
  animation-delay: -2.5s;
}

.premium-floating-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--border-radius-3xl) - 0.45rem);
  object-fit: cover;
}

.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.premium-stat {
  padding: 1.35rem;
  text-align: center;
  border-radius: var(--border-radius-3xl);
  background: rgb(255 253 249 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.58);
  box-shadow: var(--premium-glass-shadow-soft);
}

.premium-stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--color-brand-primary);
  line-height: 1;
}

.premium-stat__label {
  display: block;
  margin-top: 0.45rem;
  color: rgb(52 58 64 / 0.64);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.premium-banner {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 14% 18%, rgb(255 255 255 / 0.46), transparent 14rem),
    linear-gradient(135deg, var(--color-brand-ink), rgb(52 58 64 / 0.88));
  color: var(--color-brand-paper);
  overflow: hidden;
  box-shadow: 0 34px 90px rgb(52 58 64 / 0.20);
}

.premium-banner::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: -10rem;
  border-radius: 9999px;
  background: rgb(212 163 115 / 0.32);
  filter: blur(10px);
}

.premium-banner .premium-title,
.premium-banner .premium-lead {
  color: inherit;
}

.catalog-premium-layout {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 7rem;
  padding: 1.2rem;
  border-radius: var(--border-radius-3xl);
  background: rgb(255 253 249 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.68);
  box-shadow: var(--premium-glass-shadow-soft);
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .catalog-sidebar {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
}

.catalog-filter-group {
  padding: 1rem 0;
  border-bottom: 1px solid rgb(212 163 115 / 0.18);
}

.catalog-filter-group:last-child {
  border-bottom: 0;
}

.catalog-filter-title {
  margin-bottom: 0.9rem;
  color: var(--color-brand-ink);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.catalog-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .catalog-chip-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.82rem;
  border-radius: var(--border-radius-full);
  background: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(52 58 64 / 0.08);
  color: rgb(52 58 64 / 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  transition:
    transform var(--premium-duration) var(--premium-ease-spring),
    background-color var(--premium-duration) var(--premium-ease-soft),
    color var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft);
}

.catalog-chip:hover,
.catalog-chip.is-active {
  transform: translateY(-2px);
  color: var(--color-white);
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  box-shadow: var(--premium-gold-glow);
}

.product-detail-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.product-gallery-premium {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1rem;
}

.product-gallery-premium__main {
  border-radius: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  background: var(--color-brand-paper);
  box-shadow: var(--premium-card-shadow-hover);
  border: 1px solid rgb(255 255 255 / 0.72);
}

.product-gallery-premium__main img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.product-info-panel {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background: rgb(255 253 249 / 0.76);
  border: 1px solid rgb(255 255 255 / 0.68);
  box-shadow: var(--premium-glass-shadow);
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .product-info-panel {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
}

.product-info-panel__price {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  margin: 1.2rem 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  color: var(--color-brand-primary);
}

.product-segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.product-segment {
  padding: 1rem;
  border-radius: var(--border-radius-2xl);
  background: rgb(255 255 255 / 0.58);
  border: 1px solid rgb(212 163 115 / 0.16);
}

/* --------------------------------------------------------------------------
   10. Footer y WhatsApp premium
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgb(212 163 115 / 0.18), transparent 22rem),
    radial-gradient(circle at 88% 24%, rgb(204 213 174 / 0.10), transparent 28rem);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
}

.footer__social-link,
.footer__input,
.footer__btn {
  transition:
    transform var(--premium-duration) var(--premium-ease-soft),
    background-color var(--premium-duration) var(--premium-ease-soft),
    border-color var(--premium-duration) var(--premium-ease-soft),
    box-shadow var(--premium-duration) var(--premium-ease-soft);
}

.footer__social-link:hover,
.footer__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--premium-gold-glow);
}

.whatsapp-btn {
  box-shadow:
    0 22px 58px rgb(37 211 102 / 0.28),
    0 8px 20px rgb(52 58 64 / 0.12);
  transition:
    transform var(--premium-duration) var(--premium-ease-spring),
    box-shadow var(--premium-duration) var(--premium-ease-soft),
    background-color var(--premium-duration) var(--premium-ease-soft);
}

.whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: inherit;
  border: 1px solid rgb(37 211 102 / 0.34);
  animation: premiumPulseRing 2.6s var(--premium-ease-soft) infinite;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow:
    0 28px 70px rgb(37 211 102 / 0.34),
    0 12px 26px rgb(52 58 64 / 0.14);
}

/* --------------------------------------------------------------------------
   11. Animaciones premium
   -------------------------------------------------------------------------- */

.js-premium-reveal,
.js-premium-reveal-up,
.js-premium-reveal-left,
.js-premium-reveal-right,
.js-premium-scale {
  opacity: 0;
  transition:
    opacity var(--premium-duration-slow) var(--premium-ease-soft),
    transform var(--premium-duration-slow) var(--premium-ease-soft),
    filter var(--premium-duration-slow) var(--premium-ease-soft);
  will-change: transform, opacity;
}

.js-premium-reveal {
  transform: translateY(14px);
}

.js-premium-reveal-up {
  transform: translateY(34px);
}

.js-premium-reveal-left {
  transform: translateX(-34px);
}

.js-premium-reveal-right {
  transform: translateX(34px);
}

.js-premium-scale {
  transform: scale(0.94);
  transform-origin: center;
}

.js-premium-reveal.is-visible,
.js-premium-reveal-up.is-visible,
.js-premium-reveal-left.is-visible,
.js-premium-reveal-right.is-visible,
.js-premium-scale.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes premiumFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--float-rotate, 0deg));
  }
  100% {
    transform: translate3d(0, -18px, 0) rotate(calc(var(--float-rotate, 0deg) + 2deg));
  }
}

@keyframes premiumMorph {
  0% {
    border-radius: 42% 58% 64% 36% / 48% 35% 65% 52%;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    border-radius: 62% 38% 42% 58% / 44% 61% 39% 56%;
    transform: translate3d(-12px, -16px, 0) rotate(12deg);
  }
}

@keyframes premiumPulseRing {
  0% {
    opacity: 0.82;
    transform: scale(0.88);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* --------------------------------------------------------------------------
   12. Responsive premium
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .catalog-premium-layout,
  .product-detail-premium,
  .premium-hero-grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .product-gallery-premium {
    position: relative;
    top: auto;
  }

  .premium-visual-stack {
    min-height: 28rem;
  }

  .premium-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products__filter-container {
    position: relative;
    top: auto;
    width: 100%;
    border-radius: var(--border-radius-3xl);
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero::before {
    inset: 0.75rem;
    border-radius: 2rem;
  }

  .hero__content {
    padding: 2rem 1.25rem;
    border-radius: 2rem;
  }

  .premium-section {
    padding: 4rem 1rem;
  }

  .premium-stats-grid,
  .product-segment-grid {
    grid-template-columns: 1fr;
  }

  .premium-visual-stack {
    min-height: 24rem;
  }

  .premium-floating-card--main {
    left: 0;
    width: 82%;
  }

  .premium-floating-card--small {
    width: 62%;
  }

  .product-card:hover {
    transform: translateY(-6px);
  }

  .whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}

/* --------------------------------------------------------------------------
   13. Preferencias de accesibilidad y fallback
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .product-card,
  .feature-card,
  .btn,
  .navbar__logo,
  .whatsapp-btn,
  .catalog-chip,
  .filter-btn,
  .premium-glass,
  .premium-floating-card,
  .blog-card,
  .route-card,
  .contact-intent-button,
  .sidebar-whatsapp-card,
  .cta-card,
  .contact-hero__card,
  .premium-intent-card {
    transform: none !important;
    transition: none !important;
  }

  .js-premium-reveal,
  .js-premium-reveal-up,
  .js-premium-reveal-left,
  .js-premium-reveal-right,
  .js-premium-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  .hero__bg-blob,
  .premium-banner::after {
    transform: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   14. SVG Section Dividers
   -------------------------------------------------------------------------- */

.svg-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.svg-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.svg-divider--small  { height: 50px; }
.svg-divider--medium { height: 80px; }
.svg-divider--large  { height: 100px; }

@media (max-width: 639px) {
  .svg-divider--small  { height: 35px; }
  .svg-divider--medium { height: 55px; }
  .svg-divider--large  { height: 70px; }
}

/* --------------------------------------------------------------------------
   15. Preferencias de accesibilidad y fallback
   -------------------------------------------------------------------------- */

@media (prefers-reduced-transparency: reduce) {
  .premium-glass,
  .hero__content,
  .navbar,
  .products__filter-container,
  .catalog-sidebar,
  .product-info-panel,
  .feature-card,
  .product-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: var(--color-brand-paper) !important;
  }
}

/* --------------------------------------------------------------------------
   10. Componentes Premium Refinados (Lists, Accordions, Intents, Articles)
   -------------------------------------------------------------------------- */

/* Premium List */
.premium-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.premium-list li {
  position: relative;
  padding-left: 2rem;
  color: rgb(52 58 64 / 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.premium-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-primary);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Premium Accordion (FAQ) */
.premium-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.premium-accordion details {
  background: linear-gradient(145deg, rgb(255 255 255 / 0.9), rgb(255 253 249 / 0.7));
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--premium-glass-shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-accordion details:hover {
  box-shadow: 0 12px 30px rgb(52 58 64 / 0.08);
  transform: translateY(-2px);
}

.premium-accordion summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--color-brand-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.premium-accordion summary::-webkit-details-marker {
  display: none;
}

.premium-accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-brand-primary);
  font-weight: 300;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-accordion details[open] summary::after {
  transform: rotate(45deg);
}

.premium-accordion__content {
  padding: 0 1.5rem 1.5rem;
  color: rgb(52 58 64 / 0.75);
  line-height: 1.7;
  font-size: 1.05rem;
  animation: premiumAccordionFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes premiumAccordionFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Intent Grid */
.premium-intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.premium-intent-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.95), rgb(255 253 249 / 0.8));
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--premium-card-shadow);
  color: var(--color-brand-ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.premium-intent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgb(212 163 115 / 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-intent-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--premium-card-shadow-hover);
  color: var(--color-brand-primary);
  border-color: rgb(212 163 115 / 0.3);
}

.premium-intent-card:hover::before {
  opacity: 1;
}

/* Article Content Typography */
.article-content {
  padding: 0 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-brand-ink);
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.4rem;
  color: var(--color-brand-ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  color: rgb(52 58 64 / 0.85);
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  color: rgb(52 58 64 / 0.85);
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--color-brand-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-brand-primary);
  background: linear-gradient(90deg, rgb(212 163 115 / 0.08), transparent);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
}

/* --------------------------------------------------------------------------
   11. Fixes de UI, Menús, Marquee y Responsividad Extrema
   -------------------------------------------------------------------------- */

/* Transiciones Suaves Globales para Interactivos */
.navbar__brand, .menu a, .catalog-filters label, .catalog-filters input, .btn {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fix SVG Dividers Invertidos y mal espaciados */
.svg-divider {
  line-height: 0;
  display: block;
  width: 100%;
}
.svg-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Específicos para arreglar las divisiones */
/* Si un divisor está invertido, se puede rotar usando la clase .svg-rotate */
.svg-rotate svg {
  transform: rotate(180deg);
}

/* Announcement Bar Marquee */
.announcement-bar {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.announcement-bar p, .announcement-bar__text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}
.announcement-bar:hover p, .announcement-bar:hover .announcement-bar__text {
  animation-play-state: paused;
}

/* Botones Faltantes (Ver catálogo, etc) */
a:not(.btn)[href*="catalogo.html"], a:not(.btn)[href*="productos"] {
  /* Si son links sueltos que deberían ser botones */
}

/* Sidebar Sticky en Catálogo */
@media (min-width: 992px) {
  .catalog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* Responsividad Extrema (320px - 576px) */
@media (max-width: 576px) {
  .premium-section {
    padding: 3rem 1rem;
  }
  .hero {
    min-height: 70vh !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
  .product-card {
    margin: 0.5rem;
  }
  .premium-intent-grid {
    grid-template-columns: 1fr;
  }
  .premium-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Simetría en grillas de 4 elementos (Guías y Artículos) */
@media (min-width: 992px) {
  .blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}


/* ---- PREMIUM HOVER UPGRADES ---- */
.btn {
  transition: all var(--premium-duration) var(--premium-ease-soft);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card {
  transition: all var(--premium-duration) var(--premium-ease-spring) !important;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: var(--premium-card-shadow-hover) !important;
}

/* 3. Fix btn--full on product pages so it doesn't get ridiculously large on desktop */
@media (min-width: 992px) {
  .product-detail__info .btn--full {
    max-width: 400px;
    margin-left: 0;
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   FIX RESPONSIVENESS PARA 320px
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  .premium-section, 
  .hero, 
  .navbar__inner,
  .footer__inner {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .premium-title {
    font-size: clamp(1.75rem, 6vw, 2rem) !important;
    line-height: 1.1 !important;
    word-break: break-word;
  }
  
  .premium-lead,
  .hero__desc {
    font-size: 0.95rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .product-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  
  .products__grid,
  .premium-hero-grid,
  .premium-stats-grid,
  .blog-preview-grid,
  .footer__grid {
    gap: 1rem !important;
  }
  
  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* --------------------------------------------------------------------------
   STRICT GRID OVERRIDE FOR SMALL MOBILES (PREVENT HORIZONTAL SCROLL)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .blog-grid,
  .cluster-grid,
  .article-layout,
  .contact-hero,
  .contact-intent-grid,
  .blog-hero,
  .blog-featured,
  .premium-hero-grid,
  .premium-stats-grid,
  .products__grid,
  .blog-preview-grid,
  .footer__grid,
  .catalog-premium-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ==========================================================================
   PREMIUM MOBILE DRAWERS (MOBILE MENU & CATALOG FILTER)
   ========================================================================== */
@media (max-width: 900px) {
  /* Catalog Sidebar override from inline styles */
  .catalog-sidebar {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 85vw !important;
    max-width: 360px !important;
    z-index: 1000 !important;
    border-radius: 0 1.5rem 1.5rem 0 !important;
    background: rgba(255, 253, 249, 0.9) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 20px 0 60px rgba(52, 58, 64, 0.15) !important;
    overflow-y: auto !important;
    padding: 5rem 1.5rem 2rem 1.5rem !important;
    
    /* Smooth Transition Setup */
    visibility: hidden !important;
    transform: translateX(-100%) !important;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), 
                visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.7s ease !important;
  }

  .catalog-sidebar.is-open {
    visibility: visible !important;
    transform: translateX(0) !important;
    box-shadow: 30px 0 80px rgba(52, 58, 64, 0.25) !important;
  }
}

/* Mobile Menu Global Upgrade */
.mobile-menu {
  background: rgba(255, 253, 249, 0.85) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 0 1.5rem 1.5rem 0 !important;
  
  /* Extremely smooth slide */
  visibility: hidden;
  transform: translateX(-100%) !important;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.7s ease !important;
  box-shadow: none !important;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: translateX(0) !important;
  box-shadow: 30px 0 80px rgba(52, 58, 64, 0.25) !important;
}

/* Menu links entrance animation */
.mobile-menu a {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger links delay */
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 0.35s; }

/* Overlay animation upgrade */
.mobile-menu__overlay,
.catalog-sidebar-overlay {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.mobile-menu__overlay.is-active,
.catalog-sidebar-overlay.is-open {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Close button upgrade */
.mobile-menu__close,
.catalog-sidebar__close {
  background: rgba(255, 253, 249, 0.8) !important;
  border: 1px solid rgba(212, 163, 115, 0.3) !important;
  border-radius: 50% !important;
  padding: 0.5rem !important;
  color: var(--color-brand-ink) !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease !important;
}

.mobile-menu__close:hover,
.catalog-sidebar__close:hover {
  transform: scale(1.1) rotate(90deg) !important;
  background: #fff !important;
}

/* ==========================================================================
   USER REQUEST OVERRIDES (HERO, STICKY HEADER, FILTERS, PREMIUM NAV)
   ========================================================================== */

/* 1. Global Sticky Fixes */
html, body {
  /* Prevent overflow: hidden from killing position: sticky */
  overflow-x: clip !important; 
}
.app-container {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* 2. Header Sticky Always */
.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* 3. Premium Navbar Links (Desktop) */
@media (min-width: 901px) {
  .navbar__nav a {
    position: relative !important;
    padding: 0.5rem 0.25rem !important;
    margin: 0 0.5rem !important;
    transition: color 0.4s ease !important;
    overflow: hidden;
  }
  .navbar__nav a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--color-brand-primary) !important;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .navbar__nav a:hover::after {
    width: 100% !important;
  }
}

/* 4. Desktop Sticky Sidebar */
@media (min-width: 901px) {
  .catalog-sidebar {
    position: sticky !important;
    top: 6rem !important;
    height: calc(100vh - 7rem) !important;
    overflow-y: auto !important;
    align-self: start !important;
  }
}

/* 5. Mobile Overrides */
@media (max-width: 900px) {
  /* Restore Hero Images */
  .hero__visual,
  .premium-visual-stack {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 350px !important;
    margin-top: 2rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .premium-floating-card {
    display: block !important;
  }

  /* Floating Filter Button */
  .mobile-filter-toggle {
    display: block !important;
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 9998 !important;
    margin: 0 !important;
  }
  
  .mobile-filter-toggle button {
    background: var(--color-brand-primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(212, 163, 115, 0.5) !important;
    border-radius: 50px !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
  
  .mobile-filter-toggle button:active {
    transform: scale(0.95) !important;
  }

  /* Single Column Filter List in Mobile Sidebar */
  .catalog-sidebar .catalog-chip-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
  
  .catalog-sidebar .catalog-chip {
    text-align: left !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
  }
}

/* Fix Grid Toggle Icons Adaptability */
.grid-toggle-bar .btn--icon-only {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}
.grid-toggle-bar .btn--icon-only svg {
    width: 16px !important;
    height: 16px !important;
}
/* Ensure the toggle bar itself looks neat */
.grid-toggle-bar {
    padding: 0.5rem 0.75rem !important;
}
/* Hide any residual prices that might have been missed by regex */
.product-card__pricing,
.product-summary__price-box {
    display: none !important;
}

/* ==========================================================================
   USER REQUEST: LARGER MOBILE HERO PHOTOS
   ========================================================================== */
@media (max-width: 900px) {
  .premium-visual-stack {
    height: 480px !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
  }
  
  .premium-floating-card--main {
    width: 92% !important;
    left: 0 !important;
    top: 0 !important;
    padding: 0.75rem !important; /* Slightly less padding to maximize image size */
  }
  
  .premium-floating-card--small {
    width: 70% !important;
    right: -5% !important;
    bottom: 5% !important;
    padding: 0.5rem !important;
  }
}

/* ==========================================================================
   USER REQUEST: MOBILE MENU Z-INDEX & SVG SCALING
   ========================================================================== */
.mobile-menu-overlay,
.mobile-menu-drawer,
.js-mobile-overlay,
.js-mobile-menu {
  z-index: 10001 !important; /* Above the 9999 sticky header */
}

/* Ensure SVG dividers scale nicely */
.svg-divider svg {
  display: block !important;
  width: 100% !important;
}
@media (min-width: 901px) {
  .svg-divider--large svg {
    height: 120px !important;
  }
}
@media (max-width: 900px) {
  .svg-divider--large svg {
    height: 60px !important;
  }
}

/* ==========================================================================
   USER REQUEST: FIX FOOTER LOGO AND SIZING
   ========================================================================== */
.footer__logo {
  filter: none !important; /* Remove the white inversion */
  width: 4.5rem !important;
  height: 4.5rem !important;
  border-radius: 8px !important; /* Soft corners if it's a square image */
  object-fit: cover !important;
}
.footer__brand-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* ==========================================================================
   USER REQUEST: FILTER BUTTON POSITION & PREMIUM TEXT BLOCKS
   ========================================================================== */

/* 1. Mobile filter toggle to bottom-left & smaller */
@media (max-width: 900px) {
  .mobile-filter-toggle {
    left: 1.5rem !important;
    right: auto !important; /* disable right placement */
  }
  .mobile-filter-toggle button {
    padding: 0.6rem 1.1rem !important; /* Smaller padding */
    font-size: 0.85rem !important; /* Smaller text */
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  .mobile-filter-toggle button svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* 2. Premium scannability for Product Descriptions */
.product-info-block {
  margin-top: 2rem !important;
  padding: 2.25rem !important;
  background: linear-gradient(145deg, #FFFDF9 0%, #FAEDCD 200%) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 8px 30px rgba(212, 163, 115, 0.12) !important;
  border: 1px solid rgba(212, 163, 115, 0.25) !important;
}

.product-info-block h2 {
  font-family: var(--font-serif) !important;
  font-size: 1.6rem !important;
  color: var(--color-brand-ink) !important;
  margin-bottom: 1.25rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
  border-bottom: 2px solid var(--color-brand-primary) !important;
  padding-bottom: 0.25rem !important;
}

.product-info-block p {
  font-size: 1.1rem !important;
  line-height: 1.85 !important;
  color: #333 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.3px !important;
  font-weight: 400 !important;
}

/* Make bold text pop gently to guide the eye */
.product-info-block strong,
.product-info-block b {
  color: var(--color-brand-primary-dark, #b57d4a) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   USER REQUEST: S8/S9 ALIGNMENT AND PRODUCT PADDING
   ========================================================================== */
@media (max-width: 400px) {
  .app-container, main {
    /* reverted edge padding so backgrounds span full width */
    overflow-x: clip !important;
  }
  
  /* Ensure grids don't overflow */
  .catalog-grid, .product-benefits__grid, .blog-grid {
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Product page cards edge fix */
  .product-layout, .related-products {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .blog-card, .benefit-card, .product-info-block {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   DESKTOP GRID RESTORATION
   ========================================================================== */
@media (min-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (min-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}


/* Fix for SVG gap */
.svg-divider {
  margin-bottom: -2px !important;
}
.svg-divider svg {
  margin-bottom: -2px !important;
  height: auto !important;
  transform: translateY(2px);
  display: block !important;
}
