/* =============================================================================
   Demo Catalog — Supplementary Page Styles
   CSS reset + additions not present in catalog.css.
   Base catalog layout/grid/cards/product-detail are in catalog.css.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   CSS Reset (catalog.css starts at .container, missing these)
   --------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    line-height: 1.5;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------------------------------------------------------------------------
   Loading spinner (new — not in catalog.css)
   --------------------------------------------------------------------------- */
.catalog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 15px;
    gap: 16px;
    grid-column: 1 / -1;
}

.catalog-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #468cf5;
    border-radius: 50%;
    animation: catalog-spin 0.75s linear infinite;
}

@keyframes catalog-spin {
    to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
   Sidebar list reset (category.html uses <ul class="sidebar-datasets">)
   --------------------------------------------------------------------------- */
.sidebar-datasets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-dataset-loading {
    list-style: none;
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 16px;
}

/* ---------------------------------------------------------------------------
   Product detail page container (new — not in catalog.css)
   --------------------------------------------------------------------------- */
#product-detail-container {
    padding-top: 20px;
    padding-bottom: 48px;
}

.product-detail-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
}

/* ec-btn text-decoration fix for <a> tags */
.ec-btn {
    text-decoration: none;
    display: inline-block;
}
