/* Astra Product Categories Clean Design Styles */
.astra-categories-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.astra-categories-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e5e7eb;
}

.astra-categories-no-results p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.astra-categories-container {
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.astra-categories-grid {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
    padding: 0 0 10px 0; /* Space for scrollbar */
}

.astra-category-item {
    flex: 0 0 190px; /* Fixed width, no grow, no shrink */
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.astra-category-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
}

.astra-category-link:hover {
    text-decoration: none;
    transform: none;
    background: none;
}

.astra-category-link:focus {
    text-decoration: none;
}

.astra-category-link:visited {
    text-decoration: none;
}

.astra-category-image-container {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 233, 225, 0.50);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.astra-category-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.astra-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}

.astra-category-placeholder svg {
    opacity: 0.4;
}

.astra-category-label {
    width: 100%;
    text-align: center;
}

.astra-category-text {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    color: rgba(0, 0, 0, 1);
    line-height: 24px;
    text-align: left;

}

.astra-category-count {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
    text-align: center;
}

/* Hover Effects */
.astra-category-item:hover .astra-category-image {
    transform: scale(1.1);
}

.astra-category-item:hover .astra-category-text {
    text-decoration: underline !important;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .astra-categories-container {
        padding: 0 15px;
    }
    
    
    .astra-categories-grid {
        gap: 8px;
    }
    
    .astra-category-item {
        flex: 0 0 190px;
        width: 190px;
    }
    
    .astra-category-image-container {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 768px) {
    .astra-categories-container {
        padding: 0 5px;
        margin: 0 -5px; /* Extend to screen edges */
    }
    
    .astra-categories-grid {
        gap: 8px;
        padding: 0 5px 10px 5px; /* Add padding for scroll area */
    }
    
    .astra-category-item {
        flex: 0 0 141px;
        width: 141px;
    }
    
    .astra-category-image-container {
        width: 141px;
        height: 141px;
    }
    
    .astra-category-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .astra-categories-container {
        padding: 0 5px;
        margin: 0 -5px;
    }
    
    
    .astra-categories-grid {
        gap: 8px;
        padding: 0 5px 10px 5px;
    }
    
    .astra-category-item {
        flex: 0 0 141px;
        width: 141px;
    }
    
    .astra-category-image-container {
        width: 141px;
        height: 141px;
        margin-bottom: 8px;
    }
    
    .astra-category-text {
        font-size: 13px;
    }
    
    .astra-category-count {
        font-size: 11px;
    }
}

/* Hover effects */
.astra-category-item:hover .astra-category-image-container {
    transform: scale(1.02);
}

.astra-category-item:hover .astra-category-text {
    color: #1f2937;
}

/* Focus states for accessibility */
.astra-category-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    text-decoration: none !important;
}

/* Loading state */
.astra-categories-grid.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.astra-categories-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scrollbar styling for better UX */
.astra-categories-container::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.astra-categories-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.astra-categories-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 1);
    border-radius: 3px;
}

.astra-categories-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Hide scrollbar buttons for clean appearance */
.astra-categories-container::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.astra-categories-container::-webkit-scrollbar-button:start:decrement,
.astra-categories-container::-webkit-scrollbar-button:end:increment {
    display: none;
    width: 0;
    height: 0;
}

.astra-categories-container::-webkit-scrollbar-button:single-button {
    display: none;
    width: 0;
    height: 0;
}


