/* ============================================================
   detalle.css — Ara Boutique
   Estilos específicos de la página de detalle de producto
   ============================================================ */

/* ----- Ocultar scrollbar en la tira de thumbnails ----- */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ----- Imagen principal: zoom suave al hover ----- */
.main-image-wrapper {
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.main-image-wrapper img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* ----- Thumbnail activo / inactivo ----- */
.thumbnail-btn {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-btn:hover {
    transform: scale(1.03);
}

.thumbnail-btn.active {
    box-shadow: 0 0 0 2px #7d562d;
}

/* ----- Indicador de stock ----- */
.stock-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
}

.stock-dot.in-stock {
    background-color: #006d2f;
    animation: pulse 1.5s infinite;
}

.stock-dot.out-of-stock {
    background-color: #ba1a1a;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ----- Selector de colores ----- */
.color-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    outline-offset: 3px;
    transition: outline 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

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

.color-btn.selected {
    outline: 2px solid #7d562d;
}

/* ----- Selector de talles ----- */
.size-btn {
    min-width: 3.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #cec5bc;
    background: #ffffff;
    color: #1b1c1b;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.size-btn:hover {
    border-color: #7d562d;
}

.size-btn.selected {
    background-color: #ffe9d6;
    color: #8b6238;
    border-color: #7d562d;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(125, 86, 45, 0.15);
}

.size-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ----- Botón favorito ----- */
.btn-favorite {
    background: rgba(251, 249, 247, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 0.75rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite.favorited .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    color: #ba1a1a;
}

/* ----- CTA flotante mobile ----- 
.mobile-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(251, 249, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(27, 28, 27, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 50;
    text-decoration: none;
}

@media (min-width: 768px) {
    .mobile-cta {
        display: none !important;
    }
}
*/
/* Override Tailwind en botones de talle y color */
.size-btn {
    min-width: 3.5rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #cec5bc !important;
    background: #ffffff !important;
    color: #1b1c1b !important;
    cursor: pointer !important;
}

.size-btn.selected {
    background-color: #ffe9d6 !important;
    color: #8b6238 !important;
    border-color: #7d562d !important;
    font-weight: 700 !important;
}

.size-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

.color-btn.selected {
    outline: 3px solid #7d562d !important;
    outline-offset: 3px !important;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center;
}

/* Imagen principal — altura fija en móvil */
.main-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 380px;
    /* ← altura fija móvil */
}

@media (min-width: 768px) {
    .main-image-wrapper {
        height: 100%;
        /* ← en desktop ocupa todo */
        min-height: 500px;
    }
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* ← enfoca la parte superior de la imagen */
    transition: transform 0.7s ease;
}

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