:root {
  --bg: #f1f2f4;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --text: #171a23;
  --muted: #5f6678;
  --brand: #ff9f1c;
  --brand-dark: #cf7c0f;
  --stroke: #d9dde5;
  --selection-neutral: #9aa3b3;
  --selection-neutral-strong: #707b90;
  --selection-neutral-glow: rgba(112, 123, 144, 0.24);
  --success: #166534;
  --danger: #b91c1c;
  --card-radius: 0.8rem;
  --card-radius-compact: 0.68rem;
  --shadow-soft: 0 16px 40px rgba(16, 24, 40, 0.12);
  --footer-side-gutter: clamp(22px, 3.6vw, 96px);
  --footer-max-width: 1920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, #fff6df, transparent 30%),
    radial-gradient(circle at 90% 10%, #e4f0ff, transparent 24%), var(--bg);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.admin-body .container {
  width: min(1360px, 95vw);
}

.site-body {
  min-height: 100vh;
}

.page-transition {
  animation: page-enter 220ms ease-out both;
}

.site-body.is-page-leaving {
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  position: relative;
  --hero-parallax: 0px;
  padding: 0 0 11.25rem;
  min-height: clamp(22rem, 45vw, 37rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(124deg, #f7fbff 0%, #e6f0fb 24%, #bdd2eb 52%, #89aede 72%, #dfeaf8 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/logo.png');
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: clamp(300px, 42vw, 700px);
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, var(--hero-parallax), 0) scale(1.035);
  transform-origin: center center;
  will-change: transform;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(20, 59, 112, 0.16) 0%, rgba(20, 59, 112, 0.08) 22%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 18%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  z-index: 0;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.82rem clamp(20px, 4vw, 44px);
  border-width: 0 0 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: rgba(245, 249, 255, 0.16);
  box-shadow: 0 16px 34px rgba(31, 76, 136, 0.12);
  backdrop-filter: blur(16px) saturate(150%);
}

.hero-brand-stack {
  display: inline-flex;
  align-items: center;
}

.hero-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.brand-logo {
  width: auto;
  height: 4.2rem;
  object-fit: contain;
  display: block;
}

.hero-nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 1.25rem;
  font-weight: 600;
}

.hero-nav-links a {
  color: #17345d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 8rem;
  min-height: clamp(180px, 21vw, 300px);
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
}

.hero-eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
  margin: 1rem 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search {
  margin: 0 auto;
  width: min(560px, 100%);
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  background: rgba(17, 23, 37, 0.32);
}

.hero-search--nav {
  margin: 0;
  width: clamp(234px, 24vw, 330px);
  min-width: 198px;
  flex: 0 0 auto;
  border-color: rgba(78, 117, 168, 0.28);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.hero-search--nav input {
  padding: 0.6rem 0.86rem 0.6rem 2.8rem;
  font-size: 0.88rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317345d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 1.08rem 1.08rem;
}

.hero-search--nav button {
  padding: 0 1rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search input {
  flex: 1;
  border: 0;
  padding: 0.82rem 1rem;
  font: inherit;
  color: #17345d;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(23, 52, 93, 0.72);
}

.hero-search button {
  border: 0;
  padding: 0 1.25rem;
  color: #fff;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  background: var(--brand);
  cursor: pointer;
}

.hero-search-button--icon {
  padding: 0;
  min-width: 4rem;
  flex: 0 0 4rem;
}

.hero-search-button-icon {
  width: 1.72rem;
  height: 1.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-search-button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.98rem;
  background: #1ea84f;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(30, 168, 79, 0.28);
  transition: transform 140ms ease, background 140ms ease;
}

.whatsapp-cta:hover {
  background: #178741;
  transform: translateY(-1px);
}

.whatsapp-cta-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-cta-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.benefits {
  margin-top: -2.2rem;
  width: min(1240px, 95vw);
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.26fr repeat(3, minmax(0, 1fr));
  column-gap: 2.35rem;
  row-gap: 1.7rem;
  padding: 2rem 1.65rem;
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.benefits h2 {
  margin: 0;
  align-self: center;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.benefits article {
  padding: 0.55rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.benefits article h3 {
  margin: 0;
  font-size: 1.08rem;
  font-family: 'Sora', sans-serif;
}

.benefits article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.catalog-section {
  margin: 3rem auto;
}

#mas-vendidos.catalog-section {
  margin-top: 4.75rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.section-head-copy {
  display: grid;
  gap: 0.32rem;
}

.section-head-copy p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

.catalog-hero {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  --catalog-hero-parallax: 0px;
  height: clamp(236px, 26vw, 380px);
  overflow: hidden;
  background: var(--bg);
}

.catalog-hero::before {
  content: none;
}

.catalog-hero::after {
  content: none;
}

.catalog-hero-media {
  position: relative;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

.catalog-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 14px 16px rgba(15, 23, 42, 0.11),
    inset 0 -14px 16px rgba(15, 23, 42, 0.11);
}

.catalog-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: translate3d(0, var(--catalog-hero-parallax), 0) scale(1.08);
  transform-origin: center center;
  will-change: transform;
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 620ms ease;
}

.catalog-hero-media[data-aos='catalog-hero-reveal'] {
  opacity: 1;
  transform: none;
}

.catalog-hero-media[data-aos='catalog-hero-reveal'] img {
  opacity: 0;
  transform: translate3d(0, calc(var(--catalog-hero-parallax) + 18px), 0) scale(1.135);
}

.catalog-hero-media[data-aos='catalog-hero-reveal'].aos-animate img {
  opacity: 1;
  transform: translate3d(0, var(--catalog-hero-parallax), 0) scale(1.08);
}

.catalog-category-toolbar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
}

.catalog-filter-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.catalog-search-bar {
  margin: 0;
  width: clamp(250px, 30vw, 370px);
  min-width: 250px;
  flex: 0 1 370px;
}

.catalog-search-clear {
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.catalog-header-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip-link {
  display: inline-flex;
  align-items: center;
}

.catalog-page {
  padding-bottom: 3rem;
}

.category-grid {
  display: grid;
  gap: 1.45rem 1.55rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.category-card {
  --category-media-fit: cover;
  --category-media-position: center top;
  --category-media-padding: 0;
  --category-media-transform: none;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  border-radius: calc(var(--card-radius) + 0.1rem);
  overflow: hidden;
  min-height: clamp(310px, 28vw, 382px);
  border: 1px solid rgba(143, 163, 194, 0.28);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.category-card-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dce8ff;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  padding: var(--category-media-padding);
  object-fit: var(--category-media-fit);
  object-position: var(--category-media-position);
  transform: var(--category-media-transform);
}

.category-card-body {
  display: grid;
  align-content: start;
  gap: 0.48rem;
  padding: 1rem 1rem 1.1rem;
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.category-card-title {
  color: #0f172a;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-card-description {
  margin: 0;
  color: #546173;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.category-card--administrativo {
  --category-media-position: center 24%;
  --category-media-transform: scale(1.05);
  background: #ffffff;
}

.category-card--administrativo .category-card-media {
  background: #ffffff;
}

.category-card--administrativo .category-card-media img {
  background: #ffffff;
}

.category-card--bordado {
  --category-media-position: center 26%;
  --category-media-transform: scale(1.04);
}

.category-card--botas {
  --category-media-fit: contain;
  --category-media-position: center 72%;
  --category-media-padding: 0;
  --category-media-transform: scale(0.96);
}

.category-card--botas .category-card-media {
  background: #ffffff;
}

.category-card--industrial {
  --category-media-position: center 52%;
  --category-media-transform: translateY(8%) scale(1.03);
}

.category-card--industrial .category-card-media {
  background: #f8f9fc;
}

.category-card--industrial .category-card-media img {
  background: #f8f9fc;
}

.category-card:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.3);
  outline-offset: 4px;
}

.site-footer {
  margin-top: 3.5rem;
  color: #fff;
  background: radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 15% 82%, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(130deg, #111827, #1f2937 55%, #0f172a);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(320px, 1.2fr);
  gap: 1.6rem;
  padding: 2rem 0 1.55rem;
}

.site-footer-brand-block {
  display: grid;
  gap: 0.8rem;
}

.site-footer-brand-block .brand {
  color: #fff;
}

.site-footer-brand-block .brand-logo {
  filter: brightness(0) invert(1);
}

.site-footer-brand-block p {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.site-footer-contact {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.site-footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.site-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-footer-whatsapp,
.site-footer-facebook {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-footer-whatsapp {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer-facebook {
  gap: 0.42rem;
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(59, 130, 246, 0.18);
}

.site-footer-social-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.site-footer-social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.site-footer-whatsapp:hover,
.site-footer-facebook:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.site-footer-facebook:hover {
  border-color: rgba(191, 219, 254, 0.58);
  background: rgba(59, 130, 246, 0.32);
}

.site-footer-link-block {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-left: 0.38rem;
}

.site-footer-link-block h3 {
  margin: 0 0 0.2rem;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.site-footer-link-block a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer-link-block a:hover {
  color: #fff;
  transform: translateX(3px);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer-map-head {
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.site-footer-map-head h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  color: rgba(255, 255, 255, 0.96);
}

.site-footer-map-head a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.site-footer-map-card {
  align-self: stretch;
  min-width: 0;
}

.site-footer-map-frame {
  width: 100%;
  height: clamp(220px, 20vw, 280px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 34px rgba(6, 14, 30, 0.32);
}

.site-footer-bottom p {
  margin: 0;
  padding: 0.85rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

@media (min-width: 1280px) {
  .site-footer .container {
    width: min(var(--footer-max-width), calc(100vw - (var(--footer-side-gutter) * 2)));
  }

  .site-footer-grid {
    gap: clamp(1.4rem, 1.8vw, 2.25rem);
    grid-template-columns:
      minmax(320px, 1.22fr)
      minmax(170px, 0.7fr)
      minmax(170px, 0.7fr)
      minmax(360px, 1.18fr);
  }

  .site-footer-brand-block p {
    max-width: clamp(36ch, 26vw, 48ch);
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  border: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  background: #eceef3;
  color: #4f5567;
  cursor: pointer;
}

.chip.is-active {
  background: var(--text);
  color: #fff;
}

.view-all-link {
  font-weight: 700;
  color: var(--brand-dark);
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-grid--featured.is-filtering {
  overflow: hidden;
  transition: height 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-product-card {
  will-change: transform, opacity;
}

.featured-product-card.is-filter-exit {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 150ms ease, transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-product-card.is-filter-enter {
  animation: featured-card-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes featured-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.featured-empty-state {
  margin-top: 0.6rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 220ms cubic-bezier(0.25, 1, 0.5, 1), opacity 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-empty-state.is-visible {
  max-height: 4rem;
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-width: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-image {
  background: #fff;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.14);
  }

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

.product-card-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  min-height: 11.1rem;
}

.product-card-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.product-card h3 {
  margin: 0;
  min-height: 2.65rem;
  font-size: 1.08rem;
  line-height: 1.23;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-card-description {
  margin: 0;
  min-height: 3.95rem;
  color: var(--muted);
  line-height: 1.4;
  white-space: pre-line;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-color-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.28rem;
  min-height: 1.35rem;
  width: 100%;
  overflow: hidden;
}

.product-color-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  min-width: 3.7rem;
}

.color-dot {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid #b9c1d2;
  background: var(--chip-color, #9ca3af);
}

.empty-state,
.form-message,
.error-message {
  color: var(--muted);
}

.empty-state-card {
  padding: 1.4rem;
  border-radius: 1rem;
  border: 1px dashed var(--stroke);
  background: #fff;
}

.empty-state-card h3 {
  margin: 0;
}

.empty-state-card p {
  color: var(--muted);
}

.empty-state-card a {
  color: var(--brand-dark);
  font-weight: 700;
}

.compact-header,
.admin-header {
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ghost-link {
  border: 1px solid var(--stroke);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.detail-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: 1.4rem;
}

.detail-page-main {
  display: grid;
  gap: 2rem;
}

.detail-page-main > .container {
  width: min(1240px, 90vw);
}

.detail-gallery,
.detail-content,
.admin-card,
.auth-card {
  background: var(--surface);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.detail-gallery {
  padding: 1rem;
}

.detail-main-image {
  background: var(--surface-soft);
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.detail-main-image-link {
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-main-image.is-image-switching img,
.detail-main-image img.is-swapping {
  opacity: 0.45;
  transform: scale(1.035);
}

.detail-main-image.is-zooming img {
  transform: scale(1.55);
}

.detail-thumbnails {
  margin-top: 0.56rem;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: clamp(0.24rem, 1.2vw, 0.36rem);
}

.detail-lightbox-links {
  display: none;
}

.thumb-btn {
  flex: 0 0 clamp(76px, 18vw, 120px);
  border: 2px solid transparent;
  border-radius: 0.6rem;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.thumb-btn:hover {
  border-color: var(--selection-neutral);
}

.thumb-btn.is-active {
  border-color: var(--selection-neutral-strong);
  box-shadow: 0 0 0 1px var(--selection-neutral-glow);
}

.thumb-btn img {
  width: clamp(76px, 18vw, 120px);
  height: clamp(76px, 18vw, 120px);
  object-fit: cover;
}

.detail-content {
  padding: 1.2rem 1.35rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-category {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.detail-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.detail-quote-cta {
  padding: 0.42rem 0.74rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(30, 168, 79, 0.2);
}

.detail-quote-cta .whatsapp-cta-icon {
  width: 0.88rem;
  height: 0.88rem;
}

.detail-content h1 {
  margin: 0.35rem 0 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.detail-description {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-action-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.detail-related-section {
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.detail-related-kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-related-head {
  margin-bottom: 1rem;
}

.detail-carousel-controls {
  display: inline-flex;
  gap: 0.45rem;
}

.carousel-nav-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  font-size: 1.08rem;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease, border-color 180ms ease;
}

.carousel-nav-btn:hover {
  transform: translateY(-1px);
  border-color: #b4bfd4;
  background: #f8f9fc;
}

.carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.detail-related-rail {
  display: flex;
  gap: 0.78rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.detail-related-card {
  flex: 0 0 clamp(220px, 24vw, 276px);
  max-width: 276px;
  scroll-snap-align: start;
}

.detail-related-card .product-card-image {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.detail-related-card .product-card-image img {
  padding: 0.38rem;
}

.detail-related-card .product-card-body {
  min-height: 0;
  padding: 0.78rem 0.82rem 0.7rem;
  gap: 0.28rem;
}

.detail-related-card .product-card h3 {
  min-height: 0;
  font-size: 1rem;
}

.detail-related-card .product-card-description {
  display: none;
}

.detail-related-card .product-color-list {
  min-height: 1.08rem;
  padding-top: 0.16rem;
}

.detail-related-card .product-color-label {
  min-width: 3.1rem;
  font-size: 0.7rem;
}

.detail-related-card .color-dot {
  width: 0.86rem;
  height: 0.86rem;
}

.detail-spec-grid {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.spec-row dt {
  font-weight: 800;
  margin-bottom: 0.32rem;
}

.spec-label-with-badge {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.spec-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.spec-row--color-por-tela {
  margin-top: -0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.9rem;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.88rem;
}

.color-pill::before {
  content: '';
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid #c8d0df;
  background: var(--chip-color, #9ca3af);
}

.detail-color-por-tela-wrap {
  width: min(100%, 500px);
  display: flex;
}

.detail-color-por-tela-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.42rem;
  width: 100%;
}

.detail-color-por-tela-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.18rem 0.08rem 0.4rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-color-por-tela-rail::-webkit-scrollbar {
  display: none;
}

.detail-color-por-tela-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 96px;
  border: 1px solid rgba(204, 214, 231, 0.92);
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 0.32rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease,
    box-shadow 180ms ease;
}

.detail-color-por-tela-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 145, 188, 0.82);
  box-shadow: 0 12px 24px rgba(19, 44, 82, 0.12);
}

.detail-color-por-tela-thumb:focus-visible {
  outline: 2px solid var(--selection-neutral-strong);
  outline-offset: 2px;
}

.detail-color-por-tela-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-color-por-tela-nav.is-hidden {
  visibility: hidden;
}

.detail-color-por-tela-nav {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.96rem;
}

.attribute-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.attribute-list li {
  overflow-wrap: anywhere;
}

.detail-custom-size {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.custom-size-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  border: 1px dashed #e5b26a;
  background: #fff8ea;
  color: #9a6110;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: help;
  user-select: none;
}

.custom-size-badge::before {
  content: 'i';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #f9d79f;
  color: #7a4b07;
  font-size: 0.7rem;
  font-weight: 800;
}

.custom-size-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  background: #171a23;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.22);
  opacity: 0;
  transform: translateY(0.25rem);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.custom-size-badge:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.auth-body,
.admin-body {
  padding: 1.4rem 0 2.5rem;
}

.auth-card {
  width: min(460px, 92vw);
  margin: 4rem auto;
  padding: 1.35rem;
}

.auth-card h1,
.admin-card h1,
.admin-card h2 {
  margin: 0 0 0.5rem;
  font-family: 'Sora', sans-serif;
}

.auth-brand {
  margin-bottom: 0.65rem;
}

.auth-card p,
.admin-card p {
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 0.85rem;
}

.admin-product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-product-form > * {
  min-width: 0;
}

.form-col {
  grid-column: span 1;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.stack-form > .field-label {
  display: grid;
  gap: 0.34rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.stack-form button {
  font: inherit;
}

.stack-form > .field-label input,
.stack-form > .field-label select,
.stack-form > .field-label textarea {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.stack-form > .field-label textarea {
  resize: vertical;
}

.stack-form button[type='submit'] {
  border: 0;
  border-radius: 0.65rem;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 0.92rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

#saveProductButton {
  min-width: 156px;
  max-width: 210px;
}

.stack-form > button[type='submit']:disabled,
.stack-form button[type='submit']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.edit-mode-banner {
  margin: 0.35rem 0 0.5rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid #c7d7f3;
  border-radius: 0.68rem;
  background: #eef4ff;
  color: #1b3f83;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.form-block {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--stroke);
  border-radius: 0.8rem;
  background: transparent;
  display: grid;
  gap: 0.55rem;
}

.form-block legend {
  margin-left: 0.32rem;
  padding: 0 0.34rem;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text);
}

.block-label {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}

.block-help {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.compact-field-label {
  display: grid;
  gap: 0.34rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: #3f4960;
}

.compact-field-label input {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.62rem 0.72rem;
  background: #fff;
}

.size-range-block {
  display: grid;
  gap: 0.38rem;
}

.size-range-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: #3f4960;
}

.size-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: end;
}

.size-range-field {
  display: grid;
  gap: 0.26rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #58617a;
}

.size-range-field input {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.62rem 0.72rem;
  background: #fff;
}

.size-range-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.7rem;
  height: 2.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: #66708a;
}

.form-block input[type='file'] {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 0.64rem;
  padding: 0.58rem 0.65rem;
  background: #fff;
}

.form-block input[type='file']::file-selector-button {
  margin-right: 0.6rem;
  border: 1px solid #c7d2e5;
  background: #f5f8ff;
  border-radius: 0.5rem;
  padding: 0.33rem 0.58rem;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
}

.form-block input[type='file'].file-input--product {
  padding: 0.48rem 0.6rem;
}

.form-block input[type='file'].file-input--color-por-tela {
  padding: 0.4rem 0.52rem;
  font-size: 0.89rem;
}

.form-block input[type='file'].file-input--color-por-tela::file-selector-button {
  padding: 0.24rem 0.46rem;
  font-size: 0.8rem;
}

.color-por-tela-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 0.58rem;
}

.color-por-tela-preview-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-block textarea {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.65rem 0.75rem;
  background: #fff;
  resize: vertical;
}

.form-block-single-input {
  padding: 0.72rem 0.78rem 0.78rem;
}

.form-block-single-input textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.18rem 0.1rem 0.1rem;
  min-height: 88px;
}

.form-block-single-input textarea:focus {
  outline: none;
}

.form-block-single-input:focus-within {
  border-color: #b6c3db;
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.1);
}

.item-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.item-input-row input {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.62rem 0.72rem;
  background: #fff;
}

.ghost-mini-button {
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  border-radius: 0.56rem;
  padding: 0.46rem 0.68rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.item-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.item-chip-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid #cfd7e6;
  border-radius: 999px;
  padding: 0.3rem 0.48rem 0.3rem 0.6rem;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.item-remove-button {
  border: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e9f2;
  color: #27334e;
  cursor: pointer;
  font-size: 0.74rem;
  padding: 0;
}

.size-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 0.5rem;
}

.size-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.45rem;
  border-radius: 0.6rem;
  border: 1px solid #cad2e2;
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.size-option input:checked + span {
  border-color: #0f3c8f;
  background: #edf3ff;
  color: #0b2f74;
}

.size-option input:checked + span::before {
  content: '\2713';
  font-size: 0.75rem;
  font-weight: 800;
}

.inline-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.inline-checkbox-row input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: #0f3c8f;
}

.inline-checkbox-row label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--swatch-color, #9ca3af);
  box-shadow: 0 0 0 1px #b9c1d2;
  cursor: pointer;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.color-swatch:hover {
  transform: translateY(-1px);
}

.color-swatch.is-selected {
  box-shadow: 0 0 0 2px #0f3c8f, 0 0 0 5px #dbe8ff;
}

.color-manual-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.color-manual-row input[type='color'] {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.2rem;
  border: 1px solid var(--stroke);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.color-manual-row input[type='text'] {
  width: 100%;
  border-radius: 0.64rem;
  border: 1px solid var(--stroke);
  padding: 0.62rem 0.72rem;
  background: #fff;
}

.selected-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.color-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.selected-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.26rem 0.44rem;
  background: #fff;
}

.selected-color-dot {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  border: 1px solid #c3cad8;
  background: var(--chip-color, #9ca3af);
}

.selected-color-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #25304a;
}

.image-preview-panel {
  display: grid;
  gap: 0.6rem;
}

.admin-product-form .image-preview-panel {
  min-width: 0;
}

.preview-main-box {
  margin: 0;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  height: clamp(132px, 17vw, 232px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.preview-main-box--product {
  height: clamp(136px, 16vw, 220px);
}

.preview-main-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.48rem;
  background: #fff;
}

.preview-main-box--color-por-tela {
  width: min(100%, 460px);
  height: clamp(88px, 10.5vw, 136px);
}

.admin-image-modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.admin-image-modal::backdrop {
  background: rgba(15, 23, 42, 0.56);
}

.admin-image-modal-card {
  width: min(980px, 92vw);
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 18, 32, 0.22);
  padding: 0.7rem;
}

.admin-image-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.62rem;
}

.admin-image-modal-head strong {
  font-family: 'Sora', sans-serif;
  font-size: 0.96rem;
  color: #1f2c45;
}

.preview-main-box--color-por-tela-modal {
  width: min(100%, 940px);
  height: min(74vh, 680px);
}

#adminColorPorTelaGallery #colorPorTelaPreviewMainLink {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.preview-thumb-row {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.55rem;
}

.preview-thumb {
  position: relative;
  flex: 0 0 90px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.preview-thumb:hover {
  border-color: var(--selection-neutral);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 0.24rem;
}

.preview-thumb.is-active {
  border-color: var(--selection-neutral-strong);
  box-shadow: 0 0 0 2px var(--selection-neutral-glow);
}

.preview-thumb-tag {
  position: absolute;
  left: 0.32rem;
  bottom: 0.32rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  background: rgba(12, 16, 27, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.preview-thumb-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.preview-thumb-remove .ki-outline {
  font-size: 0.85rem;
  line-height: 1;
}

.preview-thumb-remove-fallback {
  font-size: 0.85rem;
  line-height: 1;
}

.preview-thumb-remove:hover {
  filter: brightness(0.94);
}

.auth-hint {
  margin: 0.48rem 0;
  font-size: 0.88rem;
}

.whatsapp-float {
  position: fixed !important;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 1200;
  box-shadow: 0 14px 32px rgba(30, 168, 79, 0.34);
}

.error-message {
  color: var(--danger);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.admin-card {
  padding: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-product-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.admin-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
}

.admin-filter-control select {
  border: 1px solid var(--stroke);
  border-radius: 0.55rem;
  padding: 0.38rem 0.5rem;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.66rem 0.55rem;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  font-size: 0.93rem;
}

.admin-table td a {
  color: #0f3c8f;
  font-weight: 700;
}

.admin-table-pagination {
  margin-top: 0.72rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem 0.62rem;
}

.admin-table-pagination .ghost-mini-button {
  padding: 0.35rem 0.56rem;
  font-size: 0.82rem;
}

.admin-table-pagination .ghost-mini-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.admin-table-page-info {
  margin: 0;
  min-width: 7.2rem;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 700;
  color: #24304a;
}

.admin-table-page-summary {
  margin: 0 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}

.table-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.icon-action-button {
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 0.56rem;
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease, border-color 160ms ease;
}

.icon-action-button img {
  width: 1rem;
  height: 1rem;
}

.icon-action-button--edit:hover {
  background: #edf3ff;
  border-color: #b5c7eb;
  transform: translateY(-1px);
}

.icon-action-button--delete:hover {
  background: #fff1f1;
  border-color: #efb3b3;
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-message.is-success {
  color: var(--success);
}

.form-message.is-error {
  color: var(--danger);
}

.is-hidden {
  display: none !important;
}

@media (min-width: 1440px) {
  .container {
    width: min(1320px, 91vw);
  }

  .hero-nav {
    width: 100%;
  }

  .benefits {
    width: min(1380px, 91vw);
  }

  .detail-page-main > .container {
    width: min(1360px, 90vw);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  }
}

@media (min-width: 1920px) {
  .container {
    width: min(1580px, 88vw);
  }

  .admin-body .container {
    width: min(1700px, 90vw);
  }

  .hero-nav {
    width: 100%;
  }

  .benefits {
    width: min(1540px, 88vw);
  }

  .detail-page-main > .container {
    width: min(1540px, 88vw);
  }

  .detail-layout {
    gap: 1.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 230px));
  }

  .detail-related-card {
    flex: 0 0 clamp(240px, 17vw, 320px);
    max-width: 320px;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: clamp(18.75rem, 48vw, 31.25rem);
    padding-bottom: 9.5rem;
  }

  .hero-search--nav {
    width: clamp(205px, 31vw, 290px);
    min-width: 0;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-map-card {
    grid-column: 1 / -1;
  }

  .detail-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .detail-related-rail {
    gap: 0.7rem;
  }
}

@media (max-width: 920px) {
  .admin-product-form {
    grid-template-columns: 1fr;
  }

  .form-col,
  .form-span-2 {
    grid-column: 1 / -1;
  }

  .detail-top-row {
    flex-wrap: wrap;
  }

  .preview-main-box--product {
    height: clamp(160px, 38vw, 240px);
  }

}

@media (max-width: 720px) {
  .hero-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.7rem;
    padding: 0.68rem 0.8rem;
  }

  .hero-brand-stack {
    order: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding-top: 0.12rem;
  }

  .hero-nav-links {
    display: none !important;
  }

  .hero-search-actions {
    order: 2;
    margin-left: auto;
    width: clamp(190px, 50vw, 320px);
    max-width: calc(100% - 126px);
    min-width: 166px;
    gap: 0.35rem;
  }

  .hero-search--nav {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .hero-content {
    display: none;
  }

  .hero-search {
    margin: 0 auto;
  }

  .whatsapp-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    padding: 0.56rem 0.86rem;
    font-size: 0.86rem;
  }

  .benefits {
    margin-top: -1.8rem;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.4rem 1.15rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head--catalog {
    gap: 0.35rem;
  }

  .catalog-search-bar {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .catalog-hero {
    height: clamp(188px, 41vw, 252px);
  }

  .catalog-hero-media img {
    transform: translate3d(0, var(--catalog-hero-parallax), 0) scale(1.04);
  }

  .catalog-hero-media[data-aos='catalog-hero-reveal'] img {
    transform: translate3d(0, calc(var(--catalog-hero-parallax) + 16px), 0) scale(1.09);
  }

  .catalog-hero-media[data-aos='catalog-hero-reveal'].aos-animate img {
    transform: translate3d(0, var(--catalog-hero-parallax), 0) scale(1.04);
  }

  .catalog-category-toolbar .chip-row {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .chip {
    padding: 0.42rem 0.72rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .category-grid,
  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
  }

  .category-card {
    min-height: clamp(252px, 62vw, 340px);
    border-radius: var(--card-radius-compact);
  }

  .category-card-body {
    gap: 0.35rem;
    padding: 0.8rem 0.72rem 0.85rem;
  }

  .category-card-title {
    font-size: 0.9rem;
  }

  .category-card-description {
    font-size: 0.75rem;
    line-height: 1.34;
  }

  .product-card {
    border-radius: var(--card-radius-compact);
  }

  .product-card-body {
    padding: 0.64rem 0.62rem 0.6rem;
    min-height: auto;
    gap: 0.26rem;
  }

  .product-card-category {
    font-size: 0.72rem;
  }

  .product-card h3 {
    min-height: 2.2rem;
    font-size: 0.94rem;
  }

  .product-card-description {
    display: none;
  }

  .product-color-list {
    min-height: 1rem;
    padding-top: 0.08rem;
    gap: 0.26rem;
  }

  .product-color-label {
    display: none;
  }

  .color-dot {
    width: 0.86rem;
    height: 0.86rem;
  }

  .detail-related-head {
    gap: 0.8rem;
    align-items: flex-start;
  }

  .detail-related-rail {
    gap: 0.62rem;
  }

  .detail-color-por-tela-wrap {
    width: 100%;
  }

  .detail-color-por-tela-thumb {
    flex-basis: 74px;
    width: 74px;
    height: 80px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    padding: 1.6rem 0 1.2rem;
  }

  .site-footer-brand-block,
  .site-footer-map-card {
    grid-column: 1 / -1;
  }

  .site-footer-link-block {
    padding-left: 0;
  }

  .site-footer-map-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-map-frame {
    height: clamp(190px, 58vw, 260px);
  }

  .site-footer-brand-block p {
    max-width: none;
  }

  .compact-header,
  .admin-header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .item-input-row,
  .color-manual-row {
    grid-template-columns: 1fr;
  }

  .size-option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-action-row button {
    width: 100%;
  }

  .table-action-row {
    flex-direction: row;
    align-items: center;
  }

  .admin-table-page-summary {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pswp__custom-caption {
    transition: none;
  }

  .page-transition {
    animation: none;
  }

  .site-body.is-page-leaving {
    transition: none;
  }

  .detail-main-image img,
  .carousel-nav-btn,
  .detail-color-por-tela-thumb,
  .site-footer-whatsapp,
  .site-footer-facebook,
  .site-footer-link-block a,
  .category-card,
  .category-card-media,
  .category-card-body,
  .category-card-description,
  .product-card,
  .product-card-image img,
  .product-grid--featured,
  .featured-product-card,
  .featured-empty-state {
    transition: none;
  }

  .product-card:hover,
  .product-card:hover .product-card-image img {
    transform: none;
  }

  .detail-related-rail {
    scroll-behavior: auto;
  }

  .featured-product-card.is-filter-enter {
    animation: none;
  }
}

.pswp__custom-caption {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 40;
  width: min(90vw, 760px);
  padding: 0.58rem 0.8rem;
  border-radius: 0.66rem;
  color: #fff;
  background: rgba(10, 16, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: opacity 160ms ease;
}

.pswp__custom-caption.is-empty {
  opacity: 0;
}

.pswp--admin-preview .pswp__img {
  background: #fff;
  border-radius: 1.05rem;
  box-shadow:
    0 0 0 14px #fff,
    0 20px 44px rgba(15, 23, 42, 0.22);
}
