.detalle-root {
  padding-top: 0;
}

/* Loader centrado (página de detalle) */
.detalle-page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 720px);
  padding: 2.5rem 1.25rem 3rem;
}

.detalle-page-loader__card {
  text-align: center;
  width: min(100%, 22rem);
  padding: 2.35rem 1.75rem 2rem;
  background: #fff;
  border: 1px solid rgba(0, 24, 232, 0.24);
  border-radius: 20px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 24, 232, 0.08);
  animation: detalle-page-loader-rise 0.55s ease-out both;
}

.detalle-page-loader__spinner-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.35rem;
}

.detalle-page-loader__ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(0, 24, 232, 0.18);
  border-top-color: var(--gigatech-blue, #0018e8);
  border-right-color: rgba(0, 24, 232, 0.45);
  border-radius: 50%;
  animation: detalle-page-loader-spin 0.95s linear infinite;
}

.detalle-page-loader__ring--inner {
  inset: 11px;
  border-width: 2.5px;
  border-top-color: rgba(0, 24, 232, 0.35);
  border-right-color: var(--gigatech-blue, #0018e8);
  animation: detalle-page-loader-spin 1.15s linear infinite reverse;
}

.detalle-page-loader__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  animation: detalle-page-loader-pulse 1.65s ease-in-out infinite;
}

.detalle-page-loader__title {
  margin: 0 0 0.4rem;
  font-family: var(--tienda-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--gigatech-black, #0d0d0d);
}

.detalle-page-loader__text {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.detalle-page-loader__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.detalle-page-loader__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gigatech-blue, #0018e8);
  opacity: 0.35;
  animation: detalle-page-loader-dot 1.15s ease-in-out infinite;
}

.detalle-page-loader__dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.detalle-page-loader__dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes detalle-page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes detalle-page-loader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.82;
  }
}

@keyframes detalle-page-loader-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes detalle-page-loader-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado de carga skeleton (legacy) */
.detalle-loading {
  padding: 0.75rem 0 2rem;
}

.detalle-loading__shell {
  background: #fff;
  border: 1px solid rgba(0, 24, 232, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.65rem;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}

.detalle-loading__crumb {
  width: 42%;
  max-width: 280px;
  height: 0.72rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
  background: linear-gradient(110deg, #f3ede4 0%, #faf8f4 45%, #ebe3d6 55%, #faf8f4 70%, #f3ede4 100%);
  background-size: 220% 100%;
  animation: detalle-loading-shimmer 1.35s ease-in-out infinite;
}

.detalle-loading__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 981px) {
  .detalle-loading__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
  }
}

.detalle-loading__media-box {
  aspect-ratio: 1;
  max-height: min(560px, 72vw);
  border-radius: 14px;
  border: 1px solid rgba(0, 24, 232, 0.15);
  background: linear-gradient(110deg, #f3ede4 0%, #faf8f4 45%, #ebe3d6 55%, #faf8f4 70%, #f3ede4 100%);
  background-size: 220% 100%;
  animation: detalle-loading-shimmer 1.35s ease-in-out infinite;
}

.detalle-loading__thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.detalle-loading__thumbs span {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(0, 24, 232, 0.18);
  background: linear-gradient(110deg, #f3ede4 0%, #faf8f4 45%, #ebe3d6 55%, #faf8f4 70%, #f3ede4 100%);
  background-size: 220% 100%;
  animation: detalle-loading-shimmer 1.35s ease-in-out infinite;
}

.detalle-loading__thumbs span:nth-child(2) {
  animation-delay: 0.12s;
}

.detalle-loading__thumbs span:nth-child(3) {
  animation-delay: 0.24s;
}

.detalle-loading__info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.detalle-loading__line {
  display: block;
  border-radius: 999px;
  background: linear-gradient(110deg, #f3ede4 0%, #faf8f4 45%, #ebe3d6 55%, #faf8f4 70%, #f3ede4 100%);
  background-size: 220% 100%;
  animation: detalle-loading-shimmer 1.35s ease-in-out infinite;
}

.detalle-loading__line--pill {
  width: 28%;
  height: 1.35rem;
  border-radius: 999px;
}

.detalle-loading__line--xs {
  width: 22%;
  height: 0.62rem;
  animation-delay: 0.08s;
}

.detalle-loading__line--title {
  width: 88%;
  height: 1.65rem;
  border-radius: 8px;
  animation-delay: 0.14s;
}

.detalle-loading__line--price {
  width: 36%;
  height: 1.85rem;
  border-radius: 8px;
  margin: 0.25rem 0 0.35rem;
  animation-delay: 0.2s;
}

.detalle-loading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid rgba(0, 24, 232, 0.12);
  border-bottom: 1px solid rgba(0, 24, 232, 0.12);
}

.detalle-loading__line--qty {
  width: 96px;
  height: 2.35rem;
  border-radius: 8px;
  animation-delay: 0.26s;
}

.detalle-loading__line--btn {
  flex: 1;
  min-width: 180px;
  height: 2.35rem;
  border-radius: 8px;
  animation-delay: 0.32s;
}

.detalle-loading__line--box {
  width: 100%;
  height: 4.5rem;
  border-radius: 12px;
  animation-delay: 0.38s;
}

.detalle-loading__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 0.25rem;
}

.detalle-loading__orbit {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(0, 24, 232, 0.25);
  border-top-color: var(--gigatech-blue);
  border-radius: 50%;
  animation: detalle-loading-spin 0.85s linear infinite;
  flex-shrink: 0;
}

.detalle-loading__text {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

@keyframes detalle-loading-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

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

@media (max-width: 980px) {
  .detalle-loading__shell {
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .detalle-loading__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.detalle-shell {
  background: #fff;
  border: 1px solid rgba(0, 24, 232, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 2rem;
  margin-top: 0.75rem;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}

.detalle-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  font-size: 0.82rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0, 24, 232, 0.18);
}

.detalle-breadcrumb__link {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detalle-breadcrumb__link:hover {
  color: var(--gigatech-blue);
  text-decoration: none;
}

.detalle-breadcrumb__sep {
  color: rgba(0, 24, 232, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  user-select: none;
}

.detalle-breadcrumb__current {
  color: var(--gigatech-black);
  font-weight: 600;
  line-height: 1.35;
}

.detalle-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 981px) {
  .detalle-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
  }
}

@media (max-width: 980px) {
  .detalle-shell {
    padding: 1.15rem 1.1rem 1.5rem;
  }
}

/* Galería */
.detalle-media {
  position: sticky;
  top: 1rem;
}

@media (max-width: 980px) {
  .detalle-media {
    position: static;
  }
}

.detalle-media-main {
  border: 1px solid rgba(0, 24, 232, 0.15);
  border-radius: 14px;
  background: linear-gradient(165deg, #faf8f4 0%, #f3ede4 55%, #ebe3d6 100%);
  min-height: 440px;
  aspect-ratio: 1;
  max-height: min(560px, 72vw);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.75rem;
}

.detalle-media-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
  transition: transform 0.35s ease;
}

.detalle-thumbs {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detalle-thumb {
  border: 1.5px solid rgba(0, 24, 232, 0.22);
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.detalle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.detalle-thumb:hover {
  border-color: rgba(0, 24, 232, 0.5);
  transform: translateY(-1px);
}

.detalle-thumb.is-active {
  border-color: var(--gigatech-blue);
  box-shadow: 0 0 0 2px rgba(0, 24, 232, 0.2);
}

/* Info producto */
.detalle-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.15rem;
}

.detalle-cat {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gigatech-blue-dark);
  background: rgba(0, 24, 232, 0.12);
  border: 1px solid rgba(0, 24, 232, 0.28);
  border-radius: 999px;
}

.detalle-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-bottom: 0.55rem;
}

.detalle-meta {
  font-size: 0.78rem;
  color: var(--tienda-muted);
  letter-spacing: 0.02em;
}

.detalle-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-family: var(--tienda-font-display);
  font-weight: 600;
  color: var(--gigatech-black);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.detalle-price {
  color: var(--gigatech-black);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--tienda-font-display);
  margin: 0 0 1.35rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.detalle-price__sym {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-right: 0.2rem;
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--tienda-font);
  vertical-align: middle;
}

.detalle-price__amt {
  font-weight: 700;
}

.detalle-price__cents {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: super;
  color: rgba(0, 0, 0, 0.65);
}

.detalle-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid rgba(0, 24, 232, 0.15);
  border-bottom: 1px solid rgba(0, 24, 232, 0.15);
}

.detalle-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detalle-qty-wrap label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.detalle-qty {
  width: 96px;
  padding: 0.58rem 0.65rem;
  border: 1px solid rgba(0, 24, 232, 0.35);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--gigatech-black);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detalle-qty:focus {
  outline: none;
  border-color: var(--gigatech-blue);
  box-shadow: 0 0 0 3px rgba(0, 24, 232, 0.18);
}

.detalle-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.detalle-btn-add {
  background: var(--gigatech-black);
  color: var(--gigatech-blue-light);
  border: 1px solid var(--gigatech-black);
  border-radius: 8px;
  padding: 0.62rem 1.35rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.15s ease,
    box-shadow 0.22s ease;
}

.detalle-btn-add .tienda-svg-icon {
  width: 15px;
  height: 15px;
}

.detalle-btn-add:hover {
  background: var(--gigatech-blue);
  border-color: var(--gigatech-blue);
  color: var(--gigatech-black);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 24, 232, 0.32);
}

.detalle-btn-back {
  background: transparent;
  color: var(--gigatech-black);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.62rem 1.15rem;
  font-weight: 600;
  font-size: 0.78rem;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.detalle-btn-back:hover {
  background: rgba(0, 24, 232, 0.1);
  border-color: rgba(0, 24, 232, 0.45);
  color: var(--gigatech-black);
}

/* Existencias */
.detalle-box {
  margin-top: 1.25rem;
  border: 1px solid rgba(0, 24, 232, 0.18);
  border-radius: 12px;
  background: #faf8f4;
  overflow: hidden;
}

.detalle-box h3 {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 24, 232, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
  font-family: var(--tienda-font);
  background: rgba(255, 255, 255, 0.55);
}

.detalle-box-body {
  padding: 0.65rem 1rem 0.85rem;
}

.detalle-table--stock th,
.detalle-table--stock td {
  padding: 0.65rem 0;
}

.detalle-table--stock thead th {
  padding-bottom: 0.5rem;
}

.detalle-table__th-qty,
.detalle-table__qty {
  text-align: right;
  width: 28%;
}

.detalle-table__alm {
  color: var(--gigatech-black);
  font-weight: 600;
  font-size: 0.9rem;
  padding-right: 1rem;
}

.detalle-stock-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gigatech-blue-dark);
  background: rgba(0, 24, 232, 0.14);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  min-width: 3.25rem;
  text-align: center;
}

.detalle-stock-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detalle-stock-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 24, 232, 0.12);
  font-size: 0.86rem;
}

.detalle-stock-list li:last-child {
  border-bottom: none;
}

.detalle-stock-list__name {
  color: var(--gigatech-black);
  font-weight: 500;
}

.detalle-stock-list__qty {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gigatech-blue-dark);
  background: rgba(0, 24, 232, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.detalle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.detalle-table th,
.detalle-table td {
  border: none;
  border-bottom: 1px solid rgba(0, 24, 232, 0.12);
  padding: 0.55rem 0;
  text-align: left;
}

.detalle-table tr:last-child td {
  border-bottom: none;
}

.detalle-table th {
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding-bottom: 0.45rem;
}

.detalle-ex-sin-stock {
  margin: 0;
  color: var(--tienda-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* Descripción */
.detalle-box--desc {
  margin-top: 1.75rem;
  background: #fff;
}

.detalle-box--desc h3 {
  font-family: var(--tienda-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gigatech-black);
}

.detalle-desc {
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.92rem;
}

.detalle-desc p {
  margin: 0 0 0.85rem;
}

.detalle-desc p:last-child {
  margin-bottom: 0;
}

.tienda-footer .tienda-footer-link-btn {
  display: inline;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  text-align: left;
}

.tienda-footer .tienda-footer-link-btn:hover {
  opacity: 0.9;
}

/* ===== Detalle moderno (Nest-style) ===== */
.detalle-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0 2.75rem;
  margin-top: 0.35rem;
  box-shadow: none;
}

.detalle-breadcrumb {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
}

.detalle-breadcrumb__link {
  color: #64748b;
  font-weight: 500;
}

.detalle-breadcrumb__link:hover {
  color: var(--gigatech-blue, #0018e8);
}

.detalle-breadcrumb__sep {
  color: #cbd5e1;
}

.detalle-breadcrumb__current {
  color: #334155;
  font-weight: 600;
}

@media (min-width: 981px) {
  .detalle-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3.75rem;
    align-items: start;
  }

  .detalle-media {
    position: sticky;
    top: 5.5rem;
  }
}

.detalle-media-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.detalle-media-main {
  width: 100%;
  min-width: 0;
  min-height: 440px;
  max-height: min(560px, 72vw);
  aspect-ratio: 1;
  border: none;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(41, 98, 255, 0.08), transparent 45%),
    linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
  padding: 2.5rem;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.detalle-media-main img {
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.12));
  transition: transform 0.35s ease;
}

.detalle-media-main:hover img {
  transform: scale(1.02);
}

.detalle-media-empty {
  color: #94a3b8;
  font-size: 0.9rem;
}

.detalle-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #253d4e;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.detalle-gallery-arrow--prev {
  left: 0.85rem;
}

.detalle-gallery-arrow--next {
  right: 0.85rem;
}

.detalle-gallery-arrow:hover:not(:disabled) {
  background: var(--gigatech-blue, #0018e8);
  border-color: transparent;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.detalle-gallery-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

.detalle-gallery-arrow__icon {
  width: 20px;
  height: 20px;
}

.detalle-thumbs {
  margin-top: 1.1rem;
  gap: 0.7rem;
  justify-content: flex-start;
}

.detalle-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  padding: 0.4rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.detalle-thumb:hover {
  border-color: rgba(0, 24, 232, 0.28);
}

.detalle-thumb.is-active {
  border-color: var(--gigatech-blue, #0018e8);
  box-shadow: 0 0 0 3px rgba(0, 24, 232, 0.12);
}

.detalle-info {
  padding-top: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.detalle-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.detalle-rating {
  display: flex;
  align-items: center;
}

.detalle-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: #f59e0b;
}

.detalle-star {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.detalle-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detalle-stock-pill--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.detalle-stock-pill--ok::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.detalle-stock-pill--out {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.detalle-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 750;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.detalle-price-block {
  margin-bottom: 1.15rem;
}

.detalle-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
}

.detalle-price {
  color: var(--gigatech-blue, #0018e8);
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: 750;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.detalle-price__sym {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gigatech-blue, #0018e8);
  vertical-align: baseline;
  margin-right: 0.15rem;
}

.detalle-price__cents {
  font-size: 0.5em;
  color: var(--gigatech-blue, #0018e8);
  vertical-align: super;
  opacity: 0.85;
}

.detalle-price-old {
  font-size: 1.05rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.detalle-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
}

.detalle-desc-short {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #64748b;
  max-width: 34rem;
}

.detalle-variants {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.detalle-variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detalle-variant-label {
  font-size: 0.9rem;
  font-weight: 650;
  color: #0f172a;
}

.detalle-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detalle-variant-chip {
  min-width: 46px;
  min-height: 46px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.detalle-variant-chip--color {
  min-width: auto;
  padding: 0.5rem 1rem;
}

.detalle-variant-chip.is-active,
.detalle-variant-chip:hover {
  border-color: var(--gigatech-blue, #0018e8);
  color: var(--gigatech-blue, #0018e8);
  box-shadow: 0 0 0 3px rgba(0, 24, 232, 0.1);
}

.detalle-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #eef2f7;
}

.detalle-smart {
  margin: 1.75rem 0 0;
  padding: 1.35rem 0 0.25rem;
  width: 100%;
  min-width: 0;
}

.detalle-smart + .detalle-smart {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #eef2f7;
}

.detalle-smart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.detalle-smart__title {
  margin: 0;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gigatech-blue, #0018e8);
  line-height: 1.35;
  max-width: min(100%, 34rem);
}

.detalle-smart__nav {
  display: inline-flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.detalle-smart__btn {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.detalle-smart__btn svg {
  width: 15px;
  height: 15px;
}

.detalle-smart__btn:hover:not(:disabled) {
  border-color: rgba(0, 24, 232, 0.35);
  color: var(--gigatech-blue, #0018e8);
  background: #f8fafc;
}

.detalle-smart__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.detalle-smart__viewport {
  overflow: hidden;
  width: 100%;
}

.detalle-smart__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  transition: transform 0.3s ease;
  will-change: transform;
}

.detalle-smart__loading {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 0;
  width: 100%;
}

.detalle-smart__loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gigatech-blue, #0018e8);
  opacity: 0.35;
  animation: detalle-smart-dot 0.9s ease-in-out infinite;
}

.detalle-smart__loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.detalle-smart__loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes detalle-smart-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.detalle-smart-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  padding: 0.7rem 0.65rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detalle-smart-card:hover {
  border-color: rgba(0, 24, 232, 0.4);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.detalle-smart-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0f172a;
}

.detalle-smart-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 120px;
  margin: 0.2rem 0 0.55rem;
}

.detalle-smart-card__img img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12));
}

.detalle-smart-card__noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 110px;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #94a3b8;
}

.detalle-smart-card__cam {
  width: 28px;
  height: 28px;
  color: #94a3b8;
}

.detalle-smart-card__price {
  margin-top: auto;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gigatech-blue, #0018e8);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .detalle-smart {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .detalle-smart-card {
    flex-basis: 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  .detalle-smart-card__img {
    min-height: 96px;
  }

  .detalle-smart-card__img img {
    max-height: 100px;
  }

  .detalle-smart-card__noimg {
    min-height: 90px;
  }
}

.detalle-qty-stepper {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.detalle-qty-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.02em;
}

.detalle-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.detalle-qty-btn {
  width: 44px;
  height: 46px;
  border: none;
  background: #fff;
  color: #334155;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.detalle-qty-btn:hover {
  background: #f1f5f9;
  color: var(--gigatech-blue, #0018e8);
}

.detalle-qty {
  width: 54px;
  height: 46px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  padding: 0;
  background: #fff;
  -moz-appearance: textfield;
}

.detalle-qty::-webkit-outer-spin-button,
.detalle-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.detalle-btn-add {
  flex: 1;
  min-width: 210px;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0018e8 0%, #2962ff 100%);
  border: none;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 24, 232, 0.3);
}

.detalle-btn-add:hover {
  background: linear-gradient(135deg, #2962ff 0%, #4d7cff 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 24, 232, 0.35);
}

.detalle-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: none;
  padding: 0.25rem 0;
  margin: 0 0 1.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.detalle-wishlist .tienda-svg-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.detalle-wishlist:hover {
  color: #ef4444;
}

.detalle-wishlist:hover .tienda-svg-icon {
  color: #ef4444;
  transform: scale(1.08);
}

.detalle-meta-block {
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 18px;
  padding: 1.15rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.detalle-meta-line {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
  align-items: baseline;
}

.detalle-meta-line span {
  color: #94a3b8;
  font-weight: 500;
}

.detalle-meta-line strong {
  color: #0f172a;
  font-weight: 650;
}

.detalle-meta-stock {
  color: #15803d !important;
}

.detalle-meta-stock--out {
  color: #b91c1c !important;
}

.detalle-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 0.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid #eef2f7;
}

.detalle-share__label {
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f172a;
}

.detalle-share__btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detalle-share-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.detalle-share-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
}

.detalle-share-btn #detalle-share-copy svg,
button.detalle-share-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detalle-share-btn:hover {
  background: #fff;
  border-color: rgba(0, 24, 232, 0.35);
  color: var(--gigatech-blue, #0018e8);
  transform: translateY(-1px);
}

.detalle-stock-details {
  margin-top: 1rem;
}

.detalle-stock-details summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--gigatech-blue, #0018e8);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.detalle-stock-details summary::-webkit-details-marker {
  display: none;
}

.detalle-stock-details summary::after {
  content: '›';
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.detalle-stock-details[open] summary::after {
  transform: rotate(90deg);
}

.detalle-box--stock-inline {
  margin-top: 0.75rem;
  background: #fff;
  border-color: #eef2f7;
  border-radius: 14px;
}

.detalle-box--desc {
  margin-top: 2.25rem;
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.detalle-box--desc h3 {
  background: transparent;
  border-bottom-color: #eef2f7;
  color: #0f172a;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .detalle-media {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detalle-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detalle-shell {
    padding: 0.35rem 0 2rem;
    max-width: 100%;
    overflow-x: clip;
  }

  .detalle-media-main {
    min-height: 260px;
    max-height: none;
    width: 100%;
    padding: 1.15rem;
    border-radius: 16px;
  }

  .detalle-gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .detalle-buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .detalle-btn-add {
    width: 100%;
    min-width: 0;
  }

  .detalle-qty-stepper {
    width: 100%;
  }

  .detalle-meta-line {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .detalle-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 640px) {
  .detalle-gallery-arrow--prev {
    left: 0.5rem;
  }

  .detalle-gallery-arrow--next {
    right: 0.5rem;
  }

  .detalle-title {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .detalle-breadcrumb__current {
    overflow-wrap: anywhere;
  }

  .detalle-meta-line {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .detalle-media-main {
    min-height: 220px;
    padding: 0.85rem;
  }
}
