:root {
  --black: #08090b;
  --ink: #15171c;
  --muted: #667085;
  --line: #e6e8ec;
  --soft: #f5f6f8;
  --paper: #ffffff;
  --accent: #111111;
  --green: #0f7b66;
  --amber: #c77810;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfbfc;
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body.cart-open {
  overflow: hidden;
}

body.checkout-open {
  overflow: hidden;
}

body.auth-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: white;
  background: rgba(8, 9, 11, 0.97);
  border-bottom: 1px solid #202329;
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.catalog-layout {
  width: min(1560px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 2px;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: white;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.account-button:hover {
  background: #1b1e25;
  border-color: rgba(255, 255, 255, 0.42);
}

.account-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.account-button.is-authenticated {
  color: var(--black);
  background: white;
  border-color: white;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 228px;
  padding: 10px;
  color: white;
  background: #343a40;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.account-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-menu button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.account-menu svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-action,
.primary-action {
  color: white;
  background: var(--black);
  border: 1px solid var(--black);
}

.site-header .header-action {
  color: var(--black);
  background: white;
  border-color: white;
}

.secondary-action {
  color: var(--black);
  background: white;
  border: 1px solid var(--line);
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  gap: 12px;
}

.floating-action {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(8, 9, 11, 0.2);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.floating-action:hover {
  box-shadow: 0 14px 28px rgba(8, 9, 11, 0.26);
  transform: translateY(-2px);
}

.floating-action::before {
  position: absolute;
  right: calc(100% + 10px);
  padding: 6px 9px;
  color: white;
  background: var(--black);
  border-radius: 4px;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.floating-action:hover::before,
.floating-action:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.floating-action svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-cart {
  background: var(--black);
}

.floating-cart.is-receiving {
  animation: cartReceive 720ms ease;
}

.floating-cart span {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  color: var(--black);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.floating-whatsapp {
  background: #168a61;
}

.cart-flight {
  position: fixed;
  z-index: 120;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform-origin: center;
  will-change: opacity, transform;
}

@keyframes cartReceive {
  0%,
  62% {
    transform: scale(1);
  }
  78% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

.hero {
  background:
    linear-gradient(110deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0.74)),
    url("imagenes_totalpack_originales/3128.webp") center right / contain no-repeat,
    #121418;
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 56px;
  min-height: 470px;
  padding: 74px 0 54px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8fe1cd;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.12;
}

.hero-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .primary-action {
  color: var(--black);
  background: white;
  border-color: white;
}

.hero .secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel span,
.hero-panel small {
  display: block;
}

.hero-panel span {
  font-size: 32px;
  font-weight: 800;
}

.hero-panel small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 42px 0 64px;
}

.filter-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100dvh - 116px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 0;
  background: white;
  border: 1px solid #d9dee7;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-main {
  min-width: 0;
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 10px;
}

.catalog-context {
  min-width: 0;
}

.catalog-path {
  overflow: hidden;
  margin: 0;
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-context .result-count {
  margin-top: 4px;
}

.back-button,
.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: white;
  border: 1px solid #d9dee7;
  border-radius: var(--radius);
  color: var(--black);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.back-button::before {
  content: "<";
  margin-right: 8px;
  font-weight: 900;
}

.clear-button::before {
  content: "x";
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
}

.visual-block {
  margin-bottom: 22px;
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.block-heading h3 {
  margin: 0;
  font-size: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-card,
.subcategory-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.category-card:hover,
.category-card.is-active,
.subcategory-card:hover,
.subcategory-card.is-active {
  border-color: var(--black);
}

.category-card.is-active,
.subcategory-card.is-active {
  box-shadow: inset 0 0 0 2px var(--black), 0 14px 34px rgba(15, 23, 42, 0.06);
}

.category-card span,
.subcategory-card span {
  display: block;
}

.category-thumb,
.subcategory-thumb {
  display: grid;
  place-items: center;
  width: 82px;
  height: 62px;
  overflow: hidden;
  background: var(--soft);
  border-radius: var(--radius);
}

.category-thumb img,
.subcategory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.category-name {
  color: #344054;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
}

.category-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-section {
  padding: 0;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  display: grid;
  gap: 7px;
  width: 100%;
  color: #414651;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #d2d6dc;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  outline: none;
  text-transform: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(8, 9, 11, 0.09);
}

.select-box {
  display: grid;
  gap: 7px;
  color: #414651;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.rubro-list {
  display: grid;
  gap: 0;
  padding: 0 14px 12px;
}

.rubro-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 2px 8px 14px;
  color: var(--black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfd4dc;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.rubro-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 4px 3px 0 12px;
  border-top: 2px solid var(--black);
  border-left: 2px solid var(--black);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.rubro-group.is-collapsed .rubro-toggle::after {
  transform: rotate(225deg);
}

.rubro-group + .rubro-group {
  margin-top: 14px;
}

.rubro-items {
  display: grid;
  gap: 0;
  padding: 12px 0 0 14px;
}

.rubro-group.is-collapsed .rubro-items {
  display: none;
}

.rubro-button {
  min-height: 27px;
  padding: 3px 0;
  color: #777b83;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.rubro-button:hover {
  color: var(--black);
}

.rubro-button.is-active {
  color: var(--black);
  font-weight: 800;
}

.rubro-button.is-active::before {
  content: "-";
  margin-right: 5px;
  color: #f26a21;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  min-height: 468px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 304px 468px;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
  padding: 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translateZ(0);
}

.favorite-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  transform: translateY(-1px);
  background: white;
  border-color: rgba(17, 17, 17, 0.25);
  outline: none;
}

.favorite-button.is-active {
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.22);
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #98a2b3;
  text-align: center;
  border: 1px dashed #cfd4dc;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.product-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 12px;
  padding: 16px;
  background: white;
}

.product-code {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: fit-content;
  padding: 5px 9px;
  color: white;
  background: var(--black);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.add-cart-button {
  width: 100%;
  min-height: 40px;
  color: white;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.add-cart-button:hover {
  background: #22252b;
}

.product-buy {
  display: grid;
  grid-template-rows: minmax(40px, auto) 14px;
  gap: 7px;
  min-height: 61px;
}

.quantity-add {
  display: none;
  grid-template-columns: minmax(118px, 0.58fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  animation: buyControlsIn 160ms ease both;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 30px minmax(48px, 1fr) 30px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  background: white;
  border: 1px solid #cfd4dc;
  border-radius: var(--radius);
}

.quantity-stepper button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  color: var(--black);
  background: white;
  border: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.quantity-stepper button:hover {
  background: #f2f4f7;
}

.quantity-stepper input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 2px;
  color: var(--black);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-card:hover .add-start,
.product-card:focus-within .add-start,
.product-card.is-choosing-quantity .add-start {
  display: none;
}

.product-card:hover .quantity-add,
.product-card:focus-within .quantity-add,
.product-card.is-choosing-quantity .quantity-add {
  display: grid;
}

.product-card.was-added .quantity-add .add-cart-button {
  background: #198754;
  border-color: #198754;
}

.min-quantity-label {
  display: block;
  min-height: 14px;
  margin-top: 0;
  font-size: 11px;
  font-weight: 800;
  color: #5f6875;
  line-height: 1.25;
}

.min-quantity-label.is-empty {
  visibility: hidden;
}

@keyframes buyControlsIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-price {
  margin: 0;
  color: var(--black);
  font-size: 20px;
  font-weight: 800;
}

.product-category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  color: var(--muted);
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 11, 0.68);
  backdrop-filter: blur(4px);
  overflow: auto;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 11, 0.68);
  backdrop-filter: blur(4px);
  overflow: auto;
}

.account-panel-card {
  width: min(820px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #f7f8fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.account-panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  color: white;
  background: var(--black);
}

.account-panel-header h2 {
  font-size: 34px;
  font-weight: 800;
}

.account-panel-body {
  padding: 18px;
}

.account-empty,
.account-form,
.account-list {
  background: white;
  border: 1px solid #d9dee7;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.account-empty {
  padding: 28px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.account-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.account-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid #e3e6eb;
  border-radius: var(--radius);
}

.account-order:has(.account-order-products) {
  display: grid;
}

.account-order strong,
.account-order span {
  display: block;
}

.account-order strong {
  margin-bottom: 4px;
  color: var(--black);
}

.account-order span {
  color: #5d6675;
  font-size: 13px;
  font-weight: 700;
}

.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-order-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-order-products {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e3e6eb;
}

.account-order-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 100px 110px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  font-size: 13px;
}

.account-order-product small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
}

.account-form .auth-submit,
.account-form .auth-message {
  grid-column: 1 / -1;
}

.auth-card {
  width: min(780px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #f7f8fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.auth-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  color: white;
  background: var(--black);
}

.auth-header h2 {
  font-size: 34px;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 18px 0;
}

.auth-tabs button {
  min-height: 46px;
  color: var(--black);
  background: white;
  border: 1px solid #d9dee7;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: white;
  background: var(--black);
  border-color: var(--black);
}

.auth-body {
  padding: 18px;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: white;
  border: 1px solid #d9dee7;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-help {
  margin: 0;
  color: #5d6675;
  line-height: 1.45;
}

.volume-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.volume-field legend {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 15px;
  font-weight: 800;
}

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

.volume-options label {
  cursor: pointer;
}

.volume-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.volume-options span {
  display: grid;
  min-height: 74px;
  align-items: center;
  padding: 12px;
  color: var(--black);
  background: #fbfcfd;
  border: 1px solid #cbd3df;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.volume-options input:checked + span {
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.auth-submit {
  min-height: 48px;
  color: white;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.auth-message.is-error {
  color: #b42318;
}

.auth-message.is-success {
  color: #087443;
}

.checkout-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 9, 11, 0.48);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(480px, 100%);
  height: 100dvh;
  background: white;
  box-shadow: -28px 0 70px rgba(15, 23, 42, 0.26);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 26px 24px 22px;
  color: white;
  background: var(--black);
}

.cart-header .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.cart-header h2 {
  margin-bottom: 4px;
  font-size: 34px;
  font-weight: 800;
}

.cart-header span {
  color: white;
  font-size: 28px;
  font-weight: 800;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}

.cart-table {
  display: block;
  overflow: auto;
  overflow-x: hidden;
  margin-bottom: 0;
  padding: 18px 16px;
}

.cart-row,
.cart-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.cart-head {
  display: none;
}

.cart-row {
  position: relative;
  min-height: 116px;
  margin-bottom: 12px;
  padding: 12px 42px 12px 12px;
  background: white;
  border: 1px solid #e3e6eb;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.cart-img {
  display: grid;
  place-items: center;
  width: 76px;
  height: 88px;
  margin-left: 0;
  background: #f7f8fa;
  border-radius: var(--radius);
}

.cart-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-product strong,
.cart-product small {
  display: block;
}

.cart-product strong {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.28;
}

.cart-product small {
  font-size: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}

.qty-control button,
.remove-item-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: white;
  border: 1px solid #b5bbc4;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.qty-control button:hover {
  color: white;
  background: var(--black);
  border-color: var(--black);
}

.remove-item-button {
  position: absolute;
  right: 10px;
  bottom: 12px;
  border: 0;
  color: #7b828c;
  background: transparent;
  font-size: 18px;
}

.remove-item-button:hover {
  color: #d92d20;
  background: transparent;
}

.cart-subtotal {
  grid-column: 2;
  margin-top: 10px;
  font-weight: 800;
  text-align: left;
}

.cart-actions,
.checkout-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  background: #f8f9fb;
  border-top: 1px solid var(--line);
}

.cart-actions .success-button {
  grid-column: 1 / -1;
  min-height: 48px;
  margin-left: 0;
  background: var(--black);
}

.cart-actions .muted-button {
  color: var(--black);
  background: white;
  border: 1px solid #d9dee7;
}

.cart-actions .danger-button {
  color: #d92d20;
  background: white;
  border: 1px solid #f3b7b2;
}

.muted-button,
.danger-button,
.success-button,
.primary-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.muted-button {
  background: #747d86;
}

.danger-button {
  background: #dc3545;
}

.success-button {
  background: #198754;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(8, 9, 11, 0.68);
  backdrop-filter: blur(4px);
  overflow: auto;
}

.checkout-shell {
  width: min(1180px, 100%);
  max-height: calc(100dvh - 52px);
  overflow: auto;
  background: #f5f6f8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.checkout-hero {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
  padding: 26px 30px;
  color: white;
  background: var(--black);
}

.checkout-hero h2 {
  padding: 0;
  font-size: 42px;
  font-weight: 800;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
  margin-top: 0;
  padding: 22px 24px 24px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  margin-bottom: 14px;
}

.checkout-steps button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  background: white;
  border: 1px solid #d9dee7;
  border-radius: var(--radius);
  color: var(--black);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.checkout-steps button span {
  color: var(--green);
  font-weight: 900;
}

.checkout-steps button:last-child {
  border-right: 0;
}

.checkout-steps button.is-active {
  color: white;
  background: var(--black);
  border-color: var(--black);
}

.checkout-steps button.is-active span {
  color: #8fe1cd;
}

.checkout-card,
.order-summary {
  background: white;
  border: 1px solid #d9dee7;
  border-radius: 12px;
}

.checkout-card {
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 24px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.field.full {
  grid-column: 1 / -1;
}

.field.wide {
  grid-column: span 2;
}

.field span {
  color: #5d6675;
  font-size: 13px;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  color: var(--black);
  font: inherit;
  font-weight: 700;
}

.field.has-error input {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.field-error {
  min-height: 16px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.field select {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  color: var(--black);
  font: inherit;
  font-weight: 700;
}

.field textarea {
  resize: vertical;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0 34px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 24px;
  background: #fbfcfd;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
}

.option-card:has(input:checked) {
  border-color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black), 0 12px 32px rgba(15, 23, 42, 0.08);
}

.option-card.is-disabled,
.option-card:has(input:disabled) {
  opacity: 0.48;
  cursor: not-allowed;
  background: #f1f3f6;
  border-color: #d7dce4;
  box-shadow: none;
}

.option-card input {
  width: 24px;
  height: 24px;
  margin-right: 14px;
}

.option-card span {
  display: grid;
  gap: 4px;
  color: var(--black);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.option-card small {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.option-card strong {
  color: #098442;
}

.checkout-buttons {
  margin-top: 34px;
}

.pdf-save-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  cursor: pointer;
}

.pdf-save-option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--black);
}

.pdf-save-option span {
  display: grid;
  gap: 4px;
}

.pdf-save-option strong {
  color: var(--black);
  font-size: 15px;
}

.pdf-save-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.checkout-buttons button {
  flex: 1;
  min-height: 48px;
  font-size: 18px;
}

.checkout-buttons button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.primary-checkout-button {
  background: var(--black);
}

.order-summary {
  position: sticky;
  top: 112px;
  padding: 20px 18px 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.order-summary h3 {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 800;
}

.order-summary p {
  color: #30343b;
}

.order-summary dl {
  display: grid;
  gap: 12px;
  margin: 30px 0 22px;
}

.order-summary dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.order-summary dt {
  font-size: 13px;
  font-weight: 800;
}

.order-summary dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.order-summary dl div:last-child dd {
  font-size: 26px;
  font-weight: 500;
}

.summary-button {
  width: 100%;
  min-height: 38px;
  color: white;
  background: var(--black);
  border: 0;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.summary-products {
  display: grid;
  gap: 10px;
  max-height: 280px;
  margin-top: 14px;
  padding-right: 4px;
  overflow: auto;
}

.summary-product {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #f7f8fa;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
}

.summary-product img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
}

.summary-product strong,
.summary-product span {
  display: block;
}

.summary-product strong {
  color: var(--black);
  font-size: 12px;
  line-height: 1.25;
}

.summary-product span,
.summary-products-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-review {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.review-section h3 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
}

.review-line,
.review-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid #cfd4dc;
}

.review-item {
  grid-template-columns: 62px minmax(0, 1fr) 90px 110px;
  align-items: center;
  background: #f6f7f9;
  border-bottom: 0;
  padding: 8px;
}

.review-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #cfd4dc;
  font-size: 22px;
}

.order-complete {
  padding: 24px;
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  border-radius: var(--radius);
  font-weight: 800;
}

.order-error {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

@media (max-width: 1280px) {
  .header-inner,
  .hero-inner,
  .catalog-layout {
    width: min(1180px, calc(100% - 32px));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .catalog-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
  }

  .product-card {
    grid-template-rows: 230px 1fr;
    min-height: 438px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 14px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 980px) {
  .header-inner,
  .hero-inner,
  .catalog-layout {
    width: min(100% - 28px, 820px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .filter-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border-radius: 10px;
  }

  .rubro-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 10px;
  }

  .rubro-group {
    min-width: 0;
  }

  .rubro-group + .rubro-group {
    margin-top: 0;
  }

  .rubro-toggle {
    min-height: 38px;
    padding: 0 10px;
    border-bottom: 0;
  }

  .rubro-items {
    max-height: 210px;
    overflow-y: auto;
    padding: 8px 10px 10px;
  }

  .category-grid,
  .subcategory-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-row,
  .cart-head {
    grid-template-columns: 74px minmax(0, 1fr) 110px 110px 30px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-inner,
  .catalog-layout {
    width: min(100% - 20px, 620px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    max-width: 62vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .floating-action {
    width: 50px;
    height: 50px;
  }

  .floating-action svg {
    width: 25px;
    height: 25px;
  }

  .header-action {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    padding: 52px 0 38px;
  }

  .hero-panel,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 16px;
  }

  .catalog-topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-topbar {
    gap: 10px;
  }

  .clear-button,
  .back-button {
    width: 100%;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .category-grid,
  .subcategory-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: clamp(190px, 58vw, 240px) 1fr;
    min-height: 0;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .product-media {
    padding: 12px;
  }

  .product-bottom {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .quantity-add {
    grid-template-columns: minmax(118px, 0.58fr) minmax(0, 1fr);
  }

  .add-cart-button {
    min-height: 44px;
    color: #fff;
    line-height: 1.1;
  }

  .cart-head {
    display: none;
  }

  .cart-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .qty-control,
  .cart-subtotal,
  .remove-item-button {
    grid-column: 2;
  }

  .cart-actions,
  .checkout-buttons,
  .option-grid,
  .form-grid,
  .checkout-steps {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-header {
    padding: 20px 18px;
  }

  .cart-header h2 {
    font-size: 28px;
  }

  .cart-header span {
    font-size: 24px;
  }

  .checkout-modal {
    padding: 0;
  }

  .checkout-shell {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .checkout-hero {
    padding: 18px;
  }

  .checkout-hero h2 {
    font-size: 30px;
  }

  .checkout-layout {
    padding: 14px;
  }

  .checkout-card {
    padding: 18px;
  }

  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-steps button {
    min-height: 46px;
    font-size: 13px;
  }

  .cart-actions .success-button,
  .cart-actions button,
  .checkout-buttons button {
    width: 100%;
    margin-left: 0;
  }

  .field.wide {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .hero-inner,
  .catalog-layout {
    width: min(100% - 14px, 100%);
  }

  .catalog-layout {
    padding-bottom: 86px;
  }

  .rubro-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
  }

  .rubro-toggle {
    min-height: 42px;
    padding: 0 9px;
    font-size: 13px;
  }

  .rubro-items {
    grid-column: 1 / -1;
    max-height: 190px;
  }

  .rubro-button {
    font-size: 12px;
    line-height: 1.2;
  }

  .product-info {
    padding: 12px;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }

  .product-name {
    min-height: auto;
  }

  .product-price {
    font-size: 22px;
  }

  .quantity-add {
    grid-template-columns: 1fr;
  }

  .product-card:hover .add-start {
    display: block;
  }

  .product-card:hover .quantity-add {
    display: none;
  }

  .product-card.is-choosing-quantity .add-start,
  .product-card:focus-within .add-start {
    display: none;
  }

  .product-card.is-choosing-quantity .quantity-add,
  .product-card:focus-within .quantity-add {
    display: grid;
  }

  .quantity-stepper {
    grid-template-columns: 36px minmax(54px, 1fr) 36px;
  }

  .floating-actions {
    right: 10px;
    bottom: 10px;
  }

  .floating-action {
    width: 46px;
    height: 46px;
  }

  .cart-table {
    padding: 12px 10px;
  }

  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr);
    padding-right: 34px;
  }

  .cart-img {
    width: 68px;
    height: 78px;
  }
}

@media (max-width: 760px) {
  body {
    background: #f3f4f6;
  }

  .site-header {
    position: sticky;
    background: #090a0c;
  }

  .header-inner {
    width: 100%;
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }

  .brand strong {
    max-width: none;
    font-size: 16px;
  }

  .brand small {
    font-size: 12px;
  }

  .account-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }

  .account-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .account-menu {
    position: fixed;
    top: 68px;
    right: 10px;
    width: min(230px, calc(100vw - 20px));
  }

  .account-modal {
    padding: 0;
  }

  .account-panel-card {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .account-panel-header {
    padding: 18px 16px;
  }

  .account-panel-header h2 {
    font-size: 28px;
  }

  .account-panel-body {
    padding: 12px;
  }

  .account-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .account-order {
    display: grid;
    gap: 12px;
  }

  .account-order-product {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .account-order-actions {
    justify-content: stretch;
  }

  .account-order-actions button {
    flex: 1;
  }

  .auth-modal {
    padding: 0;
  }

  .auth-card {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .auth-header {
    padding: 18px 16px;
  }

  .auth-header h2 {
    font-size: 28px;
  }

  .auth-tabs {
    padding: 12px 12px 0;
  }

  .auth-body {
    padding: 12px;
  }

  .auth-form {
    padding: 16px;
  }

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

  .volume-options span {
    min-height: 52px;
  }

  .catalog-layout {
    width: 100%;
    display: block;
    padding: 12px 10px 92px;
  }

  .filter-panel,
  .catalog-tools,
  .catalog-topbar {
    width: 100%;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  }

  .filter-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

  .rubro-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 12px;
    overflow: visible;
  }

  .rubro-group {
    min-width: 0;
    border-bottom: 1px solid #e3e7ee;
  }

  .rubro-group:last-child {
    border-bottom: 0;
  }

  .rubro-group + .rubro-group {
    margin-top: 0;
  }

  .rubro-toggle {
    min-height: 46px;
    padding: 0;
    font-size: 14px;
    border-bottom: 0;
  }

  .rubro-toggle::after {
    margin-right: 4px;
  }

  .rubro-items {
    max-height: none;
    overflow: visible;
    padding: 0 0 12px 10px;
  }

  .rubro-button {
    min-height: 30px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .catalog-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .catalog-path {
    white-space: normal;
    font-size: 15px;
    line-height: 1.3;
  }

  .catalog-context .result-count {
    font-size: 13px;
  }

  .clear-button,
  .back-button {
    width: 100%;
    min-height: 40px;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .search-box input,
  .select-box select {
    min-height: 42px;
    font-size: 14px;
  }

  .visual-block {
    margin-bottom: 12px;
  }

  .subcategory-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    grid-template-rows: 148px minmax(0, 1fr);
    min-height: 338px;
    border-radius: 9px;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .product-media {
    padding: 10px;
  }

  .product-code {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .product-info {
    grid-template-rows: auto auto auto;
    gap: 9px;
    padding: 10px;
  }

  .product-name {
    min-height: 44px;
    font-size: 12.5px;
    line-height: 1.22;
  }

  .product-bottom {
    display: grid;
    gap: 3px;
    padding-top: 8px;
  }

  .product-price {
    font-size: 19px;
    line-height: 1.1;
  }

  .product-category {
    font-size: 11px;
  }

  .product-buy {
    min-height: 38px;
  }

  .add-cart-button {
    min-height: 38px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.1;
  }

  .quantity-add {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quantity-stepper {
    grid-template-columns: 34px minmax(58px, 1fr) 34px;
    min-height: 38px;
  }

  .quantity-stepper button,
  .quantity-stepper input {
    height: 38px;
    min-height: 38px;
  }

  .min-quantity-label {
    min-height: 13px;
    margin-top: 0;
    font-size: 10.5px;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-header {
    padding: 18px 16px;
  }

  .cart-header h2 {
    font-size: 28px;
  }

  .cart-table {
    padding: 12px;
  }

  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    min-height: 102px;
    padding: 10px 34px 10px 10px;
  }

  .cart-img {
    width: 68px;
    height: 78px;
  }

  .qty-control,
  .cart-subtotal,
  .remove-item-button {
    grid-column: 2;
  }

  .checkout-modal {
    padding: 0;
  }

  .checkout-shell {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .checkout-hero {
    padding: 18px 16px;
  }

  .checkout-hero h2 {
    font-size: 28px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .checkout-steps button {
    min-height: 44px;
    font-size: 13px;
  }

  .checkout-card {
    padding: 16px;
  }

  .form-grid,
  .option-grid,
  .checkout-buttons {
    grid-template-columns: 1fr;
  }

  .field.wide {
    grid-column: 1;
  }

  .floating-actions {
    right: 10px;
    bottom: 10px;
    gap: 9px;
  }

  .floating-action {
    width: 48px;
    height: 48px;
  }
}

@media (hover: none) and (max-width: 760px) {
  .product-card .add-start,
  .product-card:hover .add-start,
  .product-card:focus-within .add-start,
  .product-card.is-choosing-quantity .add-start {
    display: none;
  }

  .product-card .quantity-add,
  .product-card:hover .quantity-add,
  .product-card:focus-within .quantity-add,
  .product-card.is-choosing-quantity .quantity-add {
    display: grid;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 220px minmax(0, 1fr);
    min-height: 0;
  }

  .product-name {
    min-height: auto;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .cart-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "img info"
      "qty qty"
      "subtotal subtotal";
    gap: 10px 12px;
    min-height: 0;
    padding: 12px;
  }

  .cart-img {
    grid-area: img;
    width: 76px;
    height: 86px;
  }

  .cart-product {
    grid-area: info;
    min-width: 0;
    padding-right: 28px;
  }

  .cart-product strong {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.2;
  }

  .cart-product small {
    font-size: 11px;
    line-height: 1.3;
  }

  .qty-control {
    grid-area: qty;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr 34px 34px;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 8px;
    background: #f7f8fa;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
  }

  .qty-control span {
    font-weight: 800;
  }

  .qty-control button {
    width: 34px;
    height: 34px;
  }

  .cart-subtotal {
    grid-area: subtotal;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #e3e7ee;
    font-size: 16px;
    text-align: right;
  }

  .remove-item-button {
    top: 10px;
    right: 10px;
    bottom: auto;
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
  }

  .cart-img {
    width: 72px;
    height: 82px;
  }
}

@media (max-width: 760px) {
  .cart-table {
    padding: 12px;
  }

  .cart-row {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "cart-img cart-info"
      "cart-qty cart-qty"
      "cart-total cart-total";
    align-items: start;
    gap: 10px 12px;
    min-height: 0;
    padding: 12px;
  }

  .cart-img {
    grid-area: cart-img;
    width: 78px;
    height: 88px;
    margin: 0;
  }

  .cart-product {
    grid-area: cart-info;
    min-width: 0;
    padding-right: 30px;
  }

  .cart-product strong {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.24;
    overflow-wrap: anywhere;
  }

  .cart-product small {
    font-size: 11px;
    line-height: 1.3;
  }

  .qty-control {
    grid-area: cart-qty;
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-self: stretch;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
    padding: 8px;
    background: #f7f8fa;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
  }

  .qty-control span {
    flex: 1 1 auto;
    min-width: 64px;
    margin-right: auto;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
  }

  .qty-control button {
    width: 36px;
    height: 36px;
  }

  .cart-subtotal {
    grid-area: cart-total;
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #e3e7ee;
    font-size: 16px;
    text-align: right;
  }

  .remove-item-button {
    grid-column: auto;
    top: 10px;
    right: 10px;
    bottom: auto;
  }
}

@media (max-width: 420px) {
  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
  }

  .cart-img {
    width: 72px;
    height: 82px;
  }

  .qty-control {
    gap: 6px;
  }

  .qty-control button {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 760px) {
  .order-review {
    gap: 18px;
  }

  .review-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .review-line {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 0;
  }

  .review-line strong {
    overflow-wrap: anywhere;
  }

  .review-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "review-img review-info"
      "review-img review-qty"
      "review-img review-total";
    gap: 6px 12px;
    align-items: start;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 9px;
  }

  .review-item img {
    grid-area: review-img;
    width: 64px;
    height: 72px;
    padding: 4px;
    background: #f7f8fa;
    border-radius: 7px;
  }

  .review-item > span:first-of-type {
    grid-area: review-info;
    min-width: 0;
  }

  .review-item > span:first-of-type strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .review-item > span:first-of-type small {
    display: block;
    color: #5f6875;
    font-size: 11px;
    line-height: 1.35;
  }

  .review-item > span:nth-of-type(2) {
    grid-area: review-qty;
    color: #30343b;
    font-size: 13px;
    font-weight: 800;
  }

  .review-item > strong:last-child {
    grid-area: review-total;
    font-size: 16px;
    text-align: left;
  }
}
