/* Enhanced Category Page Styles - Modern Design matching homepage */

/* Category page header */
.category-page-header {
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.category-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.category-main-description {
    font-size: 1.1rem;
    color: var(--secondary-color, #6b7280);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.category-controls-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.category-main-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.subcategory-filter,
.sort-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.filter-label,
.sort-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color, #1f2937);
    white-space: nowrap;
}

.category-pagination-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 1;
    align-items: center;
    min-width: 0;
}

.pagination-info {
    font-size: 0.75rem;
    color: var(--secondary-color, #6b7280);
    font-weight: 400;
    order: 2;
    text-align: center;
    white-space: nowrap;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    order: 1;
    flex-wrap: nowrap;
    max-width: 200px;
    justify-content: center;
    flex-shrink: 1;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    max-width: 42px;
    height: 36px;
    padding: 0 0.25rem;
    background: white;
    color: var(--text-color, #1f2937);
    text-decoration: none;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.page-btn:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
}

.page-btn.active {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
    font-weight: 600;
}

.page-dots {
    color: var(--secondary-color, #6b7280);
    font-weight: 500;
    padding: 0 0.25rem;
}

.subcategory-select,
.category-sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: white;
    color: var(--text-color, #1f2937);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 200px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.subcategory-select:focus,
.category-sort-select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subcategory-select:hover,
.category-sort-select:hover {
    border-color: var(--primary-color, #2563eb);
}

/* Main category page styles */
.category-page {
    padding: 1rem 0 4rem;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #1f2937);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #2563eb), var(--accent-color, #3b82f6));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary-color, #6b7280);
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

.section-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Subcategories section */
.category-subcategories-section {
    margin-bottom: 3rem;
}

.category-subgrid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-subcard {
    position: relative;
    background: white;
    border-radius: 16px;
  text-decoration: none;
  color: inherit;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color, #e5e7eb);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--index, 0) * 0.1s);
    animation-fill-mode: both;
}

.category-subcard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #2563eb);
}

.category-subcard-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-subcard:hover .category-subcard-background {
    opacity: 1;
}

.category-subcard-body {
    padding: 1.5rem;
  display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.category-subcard-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.category-subcard:hover .category-subcard-icon {
    transform: scale(1.1);
}

.category-subcard-content {
    flex: 1;
}

.category-subcard-title {
  font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color, #2563eb);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.category-subcard:hover .category-subcard-title {
    color: var(--accent-color, #3b82f6);
}

.category-subcard-description {
    color: var(--secondary-color, #6b7280);
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-subcard-arrow {
    color: var(--border-color, #d1d5db);
    transition: all 0.3s;
    align-self: center;
}

.category-subcard:hover .category-subcard-arrow {
    color: var(--primary-color, #2563eb);
    transform: translateX(4px);
}

/* Filter controls */
.category-filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.sort-control,
.view-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label,
.view-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color, #1f2937);
    white-space: nowrap;
}

.category-sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: white;
    color: var(--text-color, #1f2937);
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 150px;
}

.category-sort-select:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}



/* Products section */
.category-products-section {
    margin-bottom: 3rem;
}

.category-products-container {
    position: relative;
}

.category-products-grid {
  display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    transition: all 0.3s ease;
}



/* Product cards */
.category-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color, #2563eb);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--index, 0) * 0.05s);
    animation-fill-mode: both;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.category-product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(107, 114, 128, 0.25);
    border-color: var(--secondary-color, #6b7280);
}

.category-product-link {
    text-decoration: none;
    color: inherit;
  display: flex;
  flex-direction: column;
    height: 100%;
}

.category-product-image-container {
    position: relative;
    overflow: hidden;
}

.category-product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.category-product-placeholder {
    color: var(--border-color, #cbd5e1);
    font-size: 2rem;
}

.category-product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
  overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 3;
    border: 2px solid white;
}

.badge-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

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

.product-quick-actions {
    display: flex;
    gap: 0.75rem;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--secondary-color, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.1rem;
}

.quick-action-btn:hover {
    background: var(--secondary-color, #6b7280);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
}

.category-product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.category-product-link:hover .category-product-name {
    color: var(--accent-color, #3b82f6);
}

.category-product-description {
    color: var(--secondary-color, #6b7280);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.category-product-stats {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    margin-top: auto;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--secondary-color, #6b7280);
}

.stat-item i {
    font-size: 0.8rem;
}

.stat-item.rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-right: auto;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #d1d5db;
    font-size: 0.75rem;
}

.stars i.filled {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--secondary-color, #6b7280);
}

.stat-item.views i {
    color: var(--secondary-color);
}

.stat-item.likes i {
    color: var(--secondary-color);
}

/* Group views and likes together on the right */
.stats-right-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Ensure views and likes stay together on same line */
.stat-item.views,
.stat-item.likes {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile responsive adjustments for very small screens */
@media (max-width: 480px) {
    .category-product-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-right-group {
        gap: 0.5rem;
    }
    
    .stat-item.views,
    .stat-item.likes {
        font-size: 0.8rem;
    }
}

/* Empty state */
.category-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary-color, #6b7280);
}

/* Subcategory Content Section */
.subcategory-content-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.subcategory-content-wrapper {
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
    max-height: 600px;
}

.subcategory-content-image {
    flex: 0 0 350px;
    max-width: 350px;
}

.subcategory-content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.subcategory-content-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--background-light, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color, #64748b);
    font-size: 3rem;
    border: 2px dashed var(--secondary-color, #64748b);
}

.subcategory-content-text {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #2563eb) transparent;
}

.subcategory-content-text::-webkit-scrollbar {
    width: 6px;
}

.subcategory-content-text::-webkit-scrollbar-track {
    background: transparent;
}

.subcategory-content-text::-webkit-scrollbar-thumb {
    background-color: var(--primary-color, #2563eb);
    border-radius: 3px;
    opacity: 0.7;
}

.subcategory-content-text::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

.subcategory-content-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subcategory-content-subheader {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-dark, #374151);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.subcategory-content-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color, #1f2937);
    margin-bottom: 0;
}

.subcategory-content-body p {
    margin-bottom: 1rem;
}

.subcategory-content-body p:last-child {
    margin-bottom: 0;
}

/* Multiple content sections styling */
.subcategory-content-section-item {
    margin-bottom: 2.5rem;
}

.subcategory-content-section-item:last-child {
    margin-bottom: 0;
}

.subcategory-content-section-item .subcategory-content-subheader {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color, #4f46e5);
    padding-bottom: 0.5rem;
}

.subcategory-content-section-item .subcategory-content-body {
    margin-bottom: 0;
}

/* Responsive design for subcategory content */
@media (max-width: 768px) {
    .subcategory-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        min-height: 300px;
        max-height: none;
    }
    
    .subcategory-content-image {
        flex: none;
        max-width: 100%;
        order: -1;
    }
    
    .subcategory-content-text {
        max-height: 400px;
        padding-right: 0;
        text-align: center;
    }
    
    .subcategory-content-header {
        font-size: 2rem;
        text-align: center;
    }
    
    .subcategory-content-subheader {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .subcategory-content-body {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .subcategory-content-wrapper {
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 0 1rem;
    }
    
    .subcategory-content-header {
        font-size: 1.8rem;
    }
    
    .subcategory-content-subheader {
        font-size: 1.2rem;
    }
    
    .subcategory-content-text {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .subcategory-content-section {
        padding: 2rem 0;
    }
    
    .subcategory-content-header {
        font-size: 1.8rem;
    }
    
    .subcategory-content-subheader {
        font-size: 1.2rem;
    }
}

.empty-icon {
    font-size: 4rem;
    color: var(--border-color, #d1d5db);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    margin: 0 0 0.75rem;
}

.empty-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.empty-action-btn:hover {
    background: var(--secondary-color, #1e40af);
    transform: translateY(-2px);
}

/* Pagination */
.category-pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.category-pagination {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.category-page-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.category-page-btn:hover {
    background: var(--secondary-color, #1e40af);
    transform: translateY(-2px);
}

.pagination-info {
    text-align: center;
}

.category-page-current {
    font-size: 1rem;
    color: var(--text-color, #1f2937);
    display: block;
    margin-bottom: 0.25rem;
}

.showing-info {
    font-size: 0.9rem;
    color: var(--secondary-color, #6b7280);
}

.load-more-section {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--accent-color, #3b82f6));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Desktop optimizations */
@media (min-width: 1200px) {
    .category-controls-section {
        flex-wrap: nowrap;
        gap: 2rem;
        padding: 1.25rem 2rem;
    }
    
    .category-main-controls {
        gap: 2rem;
    }
    
    .subcategory-select,
    .category-sort-select {
        min-width: 200px;
    }
    
    .category-pagination-inline {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        min-width: 180px;
    }
    
    .pagination-info {
        order: 2;
        font-size: 0.7rem;
    }
    
    .pagination-numbers {
        gap: 0.5rem;
        order: 1;
        max-width: 160px;
    }
    
    .page-btn {
        min-width: 32px;
        max-width: 38px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

/* Medium desktop */
@media (min-width: 769px) and (max-width: 1199px) {
    .category-controls-section {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .category-main-controls {
        gap: 1.5rem;
    }
    
    .subcategory-select,
    .category-sort-select {
        min-width: 180px;
    }
    
    .category-pagination-inline {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        min-width: 150px;
    }
    
    .pagination-info {
        order: 2;
        font-size: 0.7rem;
    }
    
    .pagination-numbers {
        order: 1;
        max-width: 140px;
        gap: 0.25rem;
    }
    
    .page-btn {
        min-width: 30px;
        max-width: 36px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .category-main-title {
        font-size: 2rem;
    }
    
    .category-controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .category-main-controls {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .category-pagination-inline {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        justify-content: center;
    }
    
    .category-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile design */
@media (max-width: 768px) {
    .category-page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .category-main-title {
        font-size: 2rem;
    }
    
    .category-main-description {
        font-size: 1rem;
    }
    
    .category-controls-section {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .category-main-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .subcategory-filter,
    .sort-control {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .category-sort-select,
    .subcategory-select {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .category-pagination-inline {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-numbers {
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 250px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .category-products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .category-page-header {
        padding: 1rem 0.75rem;
        margin: 0 -0.5rem 1rem;
    }
    
    .category-main-title {
        font-size: 1.75rem;
    }
    
    .category-main-description {
        font-size: 0.95rem;
    }
    
    .category-controls-section {
        margin: 0 -0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .filter-label,
    .sort-label,
    .view-label {
        font-size: 0.9rem;
    }
    
    .category-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-product-content {
        padding: 1.25rem;
    }
    
    .category-product-name {
        font-size: 1.1rem;
    }
    
    .product-quick-actions {
        gap: 0.5rem;
    }
    
    .quick-action-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .subcategory-select,
    .category-sort-select {
        min-width: auto;
        padding: 0.9rem 1rem;
    }
    

}

/* Print styles */
@media print {
    .category-controls-section,
    .category-pagination-wrapper,
    .product-quick-actions {
        display: none;
    }
    
    .category-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .category-page-header {
        background: #f8fafc;
        color: #000;
    }
    
    .category-product-card {
        border: 2px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .category-product-card:hover {
        transform: none;
    }
    
    .category-subcard:hover {
        transform: none;
    }
}