/* ===== WRAPPER ===== */
.pd-wrapper {
  padding: 20px 20px;
  background: #f6f6f6;
}

/* ===== LAYOUT ===== */
.pd-layout {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
}

.breadcrumbs {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs span {
  color: #333;
  font-weight: 500;
}

.breadcrumbs a::after {
  content: "›";
  margin-left: 6px;
  color: #bbb;
}

.breadcrumbs a:last-of-type::after {
  content: "";
}

/* ===== GALERÍA ===== */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.pd-gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.pd-zoom {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.pd-zoom img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.15s ease-out;
}

.pd-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}

.pd-fav-btn i {
  font-size: 18px;
  color: #360073;
}

.pd-fav-btn .fas {
  color: #e53935;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.pd-gallery-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.pd-gallery-thumbs img:hover {
  border-color: #360073;
}

/* ===== INFO ===== */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 18px;
}

.pd-title {
  font-size: 20px;
  font-weight: 600;
  color: #360073;
  line-height: 1.3;
  margin-bottom: 0;
}

/* rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f5a623;
  margin-top: 0;
}

.pd-rating i {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 0;
}

.pd-rating-count {
  margin-left: 6px;
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

/* precios */
.pd-prices {
  margin-top: 0;
}

.pd-price-normal {
  text-decoration: line-through;
  color: #888;
  font-size: 18px;
  margin-right: 10px;
}

.pd-price-offer {
  font-size: 26px;
  font-weight: 600;
  color: #360073;
}

.pd-price-wholesale-text {
  display: block;
  font-size: 15px;
  color: #c62828;
  margin-top: 10px;
}

.pd-price-wholesale {
  display: block;
  font-size: 34px;
  font-weight: 600;
  margin-top: 2px;
  color: red;
}

.pd-price-normal-liquidacion {
  font-size: 16px;
  text-decoration: line-through;
  opacity: .6;
  margin-right: 8px;
}

.pd-price-liquidacion {
  font-size: 26px;
  font-weight: 800;
  color: #e00000;
}


.pd-badge-liquidacion {
  display: inline-block;
  background: #e00000;
  color: #fff;
  max-width: 105px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* stock */
.pd-stock {
  font-size: 14px;
  color: #2e7d32;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ===== ACCIONES ===== */
.pd-actions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  align-items: center;
}

/* Chrome, Edge, Safari */
.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.pd-qty-input[type=number] {
  -moz-appearance: textfield;
}


/* cantidad */
.pd-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #360073;
  background: #fff;
  color: #360073;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

.pd-qty-btn:hover {
  background: #360073;
  color: #fff;
}

.pd-qty-input {
  width: 42px;
  height: 34px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
}


/* botones */
.pd-btn-buy {
  padding: 14px;
  background: #360073;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.pd-btn-buy:hover {
  background: #4a0099;
}

.pd-btn-cart {
  padding: 12px;
  background: #fff;
  color: #360073;
  border: 2px solid #360073;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pd-btn-cart:hover {
  background: #f3effa;
}

.pd-cart-icon {
  width: 18px;
  height: 18px;
  fill: #360073;
}

/* beneficios */
.pd-benefits {
  margin-top: 14px;
  padding-left: 18px;
  font-size: 14px;
  color: #555;
}

.pd-benefits li {
  margin-bottom: 6px;
}

/* descripción */
.pd-description-inline {
  margin-top: 0;
}

.pd-description-inline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
  color: #360073;
}

.pd-description-inline-text {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-top: 0;
}

.pd-mobile-head {
  display: none;
}

/* ===== RECOMENDADOS ===== */
.pd-recommended-block {
  grid-column: 1 / -1;
  margin-top: 5px;
  padding: 5px 0;
  background: #fff; 

}

.pr-wrapper {
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}


.pr-wrapper::-webkit-scrollbar {
  display: none;
}


.pr-wrapper {
  scrollbar-width: none; 
}


.pr-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
  width: 100%;
  color: #360073;
}

.pr-grid {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  animation: scroll-left 25s linear infinite; 
}

.pr-grid:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}



.pr-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px; 
  padding: 8px;
  width: 160px;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pr-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.pr-img img {
  width: 100%;
  border-radius: 6px;
}

.pr-name {
  font-size: 12px;
  font-weight: 500;
  margin: 6px 0;
  color: #444;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-rating {
  font-size: 11px;
  color: #f5a623;
  text-align: center;
  margin-bottom: 4px;
}

.pr-rating i {
  font-size: 12px;
}

.pr-rating-count {
  margin-left: 3px;
  font-size: 11px;
  color: #666;
}

.pr-prices {
  text-align: center;
}

.pr-price-normal {
  font-size: 13px;
  text-decoration: line-through;
  color: #999;
  margin-right: 4px;
}

.pr-price-offer {
  font-size: 17px;
  font-weight: 600;
  color: #360073;
}

.pr-liquidacion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra todo */
  gap: 4px;
  text-align: center;
}

.pr-badge-liquidacion {
  background: #e00000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.pr-liquidacion-precios {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 6px;
}

.pr-price-normal-liquidacion {
  text-decoration: line-through;
  opacity: .6;
  font-size: 13px;
}

.pr-price-liquidacion {
  font-size: 18px;
  font-weight: 800;
  color: #e00000;
}


.pr-wholesale-text {
  display: block;
  font-size: 11px;
  color: #c62828;
  margin-top: 4px;
}

.pd-agotado {
  color: #b30000;
  font-weight: 600;
  margin-top: 6px;
  font-size: 20px;
}

.pr-wholesale {
  font-weight: 600;
  color: red;
  font-size: 20px;
}


/* ===== OPINIONES ===== */
.pd-reviews-block {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  width: 60%;
   margin-left: auto;
   margin-right: auto;
}

.rv-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  color: #360073;
}

.rv-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rv-overall {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-score {
  font-size: 20px;
  font-weight: 700;
  color: #360073;
}

.rv-stars {
  color: #f5a623;
  font-size: 14px;
}

.rv-count {
  font-size: 13px;
  color: #666;
}

.rv-add-btn {
  padding: 8px 14px;
  background: #360073;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
}
.rv-add-btn:hover { background: #4a0099; text-decoration: none; }

.rv-distribution {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

/* Overlay */
.rv-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn .2s ease;
}

/* Card */
.rv-modal-content {
  background: #fff;
  width: 480px;
  max-width: 92%;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  position: relative;
  animation: slideUp .25s ease;
}

/* Close */
.rv-close {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 20px;
  cursor: pointer;
  opacity: .6;
  transition: .2s;
}

.rv-close:hover {
  opacity: 1;
}

/* Inputs */
.rv-modal-content select,
.rv-modal-content textarea,
.rv-modal-content input[type="file"] {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
}

.rv-modal-content textarea {
  resize: vertical;
  min-height: 90px;
}

.rv-star-selector {
  display: flex;
  gap: 6px;
  font-size: 24px;
  margin-top: 12px;
  cursor: pointer;
}

.rv-star-selector i {
  color: #e0e0e0; 
  transition: .2s;
}

.rv-star-selector i.active {
  color: #ffc107;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}

.rv-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #360073;
  cursor: pointer;
}

.rv-upload-label:hover {
  opacity: 0.85;
}

.rv-optional {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  background: #f3f3f7;
  padding: 2px 6px;
  border-radius: 10px;
}

.rv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.rv-progress {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.rv-progress div {
  height: 100%;
  background: #f5a623;
}

.rv-num {
  width: 20px;
  text-align: right;
}

.rv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
}

.rv-item {
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.rv-more-btn {
  margin-top: 12px;
  background: none;
  border: none;
  color: #360073;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  width: 100%;
}

.rv-more-btn:hover {
  text-decoration: underline;
}

.rv-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #444;
}

.rv-text {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
  margin-bottom: 5px;
}

/* Oculta reseñas a partir de la tercera */
.rv-item:nth-of-type(n+3) {
  display: none;
}

rv-img {
  margin-top: 8px;
  text-align: left; 
}

.rv-img img {
  max-width: 120px;  
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rv-img img:hover {
  transform: scale(1.05);
}


.rv-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.rv-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}


.pd-faq-block {
  grid-column: 1 / -1;
  margin-top: 7px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  color: #360073;
}

.faq-item {
  border-top: 1px solid #eee;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #360073;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .arrow {
  transition: transform 0.3s ease;
}

.faq-question.active .arrow {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 10px 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.pd-qa-block {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.qa-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  color: #360073;
}

.qa-login-msg {
  text-align: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: #777;
}

.qa-login-btn {
  background: #360073;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease;
}

.qa-login-btn:hover {
  background: #4a0099;
}

/* Mensajes sección preguntas */
.pd-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn .3s ease;
}

.pd-message.success {
  background: #e6f7ec;
  color: #1f7a3f;
  border: 1px solid #b7e4c7;
}

.pd-message.error {
  background: #ffe5e5;
  color: #b30000;
  border: 1px solid #ffb3b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


.qa-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.qa-input {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
}

.qa-btn {
  align-self: flex-end;
  background: #360073;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.qa-btn:hover {
  background: #4a0099;
}


.qa-item {
  padding: 16px;
  margin-bottom: 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}
.qa-question {
  margin: 0 0 10px 0;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.qa-question::before {
  content: "P";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #360073;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-user {
  font-weight: 600;
  margin-right: 4px;
  color: #360073;
}
.qa-question-text {
  font-weight: 400;
  color: #222;
}
.qa-answer {
  margin: 0 0 0 26px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  background: #fff;
  border-left: 3px solid #360073;
  border-radius: 6px;
}
.qa-admin {
  font-weight: 600;
  color: #360073;
  margin-right: 4px;
}



.rel-card {
  text-decoration: none;
  color: inherit;
}

.rel-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px; 
  padding: 8px;
  width: 160px;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rel-card:hover {
  text-decoration: none;
}

.rel-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pr-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.qa-more {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 20px;
}

.qa-more-btn {
  background: none;
  border: none;
  color: #360073;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}


/* ===== RELACIONADOS ===== */
.pd-related-block {
  grid-column: 1 / -1;
  margin-top: 5px;
  padding: 5px 0;
  background: #fff; 
}

.rel-wrapper {
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.rel-wrapper::-webkit-scrollbar {
  display: none;
}

.rel-wrapper {
  scrollbar-width: none; 
}

.rel-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: center;
  width: 100%;
  color: #360073;
}

.pd-qty {
  position: relative;
}

.pd-qty-msg {
  position: absolute;
  bottom: -28px;   /* aparece debajo */
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}


.pr-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pr-card:hover {
  text-decoration: none;
  color: inherit;
}

.cat-badge-custom {
  position: absolute;
  top: 10px;
  left: 10px;

  padding: 3px 3px;
  font-size: 11px;
  font-weight: 400;
  border-radius: 4px;
  color: #fff;
  z-index: 2;

  max-width: 90px;    
  text-align: center;      
  white-space: normal;      
  word-break: break-word;    
  line-height: 1.2;
}

.cat-badge-custom {
  display: -webkit-box;
  -webkit-line-clamp: 2;    
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mayorista-msg {
  font-size: 12px;
  margin-top: 1px;
  margin-bottom: 10px;
  color: #8b0000;
  font-weight: 500;
  text-decoration: none;
  display: block;   /* 👈 importante */
}

.mayorista-msg:hover {
  text-decoration: underline;
}

.mayorista-msg.no-click {
  color: #8b0000;
  cursor: default;
  text-decoration: none;
}

.mayorista-msg.no-click:hover {
  text-decoration: none;
}

.rel-grid {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  animation: scroll-left-rel 25s linear infinite; 
}

.rel-grid:hover {
  animation-play-state: paused;
}

@keyframes scroll-left-rel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

.rel-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px; 
  padding: 8px;
  width: 160px;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rel-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.rel-img img {
  width: 100%;
  border-radius: 6px;
}

.rel-name {
  font-size: 12px;
  font-weight: 500;
  margin: 6px 0;
  color: #444;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rel-rating {
  font-size: 11px;
  color: #f5a623;
  text-align: center;
  margin-bottom: 4px;
}

.rel-rating i {
  font-size: 12px;
}

.rel-rating-count {
  margin-left: 3px;
  font-size: 11px;
  color: #666;
}

.rel-prices {
  text-align: center;
}

.rel-price-normal {
  text-decoration: line-through;
  color: #999;
  margin-right: 4px;
  font-size: 13px;
}

.rel-price-offer {
  font-weight: 600;
  color: #360073;
  font-size: 17px;
}

.rel-liquidacion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.rel-badge-liquidacion {
  background: #e00000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.rel-liquidacion-precios {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.rel-price-normal-liquidacion {
  text-decoration: line-through;
  opacity: .6;
  font-size: 13px;
}

.rel-price-liquidacion {
  font-size: 18px;
  font-weight: 800;
  color: #e00000;
}


.rel-wholesale-text {
  display: block;
  font-size: 11px;
  color: #c62828;
  margin-top: 4px;
}

.rel-wholesale {
  font-weight: 600;
  color: red;
  font-size: 20px;
}


@media (max-width: 768px) {

  .pd-wrapper {
    padding: 7px;
  }

  .pd-info-head {
    display: none;
  }
    .pd-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding-left: 0;
    }

  .pd-mobile-head {
    display: block;
    padding: 10px 3px;
  }

  .pd-mobile-title {
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
    font-weight: 400;
    color: #360073;
  }

  .pd-mobile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f5a623;
    margin-top: 4px;
  }

  .pd-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px 16px;
  }

  .pd-gallery-main img {
    height: 300px;
  }

  .pd-layout .pd-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .pd-layout .pd-qty {
    grid-column: 1;
    grid-row: 1;
  }

  .pd-layout .pd-btn-cart {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  .pd-layout .pd-btn-buy {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .pd-description-inline-text {
  font-size: 12px;
}


  /* ===== RECOMENDADOS MÓVIL ===== */
  .pd-recommended-block {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 8px 0;
    background: #fff; 
    border-radius: 0; 
  }

  .pr-title {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .pr-wrapper {
  overflow-x: auto;       
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; 
  scroll-behavior: smooth;
  position: relative;
}

  .pr-grid {
    display: flex;
    gap: 10px;
    animation: scroll-left-mobile 20s linear infinite;
  }

  .pr-grid:hover {
    animation-play-state: paused; 
  }

  @keyframes scroll-left-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
  }

  .pr-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    width: 160px; 
    flex-shrink: 0;
  }

  .rel-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    width: 160px; 
    flex-shrink: 0;
  }
  .pr-img img {
    width: 100%;
    border-radius: 6px;
  }

  .pr-name {
    font-size: 11px;
    margin: 4px 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pr-rating {
    font-size: 10px;
    margin-bottom: 4px;
    text-align: center;
    color: #f5a623;
  }

  .pr-prices {
    text-align: center;
  }

  .pr-price-normal {
  font-size: 12px;
  text-decoration: line-through;
  color: #999;
  margin-right: 4px;
}

.pr-price-offer {
  font-size: 18px;
  font-weight: 600;
  color: #360073;
}

.rel-price-normal {
  font-size: 13px;
  text-decoration: line-through;
  color: #999;
  margin-right: 4px;
}

.rel-price-offer {
  font-size: 17px;
  font-weight: 600;
  color: #360073;
}

.pr-wholesale {
  font-weight: 600;
  font-size: 20px;
}

.rel-wholesale {
  font-weight: 600;
  color: red;
  font-size: 20px;
}

  .pd-reviews-block {
    padding: 10px;
    width: 92%;       
    border-radius: 0;      
    margin-top: 12px;
  }

  .rv-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .rv-summary {
    flex-direction: column; 
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .rv-overall {
    gap: 6px;
    font-size: 14px;
  }

  .rv-score {
    font-size: 18px;
  }

  .rv-stars {
    font-size: 13px;
  }

  .rv-count {
    font-size: 12px;
  }

  .rv-add-btn {
    width: 100%;           
    font-size: 13px;
    padding: 8px;
    text-align: center;
  }

  .rv-more-btn { font-size: 13px; }

  .rv-distribution {
    gap: 4px;
    margin-bottom: 12px;
  }

  .rv-bar {
    font-size: 11px;
    gap: 6px;
  }

  .rv-progress {
    height: 5px;
  }

  .rv-num {
    font-size: 11px;
  }

  .rv-list {
    gap: 10px;
  }

  .rv-item {
    padding-top: 8px;
  }

  .rv-head {
    font-size: 11px;
  }

  .rv-text {
    font-size: 12px;
    line-height: 1.4;
  }

    .pd-faq-block {
    width: 95%;        
    padding: 12px;     
  }

  .faq-title {
    font-size: 16px;  
  }

  .faq-question {
    font-size: 13px;   
    padding: 8px;
  }

  .faq-answer {
    font-size: 12px;
    padding: 0 8px 8px;
  }


  .pd-qa-block {
    width: 95%;       
    padding: 12px;    
  }

  .qa-title {
    font-size: 16px;   
    margin-bottom: 10px;
  }

  .qa-login-msg {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .qa-login-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .qa-form {
    gap: 8px;
    margin-bottom: 16px;
  }

  .qa-input {
    min-height: 50px;
    font-size: 12px;
    padding: 6px;
  }

  .qa-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .qa-item {
    padding: 8px;
    margin-bottom: 10px;
  }

  .qa-question {
    font-size: 12px;
  }

  .qa-answer {
    font-size: 12px;
  }

  .qa-more {
    margin-top: 10px;
  }

  .qa-more-btn {
    font-size: 12px;
  }

}


.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #2e7d32;
}

.toast.warning {
  background: #c62828;
}