/* ===================================================
   S. Sørensen Produkter – Public CSS
   Font: Source Sans Pro | Brand: #0C07DE
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --brand:      #0C07DE;
    --brand-dark: #0905b0;
    --brand-bg:   #EEF0FF;
    --brand-mid:  #C5C8F8;
    --text:       #1a1a2e;
    --text-soft:  #6b7280;
    --border:     #e5e7eb;
    --white:      #ffffff;
    --radius:     12px;
}

.ss-archive {
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── FILTER BAR ─────────────────────────────────── */
.ss-filter-bar {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 28px;
}

.ss-search-bar {
    display: flex; align-items: center;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 50px; overflow: hidden;
    padding: 0 16px; max-width: 480px;
    transition: border-color .15s, box-shadow .15s;
}
.ss-search-bar:focus-within {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,7,222,.08);
}
.ss-search-ico { width: 18px; height: 18px; color: var(--text-soft); flex-shrink: 0; }
.ss-search-bar input {
    flex: 1; border: none; outline: none; font-size: 15px; padding: 11px 10px;
    color: var(--text); background: transparent;
    font-family: 'Source Sans Pro', sans-serif;
	border:none!important;
}
.ss-search-bar input::placeholder { color: #9ca3af; }
#ss-search-clear {
    background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 16px;
    padding: 0 4px; display: none; line-height: 1;
}
#ss-search-clear.visible { display: block; }
#ss-search-clear:hover { color: var(--text); }

.ss-cat-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ss-cat-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 600;
    border: 1.5px solid var(--border); background: var(--white); color: var(--text-soft);
    cursor: pointer; transition: all .15s; font-family: 'Source Sans Pro', sans-serif;
}
.ss-cat-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.ss-cat-btn.active { background: var(--brand); color: var(--white); border-color: var(--brand); }
.ss-cat-btn.active .ss-count { background: rgba(255,255,255,.25); color: var(--white); }
.ss-count { background: #f3f4f6; color: var(--text-soft); font-size: 11px; padding: 1px 7px; border-radius: 20px; font-weight: 600; }

/* ─── RESULTS INFO ───────────────────────────────── */
.ss-results-info {
    font-size: 14px; color: var(--text-soft); margin-bottom: 20px; min-height: 22px;
}

/* ─── PRODUCT GRID ───────────────────────────────── */
.ss-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    min-height: 200px;
    transition: opacity .2s;
}
.ss-product-grid.is-loading { opacity: .4; pointer-events: none; }

/* ─── PRODUCT CARD ───────────────────────────────── */
.ss-product-card {
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: ss-fade-in .3s ease forwards;
}
.ss-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(12,7,222,.12);
    border-color: var(--brand-mid);
}

@keyframes ss-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ss-card-cat {
    display: inline-block; align-self: flex-start;
    background: transparent !important; color: var(--text-soft);
    font-size: 11px; font-weight: 600;
    padding: 0 !important; border-radius: 0 !important; letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.4;
    border: none !important;
    box-shadow: none !important;
}

.ss-card-body {
    padding: 20px 20px 22px;
    display: flex; flex-direction: column; flex: 1; gap: 8px;
}
.ss-card-title {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ss-card-excerpt {
    font-size: 13px; color: var(--text-soft); line-height: 1.55; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ss-card-cta {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: var(--brand);
    margin-top: 6px; transition: gap .15s;
}
.ss-product-card:hover .ss-card-cta { gap: 8px; }

/* ─── NO RESULTS ─────────────────────────────────── */
.ss-no-results {
    grid-column: 1/-1; text-align: center;
    padding: 60px 20px; color: var(--text-soft);
}
.ss-no-results p { font-size: 16px; }

/* ─── LOADER ─────────────────────────────────────── */
.ss-loader {
    display: flex; justify-content: center; padding: 40px;
}
.ss-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--brand-bg);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: ss-spin .7s linear infinite;
}
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* ─── LOAD MORE ──────────────────────────────────── */
.ss-load-more-wrap {
    text-align: center; padding: 36px 0 10px;
}
.ss-load-more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 32px; border: 1.5px solid var(--border);
    border-radius: 50px; font-size: 15px; font-weight: 600;
    background: var(--white); color: var(--text); cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all .15s;
}
.ss-load-more-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.ss-load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 600px) {
    .ss-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ss-cat-btn { font-size: 13px; padding: 7px 14px; }
}
@media (max-width: 400px) {
    .ss-product-grid { grid-template-columns: 1fr; }
}

/* ─── WARNING POPUP (Under opbygning) ────────────── */
.ss-warning-popup {
	display:none!important;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(0);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 14px 18px 14px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(185, 28, 28, .35), 0 4px 12px rgba(0, 0, 0, .15);
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
    max-width: calc(100vw - 32px);
    width: max-content;
    animation: ss-warning-in .4s cubic-bezier(0.23, 1, 0.32, 1) both;
    transition: opacity .3s ease, transform .3s ease;
}
.ss-warning-popup.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}
.ss-warning-popup__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ss-warning-popup__icon svg {
    width: 24px;
    height: 24px;
}
.ss-warning-popup__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.ss-warning-popup__text strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
}
.ss-warning-popup__text span {
    font-size: 13px;
    font-weight: 400;
    opacity: .92;
}
.ss-warning-popup__close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0;
    transition: background .15s ease;
	display:none!important;
}
.ss-warning-popup__close:hover {
    background: rgba(255, 255, 255, .28);
}
.ss-warning-popup__close svg {
    width: 14px;
    height: 14px;
}

@keyframes ss-warning-in {
    from { opacity: 0; transform: translateX(-50%) translateY(24px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 480px) {
    .ss-warning-popup {
        bottom: 16px;
        padding: 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }
    .ss-warning-popup__text strong { font-size: 13px; }
    .ss-warning-popup__text span   { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ss-warning-popup { animation: none; }
}