#estilos { position: relative; }
.estilos-header { max-width: 1120px; margin: 0 auto; padding: 40px 28px 8px; }
.estilos-header .eyebrow { font-size: 12px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.product-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 28px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.product-card { text-decoration: none; color: inherit; border-radius: 8px; transition: box-shadow 0.3s; scroll-margin-top: 90px; }
.product-card:target, .product-card.anchor-highlight { box-shadow: 0 0 0 3px var(--wine); }
.product-card:target .product-thumb, .product-card.anchor-highlight .product-thumb { border-color: var(--wine); }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--placeholder-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb i { font-size: 30px; color: var(--placeholder-icon); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.badge-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--wine-tint); color: var(--wine-dark-text);
  font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 4px;
}
.product-info { padding-top: 10px; }
.product-info .title { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.product-info .rating { font-size: 12px; color: var(--wine); margin: 4px 0; }
.product-info .rating span { color: var(--text-muted); }
.product-info .price { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.product-card-soon { cursor: default; }
.product-card-soon .product-info .price { color: var(--text-muted); }

.shop-by-type { max-width: 1120px; margin: 0 auto; padding: 24px 28px 56px; border-top: 1px solid var(--border); }
.shop-by-type h2 { text-align: center; margin-bottom: 20px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 14px; text-align: center; }
.type-grid a { text-decoration: none; color: inherit; }
.type-grid i { font-size: 22px; color: var(--wine); }
.type-grid .label { font-size: 12.5px; color: var(--text-primary); margin-top: 6px; }

/* ── Product quick-view modal ── */
.product-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 16, 14, 0.6);
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.product-modal.show { display: flex; }
.product-modal-inner {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}
.product-modal-actions {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
}
.product-modal-actions .share-btn,
.product-modal-close {
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-primary);
}
.product-modal-actions .share-btn { font-size: 15px; }
.product-modal-actions .share-menu { top: calc(100% + 8px); }
.product-modal-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: 90vh;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}
.product-modal-image-wrap { position: relative; aspect-ratio: 4 / 3; flex-shrink: 0; }
.product-modal-image {
  height: 100%;
  background: var(--placeholder-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-modal-image img, .product-modal-image video { width: 100%; height: 100%; object-fit: cover; }
.product-modal-image i { font-size: 48px; color: var(--placeholder-icon); }
.product-modal-image-wrap.zoomable .product-modal-image { cursor: zoom-in; }
.pm-zoom-btn {
  display: none;
  position: absolute; bottom: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border);
  align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-primary); cursor: pointer;
}
.product-modal-image-wrap.zoomable .pm-zoom-btn { display: flex; }
.product-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.pm-thumb, .pm-thumb-placeholder {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
}
.pm-thumb {
  cursor: pointer;
  border: 1.5px solid transparent;
}
.pm-thumb.sel { border-color: var(--wine); }
.pm-thumb img, .pm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb-placeholder {
  background: var(--placeholder-bg);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  font-size: 16px;
  color: var(--placeholder-icon);
}
.product-modal-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: min(90vh, 640px);
  padding: 24px 28px;
}
.pm-info-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 60px; }
.pm-info-footer { flex: 0 0 auto; padding-top: 12px; }
.product-modal-info h2 { font-size: 22px; margin-bottom: 8px; }
.product-modal-info > .pm-info-scroll > p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 12px; }
.pm-checks { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-checks li { font-size: 13px; color: var(--text-primary); }
.pm-reviews-carousel {
  flex: 1 1 auto;
  min-height: 70px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.pm-review-card { background: var(--wine-tint); border-radius: 8px; padding: 10px 12px; flex-shrink: 0; }
.pm-review-card .pm-review-stars { color: var(--wine); letter-spacing: 1px; font-size: 12px; margin-bottom: 3px; }
.pm-review-card p { font-size: 12px; color: var(--wine-dark-text); margin: 0; font-style: italic; }
.pm-review-card p span { font-size: 11px; color: var(--text-muted); font-style: normal; }
.pm-price { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 10px; }
.pm-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.pm-details div { font-size: 12.5px; color: var(--text-secondary); }
.pm-details strong { color: var(--text-primary); }
.pm-buy-btn { width: 100%; }

.pm-lightbox-spinner {
  display: none;
  position: absolute;
  width: 34px; height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pm-spin 0.8s linear infinite;
}
.pm-lightbox-spinner.show { display: block; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .product-modal-inner { grid-template-columns: 1fr; }
  .product-modal-media { border-radius: 12px 12px 0 0; max-height: none; }
  .product-modal-info { max-height: none; }
  .pm-info-scroll { overflow-y: visible; flex: 0 0 auto; min-height: 0; }
  .pm-reviews-carousel { overflow-y: visible; flex: 0 0 auto; min-height: 0; }
}
