/**
 * HCARS Custom CSS
 * Add your custom styles here
 *
 * @package HCARS
 */

/* === ADDITIONAL STYLES === */

/* Hero background fallback */
.hero-bg {
    background-color: var(--color-secondary);
}

/* Product grid loading state */
.products-grid.loading {
    position: relative;
}

.products-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.7);
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-muted);
}

/* Error message */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 8px 16px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Favorites count badge */
.favorites-icon-wrapper {
    position: relative;
}

.favorites-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .favorites-count {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .modal-overlay,
    .nav-toggle,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 2rem;
    }

    .hero-bg,
    .hero-overlay {
        display: none;
    }
}
