* {
    box-sizing: border-box;
}

:root {
    --blue: #18538c;
    --blue-dark: #06477e;
    --grey: #d9d9d9;
    --border: #5d5d5d;
    --text: #111111;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.figma-page {
    width: min(100%, 1500px);
    min-height: 100vh;
    margin: 0 auto;
    background: #ffffff;
}

.topbar {
    height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px 24px 0;
    background: #ffffff;
}

.logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.top-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-icons img {
    width: 24px;
    height: 24px;
}

/* ── Hamburger button (3-bar → X) ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Off-canvas overlay ── */
.mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mob-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Off-canvas nav drawer ── */
.mob-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #ffffff;
    z-index: 201;
    display: flex;
    flex-direction: column;
    padding: 80px 0 32px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.mob-nav.open { transform: translateX(0); }
.mob-nav a {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
}
.mob-nav a:first-child { border-top: 1px solid #f0f0f0; }
.mob-nav .mob-nav-logout {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    color: #c0392b;
}

.btn {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-dark);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

input,
select {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #757575;
    border-radius: 2px;
    background: #ffffff;
    font: inherit;
    font-size: 12px;
}

/* Front page */
.home-page {
    background: #ffffff;
}

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    background: #ffffff;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-link {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.icon-link img {
    width: 20px;
    height: 20px;
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 48px 32px;
    background: var(--grey);
}

.hero-content {
    max-width: 540px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 46px;
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.4;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--blue-dark);
    border-radius: 7px;
    background: #ffffff;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    background: var(--blue-dark);
    color: #ffffff;
}

.hero-media {
    display: grid;
    gap: 14px;
}

.hero-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
}

/* Login and register */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--blue);
}

.auth-card {
    width: min(430px, 100%);
    min-height: 392px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 62px 24px;
    border-radius: 8px;
    background: #ffffff;
}

.auth-card.wide {
    width: min(600px, 100%);
    min-height: 420px;
    padding: 32px 48px 28px;
}

.auth-card .logo {
    width: 78px;
    height: 78px;
    margin-bottom: 10px;
}

.auth-card h1 {
    margin: 0 0 26px;
    font-size: 32px;
    line-height: 1;
}

.auth-card h2 {
    margin: 0 0 28px;
    font-size: 16px;
}

.auth-form {
    width: 100%;
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.auth-form input {
    height: 54px;
    border-radius: 8px;
    font-size: 14px;
}

.auth-form .btn {
    width: 170px;
    justify-self: center;
}

.auth-link {
    margin: 0;
    color: #0038ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.register-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.register-grid input {
    height: 44px;
}

.register-footer {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
}

.build-content {
    margin-top: 58px;
    padding: 46px 0 62px;
    background: var(--grey);
}

.build-text {
    max-width: 860px;
    padding: 0 22px;
    margin-bottom: 40px;
}

.build-text h1 {
    margin: 0 0 4px;
    font-size: 18px;
}

.build-text p {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.build-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    padding: 0 56px;
}

.build-option {
    display: grid;
    justify-items: center;
    gap: 28px;
}

.build-option img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Catalog */
.catalog-page {
    background: var(--grey);
}

.catalog-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
    gap: 36px;
    padding: 28px 24px 26px;
}

.filter-box,
.search-box {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #ffffff;
    font-weight: 700;
}

.search-row {
    display: flex;
    justify-content: center;
    flex: 1;
    margin-top: 30px;
}

.search-box {
    width: 270px;
    padding: 0;
    border: 1px solid #909090;
}

.search-icon {
    width: 48px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #1d64d8;
    color: #ffffff;
    font-size: 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    padding: 0 24px 110px;
}

.product-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 12px;
    background: #ffffff;
}

.product-card .image-wrap {
    height: 118px;
    display: grid;
    place-items: center;
    background: #f7f7f7;
}

.product-card img {
    width: 150px;
    height: 86px;
    object-fit: cover;
}

.product-card h2 {
    min-height: 48px;
    margin: 12px 0 6px;
    font-size: 12px;
    line-height: 1.25;
    text-transform: uppercase;
}

.stock {
    margin: 0;
    color: #148c2e;
    font-size: 11px;
    font-weight: 700;
}

.price {
    margin: 3px 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.small-note {
    color: #777777;
    font-size: 9px;
}

.tiny-cart {
    width: 52px;
    height: 24px;
    border-radius: 0;
    font-size: 10px;
}

/* Quick build form */
.quick-layout {
    display: grid;
    grid-template-columns: 1fr 490px;
    min-height: calc(100vh - 96px);
}

.quick-copy {
    padding: 62px 38px;
}

.quick-copy h1 {
    max-width: 470px;
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.25;
}

.quick-copy p {
    max-width: 580px;
    margin: 0 0 30px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.quick-form-panel {
    padding: 62px 28px 28px;
    background: var(--grey);
}

.quick-form {
    display: grid;
    gap: 22px;
}

.quick-form label {
    display: grid;
    gap: 9px;
    font-size: 15px;
}

.quick-form h2 {
    margin: 24px 0 0;
    font-size: 16px;
}

.quick-form input,
.quick-form select {
    width: 180px;
}

.quick-form .btn {
    justify-self: end;
    margin-top: 40px;
}

.drawing-panel {
    padding: 34px 44px 44px;
    background: #ffffff;
}

.technical-title {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 36px;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
}

.technical-title span {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 18px;
}

.technical-title strong {
    font-size: 62px;
    line-height: 1;
    font-weight: 800;
}

.drawing-box {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 28px;
    background: #ffffff;
}

.drawing-box svg {
    width: 100%;
    min-width: 760px;
    height: auto;
    display: block;
}

.dashboard-page .topbar {
    justify-content: flex-start;
}

.dashboard-title {
    margin: 48px 22px 72px;
    font-size: 36px;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 34px;
    padding: 0 22px 80px;
}

.side-menu {
    display: grid;
    gap: 28px;
    align-content: start;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

.dash-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.dash-card header {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--blue);
    color: #ffffff;
    font-weight: 700;
}

.dash-body {
    padding: 16px;
    height: calc(100% - 42px);
    box-sizing: border-box;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.orders-table th,
.orders-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #d2d2d2;
    text-align: left;
}

.sketch-space {
    min-height: 116px;
    display: flex;
    align-items: end;
}

.profile-fields {
    display: grid;
    grid-template-columns: 130px 1fr;
    font-size: 14px;
    align-content: start;
    height: 100%;
}

.profile-fields span {
    padding: 10px 8px;
    border-bottom: 1px solid #d2d2d2;
}

.profile-fields span:nth-child(odd) {
    font-weight: 600;
    color: var(--grey-dark, #555);
}

.placeholder {
    height: 18px;
    background: var(--grey);
}

.admin-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    margin-left: 16px;
    position: relative;
    z-index: 2;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-content {
    animation: adminFadeIn 0.25s ease;
}

.admin-tab {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-bottom: none;
    background: #f5f5f5;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
}

.admin-tab.active {
    background: var(--blue);
    color: #ffffff;
    border-color: transparent;
    position: relative;
    z-index: 3;
}

.admin-content .dash-card {
    margin-bottom: 20px;
}

.admin-content {
    padding: 0 24px 40px;
    max-width: 100%;
}

.admin-content .dash-card {
    overflow-x: auto;
    border-top: none;
    min-width: 0;
}

.admin-content .dash-body {
    padding: 0;
    overflow-x: auto;
}

.admin-content .orders-table {
    font-size: 13px;
    width: 100%;
}

.admin-content .orders-table td,
.admin-content .orders-table th {
    padding: 10px 10px;
    white-space: nowrap;
}

.admin-content .orders-table tr:last-child td {
    border-bottom: none;
}

.admin-content .table-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-content .table-form select {
    width: auto;
    font-size: 12px;
    padding: 4px 6px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.admin-content .table-form .btn {
    min-height: 30px;
    font-size: 12px;
    padding: 0 10px;
    white-space: nowrap;
}

.admin-content .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-form,
.offer-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.btn--reject {
    background: #c0392b;
}

.saelger-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn--pay {
    background: #1a7a3a;
    font-size: 12px;
    min-height: 24px;
    padding: 0 12px;
}

.price-input {
    width: 110px;
    height: 28px;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}


.inspiration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inspiration-card {
    padding: 8px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
}

.inspiration-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    margin-bottom: 8px;
}

/* ── 900px breakpoint ── */
@media (max-width: 900px) {
    .hero,
    .quick-layout,
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .catalog-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 700px (mobile) breakpoint ── */
@media (max-width: 700px) {

    /* ── General ── */
    .figma-page {
        width: 100%;
    }

    /* ── Front page header ── */
    .site-header {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        min-height: 0;
        padding: 14px 16px;
    }
    .brand img {
        width: 52px;
        height: 52px;
    }
    .header-actions {
        width: auto;
        flex-wrap: wrap;
    }

    /* ── Hero ── */
    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 16px 36px;
    }
    .hero h1 { font-size: 30px; }
    .hero-media img { height: 210px; }

    /* ── Topbar (dashboard pages) ── */
    .topbar {
        height: 68px;
        align-items: center;
        padding: 0 14px;
    }
    .logo { width: 52px; height: 52px; }
    .top-icons { gap: 8px; }
    .top-icons img { width: 18px; height: 18px; }

    /* Show hamburger on mobile */
    .hamburger-btn { display: flex; }
    .dashboard-page .topbar { justify-content: space-between; }

    /* ── Auth screens ── */
    .auth-screen {
        width: 100%;
        align-items: flex-start;
        padding: 52px 16px 32px;
    }
    .auth-card,
    .auth-card.wide {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 24px 20px 28px;
        border-radius: 6px;
    }
    .auth-card .logo { width: 60px; height: 60px; }
    .auth-card h1 { font-size: 24px; }
    .auth-card h2 { margin-bottom: 18px; font-size: 14px; }
    .auth-form { gap: 14px; }
    .auth-form input { height: 48px; font-size: 13px; }
    .auth-form .btn { width: 100%; }
    .register-grid { grid-template-columns: 1fr; gap: 14px; }
    .register-footer { display: grid; justify-items: center; margin-top: 18px; }

    /* ── Build / Catalog ── */
    .build-content { margin-top: 0; padding: 26px 0 34px; }
    .build-text { padding: 0 16px; margin-bottom: 24px; }
    .build-text h1 { font-size: 17px; }
    .build-text p { margin-top: 14px; font-size: 15px; }
    .build-options { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
    .build-option { gap: 12px; }
    .build-option img { height: 180px; }
    .catalog-page { background: #ffffff; }
    .search-row, .catalog-tools { display: none; }
    .catalog-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 36px; }
    .product-card { min-height: 0; padding: 16px 14px 10px; }
    .product-card .image-wrap { height: 120px; }
    .product-card img { width: 160px; height: 90px; }

    /* ── Quick build ── */
    .quick-layout { grid-template-columns: 1fr; }
    .quick-copy { padding: 28px 16px 22px; }
    .quick-copy h1 { font-size: 17px; }
    .quick-copy p { font-size: 14px; }
    .quick-form-panel { padding: 22px 16px 28px; }
    .quick-form { gap: 16px; }
    .quick-form input, .quick-form select { width: 100%; }
    .quick-form .btn { justify-self: stretch; margin-top: 14px; }

    /* ── Drawing ── */
    .drawing-panel { padding: 24px 10px 28px; }
    .technical-title { margin-bottom: 20px; }
    .technical-title span { font-size: 24px; letter-spacing: 8px; }
    .technical-title strong { font-size: 36px; }
    .drawing-box svg { min-width: 680px; }

    /* ── Dashboard pages ── */
    .dashboard-title {
        margin: 20px 16px 20px;
        font-size: 20px;
        line-height: 1.2;
    }
    .dashboard-shell { display: block; padding: 0 12px 28px; }
    .side-menu { display: none; }          /* replaced by mob-nav drawer */
    .dashboard-grid { grid-template-columns: 1fr; gap: 14px; }
    .dash-card header { justify-content: center; }

    /* Admin tables — horizontal scroll */
    .admin-content { padding: 0 12px 32px; }
    .admin-content .dash-body { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; }
    .admin-content .orders-table { min-width: 640px; white-space: nowrap; }
    .admin-content .orders-table td,
    .admin-content .orders-table th { padding: 10px 12px; }

    /* Card-table — each row becomes a stacked card (no scroll) */
    .card-table { min-width: 0 !important; width: 100% !important; }
    .card-table thead { display: none; }
    .card-table tbody { display: block; padding: 10px; }
    .card-table tbody tr {
        display: block;
        border: 1px solid #d2d2d2;
        border-radius: 6px;
        margin-bottom: 12px;
        overflow: hidden;
    }
    .card-table tbody tr:last-child { margin-bottom: 0; }
    .card-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-bottom: 1px solid #eeeeee;
        font-size: 13px;
        white-space: normal;
        min-width: 0;
    }
    .card-table td:last-child { border-bottom: none; }
    .card-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex-shrink: 0;
        min-width: 100px;
    }
    /* Handling-celle: knapper grupperedes til højre */
    .card-table .card-btns {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    /* Admin tabs — scroll horizontally */
    .admin-tabs {
        margin-left: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0;
        scrollbar-width: none;
    }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-tab { white-space: nowrap; padding: 10px 16px; font-size: 13px; }

    /* Profile fields — allow label wrap */
    .profile-fields { grid-template-columns: 110px 1fr; font-size: 13px; }
    .profile-fields span { padding: 8px 6px; }

    /* Pricing form — stack vertically */
    .pricing-form, .offer-form { flex-direction: column; align-items: stretch; }
    .price-input { width: 100%; }
    .pricing-label { font-size: 12px; }

    /* Buttons — better touch targets */
    .btn { min-height: 40px; font-size: 14px; padding: 0 18px; }
    .btn--pay, .btn--reject { min-height: 40px; }
    .back-btn { width: 100%; justify-content: center; margin-top: 14px; }

    /* Inspiration */
    .inspiration-grid { grid-template-columns: 1fr; gap: 12px; }
}
