/* Fondo y wrap */
.rr-sp{ background:#f3f4f6; padding:22px 0 60px; }
.rr-sp__wrap{ max-width:1280px; margin:0 auto; padding:0 16px; }

/* Breadcrumb */
.rr-sp__breadcrumb{ display:flex; gap:10px; align-items:center; font-size:14px; color:#6b7280; margin:10px 0 18px; }
.rr-sp__breadcrumb a{ color:#6b7280; text-decoration:none; }
.rr-sp__breadcrumb a:hover{ color:#E63946; }
.rr-sp__sep{ margin:0 2px; opacity:.7; }
.rr-sp__crumb-current{ color:#111827; font-weight:700; }

/* Card principal */
.rr-card{
  background:#fff;
  border:1px solid #eef0f3;
  border-radius:22px;
  padding:24px;
}

/* Top grid */
.rr-top{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
}
@media(max-width:980px){ .rr-top{ grid-template-columns:1fr; } }

/* Gallery */
.rr-gal__main{
  border:1px solid #eef0f3;
  border-radius:18px;
  background:#fff;
  aspect-ratio: 4 / 3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.rr-gal__img{ width:100%; height:100%; object-fit:contain; padding:18px; }

/* Thumbs (SIN hover negro) */
.rr-gal__thumbs{
  display:flex;
  gap:12px;
  margin-top:14px;
  flex-wrap:wrap;
}
.rr-thumb{
  width:64px;
  height:64px;
  border:1px solid #eef0f3;
  border-radius:14px;
  background:#fff !important;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  box-shadow:none !important;
  filter:none !important;
}
.rr-thumb:hover{ background:#fff !important; border-color:#d1d5db; }
.rr-thumb.is-active{ border-color:#E63946; box-shadow:0 0 0 3px rgba(230,57,70,.12) !important; }
.rr-thumb img{ width:100%; height:100%; object-fit:contain; pointer-events:none; }

/* Info */
.rr-title{ margin:0 0 10px; font-size:44px; line-height:1.06; font-weight:900; color:#111827; }
.rr-hide, .woocommerce-product-rating, .woocommerce-review-link, .star-rating{ display:none !important; }

/* Precio 40px */
.rr-price{ margin: 10px 0 18px; }
.rr-price .price{
  font-size:40px !important;
  font-weight:900 !important;
  color:#E63946 !important;
  line-height:1;
}

/* Shipping */
.rr-shiplist{ display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
.rr-ship{
  width:100%;
  text-align:left;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px;
  background:#fff !important;
  cursor:pointer;
  color:#111827;
}
.rr-ship__l b{ font-weight:900; }
.rr-ship__l small{ display:block; color:#6b7280; font-size:12px; margin-top:2px; }
.rr-ship__r{ float:right; font-weight:900; color:#10B981; }
.rr-ship.is-active.rr-ship--green{ border-color:#10B981; background:rgba(16,185,129,.06) !important; }
.rr-ship.is-active.rr-ship--red{ border-color:#E63946; background:rgba(230,57,70,.06) !important; }

/* Tabs (sin hover negro) */
.rr-tabs{ display:flex; gap:26px; border-bottom:1px solid #e5e7eb; margin-top:20px; }
.rr-tab{
  background:transparent !important;
  border:0 !important;
  padding:14px 0;
  font-size:18px;
  font-weight:900;
  color:#6b7280;
  cursor:pointer;
}
.rr-tab:hover{ background:transparent !important; color:#E63946; }
.rr-tab.is-active{ color:#E63946; border-bottom:2px solid #E63946; }

.rr-pane{ display:none; padding-top:16px; }
.rr-pane.is-active{ display:block; }
.rr-desc{ color:#374151; font-size:16px; line-height:1.7; }

/* ====== ✅ Woo Add to cart: lo dejamos default pero lo estilizamos como tu diseño ====== */
.rr-wc-cart form.cart{
  margin:0;
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:14px;
  align-items:center;
}
@media(max-width:520px){
  .rr-wc-cart form.cart{ grid-template-columns:1fr; }
}

.rr-wc-cart .quantity{
  margin:0 !important;
  height:52px;
  display:flex;
  align-items:center;
  border:1px solid #d1d5db;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.rr-wc-cart .quantity input.qty{
  width:70px !important;
  height:52px !important;
  border:0 !important;
  text-align:center !important;
  font-weight:900 !important;
  outline:none !important;
}

/* Si el theme agrega botones +/- */
.rr-wc-cart .quantity .qty-button,
.rr-wc-cart .quantity button,
.rr-wc-cart .quantity a{
  height:52px !important;
  width:54px !important;
  border:0 !important;
  background:#fff !important;
  cursor:pointer !important;
}
.rr-wc-cart .quantity .qty-button:hover,
.rr-wc-cart .quantity button:hover{
  background:#f9fafb !important;
}

/* Botón add to cart */
.rr-wc-cart button.single_add_to_cart_button,
.rr-wc-cart .single_add_to_cart_button{
  height:52px !important;
  border-radius:14px !important;
  background:#E63946 !important;
  border:1px solid #E63946 !important;
  color:#fff !important;
  font-weight:900 !important;
  font-size:16px !important;
  width:100% !important;
}
.rr-wc-cart button.single_add_to_cart_button:hover{
  background:#d92f3b !important;
}

/* ====== ✅ RELACIONADOS: carrusel (caja blanca + gap 12px + 4/2) ====== */
.rr-related-box{
  background:#fff;
  border:1px solid #eef0f3;
  border-radius:22px;
  padding:22px;
  margin-top:22px;
}
.rr-related-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.rr-related__title{
  font-size:32px;
  font-weight:900;
  margin:0;
  color:#111827;
}

.rr-rel-nav{ display:flex; gap:10px; }
.rr-rel-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
}
.rr-rel-btn:hover{ background:#f9fafb; }

.rr-rel-viewport{
  overflow:hidden;
}
.rr-rel-track{
  display:flex !important;
  gap:12px !important; /* 10/15px */
  margin:0 !important;
  padding:6px 2px !important;
  list-style:none !important;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.rr-rel-track::-webkit-scrollbar{ height:8px; }
.rr-rel-track::-webkit-scrollbar-thumb{ background:#e5e7eb; border-radius:999px; }

.rr-rel-track > li.product{
  flex: 0 0 calc((100% - (12px * 3)) / 4); /* 4 desktop */
  scroll-snap-align:start;
  margin:0 !important;
}
@media(max-width:980px){
  .rr-rel-track > li.product{
    flex: 0 0 calc((100% - 12px) / 2); /* 2 mobile */
  }
}
/* ===== Mobile/Right panel igual a la original ===== */

/* Ocultar cuotas (plugin) si aparece dentro del bloque */
.rr-info .cuotas,
.rr-info .mp-installments,
.rr-info .woocommerce-Price-amount + .installments,
.rr-info [class*="cuotas"],
.rr-info [class*="installment"]{
  display:none !important;
}

/* Ocultar opiniones/rating/link */
.rr-info .woocommerce-product-rating,
.rr-info .woocommerce-review-link,
.rr-info .star-rating{
  display:none !important;
}

/* Línea "Cantidad disponible" */
.rr-stockline{
  margin: 10px 0 12px;
  color:#111827;
  font-weight:700;
  font-size:14px;
}
.rr-stockline span{ color:#6b7280; font-weight:700; }

/* Sacar textos sueltos de Woo que te ensucian el panel (ej: "Solo 1 elemento..." / "Gratis" duplicado) */
.rr-wc-cart--horizons .stock,
.rr-wc-cart--horizons .woocommerce-variation-availability,
.rr-wc-cart--horizons .single_variation_wrap .woocommerce-variation-price{
  display:none !important;
}

/* Estructura del form: qty arriba y boton full como la original */
.rr-wc-cart--horizons form.cart{
  display:grid !important;
  grid-template-columns: 1fr !important;
  gap:14px !important;
}

/* Cantidad estilo original (box con - 1 +) */
.rr-wc-cart--horizons .quantity{
  width: 170px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  overflow: hidden;
}
.rr-wc-cart--horizons .quantity input.qty{
  height:44px !important;
  font-size:16px !important;
}

/* Botón add to cart full width (rojo grande) */
.rr-wc-cart--horizons button.single_add_to_cart_button{
  height:52px !important;
  border-radius:14px !important;
  background:#E63946 !important;
  border:1px solid #E63946 !important;
  color:#fff !important;
  font-weight:900 !important;
  font-size:16px !important;
  width:100% !important;
}

/* Comprar ahora como la original */
.rr-buy-now{
  height:52px;
  border-radius:14px;
  width:100%;
  margin-top:12px;
  font-weight:900;
}
/* Ajuste line-height */
.rr-ship__l {
    line-height: 13px !important;
}

/* Ocultar botón comprar ahora */
.single_add_to_cart_button.button-buy-now { 
    display: none !important;
}

/* Tamaño de título */
.rr-title { 
    font-size: 22px !important;
}

/* Buscador */
.ml-search input[type="search"],
.ml-search input[type="text"] {
    width: 90% !important;
}

/* Ancho selector de cantidad */
.quantity {
    width: 72px !important;
}
