/**
 * Archivo: accesorios.css
 * Tipo: hoja de estilos
 * Pagina relacionada: Vistas/accesorios.html
 * Funcion general: define filtros, tarjetas y modal del catalogo de accesorios.
 */
.accesorios-page {
  --accesorios-columns: 4;
  --accesorios-card-width: 248px;
  --accesorios-gap: 20px;
  --accesorios-shell-padding-x: 24px;
  --accesorios-shell-width: calc(
    (var(--accesorios-columns) * var(--accesorios-card-width)) +
    ((var(--accesorios-columns) - 1) * var(--accesorios-gap)) +
    (var(--accesorios-shell-padding-x) * 2)
  );
}

.accesorios-page .product-list-header .container,
.accesorios-page .product-grid-section .container {
  width: min(var(--accesorios-shell-width), 96vw);
  max-width: min(var(--accesorios-shell-width), 96vw);
  margin-inline: auto;
}

.accesorios-page.product-grid-page .product-grid-section {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (min-width: 1200px) {
  .accesorios-page {
    --accesorios-columns: 4;
    --accesorios-card-width: 260px;
    --accesorios-gap: 22px;
    --accesorios-shell-padding-x: 28px;
  }
}

@media (min-width: 1680px) {
  .accesorios-page {
    --accesorios-columns: 5;
    --accesorios-card-width: 244px;
    --accesorios-gap: 22px;
    --accesorios-shell-padding-x: 28px;
  }

  .accesorios-page .product-list-header .container {
    padding: 42px 40px;
  }

  .accesorios-page .product-list-header h1 {
    max-width: 22ch;
    font-size: clamp(46px, 3.4vw, 82px);
  }

  .accesorios-page .product-grid-section .container {
    padding: 30px 28px 40px;
  }

  .accesorios-card-tile {
    min-height: 368px;
  }

  .accesorios-card-tile h3 {
    font-size: clamp(17px, 1vw, 22px);
  }
}

@media (min-width: 2200px) {
  .accesorios-page {
    --accesorios-columns: 5;
    --accesorios-card-width: 260px;
    --accesorios-gap: 24px;
    --accesorios-shell-padding-x: 32px;
  }
}

.accesorios-page .product-list-header {
  position: relative;
  padding: 44px 0 28px;
}

.accesorios-page .product-list-header::before {
  content: "";
  position: absolute;
  inset: 18px 0 0;
  background:
    linear-gradient(180deg, rgba(230, 236, 249, 0.86), rgba(230, 236, 249, 0.26)),
    repeating-linear-gradient(135deg, rgba(46, 73, 164, 0.06) 0 12px, rgba(46, 73, 164, 0) 12px 26px);
  border-top: 1px solid rgba(188, 203, 236, 0.82);
  border-bottom: 1px solid rgba(188, 203, 236, 0.56);
  pointer-events: none;
}

.accesorios-page .product-list-header .container {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
  border-radius: 36px;
  border: 1px solid rgba(198, 211, 241, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 255, 0.9)),
    repeating-linear-gradient(90deg, rgba(45, 68, 155, 0.05) 0 1px, transparent 1px 92px);
  box-shadow:
    0 22px 42px rgba(18, 34, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.accesorios-page .product-list-header .container::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 24px;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #213a97, #5a79dd);
  opacity: 0.8;
}

.accesorios-page .product-list-header h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-size: clamp(38px, 4.4vw, 66px);
  text-transform: uppercase;
  text-wrap: balance;
}

.accesorios-page .product-list-header p {
  max-width: 1000px;
  font-size: 19px;
  line-height: 1.7;
  text-align: left;
  margin: 0;
}

.accesorios-page .product-grid-section {
  padding-top: 22px;
  padding-bottom: 80px;
}

.accesorios-page .product-grid-section .container {
  position: relative;
  padding: 26px 28px 34px;
  border-radius: 34px;
  border: 1px solid rgba(203, 214, 238, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.94)),
    repeating-linear-gradient(0deg, rgba(45, 68, 155, 0.04) 0 1px, transparent 1px 74px);
  box-shadow:
    0 26px 48px rgba(16, 31, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.accesorios-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(204, 214, 236, 0.88);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 246, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.accesorios-filter-btn {
  border: 1px solid #c9d5ec;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  color: #1d347c;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 8px 18px rgba(25, 46, 100, 0.08);
}

.accesorios-filter-btn:hover {
  transform: translateY(-2px);
  border-color: #9cb5e9;
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
}

.accesorios-filter-btn.is-active {
  background: linear-gradient(135deg, #1e3aa1, #2f49b6);
  border-color: #1e3aa1;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(29, 50, 122, 0.2);
}

.accesorios-status {
  margin-bottom: 20px;
  color: #566483;
  font-weight: 600;
  padding-left: 6px;
}

.accesorios-page .product-cards {
  display: grid !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-content: stretch;
  grid-template-columns: repeat(var(--accesorios-columns), minmax(0, 1fr));
  gap: var(--accesorios-gap);
  padding: 0;
}

.accesorios-card-tile {
  display: block;
  width: 100%;
  position: relative;
  border: 1px solid #d5deef;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border-radius: 28px;
  min-height: 340px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(18, 34, 76, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.accesorios-card-tile::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(196, 208, 236, 0.72);
  pointer-events: none;
  z-index: 0;
}

.accesorios-card-tile .product-card-media {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  bottom: 108px;
  border-radius: 22px;
  border: 1px solid rgba(203, 214, 238, 0.86);
  background-color: #edf2fb;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.accesorios-card-tile .product-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(33, 58, 151, 0.05) 0 1px, transparent 1px 56px);
}

.accesorios-card-tile::after {
  display: none;
}

.accesorios-card-media-asset {
  width: 76%;
  height: 76%;
  object-fit: contain;
  object-position: center center;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(31, 52, 124, 0.12));
  transform: translateZ(0);
}

.accesorios-card-tile h3 {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: none;
  margin: 0;
  min-height: 86px;
  padding: 15px 18px 17px;
  border-radius: 18px;
  border: 1px solid rgba(201, 212, 238, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 255, 0.94));
  color: #1c337d;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-align: left;
  text-shadow: none;
  box-shadow: 0 10px 20px rgba(24, 41, 95, 0.08);
  text-transform: none;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.accesorios-card-tile:hover {
  transform: translateY(-6px);
  border-color: #bccbeb;
  box-shadow:
    0 24px 38px rgba(18, 34, 76, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.accesorios-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 20px;
}

.accesorios-modal[hidden] {
  display: none;
}

.accesorios-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 40, 0.72);
  backdrop-filter: blur(7px);
}

.accesorios-modal-dialog {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(209, 219, 242, 0.88);
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(241, 245, 253, 0.98));
  box-shadow: 0 30px 56px rgba(4, 10, 25, 0.38);
  padding: 28px;
}

.accesorios-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 43, 122, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #17357f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.accesorios-modal-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.accesorios-modal-image {
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid #d4dff4;
  background: #eef2f8;
  overflow: hidden;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.accesorios-modal-image.no-image {
  background:
    radial-gradient(130% 86% at 88% 10%, rgba(84, 106, 206, 0.24), rgba(84, 106, 206, 0) 55%),
    linear-gradient(165deg, #d8d9df 0%, #c4c7d2 40%, #afb4c2 100%);
}

.accesorios-modal-image-asset {
  width: 100%;
  height: 100%;
  min-height: 324px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.accesorios-modal-image-asset[hidden] {
  display: none;
}

.accesorios-modal-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.accesorios-modal-head p {
  margin: 0 0 8px;
  color: #4c62a6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.accesorios-modal-head h2 {
  margin: 0;
  color: #152b74;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.accesorios-modal-description {
  margin: 0;
  border-radius: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 244, 252, 0.98));
  border: 1px solid #d7deee;
  color: #33425e;
  font-size: 17px;
  line-height: 1.75;
}

.accesorios-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.accesorios-modal-open {
  overflow: hidden;
}

body.dark .accesorios-filter-btn {
  background: linear-gradient(180deg, #23262a 0%, #1c1f23 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f4ff;
  box-shadow: none;
}

body.dark .accesorios-filter-btn.is-active {
  background: linear-gradient(135deg, #3659b7, #4b72d3);
  border-color: #3659b7;
  color: #ffffff;
}

body.dark .accesorios-status {
  color: #d4ddf7;
}

body.dark .accesorios-page .product-list-header::before {
  background:
    linear-gradient(180deg, rgba(29, 33, 40, 0.94), rgba(29, 33, 40, 0.54)),
    repeating-linear-gradient(135deg, rgba(121, 144, 214, 0.08) 0 12px, rgba(121, 144, 214, 0) 12px 26px);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark .accesorios-page .product-list-header .container,
body.dark .accesorios-page .product-grid-section .container {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(35, 38, 42, 0.96), rgba(27, 30, 34, 0.94)),
    repeating-linear-gradient(90deg, rgba(132, 153, 214, 0.06) 0 1px, transparent 1px 92px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.22);
}

body.dark .accesorios-page .product-list-header p {
  color: #e6eeff;
}

body.dark .accesorios-filters {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(39, 42, 46, 0.98), rgba(30, 33, 37, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .accesorios-card-tile {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

body.dark .accesorios-card-tile::before {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .accesorios-card-tile .product-card-media {
  background-color: #1b1e22;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .accesorios-card-media-asset {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

body.dark .accesorios-card-tile h3 {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(39, 42, 46, 0.98), rgba(30, 33, 37, 0.96));
  color: #f3f6ff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

body.dark .accesorios-modal-dialog {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%);
}

body.dark .accesorios-modal-close {
  background: rgba(34, 38, 44, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f6ff;
}

body.dark .accesorios-modal-image {
  background: #171a1e;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark .accesorios-modal-head p {
  color: #b7c7f4;
}

body.dark .accesorios-modal-head h2 {
  color: #f3f6ff;
}

body.dark .accesorios-modal-description {
  background: linear-gradient(180deg, #26292d 0%, #1f2227 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef2ff;
}

@media (max-width: 1140px) {
  .accesorios-page .product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .accesorios-page .product-list-header .container,
  .accesorios-page .product-grid-section .container {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 26px;
  }

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

  .accesorios-modal-image {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .accesorios-page .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .accesorios-card-tile {
    min-height: 280px;
  }

  .accesorios-card-tile .product-card-media {
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: 96px;
    border-radius: 18px;
  }

  .accesorios-card-tile h3 {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .accesorios-card-tile h3 {
    min-height: 78px;
    font-size: clamp(14px, 4vw, 18px);
    padding: 13px 14px 15px;
  }
}

@media (max-width: 520px) {
  .accesorios-page .product-cards {
    grid-template-columns: 1fr;
  }

  .accesorios-page .product-list-header .container,
  .accesorios-page .product-grid-section .container {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .accesorios-page .product-grid-section {
    padding-top: 14px;
    padding-bottom: 48px;
  }

  .accesorios-filters {
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .accesorios-filter-btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    text-align: center;
    padding: 10px 12px;
  }

  .accesorios-status {
    margin-bottom: 16px;
    padding-left: 0;
  }

  .accesorios-card-tile {
    min-height: 300px;
    border-radius: 24px;
  }

  .accesorios-card-tile::before {
    inset: 12px;
    border-radius: 18px;
  }

  .accesorios-card-tile .product-card-media {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 92px;
    border-radius: 16px;
  }

  .accesorios-card-tile h3 {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 74px;
    padding: 12px 14px 14px;
    border-radius: 16px;
    font-size: clamp(14px, 4.6vw, 18px);
  }

  .accesorios-page .product-list-header::before {
    inset: 8px 0 0;
  }

  .accesorios-page .product-list-header .container::before {
    left: 16px;
    top: 16px;
    width: 84px;
  }

  .accesorios-modal-dialog {
    padding: 18px;
  }
}

/* Override final: accesorios en modo oscuro debe preservar paneles y contraste */
body.dark.accesorios-page .product-list-header::before,
body.dark .accesorios-page .product-list-header::before {
  background:
    linear-gradient(180deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.62)),
    repeating-linear-gradient(135deg, rgba(121, 144, 214, 0.08) 0 12px, rgba(121, 144, 214, 0) 12px 26px) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark.accesorios-page .product-list-header .container,
body.dark .accesorios-page .product-list-header .container,
body.dark.accesorios-page .product-grid-section .container,
body.dark .accesorios-page .product-grid-section .container {
  background:
    linear-gradient(180deg, rgba(35, 38, 42, 0.98), rgba(27, 30, 34, 0.96)),
    repeating-linear-gradient(90deg, rgba(132, 153, 214, 0.06) 0 1px, transparent 1px 92px) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.24) !important;
}

body.dark.accesorios-page .product-list-header h1,
body.dark .accesorios-page .product-list-header h1 {
  color: #f4f7ff !important;
  -webkit-text-fill-color: #f4f7ff !important;
}

body.dark.accesorios-page .product-list-header p,
body.dark .accesorios-page .product-list-header p,
body.dark.accesorios-page .accesorios-status,
body.dark .accesorios-page .accesorios-status {
  color: #d7e1fb !important;
  -webkit-text-fill-color: #d7e1fb !important;
}

body.dark.accesorios-page .accesorios-filters,
body.dark .accesorios-page .accesorios-filters {
  background: linear-gradient(180deg, rgba(39, 42, 46, 0.98), rgba(30, 33, 37, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.dark.accesorios-page .accesorios-card-tile,
body.dark .accesorios-page .accesorios-card-tile {
  background: linear-gradient(180deg, #23262a 0%, #1b1e22 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22) !important;
}

body.dark.accesorios-page .accesorios-card-tile::before,
body.dark .accesorios-page .accesorios-card-tile::before {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark.accesorios-page .accesorios-card-tile .product-card-media,
body.dark .accesorios-page .accesorios-card-tile .product-card-media {
  background-color: #1b1e22 !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.dark.accesorios-page .accesorios-card-tile .product-card-media::before,
body.dark .accesorios-page .accesorios-card-tile .product-card-media::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(132, 153, 214, 0.05) 0 1px, transparent 1px 56px) !important;
  opacity: 0.38 !important;
}

body.dark.accesorios-page .accesorios-card-tile h3,
body.dark .accesorios-page .accesorios-card-tile h3 {
  background: linear-gradient(180deg, rgba(39, 42, 46, 0.98), rgba(30, 33, 37, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f4f7ff !important;
  -webkit-text-fill-color: #f4f7ff !important;
}

/* Override final: el modal de accesorios debe mantener una sola columna de texto */
.accesorios-modal-dialog {
  overflow: auto;
}

.accesorios-modal-layout {
  display: grid !important;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1.2fr) !important;
  align-items: stretch !important;
  gap: 30px !important;
}

.accesorios-modal-copy {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "head"
    "tags"
    "description"
    "actions" !important;
  gap: 16px !important;
  min-width: 0 !important;
  width: 100% !important;
  align-content: start !important;
  align-items: start !important;
}

.accesorios-modal-head,
.accesorios-modal-description,
.accesorios-modal-actions,
.accesorios-modal-copy .product-detail-tags,
.accesorios-modal-copy .product-meta-group {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.accesorios-modal-head {
  grid-area: head;
  padding-right: 68px;
}

.accesorios-modal-head h2 {
  max-width: 16ch;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.92;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.accesorios-modal-copy .product-detail-tags {
  grid-area: tags;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  align-self: start !important;
}

.accesorios-modal-copy .product-meta-group {
  padding: 18px 20px !important;
  border-radius: 22px !important;
}

.accesorios-modal-copy .product-meta-group-list {
  display: flex !important;
  flex-wrap: wrap !important;
}

.accesorios-modal-description {
  grid-area: description;
  margin: 0 !important;
  width: 100% !important;
  min-height: 220px;
  max-height: min(42vh, 460px);
  padding: 20px 22px !important;
  overflow: auto;
}

.accesorios-modal-actions {
  grid-area: actions;
  align-self: start !important;
  justify-content: flex-start;
}

.accesorios-modal-actions .product-detail-action {
  width: min(100%, 220px);
  justify-content: center;
}

@media (max-width: 980px) {
  .accesorios-modal-dialog {
    max-height: 94vh;
    overflow: auto;
  }

  .accesorios-modal-layout {
    grid-template-columns: 1fr !important;
  }

  .accesorios-modal-copy {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "tags"
      "description"
      "actions" !important;
  }

  .accesorios-modal-head {
    padding-right: 0;
  }

  .accesorios-modal-head h2 {
    max-width: none;
  }

  .accesorios-modal-description {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .accesorios-modal-actions .product-detail-action {
    width: min(100%, 240px);
  }
}

@media (max-width: 640px) {
  .accesorios-modal-dialog {
    width: min(100vw - 20px, 720px);
    padding: 16px;
    border-radius: 22px;
  }

  .accesorios-modal-layout {
    gap: 18px !important;
  }

  .accesorios-modal-image {
    min-height: 220px;
    padding: 12px;
  }

  .accesorios-modal-head h2 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 0.96;
  }

  .accesorios-modal-copy .product-meta-group,
  .accesorios-modal-description {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .accesorios-modal-actions {
    width: 100%;
  }

  .accesorios-modal-actions .product-detail-action {
    width: 100%;
  }
}
