
.det-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 10px;
  font-size: .8rem;
  color: #555;
  background: transparent;
  border-bottom: none;
  max-width: 1320px;
  margin: 0 auto;
}
.det-breadcrumb a { color: var(--c-primary); text-decoration: none; font-weight: 500; }
.det-breadcrumb a:hover { text-decoration: underline; }
.det-breadcrumb .bc-chevron { font-size: .6rem; color: #bbb; }
.det-breadcrumb span { color: #333; font-weight: 600; }

.bc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1.5px solid var(--c-primary);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  transition: background .2s, color .2s;
  margin-right: 6px;
  white-space: nowrap;
}
.bc-back:hover { background: var(--c-primary) !important; color: #fff !important; }
.bc-sep { width: 1px; height: 16px; background: #dde; flex-shrink: 0; }

.det-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1320px;
  margin: 16px auto 0;
  padding: 28px 48px 32px;
  background: #fff;
  align-items: start;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(26,35,126,.07);
}

.det-gallery {
  display: block;
}

.det-thumbs {
  display: none;
}

.det-thumb {
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: #f5f7fc;
  flex-shrink: 0;
}
.det-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
}
.det-thumb:hover { border-color: var(--c-primary); }
.det-thumb.active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(26,35,126,.12);
}

.det-main-img-box {
  position: relative;
  background: #f5f7fc;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.det-main-img-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 28px;
  transition: transform .4s ease;
}
.det-main-img-box:hover img { transform: scale(1.05); }

.det-zoom-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(26,35,126,.75);
  color: #fff;
  border: none;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.det-zoom-btn:hover { background: var(--c-primary); transform: scale(1.08); }

.det-info {
  padding: 0 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.det-tipo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.det-tipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #eef1fb;
  color: var(--c-primary);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.det-sku {
  font-size: .75rem;
  color: #888;
}
.det-sku strong { color: #444; }

.det-nombre {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 10px;
}

.det-disp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 12px;
}
.det-disp i { font-size: 1rem; }
.det-disp-count { font-weight: 400; color: #666; font-size: .82rem; }
.det-disp.agotado { color: #c62828; }
.det-disp.agotado i { color: #c62828; }
.det-disp.limitado { color: #e65100; }
.det-disp.limitado i { color: #e65100; }

.det-hr {
  border: none;
  border-top: 1px solid #eaecf5;
  margin: 12px 0;
}

.det-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 12px;
}

.det-specs-wrap { margin-bottom: 0; }
.det-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.det-specs-table tr { border-bottom: 1px solid #f0f2fa; }
.det-specs-table tr:last-child { border-bottom: none; }
.spec-k {
  padding: 7px 0;
  width: 38%;
  color: #888;
  font-weight: 500;
  vertical-align: top;
}
.spec-v {
  padding: 7px 0;
  color: #1a1a2e;
  font-weight: 600;
}

.det-desc-wrap { margin-bottom: 0; }
.det-desc-text {
  font-size: .87rem;
  color: #555;
  line-height: 1.8;
}

.det-relacionados {
  max-width: 1320px;
  margin: 20px auto 40px;
  padding: 28px 48px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(26,35,126,.07);
}

.det-rel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.det-rel-title i { color: var(--c-primary); font-size: 1rem; }

.det-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.rel-card-link { display: block; text-decoration: none; color: inherit; }
.rel-card {
  background: #fff;
  border: 1.5px solid #e8ecf5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  cursor: pointer;
}
.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,35,126,.12);
  border-color: var(--c-primary);
}
.rel-img-box {
  height: 150px;
  background: #f5f7fc;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rel-img-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .35s;
}
.rel-card:hover .rel-img-box img { transform: scale(1.06); }

.rel-body { padding: 12px 14px 14px; }
.rel-name { font-size: .85rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; line-height: 1.3; }
.rel-meta { font-size: .72rem; color: #888; margin-bottom: 8px; }

.rel-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.rel-badge.disp { background: #e8f5e9; color: #2e7d32; }
.rel-badge.lim  { background: #fff3e0; color: #e65100; }
.rel-badge.ago  { background: #ffebee; color: #c62828; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rel-skeleton {
  background: #fff;
  border: 1.5px solid #e8ecf5;
  border-radius: 12px;
  overflow: hidden;
}
.sk-img {
  height: 150px;
  background: linear-gradient(90deg, #eef1fa 25%, #f7f8fd 50%, #eef1fa 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line {
  height: 11px;
  border-radius: 6px;
  margin: 12px 14px 6px;
  background: linear-gradient(90deg, #eef1fa 25%, #f7f8fd 50%, #eef1fa 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line.short { width: 55%; margin-bottom: 14px; }

.modal-zoom {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 5000;
  cursor: zoom-out;
}
.modal-zoom.open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal-zoom img {
  max-width: 88%; max-height: 88%;
  border-radius: 10px;
  animation: zoomIn .28s ease;
}
@keyframes zoomIn { from{transform:scale(.85);opacity:0} to{transform:scale(1);opacity:1} }
.modal-zoom-close {
  position: absolute; top: 18px; right: 26px;
  color: #fff; font-size: 2.2rem; cursor: pointer;
  opacity: .7; transition: opacity .2s;
}
.modal-zoom-close:hover { opacity: 1; }

@media (max-width: 1100px) {
  .det-wrapper { grid-template-columns: 1fr; padding: 24px 24px 36px; gap: 24px; border-radius: 12px; margin: 16px 16px 0; }
  .det-gallery  { display: block; }
  .det-info     { padding: 0; }
}
@media (max-width: 680px) {
  .det-breadcrumb { padding: 12px 20px; }
  .det-gallery { display: block; }
  .det-nombre  { font-size: 1.25rem; }
  .det-rel-grid { grid-template-columns: repeat(2, 1fr); }
  .det-relacionados { padding: 24px 20px 40px; border-radius: 12px; margin: 16px 16px 32px; }
}
