/* ==========================================================================
   CELESTE · TIENDA
   Etapas: 1) base, 2) estructura, 3) catálogo, 4) acceso, 5) tienda/carrito,
   6) ajustes para pantallas grandes, escritorio, tablet y móvil.
   ========================================================================== */

/* 1. Base y elementos compartidos */
.shop-page {
  --shop-ink: #102f43;
  --shop-navy: #082d49;
  --shop-blue: #0a4863;
  --shop-teal: #0a8f91;
  --shop-muted: #687b83;
  --shop-line: #e3eaeb;
  min-height: 100vh;
  background: #f5f7f7;
  color: var(--shop-ink);
}

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

.shop-page img { max-width: 100%; display: block; }
.shop-page button,
.shop-page input { font: inherit; }

/* 2. Cabecera, navegación y pie */
.shop-header {
  min-height: 96px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e5ebed;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #0c3852;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-decoration: none;
}

.shop-brand img { width: 72px; height: 66px; object-fit: contain; }
.shop-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.shop-actions a,
.back-link { color: #123d56; font-size: 14px; font-weight: 700; text-decoration: none; }
.shop-actions a:hover,
.back-link:hover { color: #0b9b9a; }

.shop-register {
  padding: 12px 18px;
  color: #fff !important;
  background: var(--shop-blue);
  border-radius: 3px;
}

.exchange {
  padding: 9px 12px;
  color: #36515e;
  background: #f0f5f4;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-footer {
  padding: 24px;
  color: #8b9a9e;
  border-top: 1px solid #e4eaea;
  text-align: center;
  font-size: 12px;
}

/* 3. Área de catálogo e tarjetas de productos */
.shop-main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 76px) 0 50px;
}

.shop-intro { max-width: 680px; margin-bottom: 40px; }
.shop-intro h1,
.access-aside h1 {
  margin: 18px 0;
  color: var(--shop-navy);
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.shop-intro h1 em,
.access-aside h1 em { color: var(--shop-teal); font-style: normal; }
.shop-intro > p,
.access-aside > p { max-width: 590px; color: #60727b; font-size: 16px; line-height: 1.7; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 5px;
  box-shadow: 0 12px 34px #082d490b;
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px #082d4920; }

.product-photo { height: 240px; position: relative; flex: 0 0 auto; background: #e9f0f0; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 10px;
  color: #fff;
  background: #082d49e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.product-info { flex: 1; padding: 23px; }
.product-info > small { color: var(--shop-teal); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.product-info h2 { margin: 9px 0; color: #0b3249; font-family: Manrope, sans-serif; font-size: 21px; line-height: 1.3; }
.product-info > p { min-height: 72px; color: var(--shop-muted); font-size: 14px; line-height: 1.6; }

.product-controls {
  display: grid;
  grid-template-columns: auto 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e8eeee;
}

.product-controls label,
.buy-row label { color: #53676f; font-size: 12px; font-weight: 700; }
.product-controls input,
.buy-row input { width: 70px; min-height: 42px; padding: 9px 7px; border: 1px solid #d5e0e1; border-radius: 3px; color: #123b51; }
.product-controls .button { min-height: 42px; padding: 10px; justify-content: center; font-size: 12px; white-space: nowrap; }

.shop-help {
  margin-top: 36px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #eaf1f1;
  color: #45606b;
  font-size: 14px;
}

.shop-help a { color: #0a7e85; font-weight: 800; text-decoration: none; }

/* 4. Acceso: Login y Registro */
.access-page { background: #fff; }
.access-wrap { min-height: calc(100vh - 155px); display: grid; grid-template-columns: 1fr 1fr; }

.access-aside {
  padding: clamp(44px, 8vw, 110px) max(36px, calc((100vw - 1180px) / 2));
  padding-right: 56px;
  color: #fff;
  background: linear-gradient(135deg, #082d49, #0b5266);
}

.eyebrow.light { color: #c6dfe2; }
.access-aside h1 { color: #fff; }
.access-aside > p { color: #c5d7dc; }
.access-mark { margin-top: 75px; display: flex; flex-direction: column; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.access-mark span { margin-top: 7px; color: #aec7ce; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.access-panel { width: min(460px, calc(100% - 48px)); align-self: center; justify-self: center; padding: 44px 0; }
.access-tabs { display: flex; gap: 28px; border-bottom: 1px solid #e3e9e9; }
.access-tab { padding: 0 0 14px; color: #839197; background: none; border: 0; border-bottom: 2px solid transparent; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.access-tab.active { color: #0c4056; border-color: #0b9995; }
.access-form { display: none; padding-top: 26px; }
.access-form.active { display: block; }
.access-form h2 { margin: 0 0 8px; color: #0a3047; font: 700 25px Manrope, sans-serif; }
.access-form > p { margin: 0 0 22px; color: #75858a; font-size: 13px; line-height: 1.5; }
.access-form label { display: block; margin: 17px 0; color: #36525e; font-size: 12px; font-weight: 700; }
.access-form input { width: 100%; min-height: 48px; margin-top: 8px; padding: 14px; color: #12394d; background: #fff; border: 1px solid #d8e1e2; border-radius: 3px; font: 400 14px 'DM Sans', sans-serif; }
.access-form .field-hint { display: block; margin-top: 7px; color: #7c8b90; font-size: 11px; font-weight: 400; line-height: 1.45; }
.access-form input:focus { outline: 2px solid #1da1a0; outline-offset: 1px; }
.access-form .button { width: 100%; justify-content: space-between; margin-top: 8px; }
.access-form .access-note { min-height: 20px; margin: 14px 0 0; font-size: 12px; }

/* 5. Tienda autenticada y carrito */
.user-name { max-width: 220px; overflow: hidden; color: #173e51; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cart-button,
.logout-button { min-height: 42px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 8px; color: #0a4058; background: #fff; border: 1px solid #d9e3e4; border-radius: 3px; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.cart-button { font-size: 18px; }
.cart-button span { font-size: 13px; }
.cart-button b { padding: 2px 7px; color: #fff; background: #0b9292; border-radius: 20px; font-size: 11px; }
.logout-button { border-color: transparent; color: #667980; }
.full-shop { position: relative; }
.full-product-grid .product-info { padding: 22px; }
.full-product-grid .product-info h2 { min-height: 28px; }
.full-product-grid .product-info > p { min-height: 62px; }
.description-button { padding: 0; color: #087c83; background: transparent; border: 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.description-button:hover { color: #082d49; }
.price { margin: 18px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #0a425b; font: 800 24px Manrope, sans-serif; }
.price small { color: #819094; font: 600 11px 'DM Sans', sans-serif; }
.buy-row { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e8eeee; }
.buy-row label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.buy-row input { width: 66px; }
.buy-row button { min-height: 42px; padding: 10px 14px; color: #fff; background: var(--shop-blue); border: 0; border-radius: 3px; font: 700 12px 'DM Sans', sans-serif; cursor: pointer; }
.buy-row button:hover { background: #0a8b8d; }
.add-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add-button span { font-size: 12px; }

/* Ficha emergente de detalle de producto */
.product-dialog {
  position: relative;
  width: min(880px, calc(100% - 36px));
  max-width: none;
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--shop-ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px #041e33a8;
}

.product-dialog::backdrop { background: #061f34b8; backdrop-filter: blur(5px); }
.product-dialog-content { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; }
.detail-image { width: 100%; height: 100%; min-height: 420px; object-fit: cover; background: #e9f0f0; }
.detail-copy { position: relative; padding: clamp(30px, 5vw, 56px); align-self: center; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; color: #45606c; background: #f1f5f5; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: #fff; background: var(--shop-blue); }
.detail-tag { position: static; display: inline-block; margin: 0 44px 20px 0; }
.detail-copy h2 { margin: 0 0 16px; color: var(--shop-navy); font: 800 clamp(25px, 4vw, 36px)/1.2 Manrope, sans-serif; }
.detail-copy > p { color: #61747c; font-size: 15px; line-height: 1.75; }
.detail-price { display: block; margin: 24px 0; color: #0a425b; font: 800 24px Manrope, sans-serif; }
.detail-actions { display: flex; align-items: end; gap: 12px; }
.detail-actions label { display: grid; gap: 6px; color: #53676f; font-size: 12px; font-weight: 700; }
.detail-actions input { width: 76px; min-height: 46px; padding: 9px; border: 1px solid #d5e0e1; border-radius: 3px; }
.detail-actions .buy-button { min-height: 46px; flex: 1; padding: 10px 14px; color: #fff; background: var(--shop-blue); border: 0; border-radius: 3px; font: 700 13px 'DM Sans', sans-serif; cursor: pointer; }
.detail-actions .buy-button:hover { background: #0a8b8d; }

.cart-panel {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  padding: 26px;
  background: #fff;
  box-shadow: -15px 0 50px #082d4926;
}

.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #e3eaea; }
.cart-head h2 { margin: 0; color: #0b344b; font: 700 23px Manrope, sans-serif; }
.cart-head button { color: #45606c; background: none; border: 0; font-size: 28px; cursor: pointer; }
.cart-line { padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; color: #536970; border-bottom: 1px solid #edf0f0; font-size: 13px; }
.cart-line strong { color: #174052; white-space: nowrap; }
.cart-remove { width: 30px; height: 30px; flex: 0 0 auto; color: #60747b; background: #f2f6f6; border: 0; border-radius: 50%; font-size: 19px; line-height: 1; cursor: pointer; }
.cart-remove:hover { color: #fff; background: #a44c3e; }
.cart-total { margin: 22px 0; display: flex; justify-content: space-between; gap: 12px; color: #546a71; font-size: 14px; }
.cart-total strong { color: #0b344b; font-size: 20px; }
.cart-panel > .button { width: 100%; justify-content: space-between; }
.cart-panel > p { color: #879397; font-size: 11px; }

/* 6. Pantallas grandes: mantener la lectura y limitar el ancho del contenido */
@media (min-width: 1500px) {
  .shop-main { width: min(1320px, calc(100% - 96px)); }
  .shop-header { padding-right: max(48px, calc((100% - 1320px) / 2)); padding-left: max(48px, calc((100% - 1320px) / 2)); }
  .product-grid { gap: 28px; }
  .product-photo { height: 280px; }
  .product-info { padding: 28px; }
}

/* 7. Escritorio compacto y tablet horizontal */
@media (max-width: 1050px) {
  .shop-header { padding-right: 28px; padding-left: 28px; }
  .shop-actions { gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-wrap { grid-template-columns: .9fr 1.1fr; }
  .access-aside { padding-left: 40px; padding-right: 36px; }
  .access-panel { width: min(460px, calc(100% - 52px)); }
}

/* 8. Tablet vertical y teléfonos grandes */
@media (max-width: 760px) {
  .shop-header { min-height: 82px; padding: 10px 22px; flex-wrap: wrap; }
  .shop-brand img { width: 62px; height: 58px; }
  .shop-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .shop-main { width: min(100% - 40px, 680px); }
  .product-grid { gap: 16px; }
  .product-photo { height: 210px; }
  .product-info { padding: 18px; }
  .product-controls { grid-template-columns: auto 64px minmax(0, 1fr); gap: 8px; }
  .product-controls input { width: 64px; }
  .product-controls .button { padding-inline: 8px; font-size: 11px; }
  .access-wrap { min-height: 0; grid-template-columns: 1fr; }
  .access-aside { padding: 42px max(24px, calc((100% - 620px) / 2)); }
  .access-aside h1 { font-size: clamp(38px, 8vw, 52px); }
  .access-mark { margin-top: 28px; }
  .access-panel { width: min(520px, calc(100% - 48px)); padding: 38px 0 52px; }
  .full-product-grid .product-info { padding: 18px; }
  .product-dialog { width: min(700px, calc(100% - 30px)); }
  .product-dialog-content { grid-template-columns: .9fr 1.1fr; }
  .detail-image { min-height: 360px; }
  .detail-copy { padding: 28px; }
}

/* 9. Móvil: una columna, controles táctiles y cabecera que puede crecer */
@media (max-width: 560px) {
  .shop-header { min-height: 0; padding: 10px 17px 13px; flex-wrap: wrap; gap: 5px 12px; }
  .shop-brand { gap: 8px; font-size: 10px; }
  .shop-brand img { width: 52px; height: 48px; }
  .shop-actions { width: 100%; min-width: 0; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; }
  .shop-actions a, .back-link { font-size: 13px; }
  .shop-register { padding: 9px 12px; }
  .exchange { order: 2; flex: 1 0 100%; padding: 7px 9px; text-align: center; font-size: 11px; }
  .user-name { max-width: 120px; font-size: 12px; }
  .cart-button, .logout-button { min-height: 40px; padding: 8px 10px; }
  .cart-button span { display: none; }
  .shop-main { width: calc(100% - 34px); padding: 42px 0 36px; }
  .shop-intro { margin-bottom: 28px; }
  .shop-intro h1 { font-size: clamp(36px, 10vw, 48px); }
  .shop-intro > p, .access-aside > p { font-size: 14px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-photo { height: clamp(190px, 58vw, 260px); }
  .product-info { padding: 20px; }
  .product-info > p, .full-product-grid .product-info > p { min-height: 0; }
  .product-controls { grid-template-columns: auto 72px minmax(0, 1fr); }
  .product-controls input { width: 72px; }
  .product-controls .button { min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .shop-help { margin-top: 24px; padding: 18px; align-items: flex-start; flex-direction: column; }
  .access-aside { padding: 34px 23px; }
  .access-aside h1 { font-size: 40px; }
  .access-panel { width: calc(100% - 42px); padding: 32px 0 44px; }
  .access-form input { min-height: 46px; }
  .buy-row { align-items: stretch; flex-direction: column; }
  .buy-row label { justify-content: space-between; }
  .buy-row button { width: 100%; min-height: 46px; }
  .cart-panel { padding: 20px 18px; }
  .product-dialog { max-height: calc(100dvh - 26px); }
  .product-dialog-content { display: block; }
  .detail-image { height: 220px; min-height: 0; }
  .detail-copy { padding: 25px 21px 23px; }
  .detail-tag { margin-bottom: 14px; }
  .detail-copy > p { font-size: 14px; }
  .detail-price { margin: 18px 0; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-actions label { display: flex; align-items: center; justify-content: space-between; }
  .detail-actions .buy-button { min-height: 48px; }
}

/* 10. Móviles estrechos */
@media (max-width: 360px) {
  .shop-header { padding-right: 13px; padding-left: 13px; }
  .shop-actions { gap: 7px; }
  .shop-actions a, .back-link { font-size: 12px; }
  .shop-main { width: calc(100% - 28px); }
  .product-controls { grid-template-columns: auto 60px minmax(0, 1fr); gap: 6px; }
  .product-controls input { width: 60px; }
  .product-controls .button { padding: 8px 6px; font-size: 10px; }
  .user-name { max-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
}

/* ========================================================================
   PLP · Página de listado de productos (productos.html)
   ======================================================================== */
.listing-main { padding-top: 30px; }
.breadcrumbs { margin-bottom: 32px; display: flex; align-items: center; gap: 10px; color: #809096; font-size: 12px; }
.breadcrumbs a { color: #52707b; text-decoration: none; }
.breadcrumbs a:hover { color: var(--shop-teal); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #12394d; font-weight: 700; }
.listing-intro { max-width: 760px; margin-bottom: 38px; }
.listing-intro h1 { margin: 16px 0; color: var(--shop-navy); font: 800 clamp(38px, 5vw, 58px)/1.08 Manrope, sans-serif; letter-spacing: -.045em; }
.listing-intro h1 em { color: var(--shop-teal); font-style: normal; }
.listing-intro > p { max-width: 650px; color: #60727b; font-size: 15px; line-height: 1.7; }

.listing-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 28px; }
.listing-filters { padding: 20px; background: #fff; border: 1px solid var(--shop-line); border-radius: 4px; }
.filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 17px; border-bottom: 1px solid #e9eeee; }
.filters-heading h2 { margin: 0; color: #12394d; font: 700 15px Manrope, sans-serif; }
.filters-heading button { min-height: 32px; padding: 4px 7px; color: #0a7e85; background: transparent; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.category-filter-group { margin: 18px 0 4px; padding: 0; display: grid; gap: 12px; border: 0; }
.category-filter-group legend { margin-bottom: 13px; color: #36525e; font-size: 13px; font-weight: 800; }
.category-filter-group label { min-height: 32px; display: flex; align-items: center; gap: 10px; color: #53676f; font-size: 13px; cursor: pointer; }
.category-filter-group input { width: 18px; height: 18px; margin: 0; accent-color: #0a8587; }
.filter-assistance { margin-top: 25px; padding: 17px; background: #f0f5f4; border-radius: 3px; }
.filter-assistance-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--shop-blue); border-radius: 50%; }
.filter-assistance p { margin: 12px 0 5px; color: #36525e; font-size: 12px; line-height: 1.5; }
.filter-assistance a { color: #087c83; font-size: 12px; font-weight: 800; line-height: 1.5; text-decoration: none; }
.filter-assistance a:hover { text-decoration: underline; }

.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.listing-search { min-height: 48px; min-width: 200px; flex: 1; padding: 0 13px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d7e1e2; border-radius: 3px; }
.listing-search:focus-within { border-color: #0b9292; box-shadow: 0 0 0 2px #0b929224; }
.listing-search input { width: 100%; min-width: 0; min-height: 44px; color: #12394d; background: transparent; border: 0; outline: 0; font-size: 13px; }
.listing-search input::placeholder { color: #859398; }
.search-icon { color: #0a7e85; font-size: 25px; line-height: 1; }
.sort-control { min-height: 48px; padding: 5px 10px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d7e1e2; border-radius: 3px; }
.sort-control span { color: #718187; font-size: 11px; white-space: nowrap; }
.sort-control select { min-height: 36px; max-width: 155px; color: #12394d; background: transparent; border: 0; font: 700 12px 'DM Sans', sans-serif; cursor: pointer; }
.results-summary { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-summary p { margin: 0; color: #12394d; font-size: 13px; font-weight: 800; }
.results-summary > span { color: #819094; font-size: 11px; text-align: right; }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.listing-grid[hidden] { display: none; }
.listing-card .product-photo { height: clamp(160px, 17vw, 220px); }
.listing-image-link { display: block; overflow: hidden; }
.listing-card .product-photo img { transition: transform .35s ease; }
.listing-card:hover .product-photo img { transform: scale(1.045); }
.listing-card .product-info { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.listing-category { color: #0a8587; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.listing-card .product-info h2 { min-height: 52px; margin: 8px 0; font-size: 18px; }
.listing-card .product-info > p { min-height: 66px; margin: 0 0 16px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 12px; }
.listing-card-bottom { margin-top: auto; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e8eeee; }
.locked-price { display: grid; gap: 3px; }
.locked-price span { color: #819094; font-size: 10px; }
.locked-price strong { color: #36525e; font-size: 11px; }
.listing-quantity { display: flex; align-items: center; gap: 6px; color: #53676f; font-size: 11px; font-weight: 700; }
.listing-quantity input { width: 48px; height: 38px; padding: 5px; border: 1px solid #d5e0e1; border-radius: 3px; text-align: center; }
.listing-cta { width: 100%; min-height: 44px; margin-top: 3px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.listing-empty { padding: 55px 20px; background: #fff; border: 1px solid var(--shop-line); text-align: center; }
.listing-empty > span { color: #0a8587; font-size: 34px; }
.listing-empty h2 { margin: 10px 0; color: #12394d; font: 700 21px Manrope, sans-serif; }
.listing-empty p { margin: 0 auto 20px; max-width: 420px; color: #718187; font-size: 13px; }
.listing-empty .button { min-height: 44px; }
.listing-signin { margin-top: 34px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #eaf1f1; }
.listing-signin > div { display: grid; gap: 4px; }
.listing-signin strong { color: #12394d; font-size: 14px; }
.listing-signin span { color: #60727b; font-size: 12px; }
.listing-signin .button { min-height: 44px; flex: 0 0 auto; justify-content: space-between; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1500px) {
  .listing-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 34px; }
  .listing-grid { gap: 24px; }
  .listing-card .product-info { padding: 21px; }
}

@media (max-width: 1100px) {
  .listing-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 20px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-card .product-photo { height: 205px; }
}

@media (max-width: 760px) {
  .listing-main { padding-top: 22px; }
  .breadcrumbs { margin-bottom: 24px; }
  .listing-intro { margin-bottom: 28px; }
  .listing-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .listing-filters { padding: 16px 18px; }
  .filter-assistance { display: none; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-card .product-photo { height: clamp(165px, 28vw, 210px); }
}

@media (max-width: 560px) {
  .listing-intro h1 { font-size: clamp(35px, 9vw, 45px); }
  .listing-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .sort-control { justify-content: space-between; }
  .sort-control select { max-width: none; flex: 1; text-align: right; }
  .results-summary > span { max-width: 48%; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-card .product-photo { height: clamp(190px, 58vw, 260px); }
  .listing-card .product-info { padding: 20px; }
  .listing-card .product-info h2 { min-height: 0; font-size: 20px; }
  .listing-card .product-info > p { min-height: 0; font-size: 13px; }
  .listing-card-bottom { padding: 15px 0; }
  .listing-quantity input { width: 58px; height: 42px; }
  .listing-signin { align-items: stretch; flex-direction: column; padding: 19px; }
  .listing-signin .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-card .product-photo img { transition: none; }
  .listing-card:hover .product-photo img { transform: none; }
}
