:root {
    --brand-pink: #ff3f8a;
    --brand-purple: #4c256c;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --radius-xl: 22px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 30px rgba(15,23,42,0.06);
    --transition-fast: 0.18s ease-out;
    --bg-white: #ffffff;
    --link-blue: #4f46e5;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--brand-pink);
}

/* Topbar */

.topbar-wrap {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--brand-purple);
    white-space: nowrap;
}

.logo-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--brand-pink);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.top-nav a {
    padding: 4px 0;
}

.top-nav a.nav-strong {
    font-weight: 600;
    color: var(--text-main);
}

.search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-form {
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 9px 40px 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    font-size: 14px;
    outline: none;
    transition: border var(--transition-fast), box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.search-input:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 2px rgba(255,63,138,0.12);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid var(--text-muted);
    box-shadow: 3px 3px 0 var(--text-muted);
}

.login-btn {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 13px;
    cursor: pointer;
    background: #ffffff;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.login-btn:hover {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
    box-shadow: var(--shadow-soft);
}

/* Bottom nav */

.bottom-nav-wrap {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
}

.bottom-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px 12px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.bottom-nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.bottom-nav-item-icon {
    width: 14px;
    height: 14px;
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
}

.bottom-nav-item:hover {
    background: #f9fafb;
    color: var(--brand-pink);
}

/* Hero */

.hero-wrap {
    background-color: var(--bg-white);
}

.hero {
    max-width: 1280px;
    margin: 18px;
    padding: 22px 24px 20px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, #ff8ab5 0, #7a2d86 35%, #2a133d 100%);
    color: #ffffff;
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(140px,1fr);
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.hero-text h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.hero-text p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #f9fafb;
    text-align: left;
}

.hero-body {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.hero-body h1,
.hero-body h2,
.hero-body h3 {
    font-size: 18px;
    margin: 0 0 4px;
    font-weight: 600;
}

.hero-body p {
    margin: 0 0 4px;
}

.hero-body ul {
    margin: 4px 0 0 16px;
    padding: 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #ff3f8a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    transition: all var(--transition-fast);
}

.hero-btn span.arrow {
    display: inline-block;
    transform: translateY(1px);
}

.hero-btn:hover {
    background: #ff2478;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.hero-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.hero-logo-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.25);
}

/* Category section */

.category-section {
    max-width: 1280px;
    margin: 16px auto 40px;
    padding: 0 20px 10px;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    margin: 6px 0 14px;
    color: var(--text-main);
}

/* Max 3 kolonner */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Category card */

.category-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 12px 14px 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 120px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
                border-color var(--transition-fast), background var(--transition-fast);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(15,23,42,0.10);
    border-color: rgba(79,70,229,0.18);
    background: #fdfdfd;
}

.category-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.category-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.category-more {
    font-size: 12px;
    font-weight: 500;
    color: var(--link-blue);
    white-space: nowrap;
}

.subcat-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.subcat-list a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subcat-list a:hover {
    color: var(--link-blue);
}

/* Category page */

.category-header {
    margin-bottom: 14px;
}

.category-header h1 {
    margin: 0 0 4px;
    font-size: 24px;
}

.category-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.subcategory-card {
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    box-shadow: 0 6px 14px rgba(15,23,42,0.04);
    transition: all var(--transition-fast);
}

.subcategory-card:hover {
    border-color: var(--brand-pink);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    transform: translateY(-2px);
}

/* Item page */

.item-wrap {
    max-width: 960px;
    margin: 24px auto 40px;
    padding: 0 20px;
}

.item-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.item-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.item-layout {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(220px,1fr);
    gap: 20px;
    align-items: flex-start;
}

.item-image {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.item-price {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 4px;
}

.item-retailer {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.item-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--brand-pink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.item-button:hover {
    background: #ff2478;
    box-shadow: 0 8px 20px rgba(15,23,42,0.18);
    transform: translateY(-1px);
}

.item-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

/* Footer */

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 18px 20px 24px;
    margin-top: 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--brand-pink);
}

/* Responsive */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .bottom-nav {
        padding: 6px 16px 10px;
    }

    /* Hero får samme sideafstand som resten */
    .hero {
        grid-template-columns: 1fr;
        padding: 18px 16px 16px;
        margin: 14px 16px 6px; /* <-- vigtig: ikke auto længere */
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .category-section {
        padding: 0 16px 10px;
    }

    .item-wrap {
        padding: 0 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .item-layout {
        grid-template-columns: 1fr;
    }
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-row {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: background 0.2s ease;
}

.product-row:hover {
    background: #fafafa;
}

.product-row-inner {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    padding: 10px;
}

.product-image {
    max-height: 180px;   /* ↓ ny grænse for billedhøjde */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    padding-left: 16px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-retailer {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.oldprice {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
}