/* Rosalve - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e11d48;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #be123c;
}

/* Hero gradient animation */
.hero-gradient {
    background: linear-gradient(135deg, #e11d48 0%, #9f1239 50%, #881337 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* Product card hover effect */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Image gallery thumbnail active state */
.gallery-thumb.active {
    border-color: #e11d48;
    opacity: 1;
}

.gallery-thumb {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.gallery-thumb:hover {
    opacity: 1;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Status badges */
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #e0e7ff; color: #3730a3; }
.badge-shipped { background: #f3e8ff; color: #6b21a8; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-refunded { background: #f3f4f6; color: #374151; }

/* Toast notification */
.toast {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #e11d48;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination active */
.pagination-active {
    background-color: #e11d48;
    color: white;
}

/* TinyMCE container fix */
.tox-tinymce {
    border-radius: 0.5rem !important;
}

/* Print styles for order */
@media print {
    nav, footer, .no-print { display: none !important; }
    body { font-size: 12pt; }
}
