
/* ===============================================
   FAVORITE PAGE - ULTRA MODERN STYLES
   =============================================== */

:root {
    --primary-color: #d4af37;
    --secondary-color: #000000;
    --background-color: #f5f5f5;
    --dark-gray: #333333;
    --title-color: #2b2b2b;
    --subtitle-color: #666666;
    --success-color: #28a745;
    --danger-color: #dc3545;
    
    --gradient-dark: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.20);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Dark Mode Variables */
body.dark-mode {
    --background-color: #333333 !important;
    --primary-color: #888888;
    --title-color: #ffffff;
    --subtitle-color: #cccccc;
    --dark-gray: #e0e0e0;
    --card-bg: #2a2a2a;
    --border-color: #444444;
    --gradient-primary: linear-gradient(135deg, #666666 0%, #888888 100%);
    background-color: #333333 !important;
}

html.dark-mode,
html.dark-mode body {
    background-color: #333333 !important;
}

/* ===============================================
   GENERAL STYLES
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--background-color) !important;
    color: var(--title-color);
    overflow-x: hidden;
    transition: background 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ===============================================
   HERO SECTION
   =============================================== */

.favorite-hero {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

body.dark-mode .favorite-hero {
    background: linear-gradient(135deg, #444444 0%, #555555 100%);
}

.favorite-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-background {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.hero-title i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Theme Switcher */
.theme-switcher {
    text-align: right;
}

.theme-btn {
    background: rgba(0,0,0,0.2);
    border: 2px solid rgba(0,0,0,0.3);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    background: rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.theme-btn i {
    margin-right: 8px;
}

/* ===============================================
   STATISTICS CARDS
   =============================================== */

.stats-container {
    margin-top: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

body.dark-mode .stat-card {
    background: #2a2a2a;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    transition: height var(--transition-medium);
}

body.dark-mode .stat-card::before {
    background: linear-gradient(135deg, #666666 0%, #777777 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.stat-primary { border-top-color: #e74c3c; }
.stat-success { border-top-color: #2ecc71; }
.stat-warning { border-top-color: #f39c12; }
.stat-info { border-top-color: #3498db; }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
}

body.dark-mode .stat-icon {
    background: rgba(136, 136, 136, 0.2);
}

.stat-primary .stat-icon { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }
.stat-success .stat-icon { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.stat-warning .stat-icon { color: #f39c12; background: rgba(243, 156, 18, 0.1); }
.stat-info .stat-icon { color: #3498db; background: rgba(52, 152, 219, 0.1); }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--title-color);
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    margin: 0;
}

.stat-sparkline {
    margin-top: 15px;
    height: 40px;
}

.stat-trend, .stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.stat-badge {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stat-progress {
    margin-top: 15px;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-progress .progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    width: 75%;
    animation: progressAnimation 2s ease;
}

body.dark-mode .stat-progress .progress-bar {
    background: linear-gradient(135deg, #666666 0%, #777777 100%);
}

@keyframes progressAnimation {
    from { width: 0; }
}

/* ===============================================
   TOOLBAR SECTION
   =============================================== */

.toolbar-section {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--background-color);
}

body.dark-mode .toolbar-section {
    background: #333333;
    border-bottom-color: #444;
}

.toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search Container */
.search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--background-color);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.search-box i {
    color: var(--subtitle-color);
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 1rem;
    color: var(--title-color);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--subtitle-color);
    cursor: pointer;
    padding: 5px;
    transition: color var(--transition-fast);
}

.clear-btn:hover {
    color: var(--danger-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

body.dark-mode .search-suggestions {
    background: #2a2a2a;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--background-color);
    transition: background var(--transition-fast);
}

.suggestion-item:hover {
    background: var(--background-color);
}

/* Filters Container */
.filters-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    background: var(--background-color);
    border: 2px solid #e0e0e0;
    color: var(--title-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-count {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: var(--background-color);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--subtitle-color);
    transition: all var(--transition-fast);
}

.view-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: var(--title-color);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

body.dark-mode .action-btn {
    background: #3a3a3a;
    border-color: #555555;
    color: #ffffff;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn i {
    margin-right: 6px;
}

.export-btn:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.delete-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Advanced Filters Panel */
.advanced-filters {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

body.dark-mode .advanced-filters {
    background: #2a2a2a;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--title-color);
}

body.dark-mode .filter-group label {
    color: #d4af37;
}

.filter-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-range input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.price-range input:focus {
    border-color: var(--primary-color);
}

.range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, #e0e0e0 50%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: var(--background-color);
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 600;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch input[type="checkbox"] {
    width: 50px;
    height: 26px;
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.toggle-switch input[type="checkbox"]:checked {
    background: var(--success-color);
}

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

body.dark-mode .toggle-switch input[type="checkbox"]::before {
    background: #e0e0e0;
}

.toggle-switch input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.reset-filters-btn {
    width: 100%;
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.reset-filters-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===============================================
   MAIN CONTENT & SIDEBAR
   =============================================== */

.main-content {
    padding: 40px 0;
}

body.dark-mode .main-content {
    background: transparent !important;
}

body.dark-mode .container-fluid {
    background: transparent !important;
}

body.dark-mode .row {
    background: transparent !important;
}

body.dark-mode .col-lg-9,
body.dark-mode .col-lg-3,
body.dark-mode [class*="col-"] {
    background: transparent !important;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

body.dark-mode .sidebar-card {
    background: #2a2a2a;
}

.sidebar-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sidebar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--title-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-card h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark-mode .quick-btn {
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
    color: #ffffff;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===============================================
   PRODUCTS SECTION
   =============================================== */

.products-container {
    min-height: 400px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 200px;
}

.products-grid.list-view .product-info {
    flex: 1;
}

/* Compact View */
.products-grid.compact-view {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.products-grid.compact-view .product-card {
    padding: 15px;
}

.products-grid.compact-view .product-image {
    height: 180px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
    cursor: move;
}

body.dark-mode .product-card {
    background: #2a2a2a;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.product-card.selected {
    outline: 3px solid var(--primary-color) !important;
    background-color: rgba(212, 175, 55, 0.05) !important;
}

/* Product Checkbox */
.product-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.product-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Product Badges */
.product-badge-container {
    position: absolute;
    top: 15px;
    left: 50px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--danger-color);
    color: white;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Product Action Buttons */
.product-favorite, .product-compare {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    color: var(--subtitle-color);
}

body.dark-mode .product-favorite,
body.dark-mode .product-compare {
    background: #3a3a3a;
    color: #cccccc;
}

.product-compare {
    top: 65px;
}

.product-favorite:hover, .product-compare:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.product-favorite.active {
    color: #e74c3c;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.product-compare.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Product Image */
.product-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--title-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

body.dark-mode .quick-view-btn {
    background: #555555;
    color: #ffffff;
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-header {
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 5px;
}

body.dark-mode .product-title {
    color: #d4af37;
}

.product-category {
    font-size: 0.85rem;
    color: var(--subtitle-color);
    display: block;
}

.product-description {
    color: var(--subtitle-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
    color: #f39c12;
}

.product-rating span {
    color: var(--subtitle-color);
    margin-left: 5px;
    font-size: 0.9rem;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success-color);
}

.product-price-original {
    font-size: 1rem;
    color: var(--subtitle-color);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--background-color);
}

.meta-item {
    font-size: 0.8rem;
    color: var(--subtitle-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.dark-mode .quantity-selector {
    background: rgba(85, 85, 85, 0.3);
    border: 1px solid rgba(136, 136, 136, 0.3);
}

.quantity-selector label {
    font-size: 13px;
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
    padding: 0;
}

body.dark-mode .quantity-btn {
    border: 2px solid rgba(136, 136, 136, 0.5);
    background: #3a3a3a;
    color: #ffffff;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

body.dark-mode .quantity-btn:hover {
    background: linear-gradient(135deg, #666666 0%, #777777 100%);
    color: #ffffff;
    border-color: #888888;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.quantity-input {
    width: 60px !important;
    padding: 8px 6px !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--title-color) !important;
    background: white !important;
    transition: all var(--transition-fast) !important;
}

body.dark-mode .quantity-input {
    border: 2px solid rgba(136, 136, 136, 0.4) !important;
    background: #3a3a3a !important;
    color: #ffffff !important;
}

.quantity-input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

body.dark-mode .quantity-input:focus {
    border-color: #888888 !important;
    box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.2) !important;
}

.quantity-input:hover {
    border-color: var(--primary-color) !important;
}

/* Remove spinner arrows for Chrome, Safari, Edge */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner arrows for Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border: none;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-medium);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark-mode .btn-add-cart {
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-remove-favorite {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-remove-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 90, 111, 0.4);
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
}

.btn-remove-favorite:active {
    transform: translateY(0);
}

.btn-notify {
    background: var(--background-color);
    border: 2px solid #e0e0e0;
    color: var(--title-color);
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-notify:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-animation i {
    font-size: 8rem;
    color: var(--subtitle-color);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-state h3 {
    font-size: 2rem;
    margin: 20px 0 10px;
    color: var(--title-color);
}

.empty-state p {
    color: var(--subtitle-color);
    margin-bottom: 30px;
}

.btn-explore {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-medium);
}

body.dark-mode .btn-explore {
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
    color: #ffffff;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   MODALS
   =============================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

body.dark-mode .modal-content {
    background: #2a2a2a;
}

.modal-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 20px 30px;
}

body.dark-mode .modal-header {
    background: linear-gradient(135deg, #444444 0%, #555555 100%);
    color: #ffffff;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

body.dark-mode .modal-body {
    background: #2a2a2a;
    color: #ffffff;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--background-color);
}

.comparison-table th {
    background: var(--background-color);
    font-weight: 700;
}

.comparison-table img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* ===============================================
   FLOATING BUTTONS
   =============================================== */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

body.dark-mode .floating-btn {
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
    color: #ffffff;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

#scroll-to-top {
    display: none;
}

#scroll-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   NOTIFICATIONS & TOASTS
   =============================================== */

#notifications-container {
    margin-bottom: 20px;
}

.notification-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-banner i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.notification-content {
    flex: 1;
}

.notification-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-close:hover {
    background: rgba(255,255,255,0.3);
}

.toast {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: var(--secondary-color);
    border-bottom: none;
}

body.dark-mode .toast-header {
    background: linear-gradient(135deg, #555555 0%, #666666 100%);
    color: #ffffff;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        margin-top: 20px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .filters-container,
    .bulk-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn,
    .action-btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .product-image {
        height: 250px;
    }
}

/* ===============================================
   LOADING & ANIMATIONS
   =============================================== */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .loading-spinner {
    border: 4px solid rgba(136, 136, 136, 0.3);
    border-top-color: #888888;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

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

/* Print styles */
@media print {
    .toolbar-section,
    .sidebar,
    .floating-buttons,
    .product-favorite,
    .product-compare,
    .product-checkbox {
        display: none !important;
    }
}