/* =========================================
   NYTTIGBUTIKK.NO
   Base Design
   ========================================= */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f8fa;
    --text: #17202a;
    --text-soft: #5f6b76;
    --primary: #0b63ce;
    --primary-dark: #084d9f;
    --border: #e3e8ee;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --max-width: 1180px;
}

/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.narrow {
    max-width: 760px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--primary);
}

/* Hero */

.hero {
    padding: 105px 0 95px;
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #ffffff 100%
        );
}

.hero-content {
    max-width: 850px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(42px, 6vw, 68px);
    letter-spacing: -2.5px;
}

.hero-text {
    max-width: 680px;
    margin: 24px auto 0;
    color: var(--text-soft);
    font-size: 20px;
}

/* Sections */

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--bg-soft);
}

.section h2 {
    margin: 0 0 36px;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.2px;
}

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    min-height: 190px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #cbd9e9;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--text-soft);
}

/* Info Section */

.section-light .narrow {
    text-align: center;
}

.section-light h2 {
    margin-bottom: 18px;
}

.section-light p {
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-inner p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

/* Accessibility */

a:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.3);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Tablet */

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 85px 0 75px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .header-inner {
        min-height: 66px;
    }

    .logo {
        font-size: 21px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 70px 0 65px;
    }

    h1 {
        font-size: 40px;
        letter-spacing: -1.6px;
    }

    .hero-text {
        font-size: 17px;
    }

    .section {
        padding: 65px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
/* =========================================
   Contact Form
   ========================================= */

.contact-form {
    margin-top: 34px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 170px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.10);
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.contact-submit:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.3);
    outline-offset: 3px;
}

.form-message {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.form-success {
    background: #eefaf3;
    border: 1px solid #b9e7c9;
}

.form-error {
    background: #fff3f3;
    border: 1px solid #efc1c1;
}

.contact-email {
    margin-top: 26px;
    color: var(--text-soft);
}

.contact-email a {
    color: var(--primary);
    font-weight: 700;
}

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
/* =========================================
   Footer Navigation
   ========================================= */

.footer-inner {
    justify-content: space-between;
    gap: 30px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--primary);
}

@media (max-width: 600px) {
    .footer-inner {
        padding: 25px 0;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .footer-nav {
        gap: 18px;
    }
}
/* =========================================
   Category Pages
   ========================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--text-soft);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.category-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.category-heading h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -2px;
}

.category-intro {
    margin: 0;
    color: var(--text-soft);
    font-size: 19px;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .breadcrumb {
        margin-bottom: 26px;
    }

    .category-heading {
        margin-bottom: 34px;
    }

    .category-heading h1 {
        font-size: 38px;
        letter-spacing: -1.4px;
    }

    .category-intro {
        font-size: 17px;
    }
}
/* =========================================
   Prevent horizontal overflow
   ========================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: calc(100% - 40px);
    max-width: var(--max-width);
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .category-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* =========================================
   Product Listing + Search
   ========================================= */

.product-search-section {
    margin-top: 10px;
    margin-bottom: 60px;
}

.product-search-section h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.product-search {
    display: flex;
    gap: 12px;
    max-width: 760px;
}

.product-search input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.product-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.10);
}

.product-search button {
    height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.product-search button:hover {
    background: var(--primary-dark);
}

.products-section {
    margin-top: 10px;
}

.products-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.products-heading h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.products-heading p {
    margin: 0;
    color: var(--text-soft);
}

.products-empty {
    padding: 34px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.products-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.products-empty p {
    margin: 0;
    color: var(--text-soft);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .product-search {
        flex-direction: column;
    }

    .product-search button {
        width: 100%;
    }
}