/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
body {
    background-color: #111316; /* Dark Depth */
    color: #8D99AE;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

.text-brand { color: var(--bx-brand); }
.text-gray { color: #8D99AE; }
.bg-darker { background-color: #0b0c0e; }

.product-page-wrapper {
    margin-top: -85px; 
    padding-top: 100px;
}

/* Breadcrumbs */
.bx-breadcrumb {
    font-size: 0.85rem;
    font-weight: 500;
}
.bx-breadcrumb .separator {
    color: var(--bx-brand);
    margin: 0 8px;
}

/* =========================================
   1. GALERÍA DE IMÁGENES
   ========================================= */
.product-gallery-card {
    background: #ffffff; /* Fondo blanco para resaltar la pieza */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    /* Borde sutil */
    border: 1px solid rgba(255,255,255,0.1);
}

.main-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.main-image-wrapper img {
    max-height: 350px;
    transition: transform 0.5s ease;
}

.main-image-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-dots .dot {
    width: 10px; height: 10px;
    background: #333;
    border-radius: 50%;
    opacity: 0.5;
}
.gallery-dots .dot.active {
    background: var(--bx-brand);
    opacity: 1;
    transform: scale(1.2);
}

/* =========================================
   2. DETALLES DEL PRODUCTO
   ========================================= */
.badge-stock {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.price-block {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--bx-brand);
}

.main-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bx-white);
    line-height: 1;
}

.sku-block {
    font-family: 'Consolas', monospace;
    background: #000;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid #333;
}

.sku-value {
    color: var(--bx-yellow);
    font-weight: bold;
}

/* =========================================
   3. PANEL DE COMPRA (STICKY HUD)
   ========================================= */
.bx-buy-panel {
    background: #15181e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: sticky;
    top: 100px; /* Se queda fijo al bajar */
}

/* Badges de Pago */
.bg-purple-yape { background-color: #742284; color: white; }
.bg-blue-plin { background-color: #00aeb6; color: white; }

/* Cantidad */
.qty-selector {
    display: flex;
    align-items: center;
    background: #0b0c0e;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    width: 120px;
}

.btn-qty {
    background: transparent;
    border: none;
    color: white;
    width: 35px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-qty:hover { background: rgba(255,255,255,0.1); }

.qty-input {
    width: 50px;
    background: transparent;
    border: none;
    text-align: center;
    color: white;
    font-weight: bold;
    /* Ocultar flechas numéricas navegador */
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* BOTÓN DIAGONAL (Skew) */
.btn-skew-action {
    background: var(--bx-brand);
    color: white;
    border: none;
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px;
    transform: skewX(-15deg); /* Inclinación */
    transition: all 0.3s ease;
}

.btn-skew-action span {
    display: block;
    transform: skewX(15deg); /* Texto recto */
}

.btn-skew-action:hover {
    background: #fff;
    color: var(--bx-brand);
    box-shadow: 0 0 20px rgba(255, 31, 46, 0.5);
}

.btn-whatsapp-outline {
    border: 1px solid #28a745;
    color: #28a745;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    display: block;
    transition: 0.3s;
}

.btn-whatsapp-outline:hover {
    background: #28a745;
    color: white;
}

/* =========================================
   4. TABS & SPECS
   ========================================= */
.bx-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bx-tabs .nav-link {
    color: #8D99AE;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.bx-tabs .nav-link.active {
    color: var(--bx-white);
    background: transparent;
    border-bottom-color: var(--bx-brand);
}

.bx-tab-content {
    padding: 20px 0;
}

.bx-specs-table {
    --bs-table-bg: transparent;
    border-color: rgba(255,255,255,0.1);
}
.bx-specs-table th, .bx-specs-table td {
    padding: 12px 15px;
}

/* =========================================
   5. RELACIONADOS (CARRUSEL)
   ========================================= */
.related-card {
    background: #15181e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    transition: 0.3s;
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--bx-brand);
}

.related-img-wrapper {
    background: white;
    border-radius: 4px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.related-img-wrapper img {
    max-height: 100%;
}

.related-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.related-price {
    color: var(--bx-yellow);
    font-weight: 700;
}