/* ========================================
   BordsGillet Stockholm - Main Stylesheet
   Colors: Cream #F5F0E8, Black #1a1a1a, Gold #C5A55A
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #F5F0E8;
    --cream-dark: #E8E0D0;
    --black: #2A231B;          /* varm bläcksvart */
    --gold: #C5A55A;
    --gold-light: #D4B96A;
    --gold-dark: #A8894A;
    --gray: #6E6255;           /* varm grå */
    --gray-light: #F0EBE3;
    --gray-medium: #D6CDBF;
    --white: #FFFFFF;
    --bg: #FBF8F2;             /* varm off-white, sidbakgrund */
    --linen: #F2EBDF;          /* sektionsbakgrund */
    --espresso: #2A231B;       /* mörk overlay/toast */
    --terracotta: #A9673F;     /* varm accent */
    --forest: #2E4638;         /* mörkgrön accent */
    --forest-deep: #223A2C;    /* djupare grön, footer */
    --sage: #E9EFE5;           /* ljus grön ton, bakgrunder */
    --red: #C0392B;
    --green: #3E7A4E;          /* dämpad success-grön, matchar paletten */
    --blue: #2980B9;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.25s ease;
    --header-height: 80px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-small { font-size: 0.875rem; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 55px; width: auto; }
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--black);
    text-transform: uppercase;
    display: block;
}
.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    padding: 8px 16px;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    background: var(--gold);
    color: var(--white);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Search bar in header */
.header-search {
    position: relative;
    width: 240px;
}
.header-search input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--white);
    transition: border-color var(--transition);
}
.header-search input:focus {
    outline: none;
    border-color: var(--gold);
}
.header-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
    padding: 8px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
}
.btn-secondary {
    background: var(--black);
    color: var(--white);
}
.btn-secondary:hover { background: #333; color: var(--white); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #A93226; color: var(--white); }

.btn-arrow {
    display: inline-block;
    background: none;
    border: 1px solid var(--gray-medium);
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.65rem;
    color: var(--gray);
    line-height: 1;
    transition: all var(--transition);
}
.btn-arrow:hover { border-color: var(--gold); color: var(--gold); }
.btn-arrow.disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.btn-success { background: var(--green); color: var(--white); }


/* ========================================
   CATEGORY CARDS (Home page)
   ======================================== */
.section { padding: 64px 0; }
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title .gold-line {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--black);
    box-shadow: var(--shadow);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--black);
}
.category-card-image {
    height: 200px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-card-image .placeholder-icon { font-size: 3rem; color: var(--gold); }
.category-card-body { padding: 20px; }
.category-card-body h3 { margin-bottom: 6px; }
.category-card-body p { color: var(--gray); font-size: 0.9rem; }

/* ========================================
   PRODUCT CATALOG
   ======================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar filters */
.catalog-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 12px;
}
.filter-group ul { list-style: none; }
.filter-group li { margin-bottom: 4px; }
.filter-group li a {
    display: block;
    padding: 6px 12px;
    color: var(--black);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all var(--transition);
}
.filter-group li a:hover,
.filter-group li a.active {
    background: var(--cream);
    color: var(--gold-dark);
}
.filter-group li.sub-item a { padding-left: 28px; font-size: 0.85rem; }

/* Collapsible category menu */
.cat-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cat-parent-row a { flex: 1; }
.cat-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.7rem;
    color: var(--gray);
    transition: transform 0.25s ease;
    line-height: 1;
}
.cat-parent.open > .cat-parent-row .cat-toggle {
    transform: rotate(180deg);
}
.cat-children {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.cat-parent.open > .cat-children {
    max-height: 500px;
}
.cat-children li a {
    padding-left: 24px;
    font-size: 0.85rem;
}
.cat-children .cat-children li a {
    padding-left: 40px;
    font-size: 0.82rem;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-new { background: var(--green); color: var(--white); }
.badge-used { background: var(--blue); color: var(--white); }
.badge-rental { background: var(--gold); color: var(--white); }

.product-card-image {
    height: 200px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image .placeholder-icon { font-size: 2.5rem; color: var(--gray-medium); }
.catalog-zoom-thumb {
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    transition: background-size 0.3s ease;
}
.product-card-image:hover .catalog-zoom-thumb {
    background-size: 450% !important;
}

.product-card-body { padding: 16px; }
.product-card-body .article-nr {
    font-size: 0.75rem;
    color: var(--gray);
    font-family: monospace;
    margin-bottom: 4px;
}
.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
}
.product-card-body .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.product-card-body .price-hidden {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}
.product-card-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}
.product-card-actions .btn { flex: 1; justify-content: center; font-size: 0.8rem; padding: 8px; }

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbnails { display: flex; gap: 8px; }
.product-gallery .thumb {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}
.product-gallery .thumb.active { border-color: var(--gold); }

.product-info h1 { font-size: 2rem; margin-bottom: 8px; }
.product-info .article-nr { color: var(--gray); font-family: monospace; margin-bottom: 16px; }
.product-info .price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 24px;
}
.product-info .description { margin-bottom: 24px; color: var(--gray); line-height: 1.8; }

.product-options { margin-bottom: 24px; }
.product-options label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-options select,
.product-options input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.product-options select:focus,
.product-options input:focus {
    outline: none;
    border-color: var(--gold);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}
.qty-control button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-medium);
    background: var(--gray-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-control button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-control button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--gray-medium);
    border-left: none;
    border-right: none;
    font-size: 1rem;
    margin: 0;
    border-radius: 0;
}

.product-specs { margin-top: 32px; border-top: 1px solid var(--gray-light); padding-top: 24px; }
.product-specs h3 { margin-bottom: 16px; }
.specs-table { width: 100%; }
.specs-table tr:nth-child(even) { background: var(--gray-light); }
.specs-table td { padding: 10px 14px; font-size: 0.9rem; }
.specs-table td:first-child { font-weight: 600; width: 40%; color: var(--gray); }

/* ========================================
   VARUKORG (header-knapp; sidan stylas under KASSASIDA)
   ======================================== */

/* === Quantity stepper (replaces native number-input spinners site-wide) === */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--gray-medium, #d4d0c4);
    border-radius: 4px;
    overflow: hidden;
    background: white;
    vertical-align: middle;
}
.qty-stepper button {
    background: #f5f5f5;
    border: none;
    width: 30px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: bold;
    color: #555;
    padding: 0;
    user-select: none;
    transition: background 0.1s;
}
.qty-stepper button:hover { background: var(--gold, #b8902a); color: white; }
.qty-stepper button:active { background: var(--gold-dark, #8a6b1f); }
.qty-stepper input[type="number"] {
    width: 50px;
    border: none;
    border-left: 1px solid var(--gray-medium, #d4d0c4);
    border-right: 1px solid var(--gray-medium, #d4d0c4);
    text-align: center;
    padding: 6px 2px;
    font-size: 0.95rem;
    -moz-appearance: textfield;
    background: transparent;
    outline: none;
}
.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper.qty-stepper-lg button { width: 38px; font-size: 1.2rem; }
.qty-stepper.qty-stepper-lg input { width: 60px; padding: 8px 4px; font-size: 1rem; }

/* ========================================
   FORMS & AUTH
   ======================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    background: var(--cream);
    padding: 40px 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
}
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--gray); margin-bottom: 32px; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .form-hint { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-error { color: var(--red); font-size: 0.85rem; margin-top: 4px; }
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-error { background: #FDEDEC; color: var(--red); border: 1px solid #F5C6CB; }
.alert-success { background: #E8F8F0; color: var(--green); border: 1px solid #A3DFBF; }
.alert-info { background: #EBF5FB; color: var(--blue); border: 1px solid #AED6F1; }

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
    background: var(--black);
    color: var(--white);
    padding: 24px 0;
}
.admin-sidebar h3 {
    color: var(--gold);
    padding: 0 20px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.admin-sidebar a .icon { width: 20px; text-align: center; }

.admin-content { padding: 32px; background: var(--gray-light); }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-header h1 { font-size: 1.6rem; }

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-serif);
}
.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-top: 4px;
}

/* Admin tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 2px solid var(--gray-light);
}
.data-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}
.data-table tr:hover { background: rgba(197, 165, 90, 0.04); }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-pending { background: #FEF5E7; color: #E67E22; }
.status-confirmed { background: #EBF5FB; color: var(--blue); }
.status-processing { background: #F4ECF7; color: #8E44AD; }
.status-shipped { background: #E8F8F0; color: var(--green); }
.status-delivered { background: #E8F8F0; color: #1E8449; }
.status-cancelled { background: #FDEDEC; color: var(--red); }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--black);
}
.pagination a:hover { background: var(--cream); }
.pagination .active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand .logo-sub { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 4px 0;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .separator { margin: 0 8px; }

/* ========================================
   AI MATCH SECTION
   ======================================== */
.ai-match-bar {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ai-match-bar .ai-icon {
    font-size: 2rem;
    color: var(--gold);
}
.ai-match-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.95rem;
}
.ai-match-bar input::placeholder { color: rgba(255,255,255,0.5); }
.ai-match-bar input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 220px 1fr; gap: 20px; }
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Catalog page layout */
.catalog-page-layout {
    margin-bottom: 32px;
}
.catalog-page-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}
.catalog-page-image img {
    width: 100%;
    display: block;
    cursor: pointer;
}
.catalog-page-products {
    min-height: 0;
}
.catalog-product-row {
    display: flex;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
    transition: background-color 0.2s;
    border-radius: 6px;
}
.catalog-product-row:hover {
    background-color: var(--cream);
}
.catalog-product-name {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}
.catalog-product-name:hover {
    color: var(--gold);
}
.catalog-product-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 3px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.catalog-artnr {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    font-family: monospace;
    letter-spacing: 0.3px;
}
.catalog-artnr:hover {
    text-decoration: underline;
}
.catalog-size {
    color: var(--gray);
}
.catalog-price {
    font-weight: 600;
    color: var(--dark);
}
.catalog-add-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
}
.catalog-section {
    margin-bottom: 32px;
}

/* Product popup modal */
.product-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-popup {
    background: var(--white);
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.product-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    z-index: 1;
    line-height: 1;
    transition: color var(--transition);
}
.product-popup-close:hover { color: var(--black); }
.product-popup-body {
    display: flex;
    gap: 0;
}
.product-popup-image {
    flex: 0 0 60%;
    max-width: 60%;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    background: var(--gray-light);
    position: relative;
}
.product-popup-crop {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    cursor: grab;
    user-select: none;
}
.product-popup-crop:active {
    cursor: grabbing;
}
.product-popup-crop img {
    width: 100%;
    display: block;
    pointer-events: none;
}
.popup-product-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(197,165,90,0.25), 0 0 20px rgba(197,165,90,0.3);
    animation: popupMarkerPulse 2s ease-in-out infinite;
}
.popup-product-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(197,165,90,0.5);
    border-radius: 50%;
}
@keyframes popupMarkerPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(197,165,90,0.25), 0 0 20px rgba(197,165,90,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(197,165,90,0.15), 0 0 30px rgba(197,165,90,0.4); }
}
.product-popup-fullpage {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.product-popup-fullpage:hover { background: rgba(0,0,0,0.8); }
.product-popup-info {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-popup-artnr {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.product-popup-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--black);
    line-height: 1.3;
}
.product-popup-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}
.product-popup-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dark);
    margin-top: 4px;
}
.product-popup-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 8px;
}
.product-popup-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}
@media (max-width: 768px) {
    .product-popup-body { flex-direction: column; }
    .product-popup-image {
        flex: none;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .product-popup-crop { height: 280px; }
    .popup-product-marker { width: 44px; height: 44px; border-width: 2px; }
    .product-popup-info { padding: 20px; }
    .product-popup-name { font-size: 1.2rem; }
    .product-popup-actions { flex-direction: column; }
    .product-popup-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
    .catalog-page-image img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--cream-dark);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .header-search { width: 160px; }

    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar {
        position: static;
        display: none;
    }
    .catalog-sidebar.open { display: block; }
    .filter-toggle {
        display: flex;
        margin-bottom: 16px;
    }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-image { height: 150px; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1500;
        width: 260px;
    }
    .admin-sidebar.open { display: block; }

    .admin-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .auth-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .header-search { display: none; }
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 6px;
}

/* ================================================================
   REDESIGN 2026 — Varm, bildriven stil (royaldesign/gustavsberg)
   Nya klasser för startsidan + globala förfiningar.
   ================================================================ */

/* — Globala förfiningar — */
.site-header { background: rgba(251,248,242,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-light); }
.btn { border-radius: 2px; text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.8rem; font-weight: 600; }
.btn-lg { font-size: 0.85rem; padding: 15px 40px; }
.btn-ghost {
    background: transparent; border: 1px solid rgba(255,255,255,0.7); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.product-card { border: none; box-shadow: 0 1px 4px rgba(42,35,27,0.06); }
.product-card:hover { box-shadow: 0 10px 30px rgba(42,35,27,0.12); transform: translateY(-3px); }
.category-card { border: none; }
.site-footer { background: var(--espresso); }

/* — Sektionsrubriker med kicker — */
.section-kicker {
    display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 2.2rem; font-weight: 500; }
.section-head p.sub { color: var(--gray); max-width: 560px; margin: 12px auto 0; font-size: 0.95rem; }
.section-head.left { text-align: left; }
.section-head.left p.sub { margin-left: 0; }

/* — Hero — */
.home-hero {
    position: relative; min-height: min(72vh, 800px); display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
    background-color: var(--linen);
}
.home-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(15deg, rgba(30,23,15,0.72) 0%, rgba(30,23,15,0.25) 45%, rgba(30,23,15,0) 75%);
}
.home-hero-content {
    position: relative; z-index: 2; color: #fff; padding: 0 24px 72px;
    max-width: 1280px; margin: 0 auto; width: 100%;
}
.home-hero-content .kicker {
    font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold-light); font-weight: 600; display: block; margin-bottom: 14px;
}
.home-hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; color: #fff;
    line-height: 1.15; max-width: 620px; margin-bottom: 14px; letter-spacing: 0.5px;
}
.home-hero-content p.lead {
    font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 520px;
    line-height: 1.7; margin-bottom: 30px;
}
.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* — USP-rad — */
.usp-strip { background: var(--linen); border-bottom: 1px solid var(--gray-light); }
.usp-strip .container {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 16px 24px;
}
.usp-strip span {
    font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray); font-weight: 500;
}
.usp-strip span::before { content: '·'; color: var(--gold); margin-right: 10px; font-weight: 700; }

/* — Kategorivärldar — */
.world-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.world-tile {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
    display: block; background: var(--linen);
}
.world-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.world-tile:hover img { transform: scale(1.05); }
.world-tile::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(30,23,15,0.62) 0%, rgba(30,23,15,0.05) 45%);
    transition: background 0.3s;
}
.world-tile-label {
    position: absolute; z-index: 2; bottom: 22px; left: 24px; right: 24px; color: #fff;
}
.world-tile-label h3 {
    font-size: 1.45rem; font-weight: 500; color: #fff; margin-bottom: 2px;
}
.world-tile-label span {
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 6px;
}
.world-tile-label span::after { content: '→'; transition: transform 0.3s; }
.world-tile:hover .world-tile-label span::after { transform: translateX(4px); }

/* — Split-banner (bild + text) — */
.split-banner {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
    background: var(--linen); border-radius: 2px; overflow: hidden;
}
.split-banner.reverse .split-banner-image { order: 2; }
.split-banner-image { min-height: 320px; background-size: cover; background-position: center; }
.split-banner-text {
    display: flex; flex-direction: column; justify-content: center;
    padding: 56px 8%; align-items: flex-start;
}
.split-banner-text h3 { font-size: 1.9rem; font-weight: 500; margin-bottom: 16px; }
.split-banner-text p { color: var(--gray); line-height: 1.8; margin-bottom: 28px; max-width: 420px; }

/* — Mood-mosaik — */
.mood-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mood-row .mood-cell {
    aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--linen);
}
.mood-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mood-row .mood-cell:hover img { transform: scale(1.06); }

/* — Responsivt för nya sektioner — */
@media (max-width: 1024px) {
    .world-grid { grid-template-columns: repeat(2, 1fr); }
    .mood-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .home-hero { min-height: 60vh; }
    .home-hero-content { padding-bottom: 48px; }
    .split-banner { grid-template-columns: 1fr; min-height: 0; }
    .split-banner.reverse .split-banner-image { order: 0; }
    .split-banner-text { padding: 36px 24px; }
    .usp-strip .container { gap: 20px; }
    .section-head h2 { font-size: 1.7rem; }
}
@media (max-width: 560px) {
    .world-grid { grid-template-columns: 1fr; }
    .world-tile { aspect-ratio: 16 / 10; }
    .mood-row { grid-template-columns: repeat(2, 1fr); }
}

/* Mobilheader: dölj global sök, kompaktare knappar */
@media (max-width: 640px) {
    .header-search { display: none; }
    .header-actions .btn { padding: 7px 12px; font-size: 0.7rem; letter-spacing: 0.5px; }
    .home-hero-content .kicker { font-size: 0.65rem; letter-spacing: 2.5px; }
}
@media (max-width: 640px) {
    .hide-sm { display: none; }
}

/* Brand-punkter: 3 kolumner desktop, 1 på mobil (fixar horisontellt överflöd) */
.brand-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
@media (max-width: 768px) {
    .brand-points { grid-template-columns: 1fr; gap: 28px; }
}

/* Katalogsida-etikett: markerar att bilden är katalogmaterial, inte sidhuvud */
.catalog-page-image { position: relative; }
.catalog-page-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: rgba(42,35,27,0.78); color: #fff;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 12px; border-radius: 2px; pointer-events: none;
}

/* Undersidornas hero-band: varm bild med overlay, ersätter gamla navy-gradienten */
.page-hero {
    position: relative; background-color: var(--espresso);
    background-size: cover; background-position: center;
    color: #fff; padding: 72px 24px 56px; text-align: center;
}
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(30,23,15,0.58); }
.page-hero .container { position: relative; z-index: 2; max-width: 760px; }
.page-hero .section-kicker { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: 2.4rem; font-weight: 500; margin: 0 0 12px; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin: 0; }

/* ================================================================
   VARUKORG: header-knapp + toast + kassasida
   ================================================================ */

/* Varukorgsknapp i headern */
.cart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid var(--gold);
    border-radius: 2px; color: var(--gold-dark);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    transition: all var(--transition); white-space: nowrap;
}
.cart-btn:hover { background: var(--gold); color: var(--white); }
.cart-btn .badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--white);
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 50%; font-size: 0.7rem; font-weight: 700;
}
.cart-btn:hover .badge-count { background: var(--white); color: var(--gold-dark); }

/* Toast: bekräftelse när något läggs i varukorgen */
.ob-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: var(--espresso); color: #fff;
    padding: 14px 20px; border-radius: 2px; font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: min(420px, calc(100vw - 48px));
}
.ob-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ob-toast a { color: var(--gold-light); font-weight: 600; white-space: nowrap; }

/* Kassasidans layout */
.kassa-layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start;
}
.kassa-layout.empty { grid-template-columns: 1fr; }

.kassa-empty {
    background: var(--white); border-radius: 2px; padding: 64px 24px;
    text-align: center; box-shadow: 0 1px 4px rgba(42,35,27,0.06);
}
.kassa-empty p { color: var(--gray); margin-top: 8px; }

.kassa-item {
    background: var(--white); border-radius: 2px; padding: 20px;
    margin-bottom: 14px; display: flex; gap: 20px;
    box-shadow: 0 1px 4px rgba(42,35,27,0.06);
}
.kassa-item-main { flex: 1; min-width: 0; }
.kassa-item-cat {
    display: inline-block; font-size: 0.72rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold-dark); margin-bottom: 2px;
}
.kassa-item-name {
    display: block; font-family: var(--font-serif); font-size: 1.15rem;
    font-weight: 600; color: var(--black); margin-bottom: 4px;
}
.kassa-item-name:hover { color: var(--gold-dark); }
.kassa-item-art { font-size: 0.8rem; color: var(--gray); font-family: monospace; }
.kassa-item-note {
    width: 100%; margin-top: 12px; padding: 7px 10px;
    border: 1px solid var(--gray-medium); border-radius: 2px; font-size: 0.85rem;
}
.kassa-item-note:focus { outline: none; border-color: var(--gold); }

.kassa-item-side {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    min-width: 150px;
}
.kassa-item-price { font-size: 0.9rem; color: var(--gray); text-align: right; }
.kassa-item-price strong { display: block; color: var(--gold-dark); font-size: 1.05rem; }
.kassa-item-remove {
    background: none; border: none; color: var(--gray); font-size: 0.8rem;
    cursor: pointer; text-decoration: underline; padding: 2px;
}
.kassa-item-remove:hover { color: var(--red); }

/* Uthyrningsrad i kassan */
.kassa-rental {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--linen); border-left: 3px solid var(--gold);
    padding: 10px 12px; border-radius: 2px; margin-top: 10px; font-size: 0.85rem;
}
.kassa-rental-tag {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold-dark);
}
.kassa-rental input[type="date"] {
    padding: 5px 8px; border: 1px solid var(--gray-medium); border-radius: 2px; font-size: 0.82rem;
}
.kassa-rental-days { color: var(--gray); font-size: 0.8rem; }

.kassa-avail { font-size: 0.82rem; margin-top: 8px; }
.kassa-avail.ok { color: var(--green); }
.kassa-avail.short { color: var(--red); font-weight: 600; }

.kassa-actions-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Summeringskortet */
.kassa-summary { position: sticky; top: calc(var(--header-height) + 16px); }
.kassa-summary-card {
    background: var(--white); border-radius: 2px; padding: 24px;
    box-shadow: 0 1px 4px rgba(42,35,27,0.06);
}
.kassa-summary-card h3 { margin-bottom: 14px; }
.kassa-sum-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 0.95rem; color: var(--gray);
}
.kassa-sum-row strong { color: var(--black); }
.kassa-sum-row.total {
    border-top: 1px solid var(--gray-light); margin-top: 8px; padding-top: 12px;
    font-size: 1.05rem; color: var(--black);
}
.kassa-sum-row.total strong { color: var(--gold-dark); font-size: 1.3rem; }
.kassa-sum-note { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }
.kassa-login-note { color: var(--gray); font-size: 0.9rem; margin-bottom: 12px; }
.kassa-radio {
    display: flex; gap: 8px; align-items: flex-start; padding: 7px 0;
    cursor: pointer; font-size: 0.88rem; font-weight: 400;
}
.kassa-radio input { margin-top: 3px; }
.kassa-address {
    background: var(--linen); border-radius: 2px; padding: 12px 14px;
    font-size: 0.88rem; margin-top: 14px; line-height: 1.6;
}

@media (max-width: 900px) {
    .kassa-layout { grid-template-columns: 1fr; }
    .kassa-summary { position: static; }
}
@media (max-width: 560px) {
    .kassa-item { flex-direction: column; }
    .kassa-item-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-width: 0; }
    .cart-btn-label { display: none; }
    .cart-btn::before { content: '🛒'; font-size: 1rem; }
}

/* Små skärmar: kompaktare header så logga + meny + varukorg + login ryms */
@media (max-width: 640px) {
    .header-inner { padding: 0 12px; }
    .header-actions { gap: 8px; }
    .cart-btn { padding: 6px 9px; }
    .logo-text { font-size: 1.1rem; letter-spacing: 2px; }
    .logo-sub { letter-spacing: 2.5px; font-size: 0.6rem; }
}

/* ================================================================
   GRÖN ACCENT — mörkgrönt på utvalda ytor (kompletterar guld/cream)
   ================================================================ */

/* USP-raden under heron: mörkgrön färgklick */
.usp-strip { background: var(--forest); border-bottom: none; }
.usp-strip span { color: rgba(255,255,255,0.82); }
.usp-strip span::before { color: var(--gold-light); }

/* Footern: djup grön istället för espresso */
.site-footer { background: var(--forest-deep); }
.footer-bottom { border-top-color: rgba(255,255,255,0.12); }

/* Uthyrningsbannern på startsidan: grön textyta */
.split-banner.reverse .split-banner-text { background: var(--forest); }
.split-banner.reverse .split-banner-text h3 { color: #fff; }
.split-banner.reverse .split-banner-text p { color: rgba(255,255,255,0.82); }
.split-banner.reverse .split-banner-text .section-kicker { color: var(--gold-light); }

/* Sökbaren på produktsidan: grön gradient istället för svart */
.ai-match-bar { background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 100%); }

/* Uthyrningsmarkeringar: grönt tema */
.badge-rental { background: var(--forest); color: var(--white); }
.kassa-rental { background: var(--sage); border-left-color: var(--forest); }
.kassa-rental-tag { color: var(--forest); }
.kassa-avail.ok { color: var(--forest); font-weight: 600; }

/* Kategorivärldarnas pil vid hover: guld mot grönt funkar redan — men
   ge world-tile-etiketten en grön underton i overlayn för djup */
.world-tile:hover::after {
    background: linear-gradient(to top, rgba(34,58,44,0.68) 0%, rgba(34,58,44,0.08) 45%);
}

/* ================================================================
   PRODUKTER-DROPDOWN i huvudmenyn (undermeny med huvudkategorier)
   ================================================================ */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--white); border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-lg); border-radius: 2px; padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}
.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub a {
    display: block; padding: 9px 18px; color: var(--black);
    font-size: 0.88rem; border-radius: 0;
}
.nav-sub a:hover { background: var(--linen); color: var(--gold-dark); }
.nav-sub .nav-sub-all {
    border-top: 1px solid var(--gray-light); margin-top: 6px; padding-top: 10px;
    color: var(--gold-dark); font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Mobil: undermenyn visas som indragna länkar i den öppna menyn */
@media (max-width: 768px) {
    .nav-dropdown { width: 100%; }
    .nav-dropdown .nav-sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: none; box-shadow: none; background: transparent; padding: 0 0 0 16px;
    }
    .nav-sub a { padding: 7px 12px; font-size: 0.85rem; color: var(--gray); }
}

/* 8 kategorivärldar: 4 kolumner på desktop (2×4), nedtrappning under */
.world-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .world-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .world-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .world-grid { grid-template-columns: 1fr; } }
