/* Modern CSS Variables - Clean White Theme */
:root {
    /* Clean White Color Palette */
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary: #666666;
    --accent: #f8f9fa;
    --accent-dark: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    
    /* Clean White Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Clean Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Layout */
    --header-height: 80px;
    --container-max-width: 1400px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Content */
.store-main {
    padding-top: 0;
    min-height: 100vh;
    background: var(--white);
}

/* .store-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
} */

/* Category Scroll */
.category-scroll-container {
    margin-bottom: var(--space-12);
    position: relative;
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
}

.category-scroll {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--space-4) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    max-width: 160px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.category-card.active {
    border-color: var(--gray-900);
    box-shadow: var(--shadow-lg);
    background: var(--gray-900);
    color: var(--white);
}

.category-card-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-image .category-icon {
    font-size: 2rem;
    color: var(--gray-600);
}

.category-card.active .category-icon {
    color: var(--white);
}

.category-card-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

/* Legacy category buttons for backward compatibility */
.category-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.category-btn.active {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.scroll-arrow:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

/* Search and Sort Section */
.search-sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    gap: var(--space-6);
    flex-wrap: wrap;
}

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

.search-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    padding-right: 3rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    background: var(--white);
    color: var(--gray-800);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    border-color: var(--gray-400);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05), var(--shadow-md);
}

.search-btn {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-900);
    color: var(--white);
    border: none;
    padding: var(--space-2);
    border-radius: 50%;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.sort-select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-800);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.sort-select:focus {
    border-color: var(--gray-400);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05), var(--shadow-md);
}

.view-options {
    display: flex;
    gap: var(--space-2);
}

.view-btn {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.view-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.view-btn.active {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    box-shadow: var(--shadow-md);
}

/* Products Section */
.products-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    gap: var(--space-6);
}

.header-left h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.results-info {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.product-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--gray-300);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-50);
    flex-shrink: 0;
}

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

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

.product-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 2;
}

.product-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.product-badge.sale {
    background: #dc2626;
    color: white;
}

.product-badge.new {
    background: #059669;
    color: white;
}

.product-badge.hot {
    background: #d97706;
    color: white;
}

.stock-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
    z-index: 2;
}

.stock-badge.in-stock {
    background: #059669;
    color: white;
}

.stock-badge.out-of-stock {
    background: #dc2626;
    color: white;
}

.product-actions-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.action-btn:hover {
    background: var(--gray-900);
    color: white;
    transform: scale(1.1);
}

.action-btn.wishlist:hover {
    background: #dc2626;
}

.action-btn.quick-view:hover {
    background: #059669;
}

.action-btn.share:hover {
    background: #d97706;
    color: white;
}

.product-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.original-price {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.discount-percentage {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--gray-900);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-height: 44px;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
    padding: 0.5rem 0.75rem;
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 36px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Loading State */
.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-20);
    color: var(--gray-500);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--gray-900);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

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

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

/* Floating Cart */
.floating-cart-button {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    background: var(--gray-900);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.floating-cart-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border: 2px solid var(--white);
    transition: transform 0.2s ease;
}

/* Enhanced cart button feedback */
.cart-button.has-items,
.cart-icon.has-items {
    position: relative;
    animation: cartPulse 0.6s ease;
}

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

.cart-button.has-items::after,
.cart-icon.has-items::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: cartRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes cartRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Quick View Side Panel */
.quick-view-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    right: 0;
    top: 0;
    width: 450px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.quick-view-modal.show {
    transform: translateX(0);
}

.quick-view-content {
    background-color: #ffffff;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Quick View Side Panel Sections */
.quick-view-image-section {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 300px;
    position: relative;
    flex-shrink: 0;
}

.quick-view-image-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.quick-view-info-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

.quick-view-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.3;
}

.quick-view-price {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 20px;
}

.quick-view-original-price {
    font-size: 18px;
    color: #6c757d;
    text-decoration: line-through;
    margin-right: 10px;
}

.quick-view-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.quick-view-features li {
    padding: 8px 0;
    color: #495057;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.quick-view-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.close-quick-view {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-quick-view:hover {
    color: #000;
}

.quick-view-loading {
    text-align: center;
    padding: 40px 20px;
}

.quick-view-loading i {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
}

.quick-view-loading p {
    color: #6c757d;
    font-size: 16px;
}

.quick-view-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    justify-content: flex-start;
}

.quick-view-actions .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-view-actions .btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.quick-view-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.quick-view-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.quick-view-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.quick-view-actions .btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.quick-view-actions .btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.quick-view-actions .btn-buy-now {
    background: #28a745;
    color: white;
    border: none;
}

.quick-view-actions .btn-buy-now:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.quick-view-actions .btn-outline {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.quick-view-actions .btn-outline:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Mobile responsive for floating cart button */
@media (max-width: 768px) {
    .floating-cart-button {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
        bottom: var(--space-4);
        left: var(--space-4);
    }
    
    .floating-cart-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .floating-cart-button {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-base);
        bottom: var(--space-3);
        left: var(--space-3);
    }
    
    .floating-cart-count {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -5px;
        right: -5px;
    }
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-2xl);
    z-index: 3000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-sidebar-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.cart-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.cart-sidebar-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    background: var(--white);
    transition: all var(--transition-base);
}

.cart-sidebar-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.cart-sidebar-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-sidebar-item-details {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-item-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-sidebar-item-price {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.cart-sidebar-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    transition: all var(--transition-base);
}

.quantity-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

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

.quantity-display {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    min-width: 20px;
    text-align: center;
}

.cart-sidebar-item-remove {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.cart-sidebar-item-remove:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.cart-sidebar-item-remove:active {
    transform: scale(0.95);
}

.cart-sidebar-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--space-4);
    background: var(--gray-50);
}

.cart-total-section {
    margin-bottom: var(--space-4);
}

.cart-subtotal,
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.cart-subtotal {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.cart-total {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-2);
}

.cart-sidebar-actions {
    display: flex;
    gap: var(--space-3);
}

.btn-clear-cart {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-200);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-clear-cart:hover {
    background: var(--gray-300);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.btn-checkout {
    flex: 2;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Empty cart state */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    text-align: center;
    color: var(--gray-500);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    color: var(--gray-300);
}

.cart-empty-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.cart-empty-subtext {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

/* Mobile responsive for cart sidebar */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar-header {
        padding: var(--space-4);
    }
    
    .cart-sidebar-items {
        padding: var(--space-3);
    }
    
    .cart-sidebar-item {
        padding: var(--space-3);
    }
    
    .cart-sidebar-footer {
        padding: var(--space-3);
    }
    
    .cart-sidebar-actions {
        flex-direction: column;
    }
    
    .btn-clear-cart,
    .btn-checkout {
        width: 100%;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--gray-700);
}

.btn-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.btn-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Modern Notification System */
.notification {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    width: 380px;
    max-width: calc(100vw - var(--space-12));
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: 3000;
    transform: translateX(100%) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    position: relative;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
}

.notification-message {
    flex: 1;
    min-width: 0;
}

.notification-message p {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-800);
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notification-progress {
    height: 3px;
    background: var(--gray-200);
    transition: width 4s linear;
}

/* Notification Types */
.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success .notification-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.notification-success .notification-progress {
    background: var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

.notification-error .notification-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
}

.notification-error .notification-progress {
    background: var(--error);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-warning .notification-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.notification-warning .notification-progress {
    background: var(--warning);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-info .notification-icon {
    background: rgba(26, 26, 26, 0.1);
    color: var(--primary);
}

.notification-info .notification-progress {
    background: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        width: auto;
        max-width: none;
    }
    
    .notification-content {
        padding: var(--space-4);
    }
    
    .notification-message p {
        font-size: var(--font-size-xs);
    }
}

/* Product Detail Modal Content */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    min-height: 500px;
}

/* Product Image Section */
.product-detail-image-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-detail-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-50);
    box-shadow: var(--shadow-lg);
}

.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.product-detail-image:hover img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

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

.stock-badge.out-of-stock {
    background: var(--error);
    color: var(--white);
}

/* Product Information Section */
.product-detail-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-4);
}

/* Product Header */
.product-detail-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.product-category-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.product-detail-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.product-detail-price {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.current-price {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
}

/* Product Description */
.product-detail-description {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.product-detail-description h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.product-detail-description p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Product Specifications */
.product-detail-specs {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.product-detail-specs h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--gray-200);
}

.specs-grid {
    display: grid;
    gap: var(--space-3);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.spec-item:hover {
    background: var(--gray-100);
}

.spec-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.spec-value {
    color: var(--gray-600);
    font-weight: 500;
}

/* Product Actions */
.product-detail-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.product-detail-actions .btn-primary {
    flex: 1;
    padding: var(--space-4);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.product-detail-actions .btn-secondary {
    flex: 1;
    padding: var(--space-4);
    font-size: var(--font-size-base);
    font-weight: 600;
}

/* Product Actions Overlay */
.product-actions-overlay {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.action-btn:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.action-btn.wishlist {
    color: var(--error);
}

/* Responsive Design */
@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .product-image {
        height: 240px;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .product-image {
        height: 260px;
    }
}

@media (max-width: 639px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

