﻿/* ================ 1. ESTILOS PARA LAS MINIATURAS DE SUB IMAGENES =============== */
.product-ref-code {
    margin: 15px 0;
    font-size: 14px;
    color: #555;
    text-align: left;
    padding-right: 10px;
     display: flex;
}

.product-ref-code strong {
    /* font-family: 'Courier New', monospace; */
color: #333;
    font-weight: 400;
    margin-left: 5px;
   
}

/* Galería compacta de imágenes */
.compact-image-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.compact-image-item {
    position: relative;
    aspect-ratio: 1/1;
}

.compact-radio {
    position: absolute;
    opacity: 0;
}

.compact-thumb-label {
    display: block;
    height: 85%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.compact-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: all 0.3s ease; */
}

/* Efectos de selección */
.compact-radio:checked + .compact-thumb-label .compact-thumb-img {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.compact-thumb-label:hover .compact-thumb-img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Versión responsive */
@media (max-width: 768px) {
    .compact-image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .compact-image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ================2. ESTILOS PARA EL INPUT CONTADOR DE PRODUCTOS =============== */
.product-ref-section {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.ref-label {
    color: #666;
}

.ref-code {
    font-weight: bold;
    color: #333;
    font-family: monospace;
    margin-left: 5px;
}

/* Contador de cantidad mejorado */
.quantity-selector {
    margin: 5px 0;
    text-align: center;
}

.input-counter-improved {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.counter-btn {
    width: 30px;
    height: 30px;
    background: #f8f8f8;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.counter-btn:hover {
    background: #e0e0e0;
}

.counter-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    -moz-appearance: textfield;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cart-btn, .wishlist-btn {
    padding: 12px 0;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    /* text-transform: uppercase; */
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.cart-btn {
    background-color: #2563eb;
    color: white;
}

.cart-btn:hover {
    background-color: #1d4ed8;
}

.wishlist-btn {
    background-color: #f1f5f9;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.wishlist-btn:hover {
    background-color: #e0e7ff;
}

/* ================= 3. PARA LAS PARTE DE IMMAGEN CARRUSEL VERTICAL ========================== */
.rounded-gallery-vertical {
    display: flex;
    gap: 20px;
    height: 650px;
    position: relative;
    align-items: center;
}

/* Imagen principal */
.main-display-container {
    width: 75%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-display-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    cursor: zoom-in;
}

/* Contenedor de miniaturas con botones redondos */
.rounded-thumbs-container {
    width: 25%;
    height: 88%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botones redondos */
.round-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    transition: all 0.3s;
    z-index: 2;
}

.round-nav-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

/* Contenedor de miniaturas */
.rounded-thumbs-wrapper {
    flex: 1;
    /* width: 100%; */
    width: 8rem;
    overflow: hidden;
    position: relative;
}

/* Miniaturas */
.rounded-thumb {
    width: 100%;
  height: 8rem;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.rounded-thumb-img {
    width: 100%;
    height: 80px; /* Tamaño aumentado */
    object-fit: cover;
    display: block;
}

.rounded-thumb:hover .rounded-thumb-img {
    opacity: 0.9;
    transform: scale(1.03);
}

.active-thumb {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .rounded-gallery-vertical {
        flex-direction: column;
        height: auto;
    }
    
    .main-display-container {
        width: 100%;
        height: 400px;
    }
    
    .rounded-thumbs-container {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
    }
    
    .rounded-thumbs-wrapper {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 10px;
        margin: 0 10px;
    }
    
    .rounded-thumb {
        flex: 0 0 120px;
        margin-bottom: 0;
    }
    
    .round-nav-btn {
        margin: 0 5px;
    }
    
    .round-nav-up {
        order: 1;
    }
    
    .rounded-thumbs-wrapper {
        order: 2;
    }
    
    .round-nav-down {
        order: 3;
    }
}