/* =========================================================
   MEXA CAPS - PRODUCTION OVERRIDES (FINAL)
   Scope: responsive, accessibility, performance and polish.
========================================================= */

:root {
  --mx-base-font: clamp(15px, 1.12vw, 17px);
  --mx-header-height: 82px;
  --mx-content-width: 1280px;
  --mx-space-1: 0.5rem;
  --mx-space-2: 0.75rem;
  --mx-space-3: 1rem;
  --mx-space-4: 1.25rem;
  --mx-space-5: 1.5rem;
  --mx-space-6: 2rem;
  --mx-radius-md: 14px;
  --mx-radius-lg: 20px;
  --mx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  font-size: var(--mx-base-font);
  overflow-x: clip;
  scroll-padding-top: calc(var(--mx-header-height) + 10px);
  scrollbar-gutter: stable both-edges;
}

body {
  min-height: 100dvh;
  overflow-x: clip;
  padding-top: calc(var(--mx-header-height) + 8px);
  padding-top: calc(var(--mx-header-height) + env(safe-area-inset-top) + 8px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
picture,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea,
button {
  font: inherit;
}

main {
  width: min(var(--mx-content-width), calc(100% - clamp(1rem, 4vw, 3rem)));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: var(--mx-space-3);
  top: var(--mx-space-3);
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--mx-space-3);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.top-header {
  min-height: var(--mx-header-height);
  gap: var(--mx-space-3);
  padding-top: max(var(--mx-space-3), calc(env(safe-area-inset-top) + 0.42rem));
}

.admin-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (min-width: 1024px) {
  .home-page .top-header--executive .user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
  }

  .home-page .top-header--executive .search.search--pro.search--icon-toggle {
    flex: 0 0 auto;
    max-width: 46px;
  }

  .home-page .top-header--executive .search.search--pro.search--icon-toggle.is-expanded {
    flex: 1 1 min(380px, 34vw);
    max-width: min(380px, 34vw);
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    padding: 0 2px 0 0;
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart input {
    min-height: 42px;
    padding: 0 0.75rem;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 600;
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart input::placeholder {
    color: #64748b;
  }

  .home-page .top-header--executive .search.search--pro .search-submit {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
  }

  .home-page .top-header--executive .search.search--pro .search-submit::after {
    display: none;
  }

  .home-page .top-header--executive .search.search--pro .search-glyph {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }

  .home-page .top-header--executive .search.search--pro .search-glyph svg,
  .home-page .top-header--executive .search.search--pro .search-glyph svg * {
    width: 20px;
    height: 20px;
    stroke: currentColor !important;
    stroke-width: 2.15 !important;
    fill: none !important;
    filter: none;
  }

  .home-page .top-header--executive .search.search--pro .search-submit:hover .search-glyph,
  .home-page .top-header--executive .search.search--pro .search-submit:focus-visible .search-glyph {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .home-page .top-header--executive .search.search--pro.search--icon-toggle.is-collapsed .search-control.search-control--smart {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    justify-content: center;
  }

  .home-page .top-header--executive .search.search--pro.search--icon-toggle.is-collapsed .search-submit {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .home-page .top-header--executive .cart-btn,
  .home-page .top-header--executive .user-info,
  .home-page .top-header--executive .user-account-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    text-decoration: none;
    overflow: visible;
    transition:
      transform 0.2s var(--mx-ease),
      box-shadow 0.2s var(--mx-ease),
      border-color 0.2s ease,
      background-color 0.2s ease;
  }

  .home-page .top-header--executive .cart-btn:hover,
  .home-page .top-header--executive .user-info:hover,
  .home-page .top-header--executive .user-account-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 107, 82, 0.45);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
  }

  .home-page .top-header--executive .cart-btn:active,
  .home-page .top-header--executive .user-info:active,
  .home-page .top-header--executive .user-account-btn:active {
    transform: translateY(0);
  }

  .home-page .top-header--executive .cart-btn--fav {
    order: 1;
  }

  .home-page .top-header--executive .user-info,
  .home-page .top-header--executive .user-account-btn {
    order: 2;
  }

  .home-page .top-header--executive .cart-btn--cart {
    order: 3;
  }

  .home-page .top-header--executive .cart-icon {
    display: grid;
    place-items: center;
    gap: 0;
  }

  .home-page .top-header--executive .cart-glyph {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: currentColor;
  }

  .home-page .top-header--executive .cart-glyph svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }

  .home-page .top-header--executive .cart-label,
  .home-page .top-header--executive .user-name {
    display: none;
  }

  .home-page .top-header--executive .cart-badge {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    box-shadow: 0 0 0 2px #ffffff;
  }

  .home-page .top-header--executive .user-info::before,
  .home-page .top-header--executive .user-info::after {
    display: none;
  }

  .home-page .top-header--executive .user-info .avatar,
  .home-page .top-header--executive .user-info .avatar-letter {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    margin: 0;
  }

  .home-page .top-header--executive .user-info .avatar-letter {
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #0f172a;
  }

  .home-page .top-header--executive .user-account-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .home-page .top-header--executive .user-info .dropdown {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
  }
}

.btn,
.btn-login,
.btn-checkout,
.btn-back,
.hero-btn,
.mobile-nav-close,
.cart-btn-action,
.search-submit,
.mobile-menu-toggle {
  min-height: 44px;
}

.btn,
.btn-login,
.btn-checkout,
.btn-back,
.hero-btn,
.btn-secondary,
.btn-google {
  transition:
    transform 0.24s var(--mx-ease),
    box-shadow 0.24s var(--mx-ease),
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.btn:focus-visible,
.btn-login:focus-visible,
.btn-checkout:focus-visible,
.btn-back:focus-visible,
.hero-btn:focus-visible,
.search-submit:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-nav-close:focus-visible,
.cart-btn-action:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(31, 107, 82, 0.5);
  outline-offset: 2px;
}

.home-page .home-hero,
.cart-page .cart-intro,
.favorites-page .favorites-head,
.product-page .product-image,
.product-page .product-info,
.auth-v2 .auth-panel {
  border-radius: var(--mx-radius-lg);
}

.product-image-wrap,
.favorite-image,
.cart-img,
.product-main-media {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.product-image-wrap img,
.favorite-image img,
.product-page .related .product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.home-page .hero-btn,
.cart-page .btn-checkout,
.auth-v2 .btn-login,
.auth-v2 .btn-google {
  min-height: 48px;
}

.home-page .mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.home-page .mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.28s var(--mx-ease), opacity 0.2s ease;
}

.home-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.home-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.home-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-backdrop {
  background: rgba(2, 6, 15, 0.58);
  backdrop-filter: blur(4px);
}

.mobile-nav-drawer {
  width: min(88vw, 360px);
  max-width: 360px;
  padding: 1rem;
}

.mobile-nav-links a,
.mobile-nav-actions .btn {
  min-height: 44px;
}

.mobile-nav-links .mobile-nav-link--filters {
  border-color: rgba(74, 168, 117, 0.62);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(14, 116, 144, 0.2));
  color: #ecfff5;
}

.mobile-nav-links .mobile-nav-link--filters:hover {
  border-color: rgba(134, 239, 172, 0.88);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(14, 116, 144, 0.28));
}

body.is-mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

.home-page .section-title,
.home-page .hero-content h2,
.cart-page .cart-intro h2,
.favorites-page .favorites-head h2,
.product-page .product-info h2,
.auth-v2 h2 {
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.home-page .section-note,
.home-page .hero-subtitle,
.home-page .hero-note,
.cart-page .summary-note,
.favorites-page .favorites-head p,
.product-page .product-info p {
  line-height: 1.62;
}

.reveal,
.pro-reveal {
  will-change: opacity, transform;
}

@media (min-width: 320px) {
  .home-page .hero-actions,
  .home-page .section-head-actions,
  .product-page .product-actions,
  .favorite-actions {
    gap: var(--mx-space-2);
  }

  .home-page .hero-btn {
    width: 100%;
  }

  .home-page .productos,
  .favorites-page .favorites-grid,
  .product-page .related .productos {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mx-space-3);
  }
}

@media (min-width: 480px) {
  .home-page .hero-btn {
    width: auto;
    min-width: 210px;
  }

  .home-page .productos,
  .favorites-page .favorites-grid,
  .product-page .related .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .home-page .productos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .favorites-page .favorites-grid,
  .product-page .related .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-page .cart-layout-pro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--mx-space-4);
  }
}

@media (min-width: 1024px) {
  .home-page .productos,
  .product-page .related .productos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .favorites-page .favorites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-page .cart-layout-pro {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

  .cart-page .cart-summary-pro {
    position: sticky;
    top: calc(var(--mx-header-height) + 16px);
  }
}

@media (min-width: 1440px) {
  :root {
    --mx-content-width: 1380px;
  }

  .home-page .home-hero {
    min-height: 640px;
  }

  .favorites-page .favorites-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .home-page .mobile-menu-toggle {
    display: inline-flex;
  }

  .home-page .home-nav {
    display: none;
  }

  .home-page .search {
    flex: 1 1 auto;
    max-width: none;
  }

  .home-page .user-info > span {
    display: none;
  }
}

@media (max-width: 920px) {
  .home-page .top-header--home {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .home-page .search {
    order: 3;
    flex: 1 1 100%;
  }

  .home-page .user-menu {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .product-page .header-right,
  .favorites-page .header-right,
  .cart-page .header-right {
    gap: 0.45rem;
  }

  .product-page .btn-back,
  .favorites-page .btn-back,
  .cart-page .btn-back {
    padding-inline: 0.85rem;
    min-height: 44px;
  }

  .home-page .cart-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .home-page .brand-group {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .home-page .product-media,
  .home-page .product-image-wrap,
  .home-page .product-card-image {
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .home-page .product-card-image {
    width: 100%;
    min-height: 160px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

@media (max-width: 920px) {
  .home-page .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .home-page .home-hero[data-hero] .hero-slide:first-child {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .home-page .home-hero[data-hero] .hero-visual img {
    visibility: visible;
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  body.is-motion-enhanced .product-card:hover,
  body.is-motion-enhanced .favorite-card:hover,
  body.is-motion-enhanced .cart-item-pro:hover,
  body.is-motion-enhanced .hero-btn:hover,
  .btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .pro-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================= HOME SALES PREMIUM POLISH ================= */

.home-page .home-sales-modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-block: clamp(1rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.6vw, 2rem);
}

.home-page .home-sales-block {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 1.9vw, 24px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 251, 255, 0.965));
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: clamp(0.92rem, 1.7vw, 1.4rem);
}

.home-page .home-sales-block::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 107, 82, 0.42), rgba(31, 107, 82, 0));
  pointer-events: none;
}

.home-page .home-sales-block .section-head {
  align-items: end;
  gap: 0.64rem;
  margin-bottom: clamp(0.75rem, 1.3vw, 1.04rem);
}

.home-page .home-sales-block .section-title {
  margin: 0.18rem 0 0;
  font-size: clamp(1.72rem, 3.3vw, 2.82rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.home-page .home-sales-block .section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 44px;
  padding-inline: 0.98rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 107, 82, 0.25);
  background: rgba(31, 107, 82, 0.06);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.24s var(--mx-ease),
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.home-page .home-sales-block .section-link::after {
  content: "->";
  font-size: 0.88em;
}

.home-page .home-sales-block .section-link:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 107, 82, 0.36);
  background: rgba(31, 107, 82, 0.12);
  text-decoration: none;
}

.home-page .home-sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.68rem, 1.35vw, 0.9rem);
}

.home-page .home-sales-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.26s var(--mx-ease),
    border-color 0.26s ease,
    box-shadow 0.26s var(--mx-ease);
}

.home-page .home-sales-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 107, 82, 0.36);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.home-page .home-sales-card > img {
  width: 100%;
  display: block;
  height: clamp(148px, 17vw, 208px);
  object-fit: contain;
  object-position: center center;
  padding: clamp(0.36rem, 0.85vw, 0.62rem);
  background: radial-gradient(circle at 50% 26%, #f8fbff 0%, #edf3fb 62%, #e5ecf7 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  filter: saturate(1.03) contrast(1.02);
  transition: transform 0.28s var(--mx-ease), filter 0.28s ease;
}

.home-page .home-sales-card:hover > img,
.home-page .home-sales-card:focus-visible > img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}

.home-page .home-sales-card-body {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 0.78rem 0.84rem 0.9rem;
}

.home-page .home-sales-card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.03rem, 1.08vw, 1.18rem);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .home-sales-card-body p {
  margin: 0;
  color: #14532d;
  font-size: clamp(1.12rem, 1.2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.home-page .home-sales-card-body small {
  color: #5b708c;
  font-size: 0.93rem;
  line-height: 1.35;
}

.home-page .home-sales-card--new {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.home-page .home-sales-card--new .home-sales-card-body small {
  color: #436081;
}

.home-page .home-sales-empty {
  margin: 0;
  padding: 0.92rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #5a6f8a;
  font-size: 0.95rem;
}

@media (min-width: 480px) {
  .home-page .home-sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .home-page .home-sales-block .section-title {
    max-width: 12ch;
  }
}

@media (min-width: 1024px) {
  .home-page .home-sales-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .home-page .home-sales-block {
    padding: clamp(1.2rem, 1.4vw, 1.55rem);
  }

  .home-page .home-sales-card-body {
    padding: 0.84rem 0.92rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .home-page .home-sales-block .section-head {
    align-items: start;
  }
}

@media (max-width: 479.98px) {
  .home-page .home-sales-block {
    padding: 0.88rem;
  }

  .home-page .home-sales-block .section-title {
    font-size: clamp(1.56rem, 9vw, 2rem);
  }

  .home-page .home-sales-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-sales-card > img {
    height: 168px;
  }
}

/* ================= MOBILE PRO REWORK ================= */
@media (max-width: 920px) {
  :root {
    --mx-header-height: 96px;
  }

  body {
    padding-top: calc(var(--mx-header-height) + 8px);
  }

  main {
    width: min(100%, calc(100% - 1rem));
  }

  .home-page .top-header--executive {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    column-gap: 0.58rem;
    row-gap: 0.62rem;
    padding: 0.7rem 0.65rem 0.72rem;
    border-bottom: 1px solid rgba(190, 225, 208, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(2, 10, 20, 0.34);
  }

  .home-page .top-header--executive .logo-area {
    min-width: 0;
  }

  .home-page .top-header--executive .brand-link {
    gap: 0.46rem;
  }

  .home-page .top-header--executive .brand-link img {
    width: 34px;
    height: 34px;
  }

  .home-page .top-header--executive .brand-copy h1 {
    font-size: 1.06rem;
    letter-spacing: -0.01em;
  }

  .home-page .top-header--executive .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .home-page .top-header--executive .user-menu {
    margin-left: 0;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.42rem;
  }

  .home-page .top-header--executive .user-account-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(186, 214, 199, 0.45);
    background: linear-gradient(180deg, #f5fff9 0%, #eafaf1 100%);
    color: #0f5132;
    text-decoration: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 10px 18px rgba(5, 20, 16, 0.2);
    transition:
      transform 0.22s var(--mx-ease),
      box-shadow 0.22s var(--mx-ease),
      border-color 0.22s ease,
      background-color 0.22s ease;
  }

  .home-page .top-header--executive .user-account-btn:hover,
  .home-page .top-header--executive .user-account-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(22, 101, 52, 0.44);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 14px 22px rgba(5, 20, 16, 0.28);
  }

  .home-page .top-header--executive .user-account-btn svg,
  .home-page .top-header--executive .user-account-btn svg * {
    width: 18px;
    height: 18px;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2.1 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .home-page .top-header--executive .search.search--pro {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    order: 0;
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart {
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(199, 222, 210, 0.36);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 22px rgba(2, 12, 24, 0.24);
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart input {
    min-height: 48px;
    padding-inline: 0.92rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 650;
  }

  .home-page .top-header--executive .search.search--pro .search-submit {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 2px;
    border-radius: 999px;
  }

  .home-page .home-hero[data-hero] {
    min-height: 330px;
    margin-top: 0.45rem;
    border-radius: 18px;
    box-shadow: 0 20px 36px rgba(5, 10, 18, 0.3);
    overflow: hidden;
  }

  .home-page .home-hero[data-hero]::before {
    display: none;
  }

  .home-page .home-hero[data-hero] .hero-stage {
    inset: 0;
    border-radius: 18px;
  }

  .home-page .home-hero[data-hero] .hero-slide {
    transform: none;
    transition: opacity 0.34s ease;
  }

  .home-page .home-hero[data-hero] .hero-slide-media {
    inset: 0;
    display: block;
  }

  .home-page .home-hero[data-hero] .hero-visual--detail,
  .home-page .home-hero[data-hero] .hero-slide-copy {
    display: none !important;
  }

  .home-page .home-hero[data-hero] .hero-visual,
  .home-page .home-hero[data-hero] .hero-visual--main {
    height: 100%;
    border-radius: 0;
  }

  .home-page .home-hero[data-hero] .hero-slide::before {
    background: linear-gradient(0deg, rgba(5, 10, 16, 0.84) 0%, rgba(5, 10, 16, 0.26) 52%, rgba(5, 10, 16, 0.08) 100%);
  }

  .home-page .home-hero[data-hero] .hero-content {
    width: 100%;
    justify-content: flex-end;
    padding: 0.9rem 0.9rem 3.3rem;
    background: linear-gradient(0deg, rgba(8, 12, 20, 0.76) 0%, rgba(8, 12, 20, 0.34) 50%, rgba(8, 12, 20, 0) 100%);
  }

  .home-page .home-hero[data-hero] .hero-kicker {
    margin-bottom: 0.44rem;
    padding: 0.28rem 0.52rem;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .home-page .home-hero[data-hero] .hero-content h2 {
    max-width: 13ch;
    font-size: clamp(1.62rem, 8.1vw, 2.36rem);
    line-height: 1;
  }

  .home-page .home-hero[data-hero] .hero-subtitle {
    margin-top: 0.42rem;
    font-size: 0.8rem;
    line-height: 1.35;
    max-width: 34ch;
  }

  .home-page .home-hero[data-hero] .hero-note,
  .home-page .home-hero[data-hero] .hero-metrics,
  .home-page .home-hero[data-hero] .hero-control {
    display: none !important;
  }

  .home-page .home-hero[data-hero] .hero-actions {
    margin-top: 0.5rem;
    gap: 0.45rem;
  }

  .home-page .home-hero[data-hero] .hero-btn {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .home-page .home-hero[data-hero] .hero-btn:first-child {
    display: none;
  }

  .home-page .home-hero[data-hero] .hero-pagination {
    bottom: 0.45rem;
    padding: 0.24rem 0.46rem;
  }

  .home-page .home-hero[data-hero] .hero-dot {
    width: 7px;
    height: 7px;
  }

  .home-page .home-hero[data-hero] .hero-dot.is-active {
    width: 20px;
  }

  .home-page .catalog-toolbar--pro,
  .home-page .home-sales-block,
  .home-page .home-team-collections,
  .home-page .home-testimonials,
  .home-page .home-cta-band,
  .home-page .benefits {
    padding: 0.86rem;
    border-radius: 16px;
  }

  .home-page .home-brand-groups {
    gap: 1rem;
  }

  .home-page .brand-group {
    gap: 0.7rem;
  }

  .home-page .brand-group-head {
    align-items: end;
    gap: 0.6rem;
  }

  .home-page .brand-group-link,
  .home-page .brand-group-head h3 {
    font-size: 1.13rem;
  }

  .home-page .brand-group-count {
    font-size: 0.62rem;
    padding: 0.26rem 0.52rem;
  }

  .home-page .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.66rem;
  }

  .home-page .product-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 24px rgba(8, 15, 30, 0.09);
    overflow: hidden;
  }

  .home-page .product-media {
    background: linear-gradient(180deg, #f9fcff 0%, #eef4fb 100%);
  }

  .home-page .product-image-wrap {
    display: block;
    aspect-ratio: 1 / 1;
  }

  .home-page .product-card-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    padding: 0.48rem;
  }

  .home-page .product-body {
    padding: 0.62rem 0.58rem 0.66rem;
    gap: 0.26rem;
  }

  .home-page .product-body h3 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .home-page .product-body p {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.01em;
  }

  .home-page .product-body small {
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .home-page .product-body p + small {
    display: none;
  }

  .home-page .product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.34rem;
    margin-top: 0.18rem;
  }

  .home-page .product-actions .btn,
  .home-page .product-actions .btn-secondary,
  .home-page .product-actions .btn-add {
    width: 100%;
    min-height: 36px;
    padding: 0 0.42rem;
    font-size: 0.74rem;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .home-sales-block .section-title {
    font-size: clamp(1.34rem, 7.6vw, 2rem);
    line-height: 1.06;
  }

  .home-page .home-sales-card-body small {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .brand-footer {
    margin-top: 1.15rem;
  }

  .brand-footer-inner {
    width: min(100%, calc(100% - 1rem));
    padding: 1.1rem 0 0.95rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .brand-footer-col--brand {
    grid-column: auto;
  }

  .brand-footer-col h3 {
    font-size: 0.8rem;
  }

  .brand-footer-col p,
  .brand-footer-col a {
    font-size: 0.86rem;
  }

  .brand-footer-bottom {
    width: min(100%, calc(100% - 1rem));
    padding: 0.72rem 0 1rem;
  }
}

@media (max-width: 620px) {
  .home-page .top-header--executive .cart-btn,
  .home-page .top-header--executive .user-info,
  .home-page .top-header--executive .user-account-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .home-page .top-header--executive .user-account-btn svg,
  .home-page .top-header--executive .user-account-btn svg * {
    width: 17px;
    height: 17px;
    stroke-width: 2.05 !important;
  }

  .home-page .top-header--executive .cart-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 4px;
  }

  .home-page .top-header--executive .search.search--pro .search-control.search-control--smart input {
    font-size: 1rem;
  }

  .home-page .product-actions .btn,
  .home-page .product-actions .btn-secondary,
  .home-page .product-actions .btn-add {
    min-height: 38px;
  }
}

@media (max-width: 360px) {
  .home-page .productos {
    grid-template-columns: 1fr;
  }
}

/* ================= CART + PRODUCT MOBILE FLOW ================= */
@media (max-width: 920px) {
  .cart-page {
    padding-bottom: 112px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .cart-page .cart-main {
    width: min(100%, calc(100% - 1rem));
    margin: 0.75rem auto 1.1rem;
  }

  .cart-page .cart-intro {
    align-items: flex-start;
    border-radius: 16px;
    padding: 0.95rem;
    gap: 0.72rem;
  }

  .cart-page .cart-intro h2 {
    margin-top: 0.42rem;
    font-size: clamp(1.36rem, 7.2vw, 2rem);
    line-height: 1.06;
  }

  .cart-page .cart-intro p {
    margin-top: 0.44rem;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .cart-page .cart-intro-badges {
    gap: 0.36rem;
  }

  .cart-page .cart-chip {
    font-size: 0.64rem;
    padding: 0.3rem 0.56rem;
  }

  .cart-page .cart-steps {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.45rem;
    padding-bottom: 0.14rem;
  }

  .cart-page .cart-layout-pro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.74rem;
    margin-top: 0.75rem;
  }

  .cart-page .cart-summary-pro {
    order: -1;
    position: static;
    top: auto;
    border-radius: 16px;
    padding: 0.92rem;
  }

  .cart-page .summary-head h3 {
    font-size: 1.24rem;
  }

  .cart-page .checkout-form {
    gap: 0.62rem;
  }

  .cart-page .checkout-field input,
  .cart-page .checkout-field textarea {
    min-height: 42px;
    font-size: 0.92rem;
  }

  .cart-page .checkout-field textarea {
    min-height: 84px;
  }

  .cart-page .cart-item-pro {
    grid-template-columns: 92px 1fr;
    gap: 0.65rem;
    align-items: start;
    border-radius: 15px;
    padding: 0.68rem;
  }

  .cart-page .cart-img picture,
  .cart-page .cart-img img {
    width: 92px;
    height: 92px;
    display: block;
  }

  .cart-page .cart-info h3 {
    font-size: 0.95rem;
    line-height: 1.24;
  }

  .cart-page .cart-info small {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .cart-page .cart-line-note {
    margin-top: 0.28rem;
    font-size: 0.75rem;
  }

  .cart-page .qty-box-pro {
    margin-top: 0.5rem;
    gap: 0.4rem;
    padding: 0.18rem 0.32rem;
  }

  .cart-page .cart-btn-action {
    min-width: 30px;
    height: 30px;
  }

  .cart-page .cart-item-side {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
    text-align: left;
    margin-top: 0.38rem;
    padding-top: 0.42rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
  }

  .cart-page .cart-item-total {
    font-size: 1.04rem;
  }

  .cart-page .cart-item-side-note {
    display: none;
  }

  .cart-page .btn-delete {
    margin-top: 0;
    width: auto;
    min-width: 92px;
    min-height: 34px;
    font-size: 0.76rem;
  }

  .cart-page .cart-sticky-checkout {
    display: flex;
    left: 10px;
    right: 10px;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: 14px;
    padding: 0.56rem;
    padding-bottom: calc(0.56rem + env(safe-area-inset-bottom));
    gap: 0.5rem;
  }

  .cart-page .cart-sticky-checkout-info strong {
    font-size: 0.92rem;
  }

  .cart-page .cart-sticky-checkout-info small {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .cart-page .cart-sticky-shipping-note {
    color: #15803d;
    font-weight: 800;
  }

  .cart-page .cart-sticky-checkout .btn-checkout {
    min-height: 40px;
    padding: 0 0.72rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .product-page {
    padding-bottom: 106px;
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .product-page main {
    width: min(100%, calc(100% - 1rem));
  }

  .product-page .product-container {
    width: 100%;
    margin: 0.75rem auto 1rem;
    grid-template-columns: 1fr;
    gap: 0.74rem;
  }

  .product-page .product-image,
  .product-page .product-info {
    border-radius: 16px;
  }

  .product-page .product-info {
    padding: 0.9rem;
  }

  .product-page .product-info h2 {
    font-size: clamp(1.34rem, 6.6vw, 2rem);
    line-height: 1.08;
  }

  .product-page .product-info h3 {
    margin-top: 0.45rem;
    font-size: 1.56rem;
  }

  .product-page .product-info p {
    margin-top: 0.58rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .product-page .product-thumb-btn {
    width: 60px;
    height: 60px;
  }

  .product-page #productAddToCartForm > .product-add-submit {
    display: none;
  }

  .product-page .product-pay-strip,
  .product-page .product-support-strip {
    margin-top: 0.72rem;
  }

  .product-page .related {
    width: 100%;
    margin: 0 auto 0.8rem;
  }

  .product-page .related h2 {
    font-size: 1.34rem;
    margin-bottom: 0.58rem;
  }

  .product-page .related .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .product-page .related .product-body {
    padding: 0.58rem;
  }

  .product-page .related .product-body h3 {
    font-size: 0.86rem;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .product-page .related .product-body p {
    font-size: 0.95rem;
  }

  .product-page .related .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .product-page .related .product-actions .btn,
  .product-page .related .product-actions .btn-add {
    min-height: 38px;
    padding-inline: 0.5rem;
    font-size: 0.74rem;
  }

  .product-page .product-sticky-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1090;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px rgba(2, 12, 22, 0.24);
    padding: 0.56rem;
    padding-bottom: calc(0.56rem + env(safe-area-inset-bottom));
  }

  .cart-page .checkout-field input,
  .cart-page .checkout-field textarea,
  .auth-v2 input,
  .auth-v2 textarea,
  .auth-v2 select {
    font-size: 16px;
  }

  .product-page .product-sticky-cta-info {
    display: grid;
    gap: 0.1rem;
  }

  .product-page .product-sticky-cta-info strong {
    font-size: 0.92rem;
    color: #0f172a;
    line-height: 1.18;
  }

  .product-page .product-sticky-cta-info small {
    font-size: 0.68rem;
    color: #475467;
    line-height: 1.2;
  }

  .product-page .product-sticky-cta .btn {
    width: auto;
    margin: 0;
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.78rem;
    padding: 0 0.62rem;
    white-space: nowrap;
  }

  .product-page .product-sticky-cta-btn.is-loading {
    opacity: 0.78;
    pointer-events: none;
  }

  .product-page .product-sticky-cart-link {
    min-width: 86px;
  }
}

@media (max-width: 420px) {
  .product-page .product-sticky-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "info info"
      "add cart";
  }

  .product-page .product-sticky-cta-info {
    grid-area: info;
  }

  .product-page .product-sticky-cta-btn {
    grid-area: add;
  }

  .product-page .product-sticky-cart-link {
    grid-area: cart;
  }
}

@media (max-width: 360px) {
  .product-page .related .productos {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 921px) {
  .product-page .product-sticky-cta {
    display: none !important;
  }
}

/* Mobile-first improvements for catalog filters */
.home-page .catalog-toolbar--pro .catalog-mobile-toggle,
.home-page .catalog-toolbar--pro .catalog-mobile-summary {
  display: none;
}

.home-page .catalog-toolbar--pro .catalog-mobile-panel {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 780px) {
  .home-page .catalog-toolbar--pro .catalog-toolbar-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .home-page .catalog-toolbar--pro .catalog-toolbar-head > div {
    min-width: 0;
  }

  .home-page .catalog-toolbar--pro .catalog-toolbar-note {
    margin-top: 0.15rem;
  }

  .home-page .catalog-toolbar--pro .catalog-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid #b8c8da;
    border-radius: 999px;
    background: #f8fbff;
    color: #0f172a;
    padding: 0.46rem 0.78rem;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  }

  .home-page .catalog-toolbar--pro .catalog-mobile-toggle strong {
    min-width: 1.42rem;
    height: 1.42rem;
    border-radius: 999px;
    background: #1f6b52;
    color: #f8fafc;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 0.2rem;
  }

  .home-page .catalog-toolbar--pro .catalog-mobile-summary {
    display: flex;
    align-items: center;
    min-height: 2.15rem;
    border: 1px dashed #cdd8e6;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.5rem 0.65rem;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .home-page .catalog-toolbar--pro .catalog-mobile-summary strong {
    font-weight: 700;
  }

  .home-page .catalog-toolbar--pro .catalog-mobile-panel {
    display: none;
    gap: 0.7rem;
    margin-top: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e6edf7;
  }

  .home-page .catalog-toolbar--pro.is-mobile-open .catalog-mobile-panel {
    display: grid;
  }

  .home-page .catalog-toolbar--pro.is-mobile-open .catalog-mobile-summary {
    display: none;
  }

  .home-page .catalog-toolbar--pro .catalog-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .home-page .catalog-toolbar--pro .catalog-field,
  .home-page .catalog-toolbar--pro .catalog-field--wide,
  .home-page .catalog-toolbar--pro .catalog-actions {
    grid-column: span 1;
  }

  .home-page .catalog-toolbar--pro .catalog-field input,
  .home-page .catalog-toolbar--pro .catalog-field select,
  .home-page .catalog-toolbar--pro .catalog-actions .btn {
    min-height: 48px;
  }

  .home-page .catalog-toolbar--pro .catalog-actions {
    position: sticky;
    bottom: -0.2rem;
    z-index: 2;
    grid-template-columns: 1fr 1fr;
    padding-top: 0.45rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, #f9fbfd 35%);
    backdrop-filter: blur(4px);
  }
}
