/* ===== Vitvarufakta – Brand & Layout ===== */
:root {
    --vvf-bg: #0b1b2b; /* djup mörkblå till hero */
    --vvf-primary: #0f4c81; /* varmare mörkblå */
    --vvf-primary-600: #0d3e6a; /* hover */
    --vvf-accent: #0a66c2; /* länkar/accenter */
    --vvf-muted: #64748b; /* text-muted */
    --vvf-card: #ffffff; /* kortbakgrund */
    --vvf-ring: rgba(15,76,129,.25);
}

/* Globalt */

html, body {
    height: 100%;
}

body {
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a.vvf-link {
    text-decoration: none;
    color: inherit;
}

/* Navbar tweaks */
.navbar-vvf .nav-link.active {
    color: var(--vvf-primary) !important;
}

.search-mini {
    max-width: 340px;
}

.form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(15,76,129,.15);
    border-color: #9ec1df;
}

/* Hero med bildoverlay */
.hero {
    background: url('/pics/hero-kitchen.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: clip;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 600px at 10% 5%, rgba(255,255,255,.12), rgba(255,255,255,0)), linear-gradient(180deg, rgba(11,27,43,.50), rgba(11,27,43,.70));
    }

.hero-inner {
    position: relative;
    z-index: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: #cfe4ff;
}

.lead-xl {
    font-size: clamp(1.04rem, .6rem + .9vw, 1.25rem);
    color: #e6f0ff;
}

.search-wrap {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: saturate(140%) blur(6px);
    border-radius: 16px;
    padding: .75rem;
}

.ring-focus:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--vvf-ring);
}

.shadow-soft {
    box-shadow: 0 8px 24px rgba(15, 76, 129, .08);
}

/* Kort – bild överst, text under */
.vvf-card-img {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}

    .vvf-card-img:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        border-color: rgba(15,76,129,.35);
    }

    .vvf-card-img img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .vvf-card-img .vvf-card-media {
        width: 100%;
        height: 160px;
    }

    .vvf-card-img .info {
        padding: 1rem;
    }

.vvf-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vvf-card-media--fallback {
    background: linear-gradient(135deg, #edf5fb 0%, #f9fbfd 100%);
    color: var(--vvf-primary);
    text-align: center;
}

.vvf-card-media-label {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vvf-filter-panel {
    border-radius: 20px;
}

.vvf-filter-panel .form-text {
    color: var(--vvf-muted);
}

.vvf-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f8fbfe;
}

.vvf-view-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vvf-view-toggle__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.4rem;
    border-radius: 10px;
    color: #57728d;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

    .vvf-view-toggle__button svg {
        width: 1.2rem;
        height: 1.2rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .vvf-view-toggle__input:checked + .vvf-view-toggle__button {
        background: #fff;
        color: var(--vvf-primary);
        box-shadow: 0 0 0 1px rgba(15, 76, 129, .16);
    }

    .vvf-view-toggle__input:focus-visible + .vvf-view-toggle__button {
        outline: 2px solid rgba(15, 76, 129, .28);
        outline-offset: 2px;
    }

.vvf-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #dbe7f3;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 76, 129, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .vvf-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 42px rgba(15, 76, 129, .12);
        border-color: rgba(15,76,129,.35);
        color: inherit;
    }

.vvf-product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6fc 100%);
    border-bottom: 1px solid #e6eef7;
}

    .vvf-product-card__media img {
        max-width: 100%;
        max-height: 190px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.vvf-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .9rem;
    padding: 1.15rem 1.15rem 1rem;
}

.vvf-product-card__intro {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.vvf-product-card__title,
.vvf-product-card__subtitle {
    min-width: 0;
}

.vvf-product-card__cta {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 700;
    color: var(--vvf-primary);
}

.vvf-product-card--compact {
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
}

.vvf-product-card--compact .vvf-product-card__media {
    flex: 0 0 96px;
    min-height: 96px;
    padding: .65rem;
    border-right: 1px solid #e6eef7;
    border-bottom: 0;
}

.vvf-product-card--compact .vvf-product-card__media img {
    max-width: 72px;
    max-height: 72px;
}

.vvf-product-card--compact .vvf-product-card__body {
    gap: .55rem;
    padding: .8rem .95rem;
}

.vvf-product-card--compact .vvf-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    margin-bottom: 0;
}

.vvf-product-card--compact .vvf-product-card__subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.vvf-product-card--compact .badge {
    font-size: .68rem;
}

.vvf-product-card--compact .vvf-fact-grid {
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: .45rem .85rem;
}

.vvf-product-card--compact .vvf-product-card__cta {
    padding-top: .15rem;
    font-size: .92rem;
}

.vvf-product-card--text {
    min-height: 0;
}

.vvf-product-card--text .vvf-product-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
    align-items: center;
    gap: .8rem 1rem;
    padding: .85rem 1rem;
}

.vvf-product-card--text .vvf-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 1rem;
    margin-bottom: 0;
}

.vvf-product-card--text .vvf-product-card__subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.vvf-product-card--text .badge {
    font-size: .68rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vvf-product-card--text .vvf-fact-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem 1rem;
}

.vvf-product-card--text .vvf-fact-grid__item {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
}

.vvf-product-card--text .vvf-fact-grid__item dt {
    font-size: .67rem;
}

.vvf-product-card--text .vvf-fact-grid__item dd {
    font-size: .92rem;
}

.vvf-product-card--text .vvf-product-card__cta {
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
    font-size: .9rem;
}

.vvf-fact-grid {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.vvf-fact-grid__item {
    display: grid;
    gap: .2rem;
}

.vvf-fact-grid__item dt {
    margin: 0;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--vvf-muted);
}

.vvf-fact-grid__item dd {
    margin: 0;
    font-weight: 600;
    color: #13253a;
}

@media (max-width: 991.98px) {
    .vvf-product-card--text .vvf-product-card__body {
        grid-template-columns: 1fr;
    }

    .vvf-product-card--text .vvf-product-card__cta {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .vvf-product-card--compact {
        flex-direction: column;
    }

    .vvf-product-card--compact .vvf-product-card__media {
        flex-basis: auto;
        max-width: none;
        border-right: 0;
        border-bottom: 1px solid #e6eef7;
    }
}

.vvf-category-link {
    display: block;
    padding: 1.25rem;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}

    .vvf-category-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        border-color: rgba(15,76,129,.35);
    }

.vvf-category-hero {
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    background: linear-gradient(180deg, #f4f9fe 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(15, 76, 129, .08);
}

.vvf-category-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .9rem;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #fff;
    color: var(--vvf-primary);
    font-weight: 600;
    text-decoration: none;
}

    .vvf-category-chip:hover {
        border-color: var(--vvf-primary);
        color: var(--vvf-primary-600);
    }

.vvf-product-hero {
    background: var(--bs-secondary-bg);
    border-radius: .75rem;
    padding: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    overflow: hidden;
}

    .vvf-product-hero img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.vvf-thumb-btn {
    padding: .15rem;
    border-radius: .5rem;
    line-height: 0;
}

.vvf-thumb-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: .35rem;
}

.vvf-thumb-btn.active {
    outline: 2px solid var(--vvf-primary);
}

.vvf-detail-table th,
.vvf-detail-table td {
    vertical-align: top;
}

.vvf-detail-table th {
    width: 42%;
    white-space: nowrap;
}

.vvf-content-page {
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    background: #fff;
}

.vvf-content-page__hero {
    position: relative;
    overflow: hidden;
}

.vvf-content-page__aside {
    padding: 1.5rem;
    border: 1px solid #dbe7f3;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.vvf-richtext {
    color: #13253a;
    line-height: 1.8;
}

.vvf-richtext > *:first-child {
    margin-top: 0;
}

.vvf-richtext > *:last-child {
    margin-bottom: 0;
}

.vvf-richtext h2,
.vvf-richtext h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vvf-richtext p,
.vvf-richtext ul,
.vvf-richtext ol {
    margin-bottom: 1rem;
}

.vvf-richtext ul,
.vvf-richtext ol {
    padding-left: 1.25rem;
}

.vvf-richtext li + li {
    margin-top: .45rem;
}

.vvf-richtext a {
    color: var(--vvf-primary);
    font-weight: 600;
}

@media (min-width: 992px) {
    .vvf-sticky {
        position: sticky;
        top: 88px;
    }
}

/* Sektionstitlar */
.sec-header h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sec-header p {
    color: var(--vvf-muted);
}

/* Badges & textnyanser */
.text-muted-2 {
    color: var(--vvf-muted) !important;
}

.pill {
    border: 1px solid rgba(255,255,255,.22);
    color: #eaf3ff;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .84rem;
}


/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    z-index: 1080;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: auto;
        width: 380px;
    }
}

.cookie-banner-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
}

.cookie-banner h2 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
}

.cookie-banner p {
    color: var(--vvf-muted);
    margin-bottom: .75rem;
}

.cookie-options {
    display: grid;
    gap: .35rem;
    margin-bottom: .85rem;
}

.cookie-options label {
    display: flex;
    gap: .45rem;
    align-items: center;
    margin: 0;
    font-weight: 600;
}

.cookie-options input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.cookie-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: .4rem;
}

.cookie-link {
    color: var(--vvf-primary);
    font-weight: 600;
}
/* Knappfärger */
.btn-primary {
    background-color: var(--vvf-primary);
    border-color: var(--vvf-primary);
}

    .btn-primary:hover {
        background-color: var(--vvf-primary-600);
        border-color: var(--vvf-primary-600);
    }

/* Footer */
.vvf-footer, footer.footer {
    border-top: 1px solid #e5e7eb;
}
