/* ── Rubikskube Light Theme ────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --color-bg: #f5f7fa;
    --color-surface: #ffffff;
    --color-surface-raised: #edf0f7;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-border-hover: #3b82f6;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-accent-glow: rgba(59, 130, 246, 0.10);
    --color-secondary: #f97316;
    --color-error: #ef4444;
    --color-success: #16a34a;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-glow: 0 4px 20px rgba(59, 130, 246, 0.12);
    --max-width: 1200px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-hover); }

/* ── Announcement Bar ─────────────────────────────────────────── */

.announcement-bar {
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
}

/* ── Header ───────────────────────────────────────────────────── */

header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

header .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text) !important;
    letter-spacing: -0.03em;
}

header .nav-links a {
    color: var(--color-text-muted) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color var(--transition);
}

header .nav-links a:hover {
    color: var(--color-text) !important;
}

.nav-toggle span {
    background: var(--color-text);
}

/* ── Forside: alle produkter (JS) ─────────────────────────────── */

.home-products-lead {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 520px;
    margin: -0.5rem auto 1.5rem;
    text-align: center;
}

#home-products-root.home-products-loading {
    min-height: 120px;
}

.home-products-loading,
.home-products-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 1rem;
}

.home-products-empty a {
    font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin-top: 0.5rem;
    padding: 0.85rem 2.2rem;
    font-size: 0.95rem;
}

/* ── Forside: guider ─────────────────────────────────────────── */

.home-guides {
    max-width: var(--max-width);
    margin: 3rem auto 0;
    padding: 2.5rem 1.5rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.home-guides-lead {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin: 0.35rem auto 1.25rem;
    max-width: 520px;
}

.home-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: left;
}

.home-guide-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    text-decoration: none !important;
    color: var(--color-text) !important;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-guide-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.home-guide-card-thumb {
    aspect-ratio: 1;
    margin: 0 0 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-guide-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
}

.home-guide-card-thumb--empty {
    min-height: 160px;
}

.home-guide-card-title {
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-heading);
    line-height: 1.35;
}

.home-guides-more {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
}

.home-guides-more a {
    font-weight: 600;
}

/* ── Section Titles ───────────────────────────────────────────── */

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* ── Product Grid ─────────────────────────────────────────────── */

.product-grid {
    gap: 1.25rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card .card-image {
    background: var(--color-surface-raised);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-image img {
    object-fit: contain;
    padding: 1.25rem;
    mix-blend-mode: multiply;
}

.product-card .card-body {
    padding: 0.9rem 1rem 0.4rem;
    background: var(--color-surface);
}

.product-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.product-card h3 a {
    color: var(--color-text) !important;
    font-family: var(--font-heading);
}

.product-card h3 a:hover {
    color: var(--color-accent) !important;
}

.product-card .price {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.product-card .card-actions {
    padding: 0.4rem 1rem 1rem;
    background: var(--color-surface);
}

.out-of-stock {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Category Badge ───────────────────────────────────────────── */

.category-badge {
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

/* ── Categories / Filter Pills ────────────────────────────────── */

.categories a {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    transition: all var(--transition);
}

.categories a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.04);
}

.categories a.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(59, 130, 246, 0.04);
    color: var(--color-text);
}

.btn-small {
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
}

/* ── Product Detail ───────────────────────────────────────────── */

.product-images .main-image {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.product-images .main-image img {
    object-fit: contain;
    padding: 1.5rem;
    mix-blend-mode: multiply;
}

.thumbnails img {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    transition: border-color var(--transition);
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--color-accent);
}

.product-info .breadcrumbs a {
    color: var(--color-text-muted);
}

.product-info .breadcrumbs a:hover {
    color: var(--color-accent);
}

.product-info h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.product-info .price {
    color: var(--color-text);
    font-family: var(--font-heading);
}

.product-info .description {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.product-info .stock {
    color: var(--color-success);
}

.product-info .stock.low {
    color: var(--color-secondary);
}

.product-info .stock.out {
    color: var(--color-error);
}

.variant-selector select,
.quantity-selector input[type="number"] {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.variant-selector select:focus,
.quantity-selector input[type="number"]:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* ── Cart ─────────────────────────────────────────────────────── */

.cart-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.cart-summary {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.cart-summary .total {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ── Cart Drawer (slide-in panel) ────────────────────────────── */

#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    pointer-events: none;
    transition: background 0.35s ease;
}

#cart-overlay.active {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: all;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    background: var(--color-surface);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0);
}

#cart-drawer.open {
    transform: translateX(0);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.cart-drawer-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-text);
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.cart-drawer-close:hover {
    color: var(--color-text);
    background: var(--color-surface-raised);
}

#cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

#cart-drawer-footer {
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.25rem;
    flex-shrink: 0;
}

.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    gap: 1rem;
}

.cart-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    animation: cartItemSlideIn 0.3s ease both;
}

.cart-drawer-item:last-child {
    border-bottom: none;
}

@keyframes cartItemSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-drawer-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-drawer-item-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface-raised);
}

.cart-drawer-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cart-drawer-item-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text) !important;
    text-decoration: none !important;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-drawer-item-name:hover {
    color: var(--color-accent) !important;
}

.cart-drawer-item-variant {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.cart-drawer-item-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--color-text);
}

.cart-drawer-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    padding: 0 0.2rem;
    line-height: 1;
    transition: color var(--transition);
    flex-shrink: 0;
}

.cart-drawer-item-remove:hover {
    color: var(--color-error);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.cart-drawer-total strong {
    font-weight: 800;
}

/* ── Toast notifications ─────────────────────────────────────── */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: var(--color-text);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-error {
    background: var(--color-error);
    color: #fff;
}

/* ── Search ───────────────────────────────────────────────────── */

.search-form input {
    border-color: var(--color-border);
    font-family: var(--font-body);
}

.search-form input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.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;
}

/* Live search overlay (Cmd/Ctrl+K) */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 1rem 2rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.search-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    overflow: hidden;
    animation: searchPanelIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes searchPanelIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-panel-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.search-panel-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    display: flex;
}

.search-live-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text);
    min-width: 0;
}

.search-live-input::placeholder {
    color: var(--color-text-muted);
}

.search-live-input:focus {
    outline: none;
}

.search-panel-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--color-surface-raised);
    border-radius: var(--radius-sm);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.search-panel-close:hover {
    color: var(--color-text);
    background: var(--color-border);
}

.search-live-status {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.search-live-results {
    flex: 1;
    overflow-y: auto;
    min-height: 120px;
    max-height: 48vh;
    -webkit-overflow-scrolling: touch;
}

.search-hint,
.search-empty {
    padding: 1.75rem 1.25rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.search-result-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.search-result-row:last-child {
    border-bottom: none;
}

.search-result-row:hover,
.search-result-row.is-active {
    background: rgba(59, 130, 246, 0.06);
}

.search-result-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    mix-blend-mode: multiply;
}

.search-result-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface-raised);
}

.search-result-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-result-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.search-result-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text);
}

.search-panel-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.search-see-all {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-accent) !important;
}

.search-see-all:hover {
    color: var(--color-accent-hover) !important;
}

.search-shortcuts-hint kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-search-trigger {
    cursor: pointer;
}

/* ── Forms ────────────────────────────────────────────────────── */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ── Notices / Status Badges ──────────────────────────────────── */

.notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.notice.success {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: var(--color-success);
}

.notice.error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-error);
}

.notice.warning {
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--color-secondary);
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pending { background: rgba(107, 114, 128, 0.1); color: var(--color-text-muted); }
.status-paid { background: rgba(59, 130, 246, 0.1); color: var(--color-accent); }
.status-shipped { background: rgba(249, 115, 22, 0.1); color: var(--color-secondary); }
.status-delivered { background: rgba(22, 163, 74, 0.1); color: var(--color-success); }
.status-refunded { background: rgba(239, 68, 68, 0.1); color: var(--color-error); }

/* ── Pagination ───────────────────────────────────────────────── */

.pagination a:hover {
    border-color: var(--color-accent);
    background: rgba(59, 130, 246, 0.04);
}

.pagination .active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ── Footer ───────────────────────────────────────────────────── */

footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

footer .footer-links a {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    transition: color var(--transition);
}

footer .footer-links a:hover {
    color: var(--color-accent);
}

footer .footer-social a {
    color: var(--color-text-muted);
}

footer .footer-social a:hover {
    color: var(--color-accent);
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

/* ── Account / Admin ──────────────────────────────────────────── */

.account-dashboard,
.account-login,
.account-orders,
.account-order-detail {
    max-width: 800px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.account-card h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.nav-admin-link {
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--transition);
}

.nav-admin-link:hover {
    background: var(--color-accent-hover);
    color: #fff !important;
}

.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@keyframes adminSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    min-height: calc(100vh - 200px);
}

.admin-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    padding: 1.5rem 1rem;
    background: #16181f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.admin-back-link {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7589 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.admin-back-link:hover {
    color: #c4c9d4 !important;
}

.admin-sidebar-kicker {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7589;
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
}

.admin-page-eyebrow,
.admin-toolbar-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin: 0 0 0.4rem;
}

.admin-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1.5rem;
    padding: 0 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-content {
    padding: 2rem;
    animation: adminSlideUp 0.35s ease-out;
}

.admin-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-page-header h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.admin-page-lead,
.admin-toolbar-copy,
.admin-empty-state,
.admin-table-meta {
    color: var(--color-text-muted);
}

.admin-page-lead,
.admin-toolbar-copy,
.admin-empty-state {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.admin-nav.admin-nav-vertical {
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.orders-table th {
    text-align: left;
    padding: 0.7rem 0.85rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    position: sticky;
    top: 0;
}

.orders-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}

.orders-table tbody tr {
    transition: background 0.15s ease;
}

.orders-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.025);
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table td a {
    font-weight: 600;
    font-size: 0.84rem;
}

.admin-nav a {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.8rem;
    transition: all var(--transition);
}

.admin-nav.admin-nav-vertical a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0;
    color: #8b92a5;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.admin-nav.admin-nav-vertical a:hover {
    color: #c4c9d4;
    background: rgba(255, 255, 255, 0.04);
    border-left-color: transparent;
}

.admin-nav.admin-nav-vertical a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
    border-left-color: #3b82f6;
    font-weight: 600;
}

.admin-nav.admin-nav-vertical a .admin-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.admin-nav.admin-nav-vertical a:hover .admin-nav-icon,
.admin-nav.admin-nav-vertical a.active .admin-nav-icon {
    opacity: 1;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--color-accent));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:nth-child(1) { --stat-accent: #3b82f6; }
.stat-card:nth-child(2) { --stat-accent: #f97316; }
.stat-card:nth-child(3) { --stat-accent: #16a34a; }
.stat-card:nth-child(4) { --stat-accent: #8b5cf6; }

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.stat-detail {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.admin-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-panel-card,
.admin-table-card,
.admin-actions,
.order-meta,
.order-totals,
.admin-toolbar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.admin-panel-card,
.order-meta,
.order-totals {
    padding: 1.1rem 1.2rem;
}

.admin-panel-header {
    margin-bottom: 0.9rem;
}

.admin-panel-header h3,
.admin-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.admin-panel-header p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-link-list {
    display: grid;
    gap: 0.6rem;
}

.admin-link-list a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text) !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-link-list a::before {
    content: '\2192';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-accent);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.admin-link-list a:hover {
    border-color: var(--color-accent);
    background: rgba(59, 130, 246, 0.02);
    transform: translateX(2px);
}

.admin-link-list a:hover::before {
    background: var(--color-accent);
    color: #fff;
}

.admin-summary-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.admin-summary-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-summary-list div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.admin-summary-list dt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.admin-summary-list dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.admin-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.order-filters a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted) !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.order-filters a:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text) !important;
    background: var(--color-bg);
}

.order-filters a.active {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff !important;
}

.admin-table-card {
    overflow: hidden;
}

.admin-readonly-table th:last-child,
.admin-readonly-table td:last-child {
    text-align: right;
}

.admin-table-meta {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.admin-data-root {
    min-height: 120px;
}

.admin-empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.order-meta p,
.order-totals p {
    margin: 0;
}

.order-totals {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0 1.5rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

.admin-actions {
    padding: 1.2rem;
    margin-top: 1rem;
}

.admin-danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.admin-danger .admin-section-title {
    color: var(--color-error);
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* ── Selection ────────────────────────────────────────────────── */

::selection {
    background: rgba(59, 130, 246, 0.15);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 960px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-nav.admin-nav-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .admin-nav.admin-nav-vertical a {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius-sm);
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .admin-nav.admin-nav-vertical a.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-accent);
    }

    .admin-nav.admin-nav-vertical a .admin-nav-icon {
        width: 16px;
        height: 16px;
    }

    .admin-back-link {
        display: none;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 1rem 2.5rem;
    }

    header .nav-links {
        background: var(--color-surface) !important;
        border-bottom-color: var(--color-border) !important;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 1.25rem;
    }

    .admin-page-header h2 {
        font-size: 1.4rem;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-card .card-image img {
        padding: 0.75rem;
    }
}

/* ── Guider / innholdssider ───────────────────────────────────── */

.guide-index ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.guide-index-item {
    border-bottom: 1px solid var(--color-border);
}

.guide-index-item:last-child {
    border-bottom: none;
}

.guide-index-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none !important;
    color: inherit !important;
    align-items: flex-start;
    transition: background var(--transition);
}

.guide-index-card:hover {
    background: rgba(59, 130, 246, 0.04);
}

.guide-index-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-index-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.4rem;
}

.guide-index-thumb--empty {
    background: linear-gradient(135deg, var(--color-surface-raised), var(--color-border));
}

.guide-index-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.guide-index-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
    line-height: 1.3;
}

.guide-index-card:hover .guide-index-title {
    color: var(--color-accent-hover);
}

.guide-index-excerpt {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Innholdssider: én h1 fra HTML (ikke duplisert fra mal) */
.content-page .page-body {
    max-width: 720px;
    margin: 0 auto;
}

.content-page .page-title,
.guide-page-h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.guide-index .page-title {
    margin-bottom: 0.5rem;
}

.content-page .static-page .page-lead {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.content-page .static-page p {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.content-page .static-page h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1.75rem 0 0.5rem;
    line-height: 1.3;
}

.content-page .static-page ul,
.content-page .static-page ol {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.content-page .static-page li {
    margin-bottom: 0.35rem;
}

.guide-article {
    max-width: 720px;
    margin: 0 auto;
}

.guide-article p,
.guide-article li {
    color: var(--color-text-muted);
}

.guide-article h2,
.guide-article h3,
.guide-article h4 {
    color: var(--color-text);
}

.guide-product-embed {
    margin: 1.25rem 0;
}

.guide-product-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.guide-product-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.guide-product-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    mix-blend-mode: multiply;
}

.guide-product-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.guide-product-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.3;
}

.guide-product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-text);
}

.guide-product-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.guide-table th,
.guide-table td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.guide-table thead {
    background: var(--color-surface-raised);
}

.guide-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* ── Mini-kube «confetti» (som kuber-appen) ───────────────────── */

@keyframes storeCubeBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.35);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            translate(var(--cube-x), var(--cube-y))
            rotate(var(--cube-rotation))
            scale(1);
    }
}

.store-celebration-shell {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.order-confirmation .store-celebration-shell {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 0.5rem;
}

.store-cube-burst {
    position: absolute;
    inset: var(--cube-origin-y) auto auto var(--cube-origin-x);
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

.store-cube-particle {
    position: absolute;
    left: 0;
    top: 0;
    animation: storeCubeBurst var(--cube-duration) ease-out forwards;
    animation-delay: var(--cube-delay);
}

.store-mini-cube {
    width: var(--cube-size);
    height: var(--cube-size);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 1px;
    border-radius: 4px;
    background: #161622;
    box-shadow: 0 6px 14px rgba(21, 21, 45, 0.18);
}

.store-mini-cube-sticker:nth-child(1) { background: #ff5b24; }
.store-mini-cube-sticker:nth-child(2) { background: #20b36d; }
.store-mini-cube-sticker:nth-child(3) { background: #f6f7fb; }
.store-mini-cube-sticker:nth-child(4) { background: #ffd84d; }
.store-mini-cube-sticker:nth-child(5) { background: #2d7ff9; }
.store-mini-cube-sticker:nth-child(6) { background: #ff5b24; }
.store-mini-cube-sticker:nth-child(7) { background: #20b36d; }
.store-mini-cube-sticker:nth-child(8) { background: #f6f7fb; }
.store-mini-cube-sticker:nth-child(9) { background: #ffd84d; }

.store-mini-cube-sticker {
    border-radius: 1px;
}

@media (max-width: 640px) {
    .store-cube-burst {
        inset-inline-start: var(--cube-origin-x-mobile);
    }
}

/* Footer nyhetsbrev */
.footer-newsletter-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    max-width: 420px;
}

.footer-newsletter-block .footer-newsletter-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.35rem;
    color: var(--color-text);
}

.footer-newsletter-block .footer-newsletter-lead {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.footer-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.footer-newsletter-form .btn {
    white-space: nowrap;
}

.footer-newsletter-thanks {
    color: var(--color-success);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0;
}

.footer-newsletter-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}
