.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  padding: 0;
  z-index: 1000;
  backdrop-filter: none;
  transition: background .2s ease, backdrop-filter .2s ease;
}

.modal[aria-hidden="false"] {
  display: flex;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: hsl(289, 100%, 97%);
  border-radius: 0;
  max-width: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  box-shadow: 0 10px 28px rgba(85, 120, 184, .22), 0 2px 8px rgba(135, 125, 211, .18);
  max-height: none;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  background: #d32f2f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(211, 47, 47, 0.35);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  z-index: 8;
}

.modal-close:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(211, 47, 47, 0.42);
}

.modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 24px;
  padding: 20px 24px 24px;
  height: 100%;
  min-height: 0;
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
  }

  .modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 14px 14px 18px;
    height: auto;
    min-height: 100%;
    align-content: start;
  }

  .slider {
    height: auto;
  }

  .slides {
    aspect-ratio: 600 / 1020;
    height: auto !important;
    min-height: 0;
    max-height: min(72vh, 680px);
    transition: none;
  }

  .slide {
    object-fit: contain;
    object-position: center;
  }
}

.slider {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-height: 0;
  height: 100%;
}

.slides {
  position: relative;
  width: 100%;
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  max-height: none;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 600 / 884;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity .35s ease-in-out;
  background: #f6f6f6;
  border-radius: inherit;
}

.slide.active {
  opacity: 1;
}

@media (min-width: 769px) {
  .modal {
    padding: 14px;
  }

  .modal-content {
    width: min(92vw, 1280px);
    height: auto;
    max-height: min(94dvh, 920px);
    border-radius: 22px;
  }

  .modal-body {
    grid-template-columns: minmax(0, 0.84fr) minmax(380px, 1fr);
    gap: 14px;
    padding: 16px 16px 18px;
    height: auto;
    align-items: start;
  }

  .slider {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 14px;
    height: auto;
    min-height: 0;
    align-self: stretch;
    align-items: start;
  }

  .slides {
    background: transparent;
    border-radius: 0;
    height: auto;
    max-height: min(78dvh, 780px);
    grid-column: 2;
    align-self: start;
  }

  .slide {
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 20px;
  }

  .details {
    min-height: 0;
    overflow: auto;
  }

  .title-row {
    gap: 8px;
  }

  .details h2 {
    font-size: 1.6rem;
  }

  .details .price-box {
    padding: 14px 16px;
    min-height: 78px;
    margin: 8px 0 4px;
  }

  .details .variant-selectors-box {
    padding: 14px 16px;
    margin: 0 0 12px;
  }

  .details .cta-buttons {
    gap: 10px;
  }

  .details .cta-buttons .btn.modal-action {
    padding-left: 14px;
    padding-right: 14px;
  }

  .measure-guide-container {
    padding-left: 2px;
    padding-right: 2px;
  }

  .slider-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
  }

  .slider-thumbs .thumb {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    opacity: 0.82;
  }

  .slider-thumbs .thumb.active {
    border-color: #7c69ef;
  }

  .slider-counter,
  .slider-dots {
    grid-column: 2;
  }
}

@media (min-width: 769px) and (max-width: 1024px), (min-width: 769px) and (max-width: 1180px) and (hover: none), (min-width: 769px) and (max-width: 1180px) and (pointer: coarse) {
  .modal {
    align-items: center;
    padding: 16px;
  }

  .modal-content {
    width: min(96vw, 980px);
    height: auto;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: 24px;
  }

  .modal-body {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 18px;
    padding: 18px 18px 20px;
    height: auto;
    min-height: 0;
    align-items: start;
  }

  .slider {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
    height: auto;
  }

  .slides {
    grid-column: 1;
    align-self: start;
    width: 100%;
    height: auto !important;
    max-height: min(74dvh, 920px);
    aspect-ratio: 600 / 884;
    border-radius: 18px;
  }

  .slide {
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
  }

  .slider-thumbs {
    display: none !important;
  }

  .slider-counter,
  .slider-dots {
    grid-column: 1;
  }

  .slider-btn.prev {
    left: 12px;
  }

  .slider-btn.next {
    right: 12px;
  }

  .details {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 2px 6px;
  }

  .details h2 {
    font-size: clamp(1.75rem, 2.6vw, 2rem);
  }

  .details .price-box,
  .details .variant-selectors-box {
    margin: 0;
    padding: 16px 18px;
  }

  .details .cta-buttons {
    gap: 12px;
  }

  .details .cta-buttons .btn.modal-action {
    min-height: 52px;
  }

  .modal-scroll-indicator {
    display: none !important;
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #25D366;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .28);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  z-index: 5;
}

.slider-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
  transform: translateY(-50%) translateY(-1px);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 8px;
}

@media (min-width: 769px) {
  .slider-btn.prev {
    left: calc(74px + 14px + 10px);
  }

  .slider-btn.next {
    right: 10px;
  }
}

.slider .badge {
  position: absolute;
  backdrop-filter: saturate(1.1) blur(1px);
}

.slider .status.badge {
  top: 10px;
  right: 10px;
}

.slider-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  z-index: 5;
  grid-column: 1;
}

.slider-dots {
  display: none;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 17, 17, 0.08);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}

.slider-dots .dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

.slider-thumbs {
  display: none;
}

.slider-thumbs::-webkit-scrollbar {
  display: none;
}

.slider-thumbs .thumb {
  width: 62px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.slider-thumbs .thumb:hover {
  opacity: 1;
  transform: scale(1.03);
}

.slider-thumbs .thumb.active {
  border-color: var(--brand);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(85, 120, 184, 0.3);
}

.slider-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .slider {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
  }

  .slides {
    aspect-ratio: 600 / 884;
    height: 100% !important;
  }

  .slider-btn {
    display: none;
  }

  .slider-dots {
    display: flex;
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    transform: none;
    gap: 8px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
  }
}

@media (max-width: 420px) {
  .modal-content {
    max-height: none;
    width: 100vw;
    overflow-x: hidden;
  }

  .modal-body {
    padding: 12px 12px 16px;
    min-width: 0;
  }

  .slides {
    max-height: none;
    max-width: 100%;
  }

  .slider-dots {
    left: 0;
    right: 0;
    bottom: 12px;
    gap: 7px;
  }

  .slider,
  .details {
    min-width: 0;
  }

  .slides img,
  .slide {
    max-width: 100%;
  }
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  text-align: center;
  padding: 10px 20px;
  align-content: start;
  min-height: 0;
  overflow: visible;
}

.details > * {
  grid-column: 1 / -1;
}

.details .variant-selectors-box {
  grid-column: 1 / -1;
  border: 2px solid #7c69ef;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 16px 18px;
  margin: 0 0 14px;
  box-shadow: 0 8px 20px rgba(124, 105, 239, 0.06);
  position: relative;
  overflow: visible;
}

.details .variant-selectors-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(124, 105, 239, 0.02) 100%);
  pointer-events: none;
}

.details .variant-selectors-separator {
  width: 1px;
  align-self: stretch;
  margin: 0;
  background: repeating-linear-gradient(to bottom, #e0e7ff 0, #e0e7ff 6px, transparent 6px, transparent 12px);
  position: relative;
  z-index: 1;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.details h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  text-align: center;
  color: #323232;
}

.details .price {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #25D366;
  text-align: center;
  width: 100%;
}

.details .price-wholesale {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  font-family: "Outfit", sans-serif;
  text-align: center;
  width: 100%;
}

.details .status {
  margin: 0;
  color: #2e7d32;
}

.details .description {
  margin-top: 4px;
  color: #555;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.details .shipping {
  margin: 6px 0;
  color: var(--accent);
  font-weight: 700;
}

.details .price .price-label,
.details .price-wholesale .price-label {
  color: #333;
  font-weight: 600;
}

.details .price .price-value,
.details .price-wholesale .price-value {
  color: #25D366;
  font-weight: 800;
}

.details .price .price-suffix,
.details .price-wholesale .price-suffix {
  color: #111;
  font-weight: 700;
  margin-left: 4px;
  letter-spacing: .02em;
}

.details .price-wholesale:empty,
.details .description:empty {
  display: none;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.cta-row .whatsapp-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.whatsapp-btn {
  background: #25D366;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .24);
  width: 100%;
  max-width: 420px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-btn:hover {
  filter: brightness(1.05);
}

.whatsapp-btn::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  vertical-align: -6px;
  background: url('recursos/iconos/wsp-icon.png') no-repeat center/contain;
}

.modal .details .description + .cta-row {
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1;
  width: fit-content;
  margin: 2px auto;
  text-align: center;
}

.details .status.badge {
  white-space: nowrap;
  margin-top: 2px;
}

.status.badge {
  color: #fff;
  border-color: #2e7d32;
  background: #2e7d32;
  box-shadow: 0 2px 8px rgba(46, 125, 50, .25);
}

.shipping.badge {
  color: var(--accent);
  border-color: var(--accent);
  background: #e8f4f8;
}

.details .description,
.details .size-section,
.details .cta-row,
.details .payment-row {
  justify-self: stretch;
}

.size-section {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 8px;
}

.size-section label {
  font-weight: 600;
}

.size-section select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font: inherit;
}

.size-table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.size-table th,
.size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.size-table thead th {
  background: #faf7ff;
  font-weight: 700;
}

.size-table tbody th {
  background: #fcfcfc;
  font-weight: 700;
}

.badge.liquidation {
  background: linear-gradient(135deg, #2fbe63 0%, #1f9d4c 100%);
  color: #fff;
  border-color: rgba(31, 157, 76, .34);
  box-shadow: 0 6px 14px rgba(31, 157, 76, .24);
}

.badge.nuevo {
  background: linear-gradient(135deg, #76c7ff 0%, #4aa7f5 100%);
  color: #fff;
  border-color: rgba(74, 167, 245, .34);
  box-shadow: 0 6px 14px rgba(74, 167, 245, .24);
}

.badge.agotado {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  border-color: rgba(183, 28, 28, .34);
  box-shadow:
    0 0 0 2px rgba(211, 47, 47, 0.5),
    0 0 15px rgba(211, 47, 47, 0.7),
    0 0 30px rgba(211, 47, 47, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .4);
  font-size: 1.15rem;
  z-index: 5;
}

@media (max-height: 800px) and (min-width: 769px) {
  .modal-content {
    width: min(96vw, 1320px);
    height: min(96dvh, 820px);
    max-height: min(96dvh, 820px) !important;
    overflow: hidden !important;
  }

  .modal-body {
    padding: 14px 16px 16px;
    gap: 12px;
  }

  .details h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
  }

  .details .price,
  .details .price-wholesale {
    font-size: 0.95rem;
  }

  .details .description {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .size-section {
    margin-top: 4px;
    gap: 4px;
  }

  .size-table th,
  .size-table td {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  .info-note p {
    margin: 2px 0 !important;
    font-size: 0.9rem !important;
  }

  .payment-row {
    margin-top: 6px;
    gap: 8px;
  }

  .payment-row img {
    padding: 4px;
    border-radius: 8px;
    width: 32px;
  }
}

.modal-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: #e53935;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.32);
  animation: bounceArrow 2s infinite;
  pointer-events: none;
  opacity: 1;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-scroll-indicator::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

@keyframes bounceArrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-6px);
  }

  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

@media (max-width: 768px) {
  .modal-scroll-indicator {
    display: flex;
    bottom: 6px;
  }
}

.details .shipping-info {
  display: none;
}

.details .size-selector-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.details .size-selector-container .label {
  font-weight: 700;
  color: #111;
  font-size: 0.9rem;
  text-align: center;
}

.details .size-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.details .size-btn {
  min-width: 32px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.details .size-btn:hover {
  border-color: var(--brand);
  background: rgba(85, 120, 184, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(85, 120, 184, 0.12);
}

.details .size-btn.active {
  border-color: var(--brand);
  background: rgba(85, 120, 184, 0.1);
  color: var(--brand);
  box-shadow: 0 0 0 2px rgba(85, 120, 184, 0.12);
}

.details .color-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #555;
  position: relative;
  z-index: 1;
}

.details .color-info[hidden] {
  display: none;
}

.details .color-info .variant-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  width: 100%;
}

.details .color-info .variant-chip {
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 0;
  color: #333;
  cursor: pointer;
  transition: all 0.18s ease;
}

.details .color-info .variant-chip:hover {
  border-color: var(--brand);
  background: rgba(85, 120, 184, 0.06);
}

.details .color-info .variant-chip.is-active {
  border-color: var(--brand);
  background: rgba(85, 120, 184, 0.1);
  box-shadow: 0 0 0 2px rgba(85, 120, 184, 0.12);
}

.details .color-info .variant-chip.is-placeholder {
  cursor: default;
  border-style: dashed;
  border-color: rgba(85, 120, 184, 0.28);
  background: rgba(85, 120, 184, 0.04);
  box-shadow: none;
}

.details .color-info .variant-chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #d9d9d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.details .color-info .variant-chip-swatch.pattern {
  border-radius: 5px;
  background: #e2e8f0;
  background-size: cover;
}

.details .color-info .variant-chip-swatch.is-placeholder {
  background: linear-gradient(135deg, #dbe7ff 0%, #eef3ff 100%);
  border-color: rgba(85, 120, 184, 0.22);
}

.details .color-info .label {
  font-weight: 700;
  color: #111;
  font-size: 0.9rem;
  text-align: center;
}

.details .size-selector-container .selection-error-msg,
.details .color-info .selection-error-msg {
  text-align: left;
  width: 100%;
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px 8px 12px;
  }

  .details .price-box {
    padding: 12px 14px;
    margin: 4px 0 2px;
    min-height: 74px;
  }

  .details .variant-selectors-box {
    padding: 10px 12px;
    margin-bottom: 2px;
  }

  .details .size-selector-container .label,
  .details .color-info .label {
    font-size: 0.84rem;
  }

  .details .size-btn {
    min-width: 30px;
    height: 24px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .details .color-info .variant-chip {
    width: 24px;
    height: 24px;
  }

  .details .color-info .variant-chip-swatch {
    width: 12px;
    height: 12px;
  }

  .details .cta-buttons {
    gap: 6px;
    margin-top: -2px;
    margin-bottom: 4px;
  }

  .details .cta-buttons .btn.modal-action {
    min-height: 46px;
    padding: 10px 10px;
    font-size: clamp(1.04rem, 3.9vw, 1.2rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  }

  .details .cta-buttons .whatsapp-btn::before {
    width: 22px;
    height: 22px;
    margin-right: 5px;
  }
}

@media (max-width: 420px) {
  .details {
    grid-template-columns: 1fr;
  }

  .details .variant-selectors-box {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    padding: 12px 10px;
  }
}

@media (max-width: 420px), (max-width: 768px) and (max-height: 700px) {
  .modal-content {
    overflow-y: auto;
  }

  .modal-body {
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 10px;
    padding: 10px 10px 16px;
  }

  .slider {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    height: auto;
  }

  .slides {
    grid-column: 1;
    grid-row: 1;
    height: auto !important;
    max-height: min(74vh, 620px);
    aspect-ratio: 600 / 1020;
  }

  .slider-dots {
    left: 0;
    right: 0;
    bottom: 10px;
    width: fit-content;
    margin: 0 auto;
  }

  .slider-counter {
    right: 10px;
    bottom: 10px;
    font-size: 0.74rem;
    padding: 4px 8px;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 4px 10px;
    overflow: visible;
    min-height: auto;
  }

  .title-row {
    gap: 8px;
  }

  .details h2 {
    font-size: clamp(1.05rem, 7vw, 1.4rem);
    line-height: 1.15;
  }

  .title-row .share-btn {
    padding: 4px 6px;
  }

  .details .price-box {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 8px 12px;
    margin: 0;
  }

  .separator {
    height: 1px;
    width: 100%;
    background: repeating-linear-gradient(to right, #e0e7ff 0, #e0e7ff 6px, transparent 6px, transparent 12px);
  }

  .price-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.1;
  }

  .price-row .label {
    font-size: 0.82rem;
  }

  .price-row .value {
    font-size: clamp(1.14rem, 7vw, 1.34rem);
  }

  .price-row .value.wholesale-price {
    font-size: clamp(1.08rem, 6vw, 1.22rem);
  }

  .details .variant-selectors-box {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    padding: 8px 8px;
    margin-bottom: 2px;
  }

  .details .size-selector-container,
  .details .color-info {
    gap: 4px;
  }

  .details .size-selector-container .label,
  .details .color-info .label {
    font-size: 0.8rem;
  }

  .details .size-btn {
    min-width: 28px;
    height: 23px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .details .color-info .variant-chip {
    width: 22px;
    height: 22px;
  }

  .details .color-info .variant-chip-swatch {
    width: 11px;
    height: 11px;
  }

  .details .cta-buttons {
    gap: 6px;
    margin-top: -2px;
    margin-bottom: 4px;
  }

  .details .cta-buttons .btn.modal-action {
    min-height: 46px;
    padding: 10px 8px;
    font-size: clamp(1.01rem, 4.25vw, 1.17rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
  }

  .details .cta-buttons .whatsapp-btn::before {
    width: 22px;
    height: 22px;
    margin-right: 5px;
  }

  .modal-scroll-indicator {
    bottom: 2px;
  }
}

.details .cta-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
  margin-bottom: 10px;
}

.details .cta-buttons .btn.modal-action {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 14px 18px;
  font-size: clamp(0.94rem, 2.4vw, 1.05rem);
  line-height: 1.1;
  border-radius: 16px;
  border: 2px solid #7c69ef;
  box-shadow: 0 8px 20px rgba(124, 105, 239, 0.06);
  white-space: nowrap;
}

.details .cta-buttons .whatsapp-btn::before {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.details .measure-guide-container {
  width: 100%;
  margin-bottom: 12px;
}

.details .measure-guide-toggle {
  background: transparent;
  border: 0;
  color: #2f2f2f;
  width: 100%;
  padding: 0;
  border-radius: 0;
  font-weight: 700;
  text-align: left;
  cursor: default;
  transition: none;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.purchase-info-block .measure-guide-toggle {
  display: none;
}

.details .measure-guide-content {
  margin-top: 6px;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
  background: #fff;
  display: block;
  animation: none;
}

.details .measure-guide-content.purchase-info-content {
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border-color: rgba(124, 105, 239, 0.32);
  box-shadow: 0 10px 24px rgba(124, 105, 239, 0.08);
}

.purchase-info-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.purchase-meta {
  display: grid;
  gap: 8px;
  width: 100%;
}

.purchase-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(124, 105, 239, 0.36);
  box-shadow: 0 8px 18px rgba(124, 105, 239, 0.06);
}

.purchase-meta-icon {
  display: none;
}

.purchase-meta-text strong {
  display: block;
  margin-bottom: 2px;
  color: #1f2937;
  font-size: 0.92rem;
  text-align: center;
}

.purchase-meta-text span {
  display: block;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.cache-notice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 100;
  background: #fff7e6;
  border: 1px solid #ffd8a8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cache-notice__text {
  font-size: 0.9rem;
  color: #553300;
}

.cache-notice__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cache-notice__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  background: #ffb74d;
  color: #2a1600;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 183, 77, 0.35);
}

.cache-notice__btn.secondary {
  background: #eee;
  color: #333;
  box-shadow: none;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  justify-content: center;
}

.catalog-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 244, 247, 0.98), rgba(255, 255, 255, 0.98));
  animation: curtainIn 0.25s ease-out;
}

.catalog-curtain__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(85, 120, 184, 0.18);
  box-shadow: 0 10px 24px rgba(85, 120, 184, 0.18);
}

.catalog-curtain__text {
  font-weight: 700;
  color: #333;
}

.catalog-curtain.closing {
  animation: curtainOut 0.6s ease-in forwards;
}

@keyframes curtainIn {
  from { transform: translateY(-8%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes curtainOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(12%); opacity: 0; }
}

.catalog-status__text {
  font-weight: 600;
  color: #333;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #eee;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.title-row .share-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.title-row .share-btn:hover {
  background: #f0f0f0;
  color: #111;
}

.price-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.price-row .label {
  font-weight: 700;
  color: #111;
  font-size: 1rem;
  white-space: nowrap;
}

.price-row .value {
  font-weight: 900;
  font-size: 1.68rem;
  color: #00C853;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-row .value.wholesale-price {
  font-size: 1.52rem;
}

.price-row .currency {
  display: none;
}

.price-row.secondary .label {
  font-size: 1rem;
  color: #444;
}

.separator {
  height: auto;
  width: 1px;
  align-self: stretch;
  margin: 0;
  background: repeating-linear-gradient(to bottom, #e0e7ff 0, #e0e7ff 6px, transparent 6px, transparent 12px);
}

.details .price-box {
  border: 2px solid #7c69ef;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  align-content: center;
  padding: 16px 20px;
  width: 100%;
  min-height: 86px;
  margin: 10px 0 4px;
  box-shadow: 0 8px 20px rgba(124, 105, 239, 0.06);
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.details .price-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(124, 105, 239, 0.02) 100%);
  pointer-events: none;
}

.details .price-row.secondary {
  margin-top: 0;
}

@media (max-width: 768px) {
  .details {
    padding: 4px 8px 12px;
  }

  .details .price-box {
    padding: 12px 14px;
    margin: 4px 0 2px;
    min-height: 74px;
  }

  .details .variant-selectors-box {
    padding: 10px 12px;
    margin-bottom: 2px;
  }

  .details .cta-buttons {
    gap: 6px;
    margin-top: -2px;
    margin-bottom: 4px;
  }

  .details .cta-buttons .btn.modal-action {
    min-height: 46px;
    padding: 10px 10px;
    font-size: clamp(0.8rem, 3vw, 0.92rem);
  }

  .details .cta-buttons .whatsapp-btn::before {
    width: 22px;
    height: 22px;
    margin-right: 5px;
  }

  .price-row .label {
    font-size: 0.9rem;
  }

  .price-row .value {
    font-size: 1.42rem;
  }

  .price-row .currency {
    display: none;
  }

}


@media (min-width: 769px) {
  .details .btn.modal-action {
    text-shadow: none;
  }

  .slider {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }

  .slides {
    grid-column: 2;
    align-self: start;
  }

  .slider-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
  }

  .slider-thumbs .thumb {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    opacity: 0.82;
  }

  .slider-thumbs .thumb.active {
    border-color: #7c69ef;
  }

  .slider-counter,
  .slider-dots {
    grid-column: 2;
  }

  .slider-btn.prev {
    left: calc(74px + 14px + 10px);
  }

  .slider-btn.next {
    right: 10px;
  }
}

.price-row .value.wholesale-price {
  font-size: 1.28rem;
}

@media (max-width: 420px) {
  .details .price-box {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .separator {
    height: 1px;
    width: 100%;
    background: repeating-linear-gradient(to right, #e0e7ff 0, #e0e7ff 6px, transparent 6px, transparent 12px);
  }

  .price-row {
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .slider {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
  }

  .slides {
    grid-column: 2 !important;
  }

  .slider-thumbs {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center;
    justify-self: center;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
  }

  .slider-thumbs .thumb {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    opacity: 0.82;
  }

  .slider-thumbs .thumb.active {
    border-color: #7c69ef;
  }

  .slider-counter,
  .slider-dots {
    grid-column: 2 !important;
  }

  .slider-btn.prev {
    left: calc(74px + 14px + 10px) !important;
  }

  .slider-btn.next {
    right: 10px !important;
  }
}