/* Market Theme Styles - Uses CSS Variables */

.market-new-container {
    font-family: var(--theme-font-family, 'Inter, system-ui, sans-serif');
    font-size: var(--theme-font-size-base, 16px);
    color: var(--theme-text, #1e293b);
    background-color: var(--theme-background, #ffffff);
    min-height: 100vh;
}

/* Top Bar */
.market-topbar {
    background-color: var(--topbar-bg-color, #ffffff);
    color: var(--topbar-text-color, #212529);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    transition: all var(--animation-speed, 300ms) ease;
    position: relative;
    z-index: 1000;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for topbar but keep functionality */
.market-topbar::-webkit-scrollbar {
    height: 0;
    display: none;
}

.market-topbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sticky Header */
.market-topbar.sticky,
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    animation: slideDown var(--animation-speed, 300ms) ease-out;
}

.market-topbar.sticky.shadow,
.navbar.sticky.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sticky Header Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.market-topbar.hidden,
.navbar.hidden {
    animation: slideUp var(--animation-speed, 300ms) ease-out;
    transform: translateY(-100%);
}

/* Compact Mode */
.market-new-container.compact-mode .market-topbar {
    height: calc(var(--topbar-height, 60px) * 0.75) !important;
    min-height: calc(var(--topbar-height, 60px) * 0.75) !important;
}

.market-new-container.compact-mode .market-title {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.5) !important;
}

.market-new-container.compact-mode .market-search {
    width: 200px;
}

.market-new-container.compact-mode .market-search input {
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
}

.market-new-container.compact-mode .view-toggle .view-btn,
.market-new-container.compact-mode .btn {
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
}

.market-new-container.compact-mode .category-filter-bar,
.market-new-container.compact-mode .brand-filter-bar {
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) 0;
}

.market-new-container.compact-mode .filter-chip {
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
}

.market-topbar .market-title {
    color: var(--topbar-text-color, #212529);
}

/* Category/Brand Filter Bars */
.category-filter-bar,
.brand-filter-bar {
    background: var(--theme-background, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 2);
    padding: calc(var(--theme-spacing-unit, 8px) * 1) 0;
}

.filter-chips-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--theme-spacing-unit, 8px) * 0.5);
}

.filter-chips-container::-webkit-scrollbar {
    height: 4px;
}

.filter-chips-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.filter-chips-container::-webkit-scrollbar-thumb {
    background: var(--theme-primary, #3b82f6);
    border-radius: 2px;
}

.filter-label {
    white-space: nowrap;
    flex-shrink: 0;
}

.category-filter-bar .filter-chip,
.brand-filter-bar .filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
    padding: calc(var(--theme-spacing-unit, 8px) * 0.75) calc(var(--theme-spacing-unit, 8px) * 1.5);
    border-radius: calc(var(--theme-border-radius, 8px) * 2);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
}

/* Header */
.market-header {
    background: var(--theme-background, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 2);
}

.market-title {
    font-size: calc(var(--theme-font-size-base, 16px) * 2);
    font-weight: 700;
    color: var(--theme-primary, #3b82f6);
    margin: 0;
}

.market-search {
    position: relative;
    width: 300px;
}

.market-search input {
    padding-right: 40px;
    border-radius: var(--theme-border-radius, 8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-secondary, #64748b);
}

.view-toggle .view-btn {
    border-radius: var(--theme-border-radius, 8px);
    transition: all var(--theme-animation-speed, 0.3s);
}

.view-toggle .view-btn.active {
    background-color: var(--theme-primary, #3b82f6);
    color: white;
    border-color: var(--theme-primary, #3b82f6);
}

/* Promotions Banner */
.promotions-banner {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-accent, #22c55e) 100%);
    color: white;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 3);
}

.promotions-label {
    font-weight: 600;
    white-space: nowrap;
}

.promotion-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: calc(var(--theme-spacing-unit, 8px) * 1.5) calc(var(--theme-spacing-unit, 8px) * 2);
    border-radius: calc(var(--theme-border-radius, 8px) * 2);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--theme-animation-speed, 0.3s);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--theme-spacing-unit, 8px) * 0.5);
}

.promotion-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.promo-value {
    font-weight: 600;
}

/* Filters Sidebar */
.filters-sidebar {
    padding-right: calc(var(--theme-spacing-unit, 8px) * 2);
}

.filters-card {
    background: var(--filter-sidebar-bg-color, var(--theme-background, #ffffff));
    border-radius: var(--theme-border-radius, 8px);
    padding: var(--filter-sidebar-padding, calc(var(--theme-spacing-unit, 8px) * 2));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: calc(var(--theme-spacing-unit, 8px) * 2);
    border: var(--filter-sidebar-border-width, 1px) var(--filter-sidebar-border-style, solid) var(--filter-sidebar-border-color, #e5e7eb);
}

/* Filter Sidebar Background Types */
.filters-card[data-bg-type="gradient"] {
    background: var(--filter-sidebar-gradient, var(--filter-sidebar-bg-color, #ffffff));
}

.filters-card[data-bg-type="glassmorphism"] {
    background: rgba(255, 255, 255, var(--filter-sidebar-glass-opacity, 0.8));
    backdrop-filter: blur(var(--filter-sidebar-glass-blur, 10px));
    -webkit-backdrop-filter: blur(var(--filter-sidebar-glass-blur, 10px));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filters-title {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.25);
    font-weight: 600;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 2);
    color: var(--theme-text, #1e293b);
}

.filter-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 3);
}

.filter-label {
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
    font-weight: 600;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 1.5);
    color: var(--theme-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: calc(var(--theme-spacing-unit, 8px) * 1);
}

.filter-chip {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: calc(var(--theme-spacing-unit, 8px) * 1) calc(var(--theme-spacing-unit, 8px) * 1.5);
    border-radius: var(--theme-border-radius, 8px);
    text-align: left;
    transition: all var(--theme-animation-speed, 0.3s);
    cursor: pointer;
    color: var(--theme-text, #1e293b);
}

.filter-chip:hover,
.filter-chip.active {
    background-color: var(--theme-primary, #3b82f6);
    color: white;
    border-color: var(--theme-primary, #3b82f6);
}

.price-range {
    display: flex;
    gap: calc(var(--theme-spacing-unit, 8px) * 1);
    align-items: center;
}

.price-range input {
    flex: 1;
    border-radius: var(--theme-border-radius, 8px);
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: var(--grid-gap, calc(var(--theme-spacing-unit, 8px) * 2));
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 3);
}

.products-grid[data-view="grid"] {
    grid-template-columns: repeat(var(--theme-grid-columns, 4), 1fr);
}

.products-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

@media (max-width: 1200px) {
    .products-grid[data-view="grid"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid[data-view="grid"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid[data-view="grid"] {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: var(--product-card-bg-color, var(--theme-background, #ffffff));
    border-radius: var(--theme-border-radius, 8px);
    overflow: hidden;
    transition: all var(--theme-animation-speed, 0.3s);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--product-card-padding, 0);
    border: var(--product-card-border-width, 0) var(--product-card-border-style, solid) var(--product-card-border-color, #e5e7eb);
}

/* Product Card Background Types */
.product-card[data-bg-type="gradient"] {
    background: var(--product-card-gradient, var(--product-card-bg-color, #ffffff));
}

.product-card[data-bg-type="glassmorphism"] {
    background: rgba(255, 255, 255, var(--product-card-glass-opacity, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Style Variants */
.product-card[data-card-style="elevated"],
.product-card[data-card-variant="elevated"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card[data-card-style="flat"],
.product-card[data-card-variant="flat"] {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-card[data-card-style="outlined"],
.product-card[data-card-variant="outlined"] {
    box-shadow: none;
    border: 2px solid var(--theme-primary, #3b82f6);
}

.product-card[data-card-variant="gradient"] {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-accent, #22c55e) 100%);
    color: white;
}

.product-card[data-card-variant="glassmorphism"] {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card[data-card-variant="neumorphism"] {
    background: #f0f0f0;
    box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
    border: none;
}

.product-card[data-card-variant="bordered"] {
    border: 2px solid var(--theme-primary, #3b82f6);
    box-shadow: none;
}

.product-card[data-card-variant="minimal"] {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-4px) scale(var(--product-card-hover-scale, 1.05));
    box-shadow: var(--product-card-hover-shadow, 0 4px 16px rgba(0, 0, 0, 0.15));
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--theme-animation-speed, 0.3s);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    color: var(--theme-secondary, #64748b);
    font-size: calc(var(--theme-font-size-base, 16px) * 3);
}

.featured-badge {
    position: absolute;
    top: calc(var(--theme-spacing-unit, 8px) * 1);
    right: calc(var(--theme-spacing-unit, 8px) * 1);
    background: var(--theme-accent, #22c55e);
    color: white;
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
    border-radius: var(--theme-border-radius, 8px);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
    font-weight: 600;
}

.product-info {
    padding: var(--product-card-padding, calc(var(--theme-spacing-unit, 8px) * 2));
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.125);
    font-weight: 600;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    color: var(--theme-text, #1e293b);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: calc(var(--theme-spacing-unit, 8px) * 1);
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    flex-wrap: wrap;
}

.product-category,
.product-brand {
    font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
    padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(var(--theme-border-radius, 8px) * 0.5);
    color: var(--theme-secondary, #64748b);
}

.product-price {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.25);
    font-weight: 700;
    color: var(--theme-primary, #3b82f6);
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 1.5);
}

.add-to-cart-btn {
    margin-top: auto;
    width: 100%;
    background-color: var(--theme-primary, #3b82f6);
    border-color: var(--theme-primary, #3b82f6);
    border-radius: var(--theme-border-radius, 8px);
    transition: all var(--theme-animation-speed, 0.3s);
}

.add-to-cart-btn:hover {
    background-color: var(--theme-accent, #22c55e);
    border-color: var(--theme-accent, #22c55e);
    transform: scale(1.02);
}

/* List View */
.products-grid[data-view="list"] .product-card {
    flex-direction: row;
    max-width: 100%;
}

.products-grid[data-view="list"] .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid[data-view="list"] .product-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
}

.products-grid[data-view="list"] .product-title {
    flex: 1;
}

.products-grid[data-view="list"] .product-price {
    margin: 0;
}

.products-grid[data-view="list"] .add-to-cart-btn {
    width: auto;
    margin: 0;
}

/* Featured Products Slider */
.featured-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 4);
}

.featured-section-top {
    width: 100%;
    margin-bottom: 0;
    position: relative;
}

.featured-section-top .featured-products-slider-wrapper {
    width: 80%;
    max-width: 80%;
    padding: 0 10%;
    margin: 0 auto;
}

.featured-section-top .featured-product-card {
    min-height: 600px;
    height: 600px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    border: none;
    box-shadow: none;
}

.featured-section-top .featured-product-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-section-top .featured-products-slider {
    aspect-ratio: 16/9;
    min-height: 400px;
}

.featured-section-top .featured-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.section-title {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.5);
    font-weight: 700;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 2);
    color: var(--theme-text, #1e293b);
}

.featured-products-slider-wrapper {
    position: relative;
    width: 80%;
    max-width: 80%;
    padding: 0 10%;
    margin: 0 auto;
}

.featured-products-slider {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.featured-products-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.featured-product-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
}

.featured-product-slide.active {
    opacity: 1;
    position: relative;
}

.featured-product-card {
    border: 2px solid #ffc107;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    height: 100%;
}

.featured-product-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-images-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-images-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.product-image-slide.active {
    opacity: 1;
    z-index: 1;
}

.featured-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-product-image-container:hover .featured-product-image {
    transform: scale(1.05);
}

.featured-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 30px 30px;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.featured-product-overlay-content {
    color: white;
    text-align: center;
}

.featured-product-title {
    color: white;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.featured-product-price {
    color: #60a5fa !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem !important;
}

.featured-product-overlay .btn {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.featured-product-overlay .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.featured-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-slider-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.featured-slider-prev {
    left: 10px;
}

.featured-slider-next {
    right: 10px;
}

.featured-slider-btn i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Category View Grid */
.category-view-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 4);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
}

/* Category Scroll Container */
.category-scroll-container {
    border: 2px solid var(--theme-primary, #3b82f6);
    border-radius: var(--theme-border-radius, 8px);
    padding: calc(var(--theme-spacing-unit, 8px) * 2);
    margin: calc(var(--theme-spacing-unit, 8px) * 2) 0;
    background: var(--theme-background, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Scroll Navigation Buttons */
.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-primary, #3b82f6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--theme-animation-speed, 0.3s);
    opacity: 0.8;
}

.category-scroll-btn:hover {
    opacity: 1;
    background: var(--theme-accent, #22c55e);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.category-scroll-prev {
    left: 10px;
}

.category-scroll-next {
    right: 10px;
}

.category-scroll-btn.hidden {
    display: none;
}

/* Scroll Fade Effects */
.category-scroll-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--theme-animation-speed, 0.3s);
}

.category-scroll-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--theme-background, #ffffff), transparent);
    opacity: 0;
}

.category-scroll-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--theme-background, #ffffff), transparent);
    opacity: 0;
}

.category-scroll-fade-left.visible {
    opacity: 1;
}

.category-scroll-fade-right.visible {
    opacity: 1;
}

.category-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
    padding-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.category-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.category-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--theme-primary, #3b82f6);
    border-radius: 4px;
}

.category-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--theme-accent, #22c55e);
}

.category-scroll-wrapper .category-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.category-card {
    background: var(--category-card-bg-color, var(--theme-background, #ffffff));
    border-radius: var(--theme-border-radius, 8px);
    overflow: hidden;
    transition: all var(--theme-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: var(--category-card-border-width, 1px) var(--category-card-border-style, solid) var(--category-card-border-color, #e5e7eb);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Enhanced Card Design - Gradients and Shadows */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--theme-animation-speed, 0.3s);
    pointer-events: none;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-primary, #3b82f6);
}

/* Category Badges */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: calc(var(--theme-border-radius, 8px) * 2);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.category-badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-badge i {
    font-size: 0.85em;
}

/* Category Card Background Types */
.category-card[data-bg-type="gradient"] {
    background: var(--category-card-gradient, var(--category-card-bg-color, #ffffff));
}

.category-card[data-bg-type="glassmorphism"] {
    background: rgba(255, 255, 255, var(--category-card-glass-opacity, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-card-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-accent, #22c55e) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all var(--theme-animation-speed, 0.3s);
}

.category-card:hover .category-card-image {
    background: linear-gradient(135deg, var(--theme-accent, #22c55e) 0%, var(--theme-primary, #3b82f6) 100%);
}

/* Enhanced Category Icons */
.category-card-fallback-icon {
    font-size: 4rem !important;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--theme-animation-speed, 0.3s);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.category-card:hover .category-card-fallback-icon {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

.category-card-img,
.category-card-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--theme-animation-speed, 0.3s);
}

.category-card-icon {
    object-fit: contain;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
}

.category-card:hover .category-card-img,
.category-card:hover .category-card-icon {
    transform: scale(1.1);
}

/* Empty State Overlay */
.category-empty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    gap: 8px;
}

.category-empty-overlay i {
    font-size: 2rem;
    opacity: 0.8;
}

.category-empty-overlay span {
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
    font-weight: 500;
}

.category-card-empty {
    opacity: 0.7;
    border-style: dashed;
}

.category-card-empty:hover {
    opacity: 0.9;
}

.category-count-empty {
    color: var(--theme-secondary, #64748b);
    font-style: italic;
}

/* Brand Cards - Same design as categories */
.brand-view-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 4);
}

.brand-scroll-container {
    border: 2px solid var(--theme-primary, #3b82f6);
    border-radius: var(--theme-border-radius, 8px);
    padding: calc(var(--theme-spacing-unit, 8px) * 2);
    margin: calc(var(--theme-spacing-unit, 8px) * 2) 0;
    background: var(--theme-background, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.brand-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-primary, #3b82f6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--theme-animation-speed, 0.3s);
    opacity: 0.8;
}

.brand-scroll-btn:hover {
    opacity: 1;
    background: var(--theme-accent, #22c55e);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.brand-scroll-prev {
    left: 10px;
}

.brand-scroll-next {
    right: 10px;
}

.brand-scroll-btn.hidden {
    display: none;
}

.brand-scroll-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--theme-animation-speed, 0.3s);
}

.brand-scroll-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--theme-background, #ffffff), transparent);
    opacity: 0;
}

.brand-scroll-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--theme-background, #ffffff), transparent);
    opacity: 0;
}

.brand-scroll-fade-left.visible {
    opacity: 1;
}

.brand-scroll-fade-right.visible {
    opacity: 1;
}

.brand-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
    padding-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.brand-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.brand-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.brand-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--theme-primary, #3b82f6);
    border-radius: 4px;
}

.brand-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--theme-accent, #22c55e);
}

.brand-scroll-wrapper .brand-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.brand-card {
    background: var(--category-card-bg-color, var(--theme-background, #ffffff));
    border-radius: var(--theme-border-radius, 8px);
    overflow: hidden;
    transition: all var(--theme-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: var(--category-card-border-width, 1px) var(--category-card-border-style, solid) var(--category-card-border-color, #e5e7eb);
    position: relative;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--theme-animation-speed, 0.3s);
    pointer-events: none;
    z-index: 1;
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-primary, #3b82f6);
}

.brand-card.active {
    border-color: var(--theme-primary, #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.brand-card-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-accent, #22c55e) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all var(--theme-animation-speed, 0.3s);
}

.brand-card:hover .brand-card-image {
    background: linear-gradient(135deg, var(--theme-accent, #22c55e) 0%, var(--theme-primary, #3b82f6) 100%);
}

.brand-card-fallback-icon {
    font-size: 4rem !important;
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--theme-animation-speed, 0.3s);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-card:hover .brand-card-fallback-icon {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

.brand-card-img,
.brand-card-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--theme-animation-speed, 0.3s);
}

.brand-card-icon {
    object-fit: contain;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
}

.brand-card:hover .brand-card-img,
.brand-card:hover .brand-card-icon {
    transform: scale(1.1);
}

.brand-card-info {
    padding: var(--category-card-padding, calc(var(--theme-spacing-unit, 8px) * 2));
    text-align: center;
}

.brand-card-name {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.125);
    font-weight: 600;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 0.5);
    color: var(--theme-text, #1e293b);
}

/* Category card active state */
.category-card.active {
    border-color: var(--theme-primary, #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.category-card-info {
    padding: var(--category-card-padding, calc(var(--theme-spacing-unit, 8px) * 2));
    text-align: center;
}

.category-card-name {
    font-size: calc(var(--theme-font-size-base, 16px) * 1.125);
    font-weight: 600;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 0.5);
    color: var(--theme-text, #1e293b);
}

.category-card-count {
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
    color: var(--theme-secondary, #64748b);
}

/* Products by Category Horizontal Scroll */
.products-by-category-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 4);
}

.category-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 2);
}

.category-products-scroll {
    display: flex;
    overflow-x: auto;
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
    padding-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-products-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-products-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.category-products-scroll::-webkit-scrollbar-thumb {
    background: var(--theme-primary, #3b82f6);
    border-radius: 3px;
}

.category-products-scroll .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

/* Deals Section */
.deals-section {
    margin-bottom: calc(var(--theme-spacing-unit, 8px) * 4);
}

.deals-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: calc(var(--theme-spacing-unit, 8px) * 2);
    padding-bottom: calc(var(--theme-spacing-unit, 8px) * 1);
    scroll-behavior: smooth;
}

.deals-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.deals-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.deals-scroll-container::-webkit-scrollbar-thumb {
    background: var(--theme-primary, #3b82f6);
    border-radius: 3px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.featured-card {
    border: 2px solid var(--theme-primary, #3b82f6);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Products Count */
.products-count {
    color: var(--theme-secondary, #64748b);
    font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
}

/* Category Loading States */
.category-skeleton {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    background: var(--theme-background, #ffffff);
    border-radius: var(--theme-border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: shimmer 1.5s infinite;
}

.category-skeleton-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.category-skeleton-info {
    padding: calc(var(--theme-spacing-unit, 8px) * 2);
}

.category-skeleton-name {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: shimmer 1.5s infinite;
}

.category-skeleton-count {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin: 0 auto;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .featured-products-slider-wrapper {
        width: 80%;
        max-width: 80%;
        padding: 0 10%;
    }
    
    .featured-product-image-container {
        aspect-ratio: 16/9;
        min-height: 350px;
    }
    
    .featured-product-title {
        font-size: 1.5rem;
    }
    
    .featured-product-price {
        font-size: 2rem !important;
    }
    
    .featured-product-overlay {
        padding: 30px 20px 20px;
    }
    
    .featured-slider-btn {
        width: 50px;
        height: 50px;
    }
    
    .featured-slider-btn i {
        font-size: 1.3rem;
    }
    
    /* Category Responsive */
    .category-scroll-container {
        padding: calc(var(--theme-spacing-unit, 8px) * 1.5);
    }
    
    .category-scroll-wrapper .category-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .category-card-image {
        height: 140px;
        min-height: 140px;
    }
    
    .category-card-fallback-icon {
        font-size: 3rem !important;
    }
    
    .category-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .category-scroll-prev {
        left: 5px;
    }
    
    .category-scroll-next {
        right: 5px;
    }
    
    .category-badge {
        font-size: calc(var(--theme-font-size-base, 16px) * 0.7);
        padding: 3px 8px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 576px) {
    .category-scroll-wrapper .category-card {
        min-width: 130px;
        max-width: 130px;
    }
    
    .category-card-image {
        height: 120px;
        min-height: 120px;
    }
    
    .category-card-fallback-icon {
        font-size: 2.5rem !important;
    }
    
    .category-card-name {
        font-size: calc(var(--theme-font-size-base, 16px) * 1);
    }
    
    .category-card-count {
        font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
    }
    
    /* Brand Responsive */
    .brand-scroll-container {
        padding: calc(var(--theme-spacing-unit, 8px) * 1.5);
    }
    
    .brand-scroll-wrapper .brand-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .brand-card-image {
        height: 140px;
        min-height: 140px;
    }
    
    .brand-card-fallback-icon {
        font-size: 3rem !important;
    }
    
    .brand-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .brand-scroll-prev {
        left: 5px;
    }
    
    .brand-scroll-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .brand-scroll-wrapper .brand-card {
        min-width: 130px;
        max-width: 130px;
    }
    
    .brand-card-image {
        height: 120px;
        min-height: 120px;
    }
    
    .brand-card-fallback-icon {
        font-size: 2.5rem !important;
    }
    
    .brand-card-name {
        font-size: calc(var(--theme-font-size-base, 16px) * 1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .market-topbar {
        padding: calc(var(--theme-spacing-unit, 8px) * 1) 0;
    }
    
    .market-topbar .container-fluid {
        padding-left: calc(var(--theme-spacing-unit, 8px) * 1);
        padding-right: calc(var(--theme-spacing-unit, 8px) * 1);
    }
    
    .market-topbar .d-flex {
        flex-wrap: wrap;
        gap: calc(var(--theme-spacing-unit, 8px) * 1) !important;
    }
    
    .market-title {
        font-size: calc(var(--theme-font-size-base, 16px) * 1.25) !important;
        margin: 0;
    }
    
    .market-search {
        width: 100%;
        max-width: 200px;
        order: 3;
    }
    
    .market-topbar .view-toggle,
    .market-topbar .btn {
        padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
        font-size: calc(var(--theme-font-size-base, 16px) * 0.875);
    }
    
    .category-filter-bar,
    .brand-filter-bar {
        padding: calc(var(--theme-spacing-unit, 8px) * 0.5) 0;
    }
    
    .filter-label {
        font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
        padding: 0 calc(var(--theme-spacing-unit, 8px) * 1);
    }
    
    .filter-chip {
        padding: calc(var(--theme-spacing-unit, 8px) * 0.5) calc(var(--theme-spacing-unit, 8px) * 1);
        font-size: calc(var(--theme-font-size-base, 16px) * 0.75);
    }
    
    .featured-products-slider-wrapper {
        width: 80%;
        max-width: 80%;
        padding: 0 10%;
    }
    
    .featured-product-image-container {
        aspect-ratio: 4/3;
        min-height: 300px;
    }
    
    .featured-product-title {
        font-size: 1.3rem;
    }
    
    .featured-product-price {
        font-size: 1.8rem !important;
    }
    
    .featured-product-overlay {
        padding: 25px 15px 15px;
    }
    
    .featured-product-overlay .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .featured-slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .market-topbar {
        height: auto !important;
        min-height: auto !important;
        padding: calc(var(--theme-spacing-unit, 8px) * 1) 0;
    }
    
    .market-topbar .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .market-title {
        font-size: calc(var(--theme-font-size-base, 16px) * 1.125) !important;
        width: 100%;
        margin-bottom: calc(var(--theme-spacing-unit, 8px) * 0.5);
    }
    
    .market-search {
        width: 100%;
        max-width: 100%;
        order: 2;
        margin-bottom: calc(var(--theme-spacing-unit, 8px) * 0.5);
    }
    
    .market-topbar > .container-fluid > .d-flex > .d-flex:last-child {
        width: 100%;
        justify-content: space-between;
        order: 3;
    }
    
    .view-toggle .btn {
        padding: calc(var(--theme-spacing-unit, 8px) * 0.5);
        min-width: 40px;
    }
    
    .category-filter-bar .d-flex,
    .brand-filter-bar .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--theme-spacing-unit, 8px) * 0.5);
    }
    
    .filter-label {
        width: 100%;
        padding: 0 calc(var(--theme-spacing-unit, 8px) * 1);
    }
    
    .filter-chips-container {
        width: 100%;
        padding: 0 calc(var(--theme-spacing-unit, 8px) * 1);
    }
    
    .featured-products-slider-wrapper {
        width: 80%;
        max-width: 80%;
        padding: 0 10%;
    }
    
    .featured-product-image-container {
        aspect-ratio: 1/1;
        min-height: 250px;
    }
    
    .featured-product-title {
        font-size: 1.1rem;
    }
    
    .featured-product-price {
        font-size: 1.5rem !important;
    }
    
    .featured-product-overlay {
        padding: 20px 10px 10px;
    }
    
    .featured-product-overlay .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .featured-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .featured-slider-btn i {
        font-size: 1.1rem;
    }
    
    .featured-slider-prev {
        left: 5px;
    }
    
    .featured-slider-next {
        right: 5px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced Card Variants - Additional Styles */
.product-card[data-card-variant="neumorphism"] .product-title,
.product-card[data-card-variant="neumorphism"] .product-price {
    color: var(--theme-text, #1e293b);
}

.product-card[data-card-variant="gradient"] .product-title,
.product-card[data-card-variant="gradient"] .product-price,
.product-card[data-card-variant="gradient"] .product-meta {
    color: white;
}

.product-card[data-card-variant="gradient"] .add-to-cart-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.product-card[data-card-variant="gradient"] .add-to-cart-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Neumorphism Hover Effect */
.product-card[data-card-variant="neumorphism"]:hover {
    box-shadow: 12px 12px 24px #bebebe, -12px -12px 24px #ffffff;
}

/* Glassmorphism Text Contrast */
.product-card[data-card-variant="glassmorphism"] .product-title,
.product-card[data-card-variant="glassmorphism"] .product-price {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Minimal Card Hover */
.product-card[data-card-variant="minimal"]:hover {
    border-color: var(--theme-primary, #3b82f6);
    background: rgba(var(--theme-primary-rgb, 59, 130, 246), 0.05);
}

/* Enhanced Hover Effects for All Cards */
.product-card {
    transition: transform var(--theme-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--theme-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--theme-animation-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scale Animation */
@keyframes cardHover {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-4px) scale(var(--product-card-hover-scale, 1.05));
    }
}

/* Gradient Direction Helpers */
.filters-card[data-gradient-direction="to top"],
.product-card[data-gradient-direction="to top"],
.category-card[data-gradient-direction="to top"] {
    background: linear-gradient(to top, var(--gradient-colors));
}

.filters-card[data-gradient-direction="to right"],
.product-card[data-gradient-direction="to right"],
.category-card[data-gradient-direction="to right"] {
    background: linear-gradient(to right, var(--gradient-colors));
}

.filters-card[data-gradient-direction="to left"],
.product-card[data-gradient-direction="to left"],
.category-card[data-gradient-direction="to left"] {
    background: linear-gradient(to left, var(--gradient-colors));
}

.filters-card[data-gradient-direction="to bottom right"],
.product-card[data-gradient-direction="to bottom right"],
.category-card[data-gradient-direction="to bottom right"] {
    background: linear-gradient(to bottom right, var(--gradient-colors));
}

.filters-card[data-gradient-direction="to top right"],
.product-card[data-gradient-direction="to top right"],
.category-card[data-gradient-direction="to top right"] {
    background: linear-gradient(to top right, var(--gradient-colors));
}

/* Glassmorphism Fallback for Older Browsers */
@supports not (backdrop-filter: blur(10px)) {
    .filters-card[data-bg-type="glassmorphism"],
    .product-card[data-bg-type="glassmorphism"],
    .category-card[data-bg-type="glassmorphism"],
    .product-card[data-card-variant="glassmorphism"] {
        background: rgba(255, 255, 255, 0.95);
    }
}

