@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

/* =========================================================
   WIRTZ MAYORISTA · PORTAL PÚBLICO
   Minimalista · premium · responsive · sin glow
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-muted: #f1f1f1;
  --bg-dark: #171717;
  --bg-dark-soft: #242424;

  --text: #111111;
  --text-soft: #4f4f4f;
  --text-muted: #7a7a7a;
  --text-light: #ffffff;

  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --line-light: rgba(255, 255, 255, 0.16);

  --accent: #d71920;
  --accent-dark: #ad1117;
  --accent-soft: rgba(215, 25, 32, 0.08);

  --success: #14804a;
  --success-soft: rgba(20, 128, 74, 0.09);

  --warning: #a15c00;
  --warning-soft: rgba(161, 92, 0, 0.1);

  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.08);

  --radius-xs: 4px;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 6px 18px rgba(17, 17, 17, 0.04);

  --shadow-md:
    0 8px 30px rgba(17, 17, 17, 0.08);

  --topbar-height: 74px;
  --nav-height: 52px;

  --container: 1380px;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    "DM Sans",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-open-drawer {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

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

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(215, 25, 32, 0.18);
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.28) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.22);
  border: 2px solid transparent;
  border-radius: 20px;
  background-clip: padding-box;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.main-content {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 28px 72px;
}

.app-view {
  width: 100%;
  animation: viewEnter 0.22s ease both;
}

.app-view.is-active {
  display: block;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   LOADING GENERAL
   ========================================================= */

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
}

.app-loading-overlay__content {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.app-loading-overlay__content strong {
  font-size: 16px;
  font-weight: 800;
}

.app-loading-overlay__content small {
  color: var(--text-muted);
}

.app-loading-overlay__spinner,
.catalog-loading-state__spinner,
.button-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(17, 17, 17, 0.14);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   BARRA DE PROMOCIONES
   ========================================================= */

.promotion-bar {
  position: relative;
  z-index: 1250;
  width: 100%;
  height: 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  background: #ffd400;
  color: #111111;
}

.promotion-bar__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.promotion-bar__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: max-content;
  height: 100%;
  animation: promotionBarMove 28s linear infinite;
  will-change: transform;
}

.promotion-bar__group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  min-width: max-content;
}

.promotion-bar:hover .promotion-bar__track {
  animation-play-state: paused;
}

.promotion-bar__item {
  --promotion-background: #ffd400 !important;
  --promotion-color: #111111 !important;

  position: relative;
  min-width: max-content;
  height: 40px;
  padding: 0 30px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid rgba(17, 17, 17, 0.18);
  background: #ffd400 !important;
  color: #111111 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.promotion-bar__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.5);
}

.promotion-bar__icon {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #111111;
}

.promotion-bar__icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.promotion-bar__text {
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promotion-bar__item--link {
  transition: background 0.18s ease;
}

.promotion-bar__item--link:hover {
  background: #ffe04d !important;
}

@keyframes promotionBarMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-top: 3px solid #000000;
  background: var(--bg-dark);
  color: var(--text-light);
}

.topbar__main {
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line-light);
}

.topbar__main-inner {
  width: min(100%, var(--container));
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.brand {
  min-width: 240px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.brand__logo {
  width: 98px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.24);
}

.brand__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__search {
  min-width: 0;
}

.global-search {
  height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.global-search:focus-within {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.09);
}

.global-search svg {
  color: rgba(255, 255, 255, 0.68);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
}

.global-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.global-search__clear {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
}

.global-search__clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
}

.topbar-icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar-icon-button--mobile {
  display: none;
}

.login-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.login-button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.order-topbar-button {
  position: relative;
  min-height: 42px;
  padding: 0 12px 0 10px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
}

.order-topbar-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

.order-topbar-button__icon {
  display: grid;
  place-items: center;
}

.order-topbar-button__information {
  display: grid;
  justify-items: start;
  line-height: 1.15;
}

.order-topbar-button__information small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-topbar-button__information strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
}

.order-topbar-button__count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   MENÚ DE USUARIO
   ========================================================= */

.user-menu {
  position: relative;
}

.user-menu__button {
  min-height: 42px;
  padding: 4px 10px 4px 5px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
}

.user-menu__button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.user-menu__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
}

.user-menu__information {
  display: grid;
  justify-items: start;
  min-width: 100px;
  line-height: 1.15;
}

.user-menu__information small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-menu__information strong {
  max-width: 130px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__button > svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.62);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1500;
  width: 270px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.user-menu__dropdown::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 100%;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
  border-left: 7px solid transparent;
}

.user-menu__dropdown-header {
  padding: 12px 12px 13px;
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.user-menu__dropdown-header strong {
  font-size: 13px;
  font-weight: 800;
}

.user-menu__dropdown-header span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__dropdown a,
.user-menu__dropdown button {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.user-menu__dropdown a:hover,
.user-menu__dropdown button:hover {
  background: var(--bg-soft);
}

.user-menu__dropdown svg {
  width: 17px;
  height: 17px;
  color: var(--text-soft);
}

.user-menu__separator {
  display: block;
  height: 1px;
  margin: 5px 7px;
  background: var(--line);
}

.user-menu__logout {
  color: var(--danger) !important;
}

/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

.topbar__navigation-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-dark);
}

.topbar__navigation {
  width: min(100%, var(--container));
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
}

.topbar-nav-button {
  position: relative;
  min-height: var(--nav-height);
  padding: 0 14px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-nav-button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  transform: scaleX(0);
  background: #ffffff;
  transition: transform 0.18s ease;
}

.topbar-nav-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.topbar-nav-button.is-active {
  color: #ffffff;
}

.topbar-nav-button.is-active::after {
  transform: scaleX(1);
}

.topbar-nav-button--danger {
  margin-left: auto;
  color: #ffb7ba;
}

.topbar-nav-button--danger::after {
  background: var(--accent);
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.danger-text-button {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.primary-button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

.primary-button:hover:not(:disabled) {
  background: #2a2a2a;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.secondary-button:hover:not(:disabled) {
  border-color: #111111;
  background: var(--bg-soft);
}

.danger-button {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.danger-button:hover:not(:disabled) {
  background: #8e1b13;
}

.text-button,
.danger-text-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}

.text-button {
  color: var(--text);
}

.text-button:hover {
  color: var(--accent);
}

.danger-text-button {
  color: var(--danger);
}

.primary-button--full,
.secondary-button--full {
  width: 100%;
}

.back-button {
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.back-button:hover {
  color: var(--text);
}

/* =========================================================
   ENCABEZADOS
   ========================================================= */

.section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading__eyebrow,
.summary-panel__eyebrow,
.order-drawer__eyebrow,
.product-detail-dialog__eyebrow,
.category-origin-label {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 5px 0 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-heading h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.section-heading p {
  max-width: 680px;
  margin: 8px auto 0;
  color: var(--text-soft);
  font-size: 14px;
}

.page-header {
  margin: 34px 0 22px;
  padding: 26px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.page-header__content h1,
.products-page-header h1,
.summary-page-header h1 {
  margin: 6px 0 7px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-header__content p,
.products-page-header p,
.summary-page-header p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
}

.catalog-counter {
  min-width: 220px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.catalog-counter__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.catalog-counter div {
  display: grid;
  gap: 1px;
}

.catalog-counter strong {
  font-size: 20px;
  font-weight: 800;
}

.catalog-counter span:last-child {
  color: var(--text-muted);
  font-size: 11px;
}

/* =========================================================
   BANNER PRINCIPAL DINÁMICO
   Ocupa todo el ancho de la ventana
   ========================================================= */

.hero-banner-section {
  position: relative;
  width: 100vw;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 34px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #111111;
}

.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 38vw, 580px);
  overflow: hidden;
  background: #111111;
}

.hero-banner__slide,
.hero-banner__fallback {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 38vw, 580px);
}

.hero-banner__slide {
  overflow: hidden;
}

.hero-banner__slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 38vw, 580px);
  object-fit: cover;
  object-position: center;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding:
    clamp(34px, 6vw, 86px)
    max(
      28px,
      calc((100vw - var(--container)) / 2 + 28px)
    );
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.46) 44%,
      rgba(0, 0, 0, 0.08) 78%,
      rgba(0, 0, 0, 0) 100%
    );
}

.hero-banner__content {
  width: min(100%, 650px);
  color: #ffffff;
}

.hero-banner__content h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-banner__content p {
  max-width: 570px;
  margin: 17px 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.55;
}

.hero-banner__content .primary-button {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.hero-banner__content .primary-button:hover {
  background: #eeeeee;
}

.hero-banner__fallback {
  display: flex;
  align-items: center;
  padding:
    clamp(34px, 6vw, 86px)
    max(
      28px,
      calc((100vw - var(--container)) / 2 + 28px)
    );
  background:
    linear-gradient(
      125deg,
      #111111 0%,
      #242424 52%,
      #111111 100%
    );
  color: #ffffff;
}

.hero-banner__fallback > div {
  max-width: 650px;
}

.hero-banner__fallback span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-banner__fallback h1 {
  margin: 8px 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.hero-banner__fallback p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.hero-banner__skeleton {
  min-height: clamp(360px, 38vw, 580px);
  overflow: hidden;
  background: #1f1f1f;
}

.hero-banner__skeleton span {
  display: block;
  width: 40%;
  min-height: clamp(360px, 38vw, 580px);
  transform: skewX(-18deg);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
  animation: skeletonMove 1.2s infinite;
}

@keyframes skeletonMove {
  from {
    margin-left: -60%;
  }

  to {
    margin-left: 130%;
  }
}

.hero-banner__dots {
  position: absolute;
  right:
    max(
      28px,
      calc((100vw - var(--container)) / 2 + 28px)
    );
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-banner__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: transparent;
  transition:
    width 0.18s ease,
    background 0.18s ease;
}

.hero-banner__dots button.is-active {
  width: 26px;
  border-radius: 20px;
  background: #ffffff;
}

/* =========================================================
   MARCAS
   ========================================================= */

.brands-strip {
  margin: 0 0 34px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brands-strip__arrow {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.brands-strip__arrow:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.brands-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brands-strip__track::-webkit-scrollbar {
  display: none;
}

.brand-strip-item {
  min-width: 150px;
  height: 68px;
  padding: 8px 16px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.brand-strip-item:last-child {
  border-right: 0;
}

.brand-strip-item img {
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.18s ease;
}

.brand-strip-item:hover img {
  filter: grayscale(0);
}

.brand-strip-item strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================
   CATÁLOGO DEL INICIO
   Grupos de familias y todos los tipos de productos
   ========================================================= */

.home-categories-section {
  padding: 34px 0 48px;
}

.home-category-groups {
  width: 100%;
  display: grid;
  gap: 28px;
}

/* =========================================================
   GRUPO DE FAMILIA
   ========================================================= */

.home-product-category-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.home-product-category-group__header {
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.home-product-category-group__header > div {
  min-width: 0;
}

.home-product-category-group__header > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-product-category-group__header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.home-product-category-group__header small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.home-product-category-group__open {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.home-product-category-group__open:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.home-product-category-group__open svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   GRILLA DE TIPOS
   ========================================================= */

.home-product-category-group__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   TARJETA DE TIPO DE PRODUCTO
   ========================================================= */

.home-product-category-card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.home-product-category-card:nth-child(4n) {
  border-right: 0;
}

.home-product-category-card__button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 0;
  display: grid;
  grid-template-rows: 180px minmax(0, 1fr);
  border: 0;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.home-product-category-card__button:hover {
  background: #fafafa;
}

.home-product-category-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f5f5f5;
}

.home-product-category-card__media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.home-product-category-card__button:hover
.home-product-category-card__media img {
  transform: scale(1.045);
}

.home-product-category-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.home-product-category-card__placeholder svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.4;
}

.home-product-category-card__content {
  min-width: 0;
  padding: 15px 46px 17px 16px;
  display: flex;
  flex-direction: column;
}

.home-product-category-card__family {
  display: block;
  overflow: hidden;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-product-category-card__title {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-product-category-card__description {
  margin-top: 7px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-product-category-card__count {
  margin-top: auto;
  padding-top: 15px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-product-category-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-soft);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.home-product-category-card__arrow svg {
  width: 15px;
  height: 15px;
}

.home-product-category-card__button:hover
.home-product-category-card__arrow {
  transform: translate(2px, -2px);
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

/* =========================================================
   CATEGORÍAS GENERALES
   ========================================================= */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.category-card__button {
  width: 100%;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: 190px minmax(0, 1fr);
  border: 0;
  background: #ffffff;
  text-align: left;
}

.category-card__media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.035);
}

.category-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.category-card__placeholder svg {
  width: 44px;
  height: 44px;
}

.category-card__content {
  min-height: 165px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.category-card__content h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.category-card__content p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card__count {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.category-card__action svg {
  width: 15px;
  height: 15px;
}

.category-card--compact .category-card__button {
  grid-template-rows: 150px minmax(0, 1fr);
}

.category-card--compact .category-card__content {
  min-height: 138px;
}

/* =========================================================
   NOVEDADES HOME
   ========================================================= */

.home-products-section {
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   FILTROS
   ========================================================= */

.category-filters,
.products-toolbar {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.category-filters {
  display: flex;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.products-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field {
  min-width: 280px;
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.search-field:focus-within {
  border-color: var(--line-strong);
}

.search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field svg {
  color: var(--text-muted);
}

.search-field__clear {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
}

.search-field__clear:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.search-field--products {
  width: 100%;
}

.sort-control {
  position: relative;
  min-width: 180px;
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.sort-control > span {
  color: var(--text-muted);
  font-size: 11px;
}

.sort-control select {
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.sort-control svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.view-mode-control {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.view-mode-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
}

.view-mode-button:last-child {
  border-right: 0;
}

.view-mode-button.is-active {
  background: #111111;
  color: #ffffff;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.catalog-breadcrumb {
  min-height: 34px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.catalog-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.catalog-breadcrumb button:hover {
  color: var(--text);
}

.catalog-breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   MODELOS
   ========================================================= */

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.model-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.model-card__button {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: 180px auto;
  border: 0;
  background: #ffffff;
  text-align: left;
}

.model-card__media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.model-card:hover .model-card__media img {
  transform: scale(1.04);
}

.model-card__placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.model-card__placeholder svg {
  width: 48px;
  height: 48px;
}

.model-card__content {
  padding: 15px;
}

.model-card__content > span,
.model-card__content > small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.model-card__content h3 {
  margin: 5px 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.model-card__content strong {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
}

.model-card__content strong svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   PÁGINA PRODUCTOS
   ========================================================= */

.products-page-header {
  margin: 34px 0 18px;
  padding: 26px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.products-page-header__content {
  display: grid;
  gap: 10px;
}

.products-page-header__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.products-page-stat {
  min-width: 125px;
  padding: 13px 15px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.products-page-stat:last-child {
  border-right: 0;
}

.products-page-stat span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.products-page-stat strong {
  font-size: 22px;
  font-weight: 800;
}

.products-content__heading {
  min-height: 42px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-soft);
  font-size: 12px;
}

/* =========================================================
   GRILLA PRODUCTOS
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.products-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 215px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f5f5f5;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__image-placeholder {
  display: grid;
  place-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.product-card__image-placeholder svg {
  width: 34px;
  height: 34px;
}

.product-card__image-placeholder span {
  font-size: 11px;
}

.product-card__badge,
.product-card__stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__badge {
  background: #111111;
  color: #ffffff;
}

.product-card__stock-badge {
  right: 10px;
  left: auto;
  background: var(--danger);
  color: #ffffff;
}

.product-card__content {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.product-card__metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card__metadata span,
.product-card__metadata strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__metadata span {
  color: var(--text-muted);
}

.product-card__metadata strong {
  color: var(--accent);
}

.product-card__content h3 {
  min-height: 44px;
  margin: 8px 0 5px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__content > p {
  min-height: 38px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__tags {
  min-height: 24px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.product-card__tags span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-soft);
  font-size: 9px;
}

.product-card__price-block {
  min-height: 66px;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.product-card__price,
.product-card__public-price {
  display: grid;
  gap: 2px;
}

.product-card__price span,
.product-card__public-price span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card__price strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-card__public-price {
  justify-items: end;
}

.product-card__public-price strong {
  color: var(--text-soft);
  font-size: 12px;
  text-decoration: line-through;
}

.product-card__purchase-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
}

.product-draft-quantity-control,
.cart-item-quantity-control,
.quantity-control {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.product-draft-quantity-control button,
.cart-item-quantity-control button,
.quantity-control button {
  width: 32px;
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.product-draft-quantity-control button:hover,
.cart-item-quantity-control button:hover,
.quantity-control button:hover {
  background: var(--bg-soft);
}

.product-draft-quantity-control svg,
.cart-item-quantity-control svg,
.quantity-control svg {
  width: 14px;
  height: 14px;
}

.product-draft-quantity-control input,
.cart-item-quantity-control input,
.quantity-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  outline: 0;
  appearance: textfield;
  background: #ffffff;
  text-align: center;
  font-weight: 800;
}

.product-draft-quantity-control input::-webkit-inner-spin-button,
.product-draft-quantity-control input::-webkit-outer-spin-button,
.cart-item-quantity-control input::-webkit-inner-spin-button,
.cart-item-quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-add-button {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.product-add-button:hover:not(:disabled) {
  background: #2a2a2a;
}

.product-card__footer {
  min-height: 38px;
  margin-top: 10px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.product-card__cart-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--success);
  font-size: 9px;
  font-weight: 700;
}

.product-card__cart-status svg {
  width: 14px;
  height: 14px;
}

.product-card__cart-status--empty {
  color: var(--text-muted);
}

.product-detail-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.product-detail-button:hover {
  color: var(--text);
}

.product-detail-button svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   VISTA LISTA
   ========================================================= */

.products-grid--list {
  grid-template-columns: 1fr;
}

.products-grid--list .product-card {
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto;
}

.products-grid--list .product-card__media {
  min-height: 210px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.products-grid--list .product-card__content {
  padding: 18px;
}

.products-grid--list .product-card__content h3 {
  min-height: auto;
  font-size: 20px;
}

.products-grid--list .product-card__content > p {
  min-height: auto;
  -webkit-line-clamp: 3;
}

.products-grid--list .product-card__purchase-controls {
  max-width: 420px;
}

.products-grid--list .product-card__price-block {
  min-height: auto;
}

/* =========================================================
   CONTINÚA EN LA PARTE 2
   ========================================================= *//* =========================================================
   ESTADOS VACÍOS
   ========================================================= */

.empty-state,
.summary-empty-state,
.order-drawer__empty {
  min-height: 280px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-align: center;
}

.empty-state__icon,
.summary-empty-state > span,
.order-drawer__empty > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-soft);
}

.empty-state__icon svg,
.summary-empty-state > span svg,
.order-drawer__empty > span svg {
  width: 24px;
  height: 24px;
}

.empty-state h2,
.summary-empty-state h3,
.order-drawer__empty h3 {
  margin: 5px 0 0;
  font-size: 19px;
  font-weight: 800;
}

.empty-state p,
.summary-empty-state p,
.order-drawer__empty p {
  max-width: 460px;
  margin: 0;
  color: var(--text-muted);
}

.catalog-loading-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

/* =========================================================
   POLÍTICA COMERCIAL
   ========================================================= */

.commercial-policy-content {
  padding-bottom: 40px;
}

.commercial-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.commercial-policy-card {
  padding: 24px;
  display: grid;
  justify-items: start;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.commercial-policy-card:last-child {
  border-right: 0;
}

.commercial-policy-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-soft);
}

.commercial-policy-card h2 {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.commercial-policy-card strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.commercial-policy-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.commercial-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.commercial-level-card {
  padding: 18px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.commercial-level-card span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-level-card strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.commercial-level-card small {
  color: var(--text-soft);
}

.commercial-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commercial-options-grid > article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.commercial-options-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.commercial-options-grid ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.commercial-options-grid li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}

.commercial-options-grid li:last-child {
  border-bottom: 0;
}

/* =========================================================
   RESUMEN
   ========================================================= */

.summary-page-header {
  margin: 34px 0 22px;
  padding: 26px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.summary-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-progress__step {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.summary-progress__step > span,
.summary-progress__step > svg {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.summary-progress__step.is-complete {
  color: var(--success);
}

.summary-progress__step.is-active {
  color: var(--text);
}

.summary-progress__step.is-active > span {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.summary-progress__line {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 18px;
}

.summary-main {
  display: grid;
  gap: 16px;
}

.summary-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.summary-panel__header {
  min-height: 72px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.summary-panel__header h2 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.summary-panel__header-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.summary-items {
  display: grid;
}

.summary-item {
  min-height: 118px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item__media {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.summary-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-item__media > span {
  color: var(--text-muted);
}

.summary-item__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.summary-item__content > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.summary-item__content > strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item__content > small {
  color: var(--text-muted);
}

.summary-item__content .cart-item-quantity-control {
  width: 112px;
  margin-top: 8px;
}

.summary-item__price {
  min-width: 130px;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.summary-item__price > span {
  color: var(--text-muted);
  font-size: 11px;
}

.summary-item__price > strong {
  font-size: 17px;
  font-weight: 800;
}

.summary-item__price > button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--danger);
}

.summary-item__price > button:hover {
  background: var(--danger-soft);
}

/* =========================================================
   PERFIL CLIENTE EN RESUMEN
   ========================================================= */

.summary-login-required {
  margin: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.summary-login-required__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.summary-login-required strong {
  font-size: 14px;
  font-weight: 800;
}

.summary-login-required p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.customer-profile-summary {
  overflow: hidden;
}

.customer-profile-card {
  margin: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.customer-profile-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #111111;
  color: #ffffff;
}

.customer-profile-card__content {
  min-width: 0;
  display: grid;
}

.customer-profile-card__content span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.customer-profile-card__content strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-profile-card__content small {
  color: var(--text-soft);
}

.customer-profile-card__status {
  padding: 5px 9px;
  border-radius: 20px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-profile-data-grid {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-profile-data-grid article {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.customer-profile-data-grid span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-profile-data-grid strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-profile-summary__actions {
  padding: 0 18px 18px;
}

.delivery-profile-preview {
  margin: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.delivery-profile-preview__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.delivery-profile-preview strong {
  font-size: 14px;
}

.delivery-profile-preview p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.form-field {
  padding: 18px;
  display: grid;
  gap: 7px;
}

.form-field > span {
  font-size: 12px;
  font-weight: 800;
}

.form-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  color: var(--text);
}

.form-field textarea:focus {
  border-color: var(--line-strong);
}

.form-field small {
  color: var(--text-muted);
  font-size: 10px;
}

/* =========================================================
   SIDEBAR TOTAL
   ========================================================= */

.summary-sidebar {
  position: sticky;
  top:
    calc(
      var(--topbar-height) +
      var(--nav-height) +
      18px
    );
}

.order-total-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.order-total-card__header {
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: #111111;
  color: #ffffff;
}

.order-total-card__header span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.order-total-card__header h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

.order-total-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
}

.order-total-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.order-total-card__metrics > div {
  padding: 14px 18px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.order-total-card__metrics > div:last-child {
  border-right: 0;
}

.order-total-card__metrics span {
  color: var(--text-muted);
  font-size: 10px;
}

.order-total-card__metrics strong {
  font-size: 18px;
  font-weight: 800;
}

.order-total-card__price-breakdown {
  padding: 15px 18px;
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.order-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.order-price-row span {
  color: var(--text-soft);
}

.order-price-row strong {
  font-size: 13px;
}

.order-price-row--discount strong {
  color: var(--success);
}

.order-price-row--subtotal {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.order-total-card__total {
  padding: 17px 18px;
  display: grid;
  gap: 2px;
  background: var(--bg-soft);
}

.order-total-card__total span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-total-card__total strong {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.order-total-card__notice {
  margin: 0;
  padding: 13px 18px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.order-total-card > .primary-button,
.order-total-card > .secondary-button {
  width: calc(100% - 36px);
  margin: 0 18px 12px;
}

/* =========================================================
   MIS PEDIDOS
   ========================================================= */

.my-orders-list {
  display: grid;
  gap: 12px;
}

.my-order-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.my-order-card__header {
  min-height: 64px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.my-order-card__header > div {
  display: grid;
  gap: 2px;
}

.my-order-card__header span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.my-order-card__header strong {
  font-size: 16px;
}

.my-order-status {
  padding: 5px 9px;
  border-radius: 20px;
  background: var(--bg-muted);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.my-order-status--entregado {
  background: var(--success-soft);
  color: var(--success);
}

.my-order-status--cancelado {
  background: var(--danger-soft);
  color: var(--danger);
}

.my-order-status--despachado,
.my-order-status--preparado,
.my-order-status--en_preparacion {
  background: var(--warning-soft);
  color: var(--warning);
}

.my-order-card__body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.my-order-card__body article {
  padding: 15px 16px;
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
}

.my-order-card__body article:last-child {
  border-right: 0;
}

.my-order-card__body span {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.my-order-card__body strong {
  font-size: 13px;
}

/* =========================================================
   CONFIRMACIÓN
   ========================================================= */

.confirmation-page {
  min-height: 68vh;
  padding: 44px 0;
  display: grid;
  place-items: center;
}

.confirmation-card {
  width: min(100%, 680px);
  padding: 34px;
  display: grid;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: center;
}

.confirmation-card__icon {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.confirmation-card__icon svg {
  width: 34px;
  height: 34px;
}

.confirmation-card h1 {
  margin: 7px 0;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.confirmation-card > p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
}

.confirmation-card__number {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.confirmation-card__number span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.confirmation-card__number strong {
  font-size: 24px;
  font-weight: 800;
}

.confirmation-card__information {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.confirmation-card__information article {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
}

.confirmation-card__information article > svg {
  color: var(--text-muted);
}

.confirmation-card__information div {
  min-width: 0;
  display: grid;
}

.confirmation-card__information span {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.confirmation-card__information strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmation-card__actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* =========================================================
   DRAWER CARRITO
   ========================================================= */

.order-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(0, 0, 0, 0.46);
}

.order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1900;
  width: min(100%, 440px);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translateX(102%);
  border-left: 1px solid var(--line);
  background: #ffffff;
  transition: transform 0.24s ease;
}

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

.order-drawer__header {
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: #111111;
  color: #ffffff;
}

.order-drawer__header h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.modal-close-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
}

.order-drawer__header .modal-close-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #ffffff;
}

.order-drawer__items {
  min-height: 0;
  overflow-y: auto;
}

.order-drawer-item {
  min-height: 116px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}

.order-drawer-item__media {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.order-drawer-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-drawer-item__content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-drawer-item__content > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.order-drawer-item__content > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-drawer-item__content > small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-drawer-item__content .cart-item-quantity-control {
  width: 100px;
  margin-top: 7px;
  grid-template-columns: 29px minmax(0, 1fr) 29px;
}

.order-drawer-item__content .cart-item-quantity-control button {
  width: 29px;
  min-height: 32px;
}

.order-drawer-item__price {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.order-drawer-item__price > span {
  color: var(--text-muted);
  font-size: 9px;
}

.order-drawer-item__price > strong {
  font-size: 12px;
}

.order-drawer-item__price > button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--danger);
}

.order-drawer__footer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.order-drawer__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.order-drawer__metrics > div {
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.order-drawer__metrics > div:last-child {
  border-right: 0;
}

.order-drawer__metrics span {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.order-drawer__metrics strong {
  font-size: 15px;
}

.order-drawer__total {
  padding: 14px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.order-drawer__total span {
  color: var(--text-muted);
  font-size: 11px;
}

.order-drawer__total strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* =========================================================
   DIALOG PRODUCTO
   ========================================================= */

dialog {
  padding: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(1px);
}

.product-detail-dialog {
  width: min(calc(100% - 30px), 980px);
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.product-detail-dialog__shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.product-detail-dialog__header {
  min-height: 76px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.product-detail-dialog__header h2 {
  margin: 4px 0 0;
  font-size: 21px;
}

.product-detail-dialog__body {
  display: grid;
  grid-template-columns:
    minmax(300px, 0.9fr)
    minmax(0, 1.1fr);
}

.product-detail-dialog__media {
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f5f5f5;
}

.product-detail-dialog__media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-detail-dialog__placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.product-detail-dialog__placeholder svg {
  width: 44px;
  height: 44px;
}

.product-detail-dialog__content {
  padding: 22px;
}

.product-detail-dialog__metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.product-detail-dialog__metadata > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-dialog__metadata > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-detail-dialog__metadata strong {
  color: var(--accent);
  font-size: 11px;
}

.product-detail-dialog__metadata button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.product-detail-dialog__content > p {
  margin: 18px 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.product-detail-dialog__attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-dialog__attributes article {
  padding: 10px 11px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.product-detail-dialog__attributes span {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.product-detail-dialog__attributes strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-dialog__prices {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.product-detail-dialog__prices article {
  padding: 14px;
  display: grid;
  gap: 3px;
  border-right: 1px solid var(--line);
}

.product-detail-dialog__prices article:last-child {
  border-right: 0;
}

.product-detail-dialog__prices span {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.product-detail-dialog__prices strong {
  font-size: 20px;
  font-weight: 800;
}

.product-detail-dialog__purchase {
  margin-top: 18px;
  display: grid;
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(160px, 1fr);
  align-items: end;
  gap: 12px;
}

.product-detail-dialog__purchase label {
  display: grid;
  gap: 7px;
}

.product-detail-dialog__purchase label > span,
.product-detail-dialog__purchase > div > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-detail-dialog__purchase > div {
  min-height: 65px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.product-detail-dialog__purchase > div strong {
  font-size: 20px;
  font-weight: 800;
}

.product-detail-dialog__footer {
  min-height: 70px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* =========================================================
   CONFIRMATION DIALOG
   ========================================================= */

.confirmation-dialog {
  width: min(calc(100% - 30px), 430px);
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.confirmation-dialog__content {
  padding: 28px;
  display: grid;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: center;
}

.confirmation-dialog__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
}

.confirmation-dialog__icon--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.confirmation-dialog__content h2 {
  margin: 14px 0 6px;
  font-size: 22px;
}

.confirmation-dialog__content p {
  margin: 0;
  color: var(--text-soft);
}

.confirmation-dialog__actions {
  width: 100%;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4000;
  width: min(calc(100% - 36px), 390px);
  display: grid;
  gap: 8px;
}

.toast {
  min-height: 58px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  animation: toastEnter 0.22s ease both;
}

.toast.is-leaving {
  animation: toastLeave 0.24s ease both;
}

.toast__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
}

.toast p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.toast > button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
}

.toast--success .toast__icon {
  background: var(--success-soft);
  color: var(--success);
}

.toast--error .toast__icon {
  background: var(--danger-soft);
  color: var(--danger);
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastLeave {
  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

/* =========================================================
   RESPONSIVE 1200
   ========================================================= */

@media (max-width: 1200px) {
  .topbar__main-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 16px;
  }

  .brand {
    min-width: 190px;
  }

  .brand__text,
  .brand__divider {
    display: none;
  }

  .products-grid,
  .products-grid--featured,
  .categories-grid,
  .models-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-product-category-group__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-product-category-card:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .home-product-category-card:nth-child(3n) {
    border-right: 0;
  }

  .summary-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .customer-profile-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE 980
   ========================================================= */

@media (max-width: 980px) {
  :root {
    --topbar-height: 66px;
  }

  .promotion-bar {
    height: 38px;
  }

  .promotion-bar__item {
    height: 38px;
    padding: 0 22px;
  }

  .promotion-bar__text {
    font-size: 11px;
  }

  .topbar__main-inner {
    min-height: var(--topbar-height);
    padding: 0 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 58px auto;
  }

  .topbar-icon-button--mobile {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 94px;
    justify-self: start;
  }

  .brand__logo {
    width: 92px;
    height: 36px;
  }

  .topbar__actions {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar__search {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 12px;
  }

  .topbar__navigation-wrapper {
    display: none;
  }

  .topbar__navigation-wrapper.is-open {
    display: block;
  }

  .topbar__navigation {
    padding: 8px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .topbar-nav-button {
    min-height: 42px;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
  }

  .topbar-nav-button::after {
    display: none;
  }

  .topbar-nav-button--danger {
    margin-left: 0;
  }

  .main-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-banner,
  .hero-banner__slide,
  .hero-banner__fallback,
  .hero-banner__slide > img,
  .hero-banner__skeleton,
  .hero-banner__skeleton span {
    min-height: 340px;
  }

  .hero-banner__overlay,
  .hero-banner__fallback {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero-banner__dots {
    right: 28px;
  }

  .home-product-category-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-category-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .home-product-category-card:nth-child(2n) {
    border-right: 0;
  }

  .summary-layout {
    grid-template-columns: 1fr;
  }

  .summary-sidebar {
    position: static;
  }

  .summary-page-header {
    grid-template-columns: 1fr;
  }

  .summary-progress {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .product-detail-dialog__body {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog__media {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

/* =========================================================
   RESPONSIVE 760
   ========================================================= */

@media (max-width: 760px) {
  .main-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar__main-inner {
    padding-right: 14px;
    padding-left: 14px;
  }

  .login-button span,
  .order-topbar-button__information,
  .user-menu__information,
  .user-menu__button > svg {
    display: none;
  }

  .login-button {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .order-topbar-button {
    width: 46px;
    padding: 0;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .order-topbar-button__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    margin: 0;
    font-size: 9px;
  }

  .user-menu__button {
    width: 42px;
    padding: 4px;
    grid-template-columns: 1fr;
  }

  .user-menu__dropdown {
    position: fixed;
    top: 62px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .page-header,
  .products-page-header {
    grid-template-columns: 1fr;
  }

  .products-page-header__summary {
    width: 100%;
  }

  .hero-banner,
  .hero-banner__slide,
  .hero-banner__fallback,
  .hero-banner__slide > img,
  .hero-banner__skeleton,
  .hero-banner__skeleton span {
    min-height: 290px;
  }

  .hero-banner__overlay {
    padding: 24px 20px;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82),
        rgba(0, 0, 0, 0.45)
      );
  }

  .hero-banner__fallback {
    padding: 24px 20px;
  }

  .hero-banner__content h1 {
    font-size: 38px;
  }

  .hero-banner__dots {
    right: 20px;
    bottom: 16px;
  }

  .brands-strip {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .brands-strip__arrow {
    width: 32px;
    height: 32px;
  }

  .home-product-category-group__header {
    align-items: flex-start;
  }

  .home-product-category-group__grid,
  .categories-grid,
  .models-grid,
  .products-grid,
  .products-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-category-card__button {
    min-height: 270px;
    grid-template-rows: 150px minmax(0, 1fr);
  }

  .home-product-category-card__media {
    min-height: 150px;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
  }

  .products-toolbar__right {
    justify-content: space-between;
  }

  .sort-control {
    flex: 1;
  }

  .products-grid--list .product-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .products-grid--list .product-card__media {
    min-height: 190px;
  }

  .summary-login-required {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .summary-login-required .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .customer-profile-data-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .summary-item__media {
    width: 74px;
    height: 74px;
  }

  .summary-item__price {
    grid-column: 2;
    min-width: 0;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    justify-items: start;
  }

  .summary-item__price > button {
    justify-self: end;
  }

  .commercial-policy-grid {
    grid-template-columns: 1fr;
  }

  .commercial-policy-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .commercial-policy-card:last-child {
    border-bottom: 0;
  }

  .commercial-options-grid {
    grid-template-columns: 1fr;
  }

  .my-order-card__body {
    grid-template-columns: repeat(2, 1fr);
  }

  .my-order-card__body article:nth-child(2) {
    border-right: 0;
  }

  .my-order-card__body article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   RESPONSIVE 520
   ========================================================= */

@media (max-width: 520px) {
  body {
    font-size: 13px;
  }

  .promotion-bar {
    height: 36px;
  }

  .promotion-bar__item {
    height: 36px;
    padding: 0 18px;
    gap: 7px;
  }

  .promotion-bar__text {
    font-size: 10px;
    letter-spacing: 0.025em;
  }

  .promotion-bar__icon {
    width: 17px;
    height: 17px;
  }

  .promotion-bar__icon svg {
    width: 15px;
    height: 15px;
  }

  .topbar__actions {
    gap: 5px;
  }

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

  .hero-banner-section {
    margin-bottom: 24px;
  }

  .hero-banner,
  .hero-banner__slide,
  .hero-banner__fallback,
  .hero-banner__slide > img,
  .hero-banner__skeleton,
  .hero-banner__skeleton span {
    min-height: 250px;
  }

  .hero-banner__overlay {
    align-items: end;
    padding: 20px 14px 44px;
  }

  .hero-banner__fallback {
    align-items: end;
    padding: 20px 14px 44px;
  }

  .hero-banner__content h1 {
    font-size: 30px;
  }

  .hero-banner__content p {
    margin: 10px 0 16px;
    font-size: 13px;
  }

  .hero-banner__dots {
    right: 14px;
    bottom: 14px;
  }

  .home-categories-section {
    padding-top: 24px;
  }

  .home-product-category-group {
    border-radius: var(--radius-md);
  }

  .home-product-category-group__header {
    min-height: auto;
    padding: 15px;
    flex-direction: column;
  }

  .home-product-category-group__open {
    width: 100%;
  }

  .home-product-category-group__grid,
  .categories-grid,
  .models-grid,
  .products-grid,
  .products-grid--featured {
    grid-template-columns: 1fr;
  }

  .home-product-category-card,
  .home-product-category-card:nth-child(2n),
  .home-product-category-card:nth-child(3n),
  .home-product-category-card:nth-child(4n) {
    border-right: 0;
  }

  .home-product-category-card__button {
    min-height: 145px;
    grid-template-columns: 125px minmax(0, 1fr);
    grid-template-rows: 145px;
  }

  .home-product-category-card__media {
    min-height: 145px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .home-product-category-card__content {
    padding: 15px 42px 15px 14px;
  }

  .home-product-category-card__title {
    font-size: 16px;
  }

  .home-product-category-card__description {
    -webkit-line-clamp: 2;
  }

  .home-product-category-card__arrow {
    right: 10px;
    bottom: 12px;
  }

  .category-card__button,
  .category-card--compact .category-card__button {
    grid-template-rows: 170px auto;
  }

  .product-card {
    grid-template-rows: 240px auto;
  }

  .products-toolbar__right {
    align-items: stretch;
  }

  .sort-control {
    min-width: 0;
  }

  .view-mode-control {
    display: none;
  }

  .products-grid--list {
    grid-template-columns: 1fr;
  }

  .products-grid--list .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
  }

  .products-grid--list .product-card__media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-card__purchase-controls {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .products-content__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-progress__step {
    font-size: 0;
  }

  .summary-progress__step > span,
  .summary-progress__step > svg {
    font-size: 11px;
  }

  .summary-item {
    position: relative;
    padding: 12px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .summary-item__media {
    width: 62px;
    height: 62px;
  }

  .summary-item__content > strong {
    white-space: normal;
  }

  .summary-item__price {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .summary-item__price > button {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .customer-profile-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-profile-card__status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .commercial-levels-grid {
    grid-template-columns: 1fr;
  }

  .confirmation-card {
    padding: 24px 18px;
  }

  .confirmation-card h1 {
    font-size: 28px;
  }

  .confirmation-card__information {
    grid-template-columns: 1fr;
  }

  .confirmation-card__actions {
    width: 100%;
    flex-direction: column;
  }

  .confirmation-card__actions > * {
    width: 100%;
  }

  .my-order-card__body {
    grid-template-columns: 1fr;
  }

  .my-order-card__body article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .my-order-card__body article:last-child {
    border-bottom: 0;
  }

  .order-drawer {
    width: 100%;
  }

  .product-detail-dialog__content {
    padding: 16px;
  }

  .product-detail-dialog__attributes,
  .product-detail-dialog__prices,
  .product-detail-dialog__purchase {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog__prices article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-detail-dialog__prices article:last-child {
    border-bottom: 0;
  }

  .product-detail-dialog__footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .confirmation-dialog__actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE 390
   ========================================================= */

@media (max-width: 390px) {
  .home-product-category-card__button {
    min-height: 130px;
    grid-template-columns: 105px minmax(0, 1fr);
    grid-template-rows: 130px;
  }

  .home-product-category-card__media {
    min-height: 130px;
  }

  .home-product-category-card__content {
    padding:
      12px
      38px
      12px
      12px;
  }

  .home-product-category-card__family {
    font-size: 8px;
  }

  .home-product-category-card__title {
    font-size: 15px;
  }

  .home-product-category-card__description {
    display: none;
  }

  .home-product-category-card__count {
    padding-top: 9px;
    font-size: 9px;
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .promotion-bar__track {
    animation: none;
    transform: none;
  }

  .promotion-bar__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }
}/* =========================================================
   CATÁLOGO DE PRODUCTOS · LAYOUT CON FILTROS LATERALES

   Agregar al final de style.css
   ========================================================= */

/* =========================================================
   BLOQUE PRINCIPAL
   ========================================================= */

.products-catalog-layout {
  position: relative;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-bottom: 46px;
}

.products-catalog-main {
  min-width: 0;
}

/* =========================================================
   SIDEBAR DE FILTROS
   ========================================================= */

.products-filter-sidebar {
  position: sticky;
  top:
    calc(
      var(--topbar-height) +
      var(--nav-height) +
      18px
    );
  min-width: 0;
  max-height:
    calc(
      100vh -
      var(--topbar-height) -
      var(--nav-height) -
      36px
    );
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.products-filter-sidebar__header {
  min-height: 68px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.products-filter-sidebar__header > div {
  min-width: 0;
}

.products-filter-sidebar__header span {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-filter-sidebar__header h2 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.products-filter-sidebar__close {
  width: 34px;
  height: 34px;
  padding: 0;
  display: none;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
}

.products-filter-sidebar__close:hover {
  border-color: var(--line-strong);
  background: var(--bg-muted);
}

.products-filter-sidebar__close svg {
  width: 16px;
  height: 16px;
}

.products-filter-sidebar__content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.products-filter-sidebar__footer {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.products-filter-sidebar__footer .primary-button,
.products-filter-sidebar__footer .secondary-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 11px;
}

/* =========================================================
   GRUPOS DE FILTROS
   ========================================================= */

.product-filter-group {
  border-bottom: 1px solid var(--line);
}

.product-filter-group:last-child {
  border-bottom: 0;
}

.product-filter-group__header {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.product-filter-group__header:hover {
  background: var(--bg-soft);
}

.product-filter-group__header svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 0.18s ease;
}

.product-filter-group.is-open
.product-filter-group__header svg {
  transform: rotate(180deg);
}

.product-filter-group__body {
  display: none;
  padding: 0 15px 14px;
}

.product-filter-group.is-open
.product-filter-group__body {
  display: grid;
  gap: 3px;
}

.product-filter-group__empty {
  margin: 0;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 11px;
}

/* =========================================================
   OPCIONES DE FILTROS
   ========================================================= */

.product-filter-option {
  position: relative;
  min-height: 34px;
  padding: 5px 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.product-filter-option:hover {
  color: var(--text);
}

.product-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.product-filter-option__check {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #ffffff;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.product-filter-option__check::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  transform: rotate(45deg) scale(0);
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transition: transform 0.14s ease;
}

.product-filter-option input:checked +
.product-filter-option__check {
  border-color: #111111;
  background: #111111;
}

.product-filter-option input:checked +
.product-filter-option__check::after {
  transform: rotate(45deg) scale(1);
}

.product-filter-option input:focus-visible +
.product-filter-option__check {
  outline: 2px solid rgba(215, 25, 32, 0.2);
  outline-offset: 2px;
}

.product-filter-option__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-filter-option__count {
  min-width: 22px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

/* =========================================================
   FILTRO DE PRECIOS
   ========================================================= */

.product-price-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.product-price-filter label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.product-price-filter label > span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-price-filter input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.product-price-filter input:focus {
  border-color: var(--line-strong);
}

.product-price-filter input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   CABECERA DEL CATÁLOGO
   ========================================================= */

.products-catalog-header {
  min-height: 66px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.products-catalog-header__content {
  min-width: 0;
}

.products-catalog-header__content span {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.products-catalog-header__content h2 {
  margin: 4px 0 2px;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.products-catalog-header__content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.products-catalog-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* =========================================================
   BOTÓN FILTROS MÓVIL
   ========================================================= */

.products-mobile-filter-button {
  position: relative;
  min-height: 42px;
  padding: 0 13px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.products-mobile-filter-button:hover {
  border-color: #111111;
  background: var(--bg-soft);
}

.products-mobile-filter-button svg {
  width: 16px;
  height: 16px;
}

.active-product-filters-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
   BACKDROP DE FILTROS
   ========================================================= */

.products-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2050;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(1px);
}

body.has-open-filters {
  overflow: hidden;
}

/* =========================================================
   GRILLA DENTRO DEL CATÁLOGO
   ========================================================= */

.products-catalog-main .products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.products-catalog-main .products-grid--list {
  grid-template-columns: 1fr;
}

.products-catalog-main .products-content__heading {
  margin-bottom: 14px;
}

/* =========================================================
   TARJETAS MÁS COMPACTAS EN EL CATÁLOGO
   ========================================================= */

.products-catalog-main .product-card {
  grid-template-rows: 195px minmax(0, 1fr);
}

.products-catalog-main .product-card__content {
  padding: 13px;
}

.products-catalog-main .product-card__content h3 {
  font-size: 15px;
}

.products-catalog-main .product-card__price strong {
  font-size: 18px;
}

.products-catalog-main .product-card__purchase-controls {
  grid-template-columns: 102px minmax(0, 1fr);
}

/* =========================================================
   FILTROS ACTIVOS
   ========================================================= */

.products-active-filters {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.products-active-filter {
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
}

.products-active-filter button {
  width: 18px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
}

.products-active-filter button:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.products-active-filter svg {
  width: 12px;
  height: 12px;
}

/* =========================================================
   ESCRITORIO GRANDE
   ========================================================= */

@media (min-width: 1500px) {
  .products-catalog-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
  }

  .products-catalog-main .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE 1200
   ========================================================= */

@media (max-width: 1200px) {
  .products-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }

  .products-catalog-main .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE 980
   ========================================================= */

@media (max-width: 980px) {
  .products-catalog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .products-filter-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2100;
    width: min(88vw, 340px);
    max-height: none;
    height: 100vh;
    transform: translateX(-102%);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    transition: transform 0.22s ease;
  }

  .products-filter-sidebar.is-open {
    transform: translateX(0);
  }

  .products-filter-sidebar__close {
    display: grid;
  }

  .products-mobile-filter-button {
    display: inline-flex;
  }

  .products-catalog-header {
    align-items: center;
  }

  .products-catalog-main .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   RESPONSIVE 760
   ========================================================= */

@media (max-width: 760px) {
  .products-catalog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .products-catalog-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .products-mobile-filter-button {
    flex: 1;
  }

  .products-catalog-main .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-catalog-main .product-card {
    grid-template-rows: 185px minmax(0, 1fr);
  }
}

/* =========================================================
   RESPONSIVE 520
   ========================================================= */

@media (max-width: 520px) {
  .products-filter-sidebar {
    width: 100%;
  }

  .products-filter-sidebar__header {
    min-height: 64px;
  }

  .products-filter-sidebar__footer {
    padding-bottom:
      calc(
        12px +
        env(safe-area-inset-bottom)
      );
  }

  .products-catalog-main .products-grid {
    grid-template-columns: 1fr;
  }

  .products-catalog-main .product-card {
    grid-template-rows: 235px minmax(0, 1fr);
  }

  .products-catalog-header__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .products-mobile-filter-button {
    width: 100%;
  }

  .product-price-filter {
    grid-template-columns: 1fr;
  }
}/* =========================================================
   FICHA DE PRODUCTO · INFORMACIÓN AMPLIADA
   AGREGAR AL FINAL DE style.css
   ========================================================= */

.product-detail-dialog {
  width: min(calc(100% - 28px), 1180px);
}

.product-detail-dialog__body {
  grid-template-columns:
    minmax(360px, 0.95fr)
    minmax(0, 1.35fr);
}

.product-detail-dialog__media {
  min-height: 620px;
  align-self: stretch;
}

.product-detail-dialog__media img {
  max-height: 680px;
  padding: 24px;
}

.product-detail-dialog__content {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
}

.product-detail-dialog__attributes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-detail-information-section {
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.product-detail-information-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.product-detail-information-section > header {
  margin-bottom: 12px;
  display: grid;
  gap: 3px;
}

.product-detail-information-section > header > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-detail-information-section > header h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.product-detail-information-section > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.product-detail-information-section--description {
  padding: 0 0 16px;
}

.product-detail-information-section--policy,
.product-detail-information-section--benefit {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.product-detail-information-section--policy {
  border-left: 3px solid var(--text);
}

.product-detail-information-section--benefit {
  border-left: 3px solid var(--accent);
}

.product-detail-specifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.product-detail-specification {
  min-width: 0;
  min-height: 62px;
  padding: 11px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-detail-specification:nth-child(2n) {
  border-right: 0;
}

.product-detail-specification:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-detail-specification span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail-specification strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.product-detail-characteristics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-detail-characteristics > span {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.product-detail-characteristics svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  stroke-width: 2.2;
}

.product-detail-discount-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.product-detail-discount-level {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.product-detail-discount-level:nth-child(2n) {
  border-right: 0;
}

.product-detail-discount-level:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-detail-discount-level > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-detail-discount-level span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-discount-level strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-discount-level b {
  min-width: 58px;
  height: 30px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: var(--bg-muted);
  color: var(--text);
  font-size: 10px;
  white-space: nowrap;
}

.product-detail-discount-level.is-active {
  background: #111111;
}

.product-detail-discount-level.is-active span,
.product-detail-discount-level.is-active strong {
  color: #ffffff;
}

.product-detail-discount-level.is-active b {
  background: #ffffff;
  color: #111111;
}

.product-detail-information-section--calculation {
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.product-detail-calculation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-detail-calculation-row span {
  color: var(--text-soft);
  font-size: 11px;
}

.product-detail-calculation-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.product-detail-calculation-row[data-product-detail-discount-row] {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.product-detail-calculation-row[data-product-detail-discount-row] strong {
  color: var(--success);
}

.product-detail-next-level {
  min-height: 42px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.45;
}

.product-detail-next-level svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
}

.product-detail-next-level strong,
.product-detail-next-level b {
  color: var(--text);
  font-weight: 800;
}

.product-detail-dialog__prices {
  margin-top: 16px;
}

.product-detail-dialog__purchase {
  margin-top: 16px;
}

.product-detail-dialog__purchase > div strong {
  font-size: 22px;
}

.product-detail-dialog__footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

@media (max-width: 980px) {
  .product-detail-dialog {
    width: min(calc(100% - 20px), 760px);
  }

  .product-detail-dialog__body {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog__media {
    min-height: 360px;
    max-height: 460px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-detail-dialog__media img {
    max-height: 460px;
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .product-detail-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    border-radius: var(--radius-md);
  }

  .product-detail-dialog__shell {
    border-radius: var(--radius-md);
  }

  .product-detail-dialog__header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .product-detail-dialog__header h2 {
    font-size: 18px;
  }

  .product-detail-dialog__media {
    min-height: 280px;
    max-height: 340px;
  }

  .product-detail-dialog__media img {
    max-height: 340px;
    padding: 14px;
  }

  .product-detail-dialog__content {
    padding: 15px;
  }

  .product-detail-specifications,
  .product-detail-discount-levels {
    grid-template-columns: 1fr;
  }

  .product-detail-specification,
  .product-detail-discount-level,
  .product-detail-specification:nth-child(2n),
  .product-detail-discount-level:nth-child(2n),
  .product-detail-specification:nth-last-child(-n + 2),
  .product-detail-discount-level:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-detail-specification:last-child,
  .product-detail-discount-level:last-child {
    border-bottom: 0;
  }

  .product-detail-dialog__footer {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog__footer > * {
    width: 100%;
  }
}/* =========================================================
   AGREGAR AL FINAL DE style.css
   BANNER SIN CAPA OSCURA + LOGO CON FONDO NEGRO
   ========================================================= */

/* =========================================================
   QUITAR OSCURECIMIENTO DEL BANNER
   ========================================================= */

.hero-banner__overlay {
  background: transparent !important;
}

/* =========================================================
   MANTENER LEGIBLE EL TEXTO SIN OSCURECER TODA LA IMAGEN
   ========================================================= */

.hero-banner__content {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(2px);
}

/* =========================================================
   SI EL BANNER NO TIENE TEXTO, NO MOSTRAR LA CAJA
   ========================================================= */

.hero-banner__content:empty {
  display: none;
}

/* =========================================================
   LOGO DEL TOPBAR CON FONDO NEGRO
   Evita que quede dentro de una caja blanca
   ========================================================= */

.brand__logo {
  background: transparent !important;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}

/* =========================================================
   EVITAR FILTROS O MEZCLAS SOBRE EL LOGO
   ========================================================= */

#siteLogo {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .hero-banner__overlay {
    background: transparent !important;
  }

  .hero-banner__content {
    width: min(100%, 520px);
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 520px) {
  .hero-banner__content {
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
  }
}

/* =========================================================
   REEMPLAZAR DESDE LA LÍNEA DONDE EMPIEZA:

   background:
     var(...)

   HASTA LA LLAVE } ANTES DE:

   .promotion-bar__viewport {

   POR ESTE BLOQUE COMPLETO:
   ========================================================= */
.promotion-bar {
  background:
    var(
      --promotion-bar-background,
      #79e629
    ) !important;

  color:
    var(
      --promotion-bar-color,
      #111111
    ) !important;
}

.promotion-bar__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: inherit !important;
  color: inherit !important;
}

.promotion-bar__track {
  position:
    absolute;

  top:
    0;

  left:
    50%;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    max-content;

  min-width:
    max-content;

  height:
    100%;

  padding:
    0;

  background:
    transparent !important;

  color:
    inherit !important;

  transform:
    translateX(-50%);

  animation:
    none !important;

  will-change:
    transform;
}

.promotion-bar__track.is-running {
  animation:
    promotionBarCenteredMove
    22s
    linear
    infinite
    !important;
}

.promotion-bar__group {
  display:
    flex;

  flex:
    0 0 auto;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    max-content;

  height:
    100%;

  background:
    transparent !important;

  color:
    inherit !important;
}

.promotion-bar__item {
  display:
    inline-flex;

  flex:
    0 0 auto;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    max-content;

  height:
    100%;

  padding:
    0 30px;

  border:
    0 !important;

  background:
    transparent !important;

  color:
    inherit !important;
}

.promotion-bar__item::before,
.promotion-bar__item::after {
  display:
    none !important;

  content:
    none !important;
}

.promotion-bar__icon,
.promotion-bar__text,
.promotion-bar__item svg {
  color:
    inherit !important;

  stroke:
    currentColor !important;
}

.promotion-bar__item--link:hover {
  background:
    transparent !important;

  color:
    inherit !important;

  filter:
    brightness(
      0.94
    );
}

@keyframes promotionBarCenteredMove {
  0% {
    transform:
      translateX(
        -50%
      );
  }

  45% {
    transform:
      translateX(
        calc(
          -100% -
          50vw
        )
      );
  }

  45.01% {
    transform:
      translateX(
        50vw
      );
  }

  100% {
    transform:
      translateX(
        -50%
      );
  }
}

@media (
  max-width:
  760px
) {
  .promotion-bar__track.is-running {
    animation-duration:
      18s !important;
  }

  .promotion-bar__item {
    padding:
      0 22px;
  }
}

@media (
  max-width:
  520px
) {
  .promotion-bar__track.is-running {
    animation-duration:
      16s !important;
  }

  .promotion-bar__item {
    padding:
      0 18px;
  }
}/* AGREGAR AL FINAL DE style.css */

.promotion-bar__track.is-running {
  animation-duration: 60s !important;
}

@media (max-width: 760px) {
  .promotion-bar__track.is-running {
    animation-duration: 52s !important;
  }
}

@media (max-width: 520px) {
  .promotion-bar__track.is-running {
    animation-duration: 46s !important;
  }
}/* =========================================================
   ARCHIVO:
   style.css

   AGREGAR AL FINAL
   PRODUCTOS DEBAJO DE LA PÁGINA CATEGORÍAS
   ========================================================= */

/* =========================================================
   SECCIÓN PRINCIPAL
   ========================================================= */

.categories-products-section {
  width: 100%;
  margin-top: 54px;
  padding-bottom: 64px;
}

.categories-products-section__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 30px;
  background: var(--line);
}

.categories-products-section__header {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.categories-products-section__header > div {
  min-width: 0;
}

.categories-products-section__header h2 {
  margin: 5px 0 4px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.categories-products-section__header p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.categories-products-section__header > strong {
  min-width: max-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.categories-products-toolbar {
  margin-bottom: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr)
    220px
    auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.products-toolbar__search {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.products-toolbar__search:focus-within {
  border-color: var(--line-strong);
}

.products-toolbar__search > svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.products-toolbar__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.products-toolbar__search input::placeholder {
  color: var(--text-muted);
}

.products-toolbar__search button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
}

.products-toolbar__search button:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.products-toolbar__search button svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   ORDENAMIENTO
   ========================================================= */

.products-toolbar__sort {
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.products-toolbar__sort > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.products-toolbar__sort select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

/* =========================================================
   CAMBIO GRILLA / LISTA
   ========================================================= */

.products-view-switch {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(2, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.products-view-switch button {
  width: 42px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
}

.products-view-switch button:last-child {
  border-right: 0;
}

.products-view-switch button:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.products-view-switch button.is-active {
  background: #111111;
  color: #ffffff;
}

.products-view-switch svg {
  width: 17px;
  height: 17px;
}

/* =========================================================
   LAYOUT FILTROS + RESULTADOS
   ========================================================= */

.categories-products-layout {
  position: relative;
  display: grid;
  grid-template-columns:
    238px
    minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-bottom: 0;
}

.categories-products-filter-sidebar {
  position: sticky;
  top:
    calc(
      var(--topbar-height) +
      var(--nav-height) +
      18px
    );
}

.products-results {
  min-width: 0;
}

.products-results__header {
  min-height: 42px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   GRILLA DE PRODUCTOS DENTRO DE CATEGORÍAS
   ========================================================= */

.categories-products-section
.products-grid {
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );
  gap: 15px;
}

.categories-products-section
.products-grid--list {
  grid-template-columns: 1fr;
}

.categories-products-section
.product-card {
  grid-template-rows:
    195px
    minmax(0, 1fr);
}

.categories-products-section
.product-card__content {
  padding: 13px;
}

.categories-products-section
.product-card__content h3 {
  font-size: 15px;
}

.categories-products-section
.product-card__price strong {
  font-size: 18px;
}

.categories-products-section
.product-card__purchase-controls {
  grid-template-columns:
    102px
    minmax(0, 1fr);
}

/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.categories-products-section
.products-empty-state {
  min-height: 320px;
  padding: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-align: center;
}

.categories-products-section
.products-empty-state > svg {
  width: 38px;
  height: 38px;
  color: var(--text-muted);
}

.categories-products-section
.products-empty-state h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.categories-products-section
.products-empty-state p {
  max-width: 420px;
  margin: 0 0 10px;
  color: var(--text-muted);
}

/* =========================================================
   CONTADOR DEL BOTÓN MÓVIL
   ========================================================= */

[data-categories-products-filter-count] {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
   ESCRITORIO GRANDE
   ========================================================= */

@media (min-width: 1500px) {
  .categories-products-layout {
    grid-template-columns:
      250px
      minmax(0, 1fr);
    gap: 30px;
  }

  .categories-products-section
  .products-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );
  }
}

/* =========================================================
   RESPONSIVE 1200
   ========================================================= */

@media (max-width: 1200px) {
  .categories-products-layout {
    grid-template-columns:
      220px
      minmax(0, 1fr);
    gap: 20px;
  }

  .categories-products-section
  .products-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

/* =========================================================
   RESPONSIVE 980
   ========================================================= */

@media (max-width: 980px) {
  .categories-products-toolbar {
    grid-template-columns:
      minmax(0, 1fr)
      190px
      auto;
  }

  .categories-products-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .categories-products-filter-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2100;
    width: min(88vw, 340px);
    height: 100vh;
    max-height: none;
    transform: translateX(-102%);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    transition: transform 0.22s ease;
  }

  .categories-products-filter-sidebar.is-open {
    transform: translateX(0);
  }

  .categories-products-section
  .products-mobile-filter-button {
    margin-bottom: 14px;
    display: inline-flex;
  }

  .categories-products-section
  .products-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }
}

/* =========================================================
   RESPONSIVE 760
   ========================================================= */

@media (max-width: 760px) {
  .categories-products-section {
    margin-top: 40px;
    padding-bottom: 46px;
  }

  .categories-products-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .categories-products-section__header > strong {
    min-width: 0;
  }

  .categories-products-toolbar {
    grid-template-columns: 1fr;
  }

  .products-toolbar__sort {
    grid-template-columns:
      auto
      minmax(0, 1fr);
  }

  .products-view-switch {
    justify-self: start;
  }

  .categories-products-section
  .products-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .categories-products-section
  .product-card {
    grid-template-rows:
      185px
      minmax(0, 1fr);
  }
}

/* =========================================================
   RESPONSIVE 520
   ========================================================= */

@media (max-width: 520px) {
  .categories-products-section {
    margin-top: 32px;
  }

  .categories-products-section__divider {
    margin-bottom: 22px;
  }

  .categories-products-section__header h2 {
    font-size: 28px;
  }

  .categories-products-toolbar {
    padding: 10px;
  }

  .products-view-switch {
    display: none;
  }

  .categories-products-filter-sidebar {
    width: 100%;
  }

  .categories-products-section
  .products-mobile-filter-button {
    width: 100%;
  }

  .categories-products-section
  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-products-section
  .product-card {
    grid-template-rows:
      235px
      minmax(0, 1fr);
  }

  .categories-products-section
  .product-card__purchase-controls {
    grid-template-columns:
      106px
      minmax(0, 1fr);
  }
}/* =========================================================
   AGREGAR AL FINAL DE style.css
   CORRECCIÓN DEL MODO LISTA EN CATEGORÍAS
   ========================================================= */

.categories-products-section
.products-grid--list {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.categories-products-section
.products-grid--list
.product-card {
  width: 100%;
  min-height: 230px;
  display: grid;
  grid-template-columns:
    240px
    minmax(0, 1fr);
  grid-template-rows: auto;
}

.categories-products-section
.products-grid--list
.product-card__media {
  width: 100%;
  min-width: 0;
  min-height: 230px;
  height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.categories-products-section
.products-grid--list
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.categories-products-section
.products-grid--list
.product-card__content {
  min-width: 0;
  padding: 18px;
}

.categories-products-section
.products-grid--list
.product-card__content h3 {
  min-height: auto;
  margin-top: 8px;
  font-size: 20px;
}

.categories-products-section
.products-grid--list
.product-card__content > p {
  min-height: auto;
  max-width: 760px;
  -webkit-line-clamp: 3;
}

.categories-products-section
.products-grid--list
.product-card__price-block {
  min-height: auto;
}

.categories-products-section
.products-grid--list
.product-card__purchase-controls {
  max-width: 430px;
  grid-template-columns:
    110px
    minmax(160px, 1fr);
}

.categories-products-section
.products-grid--list
.product-card__footer {
  max-width: 560px;
}

@media (max-width: 760px) {
  .categories-products-section
  .products-grid--list
  .product-card {
    grid-template-columns:
      170px
      minmax(0, 1fr);
  }

  .categories-products-section
  .products-grid--list
  .product-card__media {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .categories-products-section
  .products-grid--list
  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows:
      220px
      auto;
  }

  .categories-products-section
  .products-grid--list
  .product-card__media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .categories-products-section
  .products-grid--list
  .product-card__purchase-controls {
    max-width: none;
    grid-template-columns:
      106px
      minmax(0, 1fr);
  }
}/* =========================================================
   AGREGAR AL FINAL DE style.css
   CORRECCIÓN DEL MODO LISTA EN LA PÁGINA PRODUCTOS
   ========================================================= */

.products-catalog-main
.products-grid--list {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 14px;
}

.products-catalog-main
.products-grid--list
.product-card {
  width: 100%;
  min-height: 230px;
  display: grid;
  grid-template-columns:
    240px
    minmax(0, 1fr);
  grid-template-rows: auto;
}

.products-catalog-main
.products-grid--list
.product-card__media {
  width: 100%;
  min-width: 0;
  min-height: 230px;
  height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.products-catalog-main
.products-grid--list
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-catalog-main
.products-grid--list
.product-card__content {
  min-width: 0;
  padding: 18px;
}

.products-catalog-main
.products-grid--list
.product-card__content h3 {
  min-height: auto;
  margin-top: 8px;
  font-size: 20px;
}

.products-catalog-main
.products-grid--list
.product-card__content > p {
  min-height: auto;
  max-width: 760px;
  -webkit-line-clamp: 3;
}

.products-catalog-main
.products-grid--list
.product-card__price-block {
  min-height: auto;
}

.products-catalog-main
.products-grid--list
.product-card__purchase-controls {
  max-width: 430px;
  grid-template-columns:
    110px
    minmax(160px, 1fr);
}

.products-catalog-main
.products-grid--list
.product-card__footer {
  max-width: 560px;
}

@media (max-width: 760px) {
  .products-catalog-main
  .products-grid--list
  .product-card {
    grid-template-columns:
      170px
      minmax(0, 1fr);
  }

  .products-catalog-main
  .products-grid--list
  .product-card__media {
    min-height: 210px;
  }
}

@media (max-width: 520px) {
  .products-catalog-main
  .products-grid--list
  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows:
      220px
      auto;
  }

  .products-catalog-main
  .products-grid--list
  .product-card__media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .products-catalog-main
  .products-grid--list
  .product-card__purchase-controls {
    max-width: none;
    grid-template-columns:
      106px
      minmax(0, 1fr);
  }
}/* =========================================================
   MIS PEDIDOS · COLORES SEGÚN ESTADO
   ========================================================= */

.my-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Pendiente */
.my-order-status--pendiente {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

/* Confirmado */
.my-order-status--confirmado {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

/* En preparación */
.my-order-status--en-preparacion {
  color: #7c3aed;
  background: #ede9fe;
  border-color: #ddd6fe;
}

/* Listo */
.my-order-status--listo {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}

/* Despachado */
.my-order-status--despachado {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

/* Entregado */
.my-order-status--entregado {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

/* Cancelado */
.my-order-status--cancelado {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}/* =========================================================
   POLÍTICA COMERCIAL · BLOQUE DESTACADO
   ========================================================= */

.commercial-policy-notice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-left: 4px solid #111111;
  border-radius: 12px;
  background: #f8f8f8;
}

.commercial-policy-notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
}

.commercial-policy-notice__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.commercial-policy-notice__content {
  min-width: 0;
}

.commercial-policy-notice__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-policy-notice__content h3 {
  margin: 0 0 18px;
  color: #111111;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.commercial-policy-notice__text {
  color: #27272a;
  font-size: 15px;
  line-height: 1.75;
}

.commercial-policy-notice__text p {
  margin: 0 0 16px;
}

.commercial-policy-notice__text p:last-child {
  margin-bottom: 0;
}

.commercial-policy-notice__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {
  .commercial-policy-notice {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }

  .commercial-policy-notice__icon {
    width: 40px;
    height: 40px;
  }

  .commercial-policy-notice__content h3 {
    margin-bottom: 14px;
  }

  .commercial-policy-notice__text {
    font-size: 14px;
    line-height: 1.7;
  }
}/* =========================================================
   CONDICIONES GENERALES · COMPACTO
   ========================================================= */

.commercial-policy-conditions {
  margin-top: 22px;
}

.commercial-policy-conditions .section-heading {
  margin-bottom: 18px;
}

.commercial-policy-conditions .section-heading h2 {
  margin-top: 4px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.commercial-policy-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commercial-policy-conditions-grid > article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
}

.commercial-policy-conditions-grid > article > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8f8f8;
  color: #111111;
}

.commercial-policy-conditions-grid > article > span svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.commercial-policy-conditions-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.commercial-policy-conditions-grid p {
  margin: 0;
  color: #52525b;
  font-size: 12px;
  line-height: 1.55;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .commercial-policy-conditions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .commercial-policy-conditions-grid > article {
    padding: 13px 14px;
  }

  .commercial-policy-conditions .section-heading h2 {
    font-size: 22px;
  }
}/* =========================================================
   ARCHIVO:
   frontend/style.css

   AGREGAR AL FINAL
   CORREGIR LOGO OSCURO SIN CONVERTIR EL FONDO EN BLANCO
   ========================================================= */

.brand__logo {
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.brand__logo img,
#siteLogo {
  background: transparent !important;
  box-shadow: none !important;

  /* Quita la inversión que generaba el rectángulo blanco */
  filter: none !important;

  /* El negro de la imagen se integra con el fondo oscuro */
  mix-blend-mode: screen !important;

  opacity: 1 !important;
}/* =========================================================
   ARCHIVO:
   frontend/style.css

   AGREGAR AL FINAL
   LOGO MÁS GRANDE EN EL TOPBAR
   ========================================================= */

.brand {
  min-width: 340px !important;
  height: 70px !important;
  gap: 18px !important;
}

.brand__logo {
  width: 170px !important;
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand__logo img,
#siteLogo {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: screen !important;
  opacity: 1 !important;
}

.brand__divider {
  height: 38px !important;
}

.brand__text {
  font-size: 13px !important;
  white-space: nowrap !important;
}

/* TABLET */

@media (max-width: 980px) {
  .brand {
    min-width: 180px !important;
    width: 180px !important;
    height: 60px !important;
  }

  .brand__logo {
    width: 150px !important;
    height: 52px !important;
  }
}

/* CELULAR */

@media (max-width: 520px) {
  .brand {
    min-width: 135px !important;
    width: 135px !important;
  }

  .brand__logo {
    width: 130px !important;
    height: 46px !important;
  }
}/* =========================================================
   PRECIOS PROTEGIDOS PARA VISITANTES
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

/* =========================================================
   TARJETA DE PRODUCTO PROTEGIDA
   ========================================================= */

.product-card--protected {
  border-color: var(--line);
}

.product-card--protected:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-card__price-protected {
  min-height: 78px;
  margin-top: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.product-card__price-protected-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-soft);
}

.product-card__price-protected-icon svg {
  width: 17px;
  height: 17px;
}

.product-card__price-protected > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-card__price-protected strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.product-card__price-protected small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

/* =========================================================
   BOTÓN LOGIN EN TARJETA
   ========================================================= */

.product-card__purchase-controls--protected {
  grid-template-columns: 1fr;
}

.product-add-button--login {
  width: 100%;
  min-height: 42px;
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

.product-add-button--login:hover:not(:disabled) {
  background: #111111;
  color: #ffffff;
}

/* =========================================================
   CONTROLES DESHABILITADOS
   ========================================================= */

.product-draft-quantity-control button:disabled,
.product-draft-quantity-control input:disabled,
.cart-item-quantity-control button:disabled,
.cart-item-quantity-control input:disabled,
.quantity-control button:disabled,
.quantity-control input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-draft-quantity-control input:disabled,
.cart-item-quantity-control input:disabled,
.quantity-control input:disabled {
  background: var(--bg-soft);
  color: var(--text-muted);
}

/* =========================================================
   PRECIO PROTEGIDO EN CARRITO Y RESUMEN
   ========================================================= */

.cart-item-price-protected {
  min-height: 30px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-price-protected svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   BLOQUE LOGIN EN FICHA DE PRODUCTO
   ========================================================= */

.product-detail-information-section--login {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid #111111;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.product-detail-information-section--login > header {
  margin-bottom: 8px;
}

.product-detail-information-section--login > p {
  margin-bottom: 14px;
}

.product-detail-information-section--login .primary-button {
  min-height: 40px;
}

/* =========================================================
   PRECIOS PROTEGIDOS EN LA FICHA
   ========================================================= */

.product-detail-dialog__prices strong {
  overflow-wrap: anywhere;
}

.product-detail-dialog__prices article:has(
  strong:not(:empty)
) {
  min-width: 0;
}

/* =========================================================
   TOTAL PROTEGIDO
   ========================================================= */

.order-topbar-button__information strong,
.order-drawer__total strong,
.order-total-card__total strong,
.order-price-row strong {
  overflow-wrap: anywhere;
}

.order-drawer__total strong {
  max-width: 220px;
  text-align: right;
  line-height: 1.15;
}

.order-total-card__total strong {
  line-height: 1.1;
}

/* =========================================================
   VISTA LISTA · PRECIOS PROTEGIDOS
   ========================================================= */

.products-grid--list
.product-card__price-protected,
.categories-products-section
.products-grid--list
.product-card__price-protected,
.products-catalog-main
.products-grid--list
.product-card__price-protected {
  max-width: 560px;
}

.products-grid--list
.product-card__purchase-controls--protected,
.categories-products-section
.products-grid--list
.product-card__purchase-controls--protected,
.products-catalog-main
.products-grid--list
.product-card__purchase-controls--protected {
  max-width: 430px;
  grid-template-columns: 1fr;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .product-card__price-protected {
    min-height: 72px;
    padding: 11px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .product-card__price-protected-icon {
    width: 32px;
    height: 32px;
  }

  .product-card__price-protected strong {
    font-size: 11px;
  }

  .product-card__price-protected small {
    font-size: 9px;
  }

  .order-drawer__total {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-drawer__total strong {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .product-card__price-protected {
    min-height: auto;
  }

  .product-add-button--login {
    min-height: 44px;
  }

  .cart-item-price-protected {
    justify-content: flex-start;
  }

  .product-detail-information-section--login {
    padding: 14px;
  }

  .summary-item__price .cart-item-price-protected {
    max-width: calc(100% - 42px);
    white-space: normal;
  }
}/* =========================================================
   AGREGAR AL FINAL DE frontend/style.css
   MOSTRAR COMPLETO EL TÍTULO DE LOS PRODUCTOS
   ========================================================= */

.product-card__content h3,
.products-catalog-main .product-card__content h3,
.categories-products-section .product-card__content h3,
.products-grid--list .product-card__content h3 {
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: initial !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}/* =========================================================
   CORREGIR SCROLL DEL SIDEBAR DE FILTROS
   ========================================================= */

.products-filter-sidebar,
.categories-products-filter-sidebar {
  min-height: 0;
}

.products-filter-sidebar__content {
  min-height: 0;
  max-height: calc(
    100vh -
    var(--topbar-height) -
    var(--nav-height) -
    170px
  );
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Scroll visible en Firefox */

.products-filter-sidebar__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.34) transparent;
}

/* Scroll visible en Chrome / Chromium */

.products-filter-sidebar__content::-webkit-scrollbar {
  width: 8px;
}

.products-filter-sidebar__content::-webkit-scrollbar-track {
  background: transparent;
}

.products-filter-sidebar__content::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.28);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.products-filter-sidebar__content::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 17, 17, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {
  .products-filter-sidebar,
  .categories-products-filter-sidebar {
    height: 100vh;
    max-height: 100vh;
  }

  .products-filter-sidebar__content {
    max-height: none;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}


/* =========================================================
   CURRENCY TOGGLE — BOTÓN ARS / USD
   ========================================================= */

.currency-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 9999px;
  background: var(--surface-color, #ffffff);
  color: var(--text-primary, #111827);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.currency-toggle-button:hover {
  background: var(--surface-hover, #f9fafb);
  border-color: var(--border-focus, #d1d5db);
}

.currency-toggle-button:focus-visible {
  outline: 2px solid var(--accent-color, #3b82f6);
  outline-offset: 2px;
}

.currency-toggle-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-color, #3b82f6);
}

.currency-toggle-button__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.currency-toggle-button__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.currency-toggle-button__content small {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #6b7280);
}

.currency-toggle-button__content strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
}

.currency-toggle-button__change-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.currency-toggle-button:hover .currency-toggle-button__change-icon {
  opacity: 0.8;
}

.currency-toggle-button__change-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.currency-toggle-button[aria-pressed="true"] {
  background: var(--accent-color, #3b82f6);
  border-color: var(--accent-color, #3b82f6);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.15);
}

.currency-toggle-button[aria-pressed="true"]
  .currency-toggle-button__icon {
  color: #ffffff;
}

.currency-toggle-button[aria-pressed="true"]
  .currency-toggle-button__content
  small {
  color: rgba(255, 255, 255, 0.8);
}

.currency-toggle-button[aria-pressed="true"]
  .currency-toggle-button__content
  strong {
  color: #ffffff;
}

.currency-toggle-button[aria-pressed="true"]
  .currency-toggle-button__change-icon {
  opacity: 1;
}

.currency-toggle-button[aria-pressed="true"]:hover {
  background: var(--accent-hover, #2563eb);
  border-color: var(--accent-hover, #2563eb);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 768px) {
  .currency-toggle-button__content small {
    display: none;
  }

  .currency-toggle-button__change-icon {
    display: none;
  }

  .currency-toggle-button {
    padding: 0.375rem 0.625rem;
    gap: 0.375rem;
  }

  .currency-toggle-button__content strong {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .currency-toggle-button {
    padding: 0.3125rem 0.5rem;
  }
}


/* ---------------------------------------------------------
   DARK MODE
   --------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  .currency-toggle-button {
    background: var(--surface-color-dark, #1f2937);
    border-color: var(--border-color-dark, #374151);
    color: var(--text-primary-dark, #f9fafb);
  }

  .currency-toggle-button:hover {
    background: var(--surface-hover-dark, #374151);
    border-color: var(--border-focus-dark, #4b5563);
  }

  .currency-toggle-button__content small {
    color: var(--text-secondary-dark, #9ca3af);
  }

  .currency-toggle-button__content strong {
    color: var(--text-primary-dark, #f9fafb);
  }

  .currency-toggle-button[aria-pressed="true"] {
    background: var(--accent-color, #3b82f6);
    border-color: var(--accent-color, #3b82f6);
  }

  .currency-toggle-button[aria-pressed="true"]:hover {
    background: var(--accent-hover, #2563eb);
    border-color: var(--accent-hover, #2563eb);
  }
}/* =========================================================
   PRECIO EQUIVALENTE EN MONEDA SECUNDARIA
   ========================================================= */

.product-card__secondary-price {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__price {
  min-width: 0;
}

.product-card__price strong,
.product-card__secondary-price {
  overflow-wrap: anywhere;
}

.products-grid--list .product-card__secondary-price,
.categories-products-section
.products-grid--list
.product-card__secondary-price,
.products-catalog-main
.products-grid--list
.product-card__secondary-price {
  margin-top: 5px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .product-card__secondary-price {
    font-size: 9px;
  }
}

@media (max-width: 520px) {
  .product-card__secondary-price {
    margin-top: 3px;
    font-size: 9px;
  }
}/* =========================================================
   FORMAS DE PAGO · CHECKOUT
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

.payment-method-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.payment-methods-loading-state {
  min-height: 120px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.payment-methods-container {
  padding: 16px 18px;
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 10px;
}

.payment-method-option {
  position: relative;
  min-width: 0;
  min-height: 88px;
  padding: 14px;
  display: grid;
  grid-template-columns:
    38px
    minmax(0, 1fr)
    24px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.payment-method-option:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.payment-method-option.is-selected {
  border-color: #111111;
  background: #f7f7f7;
}

.payment-method-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.payment-method-option__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
}

.payment-method-option.is-selected
.payment-method-option__icon {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.payment-method-option__icon svg {
  width: 18px;
  height: 18px;
}

.payment-method-option__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-method-option__content strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-method-option__content small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.payment-method-option__check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
}

.payment-method-option__check svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.payment-method-option.is-selected
.payment-method-option__check {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

/* =========================================================
   ERROR DE FORMA DE PAGO
   ========================================================= */

.payment-method-error {
  margin: 0 18px 16px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.payment-method-error svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* =========================================================
   DETALLES DE PAGO
   ========================================================= */

.payment-method-details {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.payment-method-details__header {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.payment-method-details__header > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.payment-method-details__header svg {
  width: 17px;
  height: 17px;
}

.payment-method-details__header > div {
  min-width: 0;
}

.payment-method-details__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.payment-method-details__header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.payment-method-details__body {
  padding: 14px;
  display: grid;
  gap: 14px;
}

/* =========================================================
   DATOS BANCARIOS
   ========================================================= */

.payment-bank-data,
.payment-check-receiver-data,
.payment-contact-data {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.payment-bank-data > article,
.payment-check-receiver-data > article,
.payment-contact-data > article {
  position: relative;
  min-width: 0;
  min-height: 68px;
  padding: 11px 42px 11px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-bank-data > article:nth-child(2n),
.payment-check-receiver-data > article:nth-child(2n),
.payment-contact-data > article:nth-child(2n) {
  border-right: 0;
}

.payment-bank-data > article:nth-last-child(-n + 2),
.payment-check-receiver-data > article:nth-last-child(-n + 2),
.payment-contact-data > article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.payment-bank-data span,
.payment-check-receiver-data span,
.payment-contact-data span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-bank-data strong,
.payment-check-receiver-data strong,
.payment-contact-data strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.payment-copy-button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-muted);
}

.payment-copy-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.payment-copy-button svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   INSTRUCCIONES
   ========================================================= */

.payment-method-instructions {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-line;
}

/* =========================================================
   CAMPOS DE PAGO
   ========================================================= */

.payment-form-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 12px;
}

.payment-form-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.payment-form-field--full {
  grid-column: 1 / -1;
}

.payment-form-field > span {
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.payment-form-field input,
.payment-form-field select,
.payment-form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.payment-form-field input,
.payment-form-field select {
  height: 42px;
  padding: 0 11px;
}

.payment-form-field textarea {
  min-height: 88px;
  padding: 11px;
  line-height: 1.5;
  resize: vertical;
}

.payment-form-field input:focus,
.payment-form-field select:focus,
.payment-form-field textarea:focus {
  border-color: var(--line-strong);
}

.payment-form-field input::placeholder,
.payment-form-field textarea::placeholder {
  color: var(--text-muted);
}

/* =========================================================
   COMPROBANTE
   ========================================================= */

.payment-receipt-field {
  display: grid;
  gap: 7px;
}

.payment-receipt-field > span {
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.payment-receipt-input {
  position: relative;
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns:
    36px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
}

.payment-receipt-input:hover {
  border-color: #111111;
  background: #fafafa;
}

.payment-receipt-input > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.payment-receipt-input__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-soft);
}

.payment-receipt-input__icon svg {
  width: 17px;
  height: 17px;
}

.payment-receipt-input__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-receipt-input__content strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-receipt-input__content small,
.payment-receipt-file-name {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-receipt-input__action {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
}

.payment-receipt-upload-state {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-soft);
  font-size: 10px;
}

.payment-receipt-upload-state .button-spinner {
  width: 15px;
  height: 15px;
  border-color: rgba(17, 17, 17, 0.18);
  border-top-color: #111111;
}

/* =========================================================
   MERCADO PAGO
   ========================================================= */

.payment-mercado-pago-link {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #111111;
  border-radius: var(--radius-sm);
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.payment-mercado-pago-link:hover {
  background: #2a2a2a;
}

.payment-mercado-pago-link svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   DIÁLOGO DE CONFIRMACIÓN FINAL
   ========================================================= */

.confirm-order-dialog {
  width: min(
    calc(100% - 28px),
    560px
  );
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
}

.confirm-order-dialog__shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.confirm-order-dialog__header {
  min-height: 74px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #111111;
  color: #ffffff;
}

.confirm-order-dialog__header > div {
  min-width: 0;
}

.confirm-order-dialog__header span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.confirm-order-dialog__header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.confirm-order-dialog__header .modal-close-button {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #ffffff;
}

.confirm-order-dialog__body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.confirm-order-summary {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.confirm-order-summary > article {
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.confirm-order-summary > article:nth-child(2n) {
  border-right: 0;
}

.confirm-order-summary > article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.confirm-order-summary span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confirm-order-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.confirm-order-summary
.confirm-order-summary__total strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.confirm-order-payment-notice {
  padding: 12px;
  display: grid;
  grid-template-columns:
    30px
    minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(161, 92, 0, 0.2);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #7a4700;
}

.confirm-order-payment-notice > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
}

.confirm-order-payment-notice svg {
  width: 15px;
  height: 15px;
}

.confirm-order-payment-notice strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.confirm-order-payment-notice p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.confirm-order-dialog__footer {
  min-height: 68px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.confirm-order-dialog__footer button {
  min-width: 150px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .payment-methods-container {
    grid-template-columns: 1fr;
  }

  .payment-form-grid {
    grid-template-columns: 1fr;
  }

  .payment-form-field--full {
    grid-column: auto;
  }

  .payment-bank-data,
  .payment-check-receiver-data,
  .payment-contact-data {
    grid-template-columns: 1fr;
  }

  .payment-bank-data > article,
  .payment-bank-data > article:nth-child(2n),
  .payment-bank-data > article:nth-last-child(-n + 2),
  .payment-check-receiver-data > article,
  .payment-check-receiver-data > article:nth-child(2n),
  .payment-check-receiver-data > article:nth-last-child(-n + 2),
  .payment-contact-data > article,
  .payment-contact-data > article:nth-child(2n),
  .payment-contact-data > article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .payment-bank-data > article:last-child,
  .payment-check-receiver-data > article:last-child,
  .payment-contact-data > article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .payment-methods-container {
    padding: 13px;
  }

  .payment-method-option {
    min-height: 78px;
    padding: 12px;
    grid-template-columns:
      34px
      minmax(0, 1fr)
      20px;
    gap: 10px;
  }

  .payment-method-option__icon {
    width: 34px;
    height: 34px;
  }

  .payment-method-option__content strong {
    font-size: 12px;
  }

  .payment-method-details {
    margin-right: 13px;
    margin-left: 13px;
  }

  .payment-method-details__body {
    padding: 12px;
  }

  .payment-receipt-input {
    grid-template-columns:
      32px
      minmax(0, 1fr);
  }

  .payment-receipt-input__action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .confirm-order-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
  }

  .confirm-order-summary {
    grid-template-columns: 1fr;
  }

  .confirm-order-summary > article,
  .confirm-order-summary > article:nth-child(2n),
  .confirm-order-summary > article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .confirm-order-summary > article:last-child {
    border-bottom: 0;
  }

  .confirm-order-dialog__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .confirm-order-dialog__footer button {
    width: 100%;
    min-width: 0;
  }
}/* =========================================================
   CHECKOUT · CAMPOS DE CHEQUE ELECTRÓNICO
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

#paymentElectronicCheckDetails {
  margin: 0 18px 18px;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-md);

  background: #ffffff;
}

#paymentElectronicCheckDetails .payment-method-details__header {
  min-height: 66px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-bottom: 1px solid var(--line);

  background: #ffffff;
}

#paymentElectronicCheckDetails .payment-method-details__header > span {
  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: var(--bg-soft);
  color: var(--text);
}

#paymentElectronicCheckDetails .payment-method-details__header > span svg {
  width: 17px;
  height: 17px;
}

#paymentElectronicCheckDetails .payment-method-details__header > div {
  min-width: 0;

  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

#paymentElectronicCheckDetails .payment-method-details__header h3 {
  margin: 0;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}

#paymentElectronicCheckDetails .payment-method-details__header p {
  margin: 0;

  font-size: 11px;
  line-height: 1.45;

  color: var(--text-muted);
}

#paymentElectronicCheckDetails .payment-method-details__body {
  padding: 16px 18px 18px;

  display: grid;
  gap: 16px;

  background: #fafafa;
}

/* =========================================================
   DATOS DEL RECEPTOR
   ========================================================= */

#paymentElectronicCheckDetails .payment-check-receiver-data {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: #ffffff;
}

#paymentElectronicCheckDetails .payment-check-receiver-data > article {
  min-width: 0;
  min-height: 68px;
  padding: 12px 14px;

  display: grid;
  align-content: center;
  gap: 4px;

  border-right: 1px solid var(--line);
}

#paymentElectronicCheckDetails .payment-check-receiver-data > article:last-child {
  border-right: 0;
}

#paymentElectronicCheckDetails .payment-check-receiver-data span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;

  color: var(--text-muted);
}

#paymentElectronicCheckDetails .payment-check-receiver-data strong {
  min-width: 0;

  overflow-wrap: anywhere;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;

  color: var(--text);
}

/* =========================================================
   GRILLA DE CAMPOS
   ========================================================= */

#paymentElectronicCheckDetails .payment-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}

#paymentElectronicCheckDetails .payment-form-field {
  min-width: 0;

  display: grid;
  gap: 7px;
}

#paymentElectronicCheckDetails .payment-form-field--full {
  grid-column: 1 / -1;
}

#paymentElectronicCheckDetails .payment-form-field > span,
#paymentElectronicCheckDetails label > span {
  display: block;

  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}

#paymentElectronicCheckDetails input,
#paymentElectronicCheckDetails select,
#paymentElectronicCheckDetails textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--line);
  border-radius: 8px;

  outline: 0;

  background: #ffffff;
  color: var(--text);

  font-family: inherit;
  font-size: 12px;

  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

#paymentElectronicCheckDetails input,
#paymentElectronicCheckDetails select {
  height: 44px;
  padding: 0 12px;
}

#paymentElectronicCheckDetails textarea {
  min-height: 96px;
  padding: 12px;

  line-height: 1.5;

  resize: vertical;
}

#paymentElectronicCheckDetails input:hover,
#paymentElectronicCheckDetails select:hover,
#paymentElectronicCheckDetails textarea:hover {
  border-color: var(--line-strong);
}

#paymentElectronicCheckDetails input:focus,
#paymentElectronicCheckDetails select:focus,
#paymentElectronicCheckDetails textarea:focus {
  border-color: #111111;

  background: #ffffff;
}

#paymentElectronicCheckDetails input::placeholder,
#paymentElectronicCheckDetails textarea::placeholder {
  color: #9a9a9a;
}

#paymentElectronicCheckDetails input[type="date"] {
  color-scheme: light;
}

#paymentElectronicCheckDetails input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

#paymentElectronicCheckDetails input[type="number"]::-webkit-inner-spin-button,
#paymentElectronicCheckDetails input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  opacity: 0.55;
}

/* =========================================================
   INSTRUCCIONES
   ========================================================= */

#paymentElectronicCheckDetails .payment-method-instructions {
  margin: 0;
  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: #ffffff;
  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.6;

  white-space: pre-line;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  #paymentElectronicCheckDetails .payment-form-grid,
  #paymentElectronicCheckDetails .payment-check-receiver-data {
    grid-template-columns: 1fr;
  }

  #paymentElectronicCheckDetails .payment-form-field--full {
    grid-column: auto;
  }

  #paymentElectronicCheckDetails .payment-check-receiver-data > article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #paymentElectronicCheckDetails .payment-check-receiver-data > article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  #paymentElectronicCheckDetails {
    margin-right: 12px;
    margin-left: 12px;
  }

  #paymentElectronicCheckDetails .payment-method-details__body {
    padding: 13px;
  }

  #paymentElectronicCheckDetails .payment-form-grid {
    gap: 13px;
  }
}/* =========================================================
   CHECKOUT · CONTACTAR PARA COORDINAR PAGO
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

#paymentContactDetails {
  margin: 0 18px 18px;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-md);

  background: #ffffff;
}

#paymentContactDetails .payment-method-details__header {
  min-height: 66px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-bottom: 1px solid var(--line);

  background: #ffffff;
}

#paymentContactDetails .payment-method-details__header > span {
  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: var(--bg-soft);
  color: var(--text);
}

#paymentContactDetails .payment-method-details__header > span svg {
  width: 17px;
  height: 17px;
}

#paymentContactDetails .payment-method-details__header > div {
  min-width: 0;

  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

#paymentContactDetails .payment-method-details__header h3 {
  margin: 0;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}

#paymentContactDetails .payment-method-details__header p {
  margin: 0;

  font-size: 11px;
  line-height: 1.45;

  color: var(--text-muted);
}

#paymentContactDetails .payment-method-details__body {
  padding: 16px 18px 18px;

  display: grid;
  gap: 16px;

  background: #fafafa;
}

/* =========================================================
   DATOS DE CONTACTO
   ========================================================= */

#paymentContactDetails .payment-contact-data {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: #ffffff;
}

#paymentContactDetails .payment-contact-data > article {
  min-width: 0;
  min-height: 68px;
  padding: 12px 14px;

  display: grid;
  align-content: center;
  gap: 4px;

  border-right: 1px solid var(--line);
}

#paymentContactDetails .payment-contact-data > article:last-child {
  border-right: 0;
}

#paymentContactDetails .payment-contact-data span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;

  text-transform: uppercase;

  color: var(--text-muted);
}

#paymentContactDetails .payment-contact-data strong {
  min-width: 0;

  overflow-wrap: anywhere;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;

  color: var(--text);
}

/* =========================================================
   CAMPO DE CONTACTO
   ========================================================= */

#paymentContactDetails .payment-form-grid {
  display: grid;
  grid-template-columns: 1fr;

  gap: 14px;
}

#paymentContactDetails .payment-form-field {
  min-width: 0;

  display: grid;
  gap: 7px;
}

#paymentContactDetails .payment-form-field > span,
#paymentContactDetails label > span {
  display: block;

  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}

#paymentContactDetails input,
#paymentContactDetails select,
#paymentContactDetails textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--line);
  border-radius: 8px;

  outline: 0;

  background: #ffffff;
  color: var(--text);

  font-family: inherit;
  font-size: 12px;

  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

#paymentContactDetails input,
#paymentContactDetails select {
  height: 44px;
  padding: 0 12px;
}

#paymentContactDetails textarea {
  min-height: 92px;
  padding: 12px;

  line-height: 1.5;

  resize: vertical;
}

#paymentContactDetails input:hover,
#paymentContactDetails select:hover,
#paymentContactDetails textarea:hover {
  border-color: var(--line-strong);
}

#paymentContactDetails input:focus,
#paymentContactDetails select:focus,
#paymentContactDetails textarea:focus {
  border-color: #111111;

  background: #ffffff;
}

#paymentContactDetails input::placeholder,
#paymentContactDetails textarea::placeholder {
  color: #9a9a9a;
}

/* =========================================================
   INSTRUCCIONES
   ========================================================= */

#paymentContactDetails .payment-method-instructions {
  margin: 0;
  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: var(--radius-sm);

  background: #ffffff;
  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.6;

  white-space: pre-line;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  #paymentContactDetails .payment-contact-data {
    grid-template-columns: 1fr;
  }

  #paymentContactDetails .payment-contact-data > article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #paymentContactDetails .payment-contact-data > article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  #paymentContactDetails {
    margin-right: 12px;
    margin-left: 12px;
  }

  #paymentContactDetails .payment-method-details__body {
    padding: 13px;
  }
}/* =========================================================
   CHECKOUT · TRANSFERENCIA BANCARIA
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

#paymentTransferDetails {
  margin-top: 14px;
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: #ffffff;
}

#paymentTransferDetails .payment-method-details__header {
  min-height: 66px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-bottom: 1px solid var(--line);

  background: #ffffff;
}

#paymentTransferDetails .payment-method-details__icon {
  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #f7f7f7;
  color: #111111;
}

#paymentTransferDetails .payment-method-details__icon svg {
  width: 17px;
  height: 17px;
}

#paymentTransferDetails .payment-method-details__header > div {
  min-width: 0;

  display: grid;
  gap: 3px;
}

#paymentTransferDetails .payment-method-details__header strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}

#paymentTransferDetails .payment-method-details__header > div > span {
  font-size: 10px;
  line-height: 1.4;

  color: var(--text-muted);
}

/* =========================================================
   DATOS BANCARIOS
   ========================================================= */

#paymentTransferDetails .payment-bank-details {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  border-bottom: 1px solid var(--line);

  background: #fafafa;
}

#paymentTransferDetails .payment-bank-details > article {
  min-width: 0;
  min-height: 76px;
  padding: 13px 14px;

  display: grid;
  align-content: center;
  gap: 5px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  background: #ffffff;
}

#paymentTransferDetails .payment-bank-details > article:nth-child(3n) {
  border-right: 0;
}

#paymentTransferDetails .payment-bank-details > article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

#paymentTransferDetails .payment-bank-details > article > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;

  text-transform: uppercase;

  color: var(--text-muted);
}

#paymentTransferDetails .payment-bank-details > article > strong,
#paymentTransferDetails .payment-bank-details > article > div > strong {
  min-width: 0;

  overflow-wrap: anywhere;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;

  color: var(--text);
}

#paymentTransferDetails .payment-bank-details > article > div {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#paymentTransferDetails .payment-copy-button {
  width: 28px;
  height: 28px;
  padding: 0;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 7px;

  background: #ffffff;
  color: var(--text-muted);

  cursor: pointer;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

#paymentTransferDetails .payment-copy-button:hover {
  border-color: #111111;

  background: #111111;
  color: #ffffff;
}

#paymentTransferDetails .payment-copy-button svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   INSTRUCCIONES
   ========================================================= */

#paymentTransferDetails .payment-method-instructions {
  margin: 14px 16px 0;
  padding: 12px 13px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #f7f7f7;
  color: var(--text-soft);

  font-size: 11px;
  line-height: 1.6;

  white-space: pre-line;
}

/* =========================================================
   CARGA DE COMPROBANTE
   ========================================================= */

#paymentTransferDetails .payment-receipt-field {
  position: relative;

  margin: 16px;

  display: grid;
  gap: 8px;

  cursor: pointer;
}

#paymentTransferDetails .payment-receipt-field > span:first-child {
  font-size: 10px;
  font-weight: 800;

  color: var(--text);
}

#paymentTransferDetails .payment-receipt-field > input {
  position: absolute;
  inset: 26px 0 0;

  z-index: 2;

  width: 100%;
  height: calc(100% - 26px);

  opacity: 0;

  cursor: pointer;
}

#paymentTransferDetails .payment-receipt-field__control {
  min-height: 78px;
  padding: 12px 14px;

  display: grid;
  grid-template-columns:
    38px
    minmax(0, 1fr);

  align-items: center;
  gap: 12px;

  border: 1px dashed #b8b8b8;
  border-radius: 9px;

  background: #fafafa;

  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

#paymentTransferDetails .payment-receipt-field:hover
.payment-receipt-field__control {
  border-color: #111111;

  background: #f4f4f4;
}

#paymentTransferDetails .payment-receipt-field__icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #ffffff;
  color: var(--text);
}

#paymentTransferDetails .payment-receipt-field__icon svg {
  width: 17px;
  height: 17px;
}

#paymentTransferDetails .payment-receipt-field__information {
  min-width: 0;

  display: grid;
  gap: 4px;
}

#paymentTransferDetails .payment-receipt-field__information strong {
  font-size: 11px;
  font-weight: 800;

  color: var(--text);
}

#paymentTransferDetails .payment-receipt-field__information small {
  overflow: hidden;

  font-size: 9px;
  line-height: 1.4;

  color: var(--text-muted);

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   ESTADO DE SUBIDA
   ========================================================= */

#paymentTransferDetails .payment-receipt-upload-state {
  min-height: 44px;
  margin: 0 16px 16px;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 9px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #fafafa;
  color: var(--text-soft);

  font-size: 10px;
}

#paymentTransferDetails .payment-receipt-upload-state strong {
  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  #paymentTransferDetails .payment-bank-details {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  #paymentTransferDetails .payment-bank-details > article,
  #paymentTransferDetails .payment-bank-details > article:nth-child(3n),
  #paymentTransferDetails .payment-bank-details > article:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  #paymentTransferDetails .payment-bank-details > article:nth-child(2n) {
    border-right: 0;
  }

  #paymentTransferDetails .payment-bank-details > article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  #paymentTransferDetails .payment-bank-details {
    grid-template-columns: 1fr;
  }

  #paymentTransferDetails .payment-bank-details > article,
  #paymentTransferDetails .payment-bank-details > article:nth-child(2n),
  #paymentTransferDetails .payment-bank-details > article:nth-child(3n),
  #paymentTransferDetails .payment-bank-details > article:nth-last-child(-n + 2),
  #paymentTransferDetails .payment-bank-details > article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #paymentTransferDetails .payment-bank-details > article:last-child {
    border-bottom: 0;
  }

  #paymentTransferDetails .payment-receipt-field {
    margin: 13px;
  }

  #paymentTransferDetails .payment-receipt-field__control {
    min-height: 72px;
    padding: 11px;
  }

  #paymentTransferDetails .payment-method-instructions {
    margin-right: 13px;
    margin-left: 13px;
  }
}

.commercial-policy-notice {
  position: relative;
}

.commercial-policy-notice__content {
  min-width: 0;
  padding-right: 190px;
}

.commercial-policy-notice__download {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;
  padding: 0 15px;

  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 9px;

  background: #ffffff;
  color: #171717;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.commercial-policy-notice__download:hover {
  background: #f5f5f5;
  border-color: rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

.commercial-policy-notice__download:active {
  transform: translateY(0);
}

.commercial-policy-notice__download svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

@media (max-width: 820px) {
  .commercial-policy-notice__content {
    padding-right: 0;
  }

  .commercial-policy-notice__download {
    position: static;
    width: 100%;
    margin-bottom: 18px;
  }
}

@media (prefers-color-scheme: dark) {
  .commercial-policy-notice__download {
    border-color: rgba(255, 255, 255, 0.18);
    background: #171717;
    color: #ffffff;
  }

  .commercial-policy-notice__download:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: #222222;
  }
}/* =========================================================
   MODELOS COMO FILTRO VISUAL EN PRODUCTOS
   AGREGAR AL FINAL DE frontend/style.css
   ========================================================= */

.product-models-filter-section {
  width: 100%;
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.product-models-filter-section__header {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.product-models-filter-section__header > div {
  min-width: 0;
}

.product-models-filter-section__header h2 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.product-models-filter-section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.product-models-filter-section__all {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.product-models-filter-section__all:hover {
  border-color: #111111;
  background: var(--bg-soft);
}

.product-models-filter-section__all.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.product-models-filter-section__all svg {
  width: 16px;
  height: 16px;
}

.product-models-filter-section__all span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
}

.product-models-filter-section__all.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* =========================================================
   GRILLA DE MODELOS
   ========================================================= */

.product-models-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-model-filter-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.product-model-filter-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-model-filter-card.is-active {
  border-color: #111111;
  background: #fafafa;
}

.product-model-filter-card__button {
  width: 100%;
  height: 100%;
  min-height: 208px;
  padding: 0;
  display: grid;
  grid-template-rows: 128px minmax(0, 1fr);
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.product-model-filter-card__media {
  position: relative;
  min-height: 128px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.product-model-filter-card__media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.product-model-filter-card:hover
.product-model-filter-card__media img {
  transform: scale(1.045);
}

.product-model-filter-card.is-active
.product-model-filter-card__media {
  background: #f2f2f2;
}

.product-model-filter-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.product-model-filter-card__placeholder svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.4;
}

.product-model-filter-card__content {
  min-width: 0;
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-model-filter-card__content small {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-model-filter-card__content strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.product-model-filter-card__content > span {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.product-model-filter-card__content > span svg {
  width: 14px;
  height: 14px;
}

.product-model-filter-card.is-active
.product-model-filter-card__content > span {
  color: var(--success);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .product-models-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .product-models-filter-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .product-models-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-model-filter-card__button {
    min-height: 194px;
    grid-template-rows: 118px minmax(0, 1fr);
  }

  .product-model-filter-card__media {
    min-height: 118px;
  }
}

@media (max-width: 760px) {
  .product-models-filter-section__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-models-filter-section__all {
    width: 100%;
  }

  .product-models-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-model-filter-card__button {
    min-height: 185px;
    grid-template-rows: 110px minmax(0, 1fr);
  }

  .product-model-filter-card__media {
    min-height: 110px;
  }
}

@media (max-width: 520px) {
  .product-models-filter-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .product-models-filter-section__header {
    margin-bottom: 12px;
  }

  .product-models-filter-section__header h2 {
    font-size: 24px;
  }

  .product-models-filter-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .product-model-filter-card__button {
    min-height: 118px;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: 118px;
  }

  .product-model-filter-card__media {
    min-height: 118px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .product-model-filter-card__content {
    padding: 12px;
  }

  .product-model-filter-card__content strong {
    font-size: 15px;
  }
}