/* ===== Base / Layout ===== */
.scrpc-product-page{max-width:1200px;margin:0 auto;padding:20px;position:relative;z-index:1}

/* ===== Notificaciones ===== */
.scrpc-notification{position:fixed;right:16px;bottom:16px;background:#111;color:#fff;padding:10px 14px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:9999;font-size:14px}
.scrpc-notification.error{background:#b00020}

/* ===== Filtros APV ===== */
.scrpc-filters{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px;background:#f9f9f9;padding:15px;border-radius:12px;box-shadow:0 2px 4px rgba(0,0,0,.06);text-align:center;align-items:center;align-content:center}
.scrpc-filters .form-field{flex:1;min-width:220px}
.scrpc-filters label{display:block;margin-bottom:6px;font-weight:600;color:#333}
.scrpc-filters select,.scrpc-filters input{width:100%;padding:8px;border:1px solid #ddd;border-radius:8px;font-size:14px;background:#fff}

/* ===== Grid productos ===== */
.scrpc-product-list{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1024px){.scrpc-product-list{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){.scrpc-product-list{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.scrpc-product-list{grid-template-columns:1fr}}

/* ===== Cards ===== */
.scrpc-product-item{background:#fff;border:1px solid #eee;border-radius:14px;padding:12px;text-align:center;transition:box-shadow .2s,transform .12s}
.scrpc-product-item:hover{box-shadow:0 8px 20px rgba(0,0,0,.08);transform:translateY(-1px)}
.scrpc-product-item img{width:100%;height:190px;object-fit:contain;border:1px solid #eee;border-radius:12px;background:#fff;padding:6px}
.scrpc-product-item h3{font-size:15px;line-height:1.35;margin:8px 0 4px;color:#222;height:42px;overflow:hidden}
.scrpc-card-price{font-weight:800;color:#ad0000;margin-bottom:8px}
.price-old{color:#8a8a8a;text-decoration:line-through;margin-left:8px;font-weight:600}
.price-offer{color:#b50000;font-weight:900}

/* ===== Iconbar ===== */
.scrpc-iconbar{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.scrpc-icbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid #ddd;background:#fff;border-radius:10px;padding:8px;cursor:pointer}
.scrpc-icbtn:hover{background:#f6f6f6}
.scrpc-ico{width:20px;height:20px}

/* ===== Modal genérico (centrado) ===== */
.crud-modal{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:9998;display:flex;align-items:center;justify-content:center;padding:18px}
.crud-modal .modal-content{background:#fff;border-radius:14px;max-width:980px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.crud-modal .modal-header{padding:14px 18px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}
.crud-modal .modal-header h2{margin:0;font-size:18px}
.crud-modal .modal-header .close{cursor:pointer;font-size:20px;line-height:1}
.crud-modal .modal-body{padding:18px}
.crud-modal .modal-footer{padding:14px 18px;border-top:1px solid #eee;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}

/* ===== Galería ===== */
.scrpc-gallery .scrpc-hero{position:relative}
.scrpc-gallery .scrpc-hero-inner{border:1px solid #eee;border-radius:12px;padding:8px;background:#fff}
.scrpc-gallery .scrpc-hero img{width:100%;max-height:420px;object-fit:contain}
.scrpc-gallery .nav{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #ddd;border-radius:50%;width:34px;height:34px;opacity:.9}
.scrpc-gallery .nav.prev{left:8px}
.scrpc-gallery .nav.next{right:8px}
.scrpc-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.scrpc-thumbs img{width:70px;height:70px;object-fit:contain;border:1px solid #eee;border-radius:8px;background:#fff;padding:4px;cursor:pointer;opacity:.75}
.scrpc-thumbs img.active,.scrpc-thumbs img:hover{opacity:1;border-color:#bbb}

/* ===== Lightbox ===== */
.scrpc-lightbox{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:10000}
.scrpc-lightbox.open{display:flex}
.scrpc-lightbox img{max-width:90vw;max-height:85vh}
.scrpc-lightbox .lb-close,.scrpc-lightbox .lb-prev,.scrpc-lightbox .lb-next{position:absolute;top:50%;transform:translateY(-50%);background:transparent;border:0;color:#fff;font-size:40px;cursor:pointer}
.scrpc-lightbox .lb-close{top:20px;right:20px;transform:none;font-size:28px}
.scrpc-lightbox .lb-prev{left:20px}
.scrpc-lightbox .lb-next{right:20px}

/* ===== Load More ===== */
#load-more{display:block;margin:20px auto;background:#111;color:#fff;border:none;padding:10px 16px;border-radius:10px;cursor:pointer}
#load-more:hover{background:#000}

/* ===== Cotización: TABLA ===== */
.scrpc-quote-table{width:100%;border-collapse:separate;border-spacing:0 8px}
.scrpc-quote-table thead th{font-size:13px;text-transform:uppercase;letter-spacing:.02em;color:#555;text-align:left;padding:8px}
.scrpc-quote-table tbody td{background:#fff;border:1px solid #eee;padding:10px;vertical-align:middle}
.scrpc-quote-table tbody tr td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}
.scrpc-quote-table tbody tr td:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}
.scrpc-quote-table .qi-img img{width:70px;height:70px;object-fit:contain;border:1px solid #eee;border-radius:8px;background:#fff;padding:4px}
.scrpc-quote-table .qi-desc{font-weight:600}
.scrpc-quote-table .qi-price{white-space:nowrap}
.scrpc-quote-table .qi-qty input{width:80px;padding:6px;border:1px solid #ddd;border-radius:8px}
.scrpc-quote-table .qi-total{font-weight:800;color:#333}
.scrpc-quote-summary-inner{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-top:10px}
.scrpc-quote-summary-inner > div{background:#f7f7f7;border:1px solid #eee;border-radius:8px;padding:8px 10px}

/* ===== Modal Producto: precio ===== */
.scrpc-modal-price{margin-bottom:10px;font-size:18px}

/* ===== Single: bloque de precio bajo el título ===== */
.scrpc-single-price{margin:6px 0 12px}
.scrpc-single-price .price-offer{font-size:20px;font-weight:900;color:#fff}
.scrpc-single-price .price-old{margin-left:8px;color:#ddd;text-decoration:line-through}

/* ===== Checkout (con Yape/Plin/Culqi) ===== */
.scrpc-checkout .modal-content{max-width:920px}
.scrpc-checkout .scrpc-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:800px){.scrpc-checkout .scrpc-form-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.scrpc-checkout .scrpc-form-grid{grid-template-columns:1fr}}
.scrpc-checkout .form-field label{display:block;font-size:13px;margin:0 0 6px 0;color:#333}
.scrpc-checkout .form-field input,.scrpc-checkout .form-field select{width:100%;padding:9px;border:1px solid #ddd;border-radius:10px;font-size:14px;background:#fff}

.scrpc-pay-wrap{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
@media (max-width:700px){.scrpc-pay-wrap{grid-template-columns:1fr}}
.scrpc-pay-methods h3,.scrpc-pay-receipt h3{margin:0 0 8px 0}
.pay-option{display:inline-flex;gap:8px;align-items:center;border:1px solid #ddd;border-radius:10px;padding:8px 12px;margin-right:8px;background:#fff;cursor:pointer}
.pay-option input{margin:0}

/* ===== QR pago ===== */
.scrpc-qr-box{margin-top:12px;border:1px dashed #ccc;border-radius:12px;padding:12px;background:#fff}
.scrpc-qr-box .qr-wrap{display:flex;gap:12px;align-items:center}
.scrpc-qr-box img{width:120px;height:120px;object-fit:contain;border:1px solid #eee;border-radius:12px;background:#fff}
.scrpc-qr-box .qr-empresa{font-weight:700}
.scrpc-qr-box .qr-tel{color:#444}
.scrpc-qr-box .qr-hint{color:#777;font-size:14px}

/* ===== Totales checkout ===== */
.scrpc-checkout-summary{margin-top:16px;border-top:1px solid #eee;padding-top:12px}
.scrpc-checkout-summary > div{display:flex;justify-content:space-between;margin-bottom:6px}
.scrpc-checkout-summary .total strong{font-size:18px}

/* ===== Acciones checkout ===== */
.scrpc-checkout-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.button{background:#132530;border:1px solid #ddd;border-radius:10px;padding:10px 14px;cursor:pointer}
.button:hover{background:#e80000}
.button.button-primary{background:#e80000;border-color:#e80000;color:#fff}
.button.button-primary:hover{background:#132530}
.is-loading{opacity:.6;pointer-events:none}

/* ===== Botón carrito menú ===== */
.menu-item-scrpc-quote > a.scrpc-menu-quote,
.scrpc-menu-quote{display:inline-flex;align-items:center;gap:8px;background:#fdf2f2;border:1px solid #fca5a5;color:#991b1b;padding:6px 10px;border-radius:9999px;text-decoration:none;font-weight:600}
.scrpc-menu-quote-total{font-weight:700}
.scrpc-menu-quote-badge{background:#ef4444;color:#fff;border-radius:9999px;padding:2px 6px;font-size:.75rem;margin-left:2px}

/* ======= Sección / Título (Carousels) ======= */
.scrpc-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:12px}
.scrpc-section-head h3{margin:0;font-size:1.25rem;font-weight:700}
.scrpc-carousel-nav button{border:0;background:#f2f4f7;width:36px;height:36px;border-radius:10px;font-size:20px;line-height:36px;cursor:pointer}
.scrpc-carousel-nav button:hover{background:#e6e9ef}

/* ======= Carousel (estable) ======= */
.scrpc-carousel-wrap{position:relative; --scrpc-arrow-size:44px;}
.scrpc-carousel{overflow:hidden; position:relative}
.scrpc-c-track{display:flex;gap:14px;transition:transform .45s ease}
.scrpc-c-card{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #edf0f4;border-radius:14px;padding:14px;min-width:160px;text-decoration:none;color:#111;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.scrpc-c-card:hover{box-shadow:0 8px 24px rgba(16,24,40,.08);transform:translateY(-1px)}
.scrpc-c-thumb{display:flex;align-items:center;justify-content:center;width:120px;height:70px}
.scrpc-c-thumb.is-pill{width:120px;height:42px;border-radius:9999px;background:#f7f7f9;padding:6px 10px}
.scrpc-c-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.scrpc-c-title{font-size:.85rem;text-align:center;color:#3b3b3b;min-height:1.2em}
.scrpc-c-arrow{position:absolute;top:50%;transform:translateY(-50%);width:var(--scrpc-arrow-size);height:var(--scrpc-arrow-size);display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;cursor:pointer;z-index:5;background:#ad0000;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.scrpc-c-arrow.left{left:10px}.scrpc-c-arrow.right{right:10px}
.scrpc-c-arrow:focus{outline:2px solid rgba(173,0,0,.4);outline-offset:2px}
@media (hover:hover){.scrpc-c-arrow{opacity:.9;transition:opacity .15s,transform .12s}.scrpc-c-arrow:hover{opacity:1;transform:translateY(-50%) scale(1.04)}}

/* ======= Marquee ======= */
.scrpc-marquee{overflow:hidden}
.scrpc-m-track{display:flex;gap:var(--gap,40px);will-change:transform}
.scrpc-m-item{display:block}
.scrpc-m-thumb{width:120px;height:64px;border:1px solid #edf0f4;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:8px}
.scrpc-m-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.scrpc-m-thumb.is-pill{height:42px;border-radius:9999px;background:#f7f7f9}
.scrpc-m-track.running{animation-name:scrpc-marq;animation-timing-function:linear;animation-iteration-count:infinite}
@keyframes scrpc-marq{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== Pequeños helpers ===== */
.scrpc-center{display:flex;align-items:center;justify-content:center}

/* ===== Botón flotante: Mostrar Tus Pedidos ===== */
.scrpc-quote-button{position:fixed;right:18px;bottom:18px;z-index:9999;display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:9999px;background:#ad0000;color:#fff;font-weight:700;line-height:1;box-shadow:0 10px 24px rgba(0,0,0,.18);border:0;cursor:pointer;user-select:none;text-decoration:none}
.scrpc-quote-button:hover{filter:brightness(1.05);transform:translateY(-1px)}
.scrpc-quote-button:active{transform:translateY(0)}
.scrpc-quote-button:focus{outline:2px solid rgba(173,0,0,.35);outline-offset:2px}
.scrpc-quote-button::before{content:"";width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18l-2 12H5L3 7Z'/%3E%3Cpath d='M6 3h4l1 2h6'/%3E%3C/svg%3E") no-repeat center/contain}
@media (max-width:480px){.scrpc-quote-button{left:12px;right:12px;bottom:14px;justify-content:center;padding:12px 14px;box-shadow:0 8px 18px rgba(0,0,0,.2);font-size:15px}}
.scrpc-quote-button.pulse{animation:scrpc-bump .35s ease}
@keyframes scrpc-bump{0%{transform:scale(1)}35%{transform:scale(1.06)}100%{transform:scale(1)}}

/* =======================
   VISTA RÁPIDA – Layout “anterior”
   ======================= */
#scrpc-product-modal .modal-content{display:flex;flex-direction:column;max-height:90vh;overflow:hidden}
#scrpc-product-modal .modal-body{flex:1 1 auto;overflow:auto;display:flex;flex-direction:column}
#scrpc-product-modal .modal-footer{position:sticky;bottom:0;background:#fff;z-index:2;box-shadow:0 -6px 14px rgba(0,0,0,.04)}
#scrpc-product-modal .scrpc-modal-grid{display:grid;grid-template-columns:1.25fr .85fr;gap:22px;align-items:start}
@media (max-width:900px){#scrpc-product-modal .scrpc-modal-grid{grid-template-columns:1fr}}
/* Galería dentro del modal como antes */
.scrpc-mgallery.scrpc-gallery .scrpc-hero{border:1px solid #eee;border-radius:14px;background:#fff;padding:10px}
.scrpc-mgallery.scrpc-gallery .scrpc-hero .scrpc-hero-inner{width:100%;min-height:420px;display:flex;align-items:center;justify-content:center}
@media (max-width:900px){.scrpc-mgallery.scrpc-gallery .scrpc-hero .scrpc-hero-inner{min-height:300px}}
.scrpc-mgallery.scrpc-gallery .scrpc-hero img{width:100%;height:100%;object-fit:contain;border-radius:8px}
.scrpc-mgallery.scrpc-gallery .scrpc-thumbs{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.scrpc-mgallery.scrpc-gallery .scrpc-thumbs img{width:78px;height:78px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:6px;cursor:pointer}
.scrpc-mgallery.scrpc-gallery .scrpc-thumbs img.active{outline:2px solid #ad0000}
.scrpc-mgallery .nav{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:10px;cursor:pointer;background:#ad0000;color:#fff;box-shadow:0 6px 12px rgba(0,0,0,.18)}
.scrpc-mgallery .nav.prev{left:10px}.scrpc-mgallery .nav.next{right:10px}
/* Tabs “píldora” como la 1ª captura */
.modal-tabs{display:flex;gap:8px;align-items:center;margin:16px 0 10px}
.modal-tab{padding:8px 12px;border:1px solid #ddd;border-radius:999px;background:#fff;cursor:pointer;font-size:13px}
.modal-tab.active{background:#ad0000;border-color:#ad0000;color:#fff}
.modal-tab-content{display:none;padding:12px 10px;border:1px solid #ececec;border-radius:12px;background:#fff;max-height:clamp(180px,32vh,360px);overflow:auto}
.modal-tab-content.active{display:block}

/* SINGLE a juego */
.scrpc-single .scrpc-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
@media (max-width:900px){.scrpc-single .scrpc-grid{grid-template-columns:1fr}}
.scrpc-single .scrpc-gallery .scrpc-hero{border:1px solid #eee;border-radius:14px;background:#fff;padding:10px}
.scrpc-single .scrpc-gallery .scrpc-hero .scrpc-hero-inner{width:100%;min-height:420px;display:flex;align-items:center;justify-content:center}
@media (max-width:900px){.scrpc-single .scrpc-gallery .scrpc-hero .scrpc-hero-inner{min-height:300px}}
.scrpc-single .scrpc-gallery .scrpc-hero img{width:100%;height:100%;object-fit:contain;border-radius:8px}
.scrpc-single .scrpc-thumbs{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.scrpc-single .scrpc-thumbs img{width:78px;height:78px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:6px}
.scrpc-single .scrpc-thumbs img.active{outline:2px solid #ad0000}
.scrpc-single #scrpc-single-qty{width:96px;padding:6px 8px;border:1px solid #ddd;border-radius:8px}

/* ======= Single: Compatibilidad vehicular (tabla suave, estilo Elementor) ======= */
.scrpc-single .scrpc-compat-wrap{
  margin-top: 22px;
  background:#fff;
  border:1px solid #edf0f4;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.scrpc-single .scrpc-compat-wrap h3{
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  line-height: 1.15;
  color:#1f2d3d;
}
.scrpc-single .scrpc-compat-wrap .table-responsive{
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.scrpc-single table.scrpc-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  border:1px solid #eef2f7;
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
}
.scrpc-single table.scrpc-table thead th{
  background:#f8fafc;
  color:#475569;
  font-weight:800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
.scrpc-single table.scrpc-table tbody td{
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color:#111827;
  font-size: 14px;
  line-height: 1.25;
}
.scrpc-single table.scrpc-table tbody tr:nth-child(even) td{
  background:#fbfdff;
}
.scrpc-single table.scrpc-table tbody tr:hover td{
  background:#f5f7fb;
}
.scrpc-single table.scrpc-table tbody tr:last-child td{ border-bottom: 0; }

@media (max-width: 640px){
  .scrpc-single .scrpc-compat-wrap{ padding: 14px 12px 12px; }
  .scrpc-single .scrpc-compat-wrap h3{ font-size: 1.45rem; }
  .scrpc-single table.scrpc-table thead th,
  .scrpc-single table.scrpc-table tbody td{ padding: 9px 10px; }
}

/* ======= Buscador (alineado correcto) ======= */
.advanced-product-search-form,[data-scrpc-advsearch-form]{display:flex;align-items:center;gap:12px;max-width:1100px;margin:0 auto 10px}
.advanced-product-search-form input[type="search"],[data-scrpc-advsearch-input]{flex:1 1 auto;width:100%;min-height:52px;padding:12px 16px;font-size:16px;line-height:1.4;border:1px solid rgba(0,0,0,.12);border-radius:12px;background:#fff;outline:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.06)}
.advanced-product-search-form button,[data-scrpc-advsearch-btn]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 22px;border-radius:12px;border:0;background:#d62c2c;color:#fff;font-weight:700;font-size:16px;letter-spacing:.2px;cursor:pointer;white-space:nowrap}
.advanced-product-search-form .button,[data-scrpc-advsearch-form] .button{width:auto!important;display:inline-flex!important}
@media (max-width:640px){.advanced-product-search-form,[data-scrpc-advsearch-form]{flex-direction:column;align-items:stretch;gap:10px}.advanced-product-search-form button,[data-scrpc-advsearch-btn]{width:100%;height:48px}}
/* ===================== Overrides: modal producto ===================== */

/* 1) Slider más compacto dentro del modal */
#scrpc-product-modal .scrpc-mgallery .scrpc-hero { padding: 8px; }
#scrpc-product-modal .scrpc-mgallery .scrpc-hero .scrpc-hero-inner{
  min-height: 260px;          /* más bajo que antes */
  max-height: 36vh;           /* no ocupa todo el modal */
  aspect-ratio: 4 / 3;
  display:flex; align-items:center; justify-content:center;
}
#scrpc-product-modal .scrpc-mgallery .scrpc-hero img{
  max-height: 100%; width: 100%; object-fit: contain;
}
#scrpc-product-modal .scrpc-mgallery .nav{ width:30px; height:30px; }
#scrpc-product-modal .scrpc-mgallery .scrpc-thumbs img{ width:56px; height:56px; padding:4px; }

/* Tabs con área visible y scroll cómodo */
#scrpc-product-modal .modal-tabs{ margin-top: 12px; }
#scrpc-product-modal .modal-tab-content{
  max-height: clamp(200px, 34vh, 360px);
  overflow:auto; padding: 12px; border:1px solid #eee; border-radius: 12px; background:#fff;
}

/* 2) Bloque de precios triple (Regular / Tarjeta / Transferencia) */
.scrpc-price-stack{ margin: 6px 0 14px; display:grid; gap:6px; }
.scrpc-price-line{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.scrpc-price-line .lbl{ font-weight:700; font-size:.95rem; }
.scrpc-price-line .val{ font-weight:900; letter-spacing:.2px; }
.scrpc-price-line.regular .lbl,
.scrpc-price-line.regular .val{ color:#9ca3af; }           /* gris */
.scrpc-price-line.card   .val{ color:#1370e2; }            /* azul */
.scrpc-price-line.transfer .val{ color:#d10f0f; }          /* rojo */
.scrpc-badge{
  display:inline-block; margin-left:.35rem; font-size:.72rem; padding:.1rem .35rem;
  border-radius:999px; background:#fee2e2; color:#b91c1c; border:1px solid #fecaca;
}

/* ===================== Overrides: checkout pago ===================== */

/* contenedor de secciones bajo cada método */
.scrpc-pay-areas{ margin-top: 10px; }
.pay-info{ display:none; border:1px dashed #d6d6d6; border-radius:12px; padding:12px; background:#fff; }
.pay-info.active{ display:block; }

/* QR y datos de transferencia */
.pay-info .qr-wrap{ display:flex; align-items:center; gap:12px; }
.pay-info .qr-wrap img{ width:120px; height:120px; object-fit:contain; border:1px solid #eee; border-radius:12px; background:#fff; }
.pay-info .qr-empresa{ font-weight:700; }
.pay-info .qr-tel{ color:#444; }
.pay-info .bank{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px; margin-top:6px;
}
@media (max-width:640px){ .pay-info .bank{ grid-template-columns: 1fr; } }
.pay-info .bank div{ background:#fafafa; border:1px solid #eee; border-radius:10px; padding:8px 10px; }
.pay-info .hint{ color:#6b7280; font-size:.9rem; margin-top:6px; }

/* mover “subir comprobante” al método elegido */
#scrpc_comprobante_wrap{ margin-top:10px; }
#scrpc_comprobante{ width:100%; }

/* línea de descuento cuando método=Transferencia */
.scrpc-checkout-summary .discount{
  color:#b91c1c; font-weight:700;
}

/* Botón de “Agregar a cotización” pegado abajo (si tu tema lo usa) */
#scrpc-product-modal .modal-footer{ position: sticky; bottom: 0; background:#fff; box-shadow:0 -6px 14px rgba(0,0,0,.04); }
/* =============================
   Checkout: Métodos de pago full width
   ============================= */
.scrpc-pay-methods{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  width:100%;
}
.scrpc-pay-methods > h3{
  flex:0 0 100%;
  margin:0 0 6px 0;
}
.scrpc-pay-methods .pay-option{
  /* que respiren y ocupen el ancho disponible antes de saltar a otra línea */
  flex:1 1 180px;
  min-width:160px;
}
.scrpc-pay-methods .culqi-card-hint,
.scrpc-pay-methods #scrpc-qr-box{
  flex:0 0 100%;   /* siempre debajo de los radios y a todo el ancho */
}

/* Mensaje persuasivo bajo los precios (modal de producto) */
.scrpc-price-stack .transfer-hint{
  margin-top:4px;
  font-weight:700;
  font-size:.92rem;
  color:#c11212; /* rojo suave de marca */
}
/* ===== Carrusel: tarjetas más rectangulares (menos altas) ===== */
.scrpc-carousel-wrap{
  --scrpc-thumb-h: 56px;   /* <- ajusta 48–64 según te guste */
  --scrpc-card-pad: 10px;
}

.scrpc-c-card{
  padding: var(--scrpc-card-pad) 5px 10px !important;
  gap: 2px !important;            /* menos espacio vertical */
  border-radius: 12px;
}

.scrpc-c-thumb{
  height: var(--scrpc-thumb-h) !important;
  padding: 6px !important;
}
.scrpc-c-thumb img{
  max-height: calc(var(--scrpc-thumb-h) - 12px) !important;
  object-fit: contain;
}

/* Si usas la mini “pill” */
.scrpc-c-thumb.is-pill{
  height: 36px !important;
  padding: 4px 10px !important;
  border-radius: 9999px;
}

/* Título más compacto */
.scrpc-c-title{
  margin-top: 2px;
  font-size: .85rem;
  line-height: 1.2;
  min-height: auto;
}
.scrpc-product-item .scrpc-iconbar { position: relative; z-index: 3; pointer-events: auto; }
.scrpc-product-item a.scrpc-card  { position: relative; z-index: 1; }
.scrpc-product-item .scrpc-iconbar .scrpc-icbtn { pointer-events: auto; }
/* Fuerza 1 columna en el método de pago */
.scrpc-checkout .scrpc-pay-wrap {
  grid-template-columns: 1fr !important;
}

/* (opcional) un poco de espacio con el resumen debajo */
.scrpc-checkout .scrpc-checkout-summary {
  margin-top: 12px;
}
/* === Checkout modal: que sea realmente responsive === */
.scrpc-checkout .modal-content{
  width: min(920px, 94vw);
}

/* Base (desktop): 3 columnas, pero con minmax(0,1fr) para evitar overflow */
.scrpc-checkout .scrpc-form-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* override al inline */
  gap: 12px;
}

/* Tablets */
@media (max-width: 1024px){
  .scrpc-checkout .scrpc-form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Móviles */
@media (max-width: 600px){
  .scrpc-checkout .scrpc-form-grid{
    grid-template-columns: 1fr !important;
  }
  .scrpc-checkout .scrpc-checkout-actions{
    flex-direction: column;
    gap: 10px;
  }
}

/* Inputs 100% del ancho de su celda y sin desbordes */
.scrpc-checkout .scrpc-form-grid .form-field{ min-width: 0; }
.scrpc-checkout .scrpc-form-grid input,
.scrpc-checkout .scrpc-form-grid select,
.scrpc-checkout .scrpc-form-grid textarea{
  width: 100%;
  box-sizing: border-box;
}

/* Ya que pediste 1 sola columna en “Método de pago” */
.scrpc-checkout .scrpc-pay-wrap{
  grid-template-columns: 1fr !important;
}

/* (opcional) también hace responsive el formulario del modal de “Solicitar cotización” */
#scrpc-request-modal .scrpc-form-grid{
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 12px;
}
@media (max-width: 600px){
  #scrpc-request-modal .scrpc-form-grid{ grid-template-columns: 1fr !important; }
}
/* Contenedor opcional */
.scrpc-range-wrap{ position:relative; }

/* Las dos barras se superponen */
#scrpc_price_slider input[type="range"]{
  -webkit-appearance:none; appearance:none;
  width:100%; height:4px; background:#e9ecef; border-radius:3px;
  outline:none; margin:14px 0;
}
#scrpc_price_slider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:16px; height:16px; border-radius:50%;
  background:#f59f00; border:2px solid #f59f00; cursor:pointer;
}
#scrpc_price_slider input[type="range"]::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%;
  background:#f59f00; border:2px solid #f59f00; cursor:pointer;
}
/* línea “activa” de color naranja debajo (la barra superior queda transparente) */
#scrpc_price_slider input[type="range"][data-role="min"]{
  background:linear-gradient(#f59f00,#f59f00) no-repeat;
  background-size:0% 100%;
}


/* ======================================================
   SINGLE – sliders relacionados (productos y categorías)
   ====================================================== */
.scrpc-single .scrpc-related-slider{margin-top:34px}
.scrpc-single .scrpc-related-slider .scrpc-section-head h3{font-size:2rem;line-height:1.15;color:#1f2d3d}
.scrpc-single .scrpc-related-slider .scrpc-carousel{padding:6px 2px}
.scrpc-single .scrpc-related-slider .scrpc-c-track{gap:18px}
.scrpc-single .scrpc-related-slider .scrpc-c-card{
  min-width:calc((100% - 54px)/4) !important;
  max-width:calc((100% - 54px)/4);
  align-items:stretch;
  text-align:left;
  border-radius:18px;
  padding:14px !important;
  gap:12px !important;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.scrpc-single .scrpc-related-slider .scrpc-c-card:hover{transform:translateY(-3px);box-shadow:0 16px 28px rgba(15,23,42,.10)}
.scrpc-related-thumb,
.scrpc-related-cat-thumb{
  width:100%;
  height:220px;
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.scrpc-related-thumb img,
.scrpc-related-cat-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.scrpc-related-copy{display:flex;flex-direction:column;gap:6px}
.scrpc-related-name{
  font-size:1rem;
  font-weight:700;
  line-height:1.3;
  color:#15233b;
  min-height:2.6em;
}
.scrpc-related-code,
.scrpc-related-meta{font-size:.92rem;color:#5a6474}
.scrpc-related-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px}
.scrpc-related-price .now{font-size:1.08rem;font-weight:800;color:#ad0000}
.scrpc-related-price .old{font-size:.92rem;color:#8a8f99;text-decoration:line-through}
.scrpc-related-cta{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:8px 14px;
  border-radius:999px;
  background:#f1f5f9;
  color:#132530;
  font-size:.9rem;
  font-weight:700;
}
.scrpc-related-category-card .scrpc-related-cat-thumb{height:110px;background:#f8fafc;padding:14px}
.scrpc-related-category-card .scrpc-related-name{min-height:unset}
.scrpc-related-categories-slider .scrpc-c-card{justify-content:center}
.scrpc-single .scrpc-related-slider .scrpc-c-arrow{top:46%}
@media (max-width: 1200px){
  .scrpc-single .scrpc-related-slider .scrpc-c-card{
    min-width:calc((100% - 36px)/3) !important;
    max-width:calc((100% - 36px)/3);
  }
}
@media (max-width: 860px){
  .scrpc-single .scrpc-related-slider .scrpc-section-head h3{font-size:1.5rem}
  .scrpc-single .scrpc-related-slider .scrpc-c-card{
    min-width:calc((100% - 18px)/2) !important;
    max-width:calc((100% - 18px)/2);
  }
  .scrpc-related-thumb{height:190px}
}
@media (max-width: 560px){
  .scrpc-single .scrpc-related-slider .scrpc-c-card{
    min-width:100% !important;
    max-width:100%;
  }
  .scrpc-single .scrpc-related-slider .scrpc-c-track{gap:14px}
  .scrpc-related-thumb{height:180px}
}


/* Ajustes extra slider relacionados */
.scrpc-single .scrpc-related-slider .scrpc-carousel-nav{display:none !important}
.scrpc-related-product-card{justify-content:space-between}
.scrpc-related-card-link{display:flex;flex-direction:column;gap:12px;color:inherit;text-decoration:none;width:100%}
.scrpc-related-card-link:hover{color:inherit;text-decoration:none}
.scrpc-related-product-card .scrpc-related-iconbar{margin-top:auto;padding-top:4px}
.scrpc-related-product-card .scrpc-related-iconbar .scrpc-icbtn{pointer-events:auto}

#scrpc-product-modal{z-index:10050}
#scrpc-product-modal .modal-content{position:relative}
