/* ==========================================
   MELDIE'S COLLECTION - Custom Styles
   ========================================== */

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-in {
    animation: slide-in 0.4s ease-out;
}

/* Flash messages auto-hide */
.flash-message {
    animation: slide-in 0.4s ease-out, fade-out 0.4s ease-out 4s forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f2e8e5;
}

::-webkit-scrollbar-thumb {
    background: #a18072;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #846358;
}

/* Product Card Hover Effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Zoom on Hover */
.image-zoom {
    transition: transform 0.5s ease;
}

.image-zoom:hover {
    transform: scale(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-color: #f59e0b;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Quantity Selector */
.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #e0cec7;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2e8e5;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e0cec7;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-error {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #2563eb;
}

/* Table Styles */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern th {
    background: #1a1a2e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table-modern th:first-child {
    border-top-left-radius: 0.5rem;
}

.table-modern th:last-child {
    border-top-right-radius: 0.5rem;
}

.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid #e0cec7;
}

.table-modern tbody tr:hover {
    background: #fdf8f6;
}

/* Admin Sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.sidebar-link.active {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f2e8e5 25%, #e0cec7 50%, #f2e8e5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Image Gallery */
.gallery-grid {
    display: grid;
    gap: 0.5rem;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #f59e0b;
}

/* Price Display */
.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d97706;
}

.price-original {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Smooth Page Transitions */
.page-transition {
    animation: page-fade-in 0.3s ease;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}