
.breadcrumb {
  background: #fdf5f4;
  border-bottom: 1px solid #f0dbd9;
  padding: .65rem max(2rem, calc((100% - 1200px) / 2 + 2rem));
  font-size: .82rem;
  color: #888;
}
.breadcrumb a { color: #888; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #c0665e; }
.breadcrumb span { color: #c0665e; font-weight: 600; }
.breadcrumb .sep { margin: 0 .45rem; }

.product-page {
  max-width: 1200px;
  margin: 2.5rem auto 4rem;
  padding: 0 2rem;
}
.product-main {
  display: grid;
  grid-template-columns: 72px 1fr 420px;
  gap: 0 1.5rem;
  align-items: start;
}

.product-thumbs { display: flex; flex-direction: column; gap: .6rem; }
.product-thumb {
  width: 68px; height: 68px;
  border-radius: 6px;
  border: 2px solid #e8d5d3;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.product-thumb img[src*="medida" i] { object-fit: contain; background: #fff; }
.product-thumb:hover,
.product-thumb.active {
  border-color: #c0665e;
  box-shadow: 0 0 0 2px rgba(192,102,94,.2);
}

.product-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #f8f1f0;
  aspect-ratio: 3/4;
  max-height: 580px;
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: opacity .22s ease;
}
.product-image-wrap img[src*="medida" i] { object-fit: contain; background: #fff; }
.product-image-wrap img.fading { opacity: 0; }

.product-details { padding: .25rem 0 0 1rem; }
.product-title {
  font-size: 2rem; font-weight: 700; color: #1a1a1a;
  margin: 0 0 .5rem; line-height: 1.2;
  font-family: 'Open Sans', serif;
}
.product-subtitle { font-size: .95rem; font-weight: 400; color: #888; margin: -.35rem 0 .6rem; }
.product-price { font-size: 1.5rem; font-weight: 500; color: #c0665e; margin: 0 0 1.1rem; }
.product-desc { font-size: .93rem; color: #444; line-height: 1.7; margin: 0 0 1.6rem; text-align: justify; }

.product-benefits { list-style: none; margin: -0.6rem 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.product-benefits li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: #444; }
.product-benefits li i { color: #c0665e; font-size: .8rem; }

.product-options { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
#selectModelo,
#selectCor {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  pointer-events: none;
  cursor: default;
  font-size: .93rem;
  font-weight: 400;
  color: #888;
  padding: 0;
  outline: none;
  width: auto;
}
.option-row { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: .75rem; }
.option-label { font-size: .88rem; font-weight: 600; color: #333; }
.option-select {
  width: 100%; padding: .6rem 1rem;
  border: 1.5px solid #ddd; border-radius: 6px;
  font-size: .9rem; color: #333; background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  cursor: pointer; transition: border-color .2s;
}
.option-select:focus { outline: none; border-color: #c0665e; }

.option-row:has(#selectTamanho) { display: none; }
.sp-size-picker { margin-bottom: 1.6rem; }
.sp-size-label {
  font-size: .72rem; font-weight: 700; color: #c0665e;
  letter-spacing: .12em; text-transform: uppercase;
  text-align: center; margin-bottom: .8rem;
}
.sp-size-grid { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; justify-content: center; }
.sp-size-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.sp-size-btn {
  min-width: 48px; height: 44px; padding: 0 12px;
  border: 1.5px solid #ddd; border-radius: 10px;
  background: #fff; color: #444;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: border-color .18s, background .18s, color .18s;
  font-family: inherit;
}
.sp-size-btn:hover { border-color: #c0665e; color: #c0665e; }
.sp-size-btn.active { background: #c0665e; border-color: #c0665e; color: #fff; }

.sp-size-btn.size-unavailable,
.prod-qa-size.size-unavailable {
  color: #bbb; border-color: #eee; background-color: #f7f7f7;
  cursor: not-allowed; pointer-events: none;
  background-image: linear-gradient(to top right,
    transparent calc(50% - 1px), #cc4444 calc(50% - 1px),
    #cc4444 calc(50% + 1px), transparent calc(50% + 1px));
}
.sp-size-btn.size-unavailable:hover,
.prod-qa-size.size-unavailable:hover { border-color: #eee; color: #bbb; }
.sp-size-qty { display: flex; align-items: center; gap: .4rem; }
.sp-qty-val {
  min-width: 18px;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: inherit;
}
.sp-qty-aviso {
  display: none;
  font-size: .82rem;
  font-weight: 600;
  color: #c0665e;
  margin: .5rem 0 0;
}
@keyframes spSizeShake {
  0%,100% { transform: translateX(0); }
  15%,45%,75% { transform: translateX(-5px); }
  30%,60%,90% { transform: translateX(5px); }
}
.sp-size-qty.shake,
.sp-size-btn.shake { animation: spSizeShake 0.4s ease; }

.product-add { display: flex; gap: .75rem; align-items: center; }
.qty-wrap { display: flex; align-items: center; gap: .6rem; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #c0665e; background: transparent;
  color: #c0665e; font-size: 1.15rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s; line-height: 1; font-family: inherit; padding: 0;
}
.qty-btn:hover { background: #c0665e; color: #fff; }
.qty-input {
  width: 28px; height: 28px; border: none; background: none;
  text-align: center; font-size: 1rem; font-weight: 700;
  color: #1a1a1a; font-family: inherit; padding: 0;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add-cart {
  flex: 1; padding: .75rem 1.5rem;
  background: #f5b6b0; color: #5a1f1a;
  border: none; border-radius: 6px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: background .25s, transform .15s; letter-spacing: .02em;
}
.btn-add-cart:hover { background: #c0665e; color: #fff; transform: translateY(-1px); }

.product-wa { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; font-size: .85rem; color: #555; }
.product-wa a { color: #25D366; font-weight: 700; text-decoration: none; transition: opacity .2s; }
.product-wa a:hover { opacity: .75; }

.product-tabs { margin-top: 3rem; border-top: 2px solid #f0dbd9; }
.tabs-nav { display: flex; border-bottom: 2px solid #f0dbd9; margin-top: -2px; }
.tab-btn {
  padding: .7rem 1.4rem;
  border: none; border-bottom: 2px solid transparent;
  background: transparent; font-size: .9rem; font-weight: 600; color: #888;
  cursor: pointer; margin-bottom: -2px; transition: color .2s, border-color .2s;
}
.tab-btn.active { color: #c0665e; border-bottom-color: #c0665e; }
.tab-panel { display: none; padding: 2rem 0; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: .95rem; color: #444; line-height: 1.8; max-width: 820px; }
.tab-panel h2 { font-size: 1.4rem; font-family: 'Open Sans', serif; margin: 0 0 1rem; color: #1a1a1a; }

.related-products { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid #f0dbd9; }
.related-title { font-size: 1.3rem; font-weight: 700; font-family: 'Open Sans', serif; color: #1a1a1a; margin: 0 0 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.prod-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; }
.prod-card-img {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 8px; overflow: hidden;
  background: #f8f1f0;
}
.prod-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block; transition: transform .4s ease;
}
.prod-card:hover .prod-card-img img { transform: scale(1.04); }
.prod-card-name { font-size: .9rem; color: #c0665e; font-weight: 600; line-height: 1.3; margin-top: .2rem; }
.prod-card-subtitle { font-size: .78rem; color: #888; font-weight: 400; margin-top: -.35rem; }
.prod-card-price { font-size: .88rem; color: #c0665e; font-weight: 700; }
.prod-card-btn {
  display: inline-block; margin-top: .2rem;
  padding: .45rem .9rem;
  background: #f5b6b0; color: #5a1f1a;
  border-radius: 4px; font-size: .8rem; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s; align-self: flex-start;
}
.prod-card-btn:hover { background: #c0665e; color: #fff; }

.cat-grid .prod-card-img { position: relative; }
.prod-qa-overlay {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
  z-index: 6;
}
@media (hover: hover) {
  .cat-grid .prod-card:hover .prod-qa-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}
.prod-qa-inner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.prod-qa-sizes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.prod-qa-size {
  min-width: 32px; height: 30px; padding: 0 8px;
  border: 1.5px solid #ddd; border-radius: 8px;
  background: #fff; color: #444;
  font-size: .74rem; font-weight: 700;
  cursor: pointer; transition: border-color .18s, background .18s, color .18s;
  font-family: inherit;
}
.prod-qa-size:hover { border-color: #c0665e; color: #c0665e; }
.prod-qa-size.active { background: #c0665e; border-color: #c0665e; color: #fff; }
.prod-qa-sizes.shake { animation: spSizeShake .4s ease; }
.prod-qa-btn {
  padding: .55rem .8rem;
  background: #f5b6b0; color: #5a1f1a;
  border: none; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: background .2s, color .2s, transform .15s;
  font-family: inherit;
}
.prod-qa-btn:hover { background: #c0665e; color: #fff; transform: translateY(-1px); }

.prod-qa-share {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(245,182,176,.85) 100%);
  color: #7a2e28;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s;
  z-index: 6;
}
@media (hover: hover) {
  .cat-grid .prod-card:hover .prod-qa-share {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
.prod-qa-share:hover { background: #c0665e; color: #fff; }
.prod-qa-share svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .product-main { grid-template-columns: 64px 1fr; }
  .product-details { grid-column: 1 / -1; padding: 1.5rem 0 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .breadcrumb { text-align: center; }
  .product-main { grid-template-columns: 1fr; }
  .product-thumbs { flex-direction: row; flex-wrap: wrap; justify-content: center; order: 2; margin-top: .75rem; }
  .product-image-wrap { order: 1; display: flex; justify-content: center; }
  .product-image-wrap img { max-width: 100%; }
  .product-details { order: 3; text-align: center; }
  .product-desc { text-align: justify; }
  .product-page { padding: 0 1rem; margin-top: 1.5rem; }
  .option-row { grid-template-columns: 1fr; text-align: center; }
  .option-select { text-align: center; }
  .product-add { flex-direction: column; align-items: center; }
  .btn-add-cart { width: 100%; text-align: center; }
  .sp-size-picker { text-align: center; }
  .sp-size-label { text-align: center; }
  .product-wa { justify-content: center; }
  .product-title { font-size: 1.5rem; }
  .tabs-nav { justify-content: center; }
  .tab-panel { text-align: justify; }
  .tab-panel h2 { text-align: center; }
  .related-title { text-align: center; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
  .product-image-wrap { cursor: zoom-in; }
}

.sp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sp-lightbox.open { display: flex; }
.sp-lightbox img {
  max-width: min(90vw, 680px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
  animation: spLbIn .22s cubic-bezier(.34,1.2,.64,1);
}
.sp-lightbox-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.15);
  border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.sp-lightbox-close:hover { background: rgba(255,255,255,.3); }
.sp-lightbox img { transition: opacity .12s ease; }
.sp-lb-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none; cursor: pointer;
  color: #fff; font-size: 2.8rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1; padding-bottom: 3px;
  user-select: none;
}
.sp-lb-arrow:hover { background: rgba(255,255,255,.3); }
.sp-lb-prev { left: 18px; }
.sp-lb-next { right: 18px; }
.sp-lb-counter {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .82rem; font-family: 'Open Sans', sans-serif;
  letter-spacing: .5px;
}
@keyframes spLbIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
