/* Detalle de Sorteo Premium */
.main-image-wrapper:hover img {
    transform: scale(1.02);
}
.thumbnail-item {
    transition: all 0.2s ease;
    opacity: 0.6;
}
.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.thumbnail-item.border-primary {
    opacity: 1;
    border-color: #3b82f6 !important;
}
.cursor-pointer {
    cursor: pointer;
}

/* Tarjetas Premium del Detalle */
.premium-detail-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 2.5rem !important;
}

/* Estilo para los textos del sorteo */
.title-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}
.stat-box:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.detail-price-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
}

/* inputs y select en detalle */
.form-control-premium {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.25s ease;
    color: #334155;
}
.form-control-premium:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Botones Premium */
.btn-premium-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-premium-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-premium-outline {
    border: 2px solid #e2e8f0;
    color: #475569;
    background-color: #ffffff;
    border-radius: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem !important;
}
.btn-premium-outline:hover {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.checkout-panel {
    position: sticky;
    top: 2rem;
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
    .premium-detail-card {
        padding: 1.75rem !important;
        border-radius: 20px;
    }
    #main-gallery-image {
        height: 300px !important;
    }
    .checkout-panel {
        position: static;
    }
}
@media (max-width: 575.98px) {
    .premium-detail-card {
        padding: 1.25rem !important;
    }
    #main-gallery-image {
        height: 220px !important;
    }
}

/* Estilo Pop Art para los Botones de Compra Rápida en Detalle */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

.quick-buy-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* More vertical space for rotation layers */
    padding: 20px 0 25px 0;
    width: 100%;
}

.quick-btn {
    position: relative;
    background-color: #3b1c4a; /* Dark purple */
    color: #ffffff; /* Solid White for maximum contrast */
    font-family: 'Outfit', 'Inter', system-ui, sans-serif; /* Clean geometric sans-serif */
    font-size: 1.35rem; /* Balanced size for mobile */
    font-weight: 900; /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px; /* Comfortably tall padding */
    text-decoration: none;
    border-top: 4px solid #f10066; /* Pink line */
    border-bottom: 4px solid #f10066; /* Pink line */
    border-left: 2px solid #3b1c4a;
    border-right: 2px solid #3b1c4a;
    border-radius: 6px;
    z-index: 2;
    transform: rotate(-2deg); /* Slightly less tilt to look better full width */
    transition: all 0.2s ease;
    display: block;
    width: 85%; /* Fits beautifully in checkout container */
    max-width: 320px;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    text-shadow: 2px 2px 0px #3b1c4a, -1px -1px 0 #3b1c4a, 1px -1px 0 #3b1c4a, -1px 1px 0 #3b1c4a, 1px 1px 0 #3b1c4a; /* Dark purple shadow border to make text pop */
}

.quick-btn::before {
    content: '';
    position: absolute;
    z-index: -1;
    background-color: #00c3ff; /* Light blue */
    border: 2px dashed #003a70; /* Navy dashes */
    top: -10px; /* Larger Offset */
    bottom: -10px; /* Larger Offset */
    left: -8px; /* Larger Offset */
    right: -8px; /* Larger Offset */
    border-radius: 6px;
    transform: rotate(6deg);
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.quick-btn:hover {
    transform: rotate(0deg) scale(1.1);
    color: #ffffff; /* Turns white on hover */
    text-shadow: -1px -1px 0 #ffd600, 1px -1px 0 #ffd600, -1px 1px 0 #ffd600, 1px 1px 0 #ffd600, 2px 2px 0 rgba(0,0,0,0.2);
}

.quick-btn:hover::before {
    transform: rotate(0deg);
}

.quick-btn.hot-btn {
    animation: hotBounce 2s infinite;
}

@keyframes hotBounce {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-4px); }
}
