/* ===================================
   PRODUCT PAGE STYLES
   Diseño mejorado y responsive
   =================================== */

/* Reset específico para la página de producto */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
    max-width: 1400px;
}

/* ===================================
   GALERÍA DE IMÁGENES
   =================================== */

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Proporción vertical para mostrar vestidos completos */
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra la imagen completa */
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

/* Badge de Alquiler */
.badge-rental {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

/* Botones de navegación de la galería */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-nav i {
    font-size: 18px;
    color: #333;
}

/* Botón de Zoom */
.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.zoom-btn i {
    font-size: 18px;
    color: #333;
}

/* Miniaturas */
.thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
}

.thumbnails-container::-webkit-scrollbar {
    height: 5px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #d4a574;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #d4a574;
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

.thumbnail-nav {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-nav:hover {
    background-color: #e0e0e0;
}

/* ===================================
   INFORMACIÓN DEL PRODUCTO
   =================================== */

.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-price {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #2ecc71;
    display: block;
    margin-bottom: 5px;
}

.price-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Disponibilidad */
.availability {
    margin-bottom: 25px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.availability-badge.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.availability-badge.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

/* Opciones de Producto */
.product-option {
    margin-bottom: 25px;
}

.product-option label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-select:hover {
    border-color: #d4a574;
}

.option-select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Colores */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
    border-color: #333;
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Información de Depósito */
.deposit-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Descripción */
.product-description {
    margin-bottom: 30px;
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.product-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Botones de Acción */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #d4a574;
    color: white;
}

.btn-primary:hover {
    background-color: #c09563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Meta Información */
.product-meta {
    padding: 20px 0;
    margin-bottom: 25px;
    border-top: 1px solid #e0e0e0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    color: #d4a574;
    width: 20px;
}

.category-link {
    color: #d4a574;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #c09563;
    text-decoration: underline;
}

/* Compartir en Redes Sociales */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f8f8;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background-color: #d4a574;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

/* ===================================
   PRODUCTOS RECOMENDADOS
   =================================== */

.recommended-products {
    margin: 80px 0 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

/* ===================================
   PROCESO DE ALQUILER
   =================================== */

.rental-process {
    margin: 60px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f8f8;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.step-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */

@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .main-image-container {
        max-width: 600px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================================
   RESPONSIVE - MÓVIL
   =================================== */

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }

    .price {
        font-size: 28px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .main-image-container {
        aspect-ratio: 2/3;
    }

    .thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnail {
        width: 70px;
        height: 90px;
    }

    .rental-process {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }

    .price {
        font-size: 24px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 13px;
    }

    .main-image-container {
        aspect-ratio: 3/4;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-nav i {
        font-size: 14px;
    }

    .badge-rental {
        font-size: 11px;
        padding: 6px 12px;
    }
}