.back-btn-container {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding-left: 0;
}

.product-image-placeholder {
    position: absolute;
    color: var(--text-secondary);
    z-index: -1;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qty-selector label {
    font-weight: 600;
    color: var(--text-secondary);
}

.input-qty {
    width: 70px;
    padding: 0.5rem;
    background: #222;
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.full-width-btn {
    width: 100%;
}

.margin-bottom-1 {
    margin-bottom: 1rem;
}

.wish-btn-large {
    padding: 1rem;
    font-size: 1rem;
}



.product-carousel {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    padding: 1.5rem;
    /* Espacio para que la imagen no se pegue a los bordes */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ahora se verá la imagen completa */
    display: block;
    border-radius: 8px;
    /* Un poco redondeado para que quede más premium */
    transition: opacity 0.3s;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
    padding-bottom: 3px;
}

.carousel-btn:hover {
    background: rgba(42, 202, 70, 0.75);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 12px;
}

.carousel-btn-next {
    right: 12px;
}


.carousel-btn.hidden {
    display: none;
}


.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-color, #2aca46);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.video-slide {
    background: #000;
}

.video-slide iframe {
    border: none;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: 100%;
}


.carousel-dot[aria-label="Ver video"] {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    background: rgba(42, 202, 70, 0.4);
}

.carousel-dot[aria-label="Ver video"].active {
    background: var(--accent-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-right: 0.4rem;
}

.current-price {
    color: var(--accent-color);
    font-weight: 700;
}

/* =========================================
   RESPONSIVE — Página de Producto
   ========================================= */

@media (max-width: 768px) {
    /* Carousel cuadrado a ancho completo en tablet */
    .product-carousel {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.8rem;
    }

    /* Botones de acción a ancho completo en móvil */
    .add-to-cart-btn,
    .wish-btn-large {
        width: 100%;
    }

    /* Selector de cantidad más compacto */
    .qty-selector {
        gap: 0.6rem;
    }

    .input-qty {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .product-carousel {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    /* Botones del carousel más pequeños */
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .product-detail-title {
        font-size: 1.25rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .product-detail-desc {
        font-size: 0.95rem;
    }

    /* Meta-items más compactos */
    .meta-item {
        flex-direction: column;
        gap: 0.2rem;
        margin-bottom: 1rem;
    }

    .meta-value {
        font-size: 0.95rem;
    }
}