/* QuickCart Custom Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Product Card Hover Effects */
.product-card:hover {
    transform: translateY(-4px);
}

.product-card {
    transition: all 0.3s ease;
}

/* Favorite Button Animation */
.favorite-btn i.fas {
    color: #ef4444;
}

.favorite-btn:hover i {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Featured Card Overlay */
.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 1;
}

.featured-card > * {
    position: relative;
    z-index: 2;
}

/* Cart Sidebar Animation */
#cart-sidebar > div:last-child {
    transition: transform 0.3s ease;
}

#cart-sidebar.active > div:last-child {
    transform: translateX(0);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
.add-to-cart-btn:hover {
    transform: scale(1.02);
}

/* Star Rating */
.star-rating i {
    transition: color 0.2s ease;
}

/* Newsletter Input Focus */
#newsletter-email:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Scrollbar Styling */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f97316;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #22c55e;
}

.toast.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .featured-card {
        height: 250px;
    }
}

/* Admin Dashboard Styles */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
}

.admin-sidebar a.active {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-right: 3px solid #f97316;
}

.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Table Styles */
.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-processing {
    background: #dbeafe;
    color: #2563eb;
}

.badge-shipped {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-delivered {
    background: #dcfce7;
    color: #16a34a;
}


/* Shop Page Styles */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Card Enhanced */
.product-card {
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Filter Sidebar */
.filter-checkbox:checked {
    background-color: #f97316;
    border-color: #f97316;
}

/* Price Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
}

/* Category Pills */
.category-pill {
    transition: all 0.2s ease;
}

.category-pill:hover {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.category-pill.active {
    background-color: #f97316;
    color: white;
}

/* View Toggle Buttons */
.view-btn {
    transition: all 0.2s ease;
}

.view-btn.active {
    background-color: #f97316;
    color: white;
}

/* Pagination */
.pagination-btn {
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.active) {
    border-color: #f97316;
    color: #f97316;
}

.pagination-btn.active {
    background-color: #f97316;
    color: white;
    border-color: #f97316;
}

/* Mobile Filter Toggle */
@media (max-width: 1024px) {
    .filter-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 100;
        transition: left 0.3s ease;
    }
    
    .filter-sidebar.open {
        left: 0;
    }
}

/* Quick View Button */
.quick-view-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Sale Badge Animation */
.sale-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
