.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: auto;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--bg-secondary);
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

.filter-sidebar {
    position: sticky;
    top: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.category-card {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.category-card:hover a {
    color: var(--text-light);
}

.theme-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.search-bar {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

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

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loader.active {
    display: block;
}

.spinner {
    border: 3px solid var(--bg-secondary);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.breadcrumb {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--link-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.product-features {
    margin-top: 1rem;
}

.product-feature {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.product-feature:last-child {
    border-bottom: none;
}

.product-feature-name {
    font-weight: 600;
    color: var(--text-muted);
}

.product-feature-value {
    font-weight: 500;
}

.sidebar-nav {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 1rem;
}

.sidebar-nav-item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.sidebar-nav-item:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.sidebar-nav-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .filter-sidebar {
        position: relative;
        top: 0;
    }
    
    .product-image {
        height: 150px;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Filter Components */
.filter-section {
    border-bottom: 1px solid rgb(229 231 235 / 0.5);
}

.dark .filter-section {
    border-bottom-color: rgb(51 65 85 / 0.5);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.5rem;
}

.filter-section-header:hover {
    background-color: rgb(249 250 251 / 0.5);
}

.dark .filter-section-header:hover {
    background-color: rgb(30 41 59 / 0.5);
}

.filter-section-content {
    padding: 0.5rem 0;
}

.filter-section-content.hidden {
    display: none;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.5rem;
}

.filter-checkbox:hover {
    background-color: rgb(249 250 251 / 0.5);
}

.dark .filter-checkbox:hover {
    background-color: rgb(30 41 59 / 0.5);
}

.show-more-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgb(59 130 246);
    text-align: center;
    transition: all 0.2s;
    border-top: 1px solid rgb(229 231 235 / 0.5);
}

.dark .show-more-btn {
    color: rgb(96 165 250);
    border-top-color: rgb(51 65 85 / 0.5);
}

.show-more-btn:hover {
    background-color: rgb(249 250 251 / 0.5);
    color: rgb(37 99 235);
}

.dark .show-more-btn:hover {
    background-color: rgb(30 41 59 / 0.5);
    color: rgb(147 197 253);
}

/* Product Card */
.product-card {
    height: 100%;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
