/* ============================================
   Vestjydsk Beslag A/S — Stylesheet
   Colors: Hvid / Sort / Blå (RAL 5010)
   Layout: Compact catalog + rounded elements
   ============================================ */

/* ── Color System ──
   RAL 5010 ≈ #0D4F8B (Enzianblau / Gentian blue)
   Variations used for hover, active, backgrounds:
   - Blue darkest:  #082F54 (pressed/active states)
   - Blue dark:     #0A3D6B (hover states)
   - Blue primary:  #0D4F8B (main brand color)
   - Blue medium:   #1A6BB5 (links, lighter accents)
   - Blue light:    #D6E6F2 (tags, subtle backgrounds)
   - Blue lightest: #EDF4FA (surface tints)
   Black/white follow same principle with gray intermediates.
*/

:root {
    /* Brand blues */
    --blue-darkest: #082F54;
    --blue-dark: #0A3D6B;
    --blue: #0D4F8B;
    --blue-medium: #1A6BB5;
    --blue-light: #D6E6F2;
    --blue-lightest: #EDF4FA;

    /* Neutrals */
    --black: #1a1a1a;
    --gray-900: #2a2a2a;
    --gray-700: #555;
    --gray-500: #888;
    --gray-300: #ccc;
    --gray-200: #ddd;
    --gray-100: #eee;
    --gray-50: #f5f6f8;
    --white: #ffffff;

    /* Semantic */
    --color-danger: #c0392b;
    --color-success: #27ae60;

    /* Layout */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --nav-h: 54px;
    --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font); font-size: 14px; color: var(--black);
    background: var(--gray-50); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.animate-in { animation: fadeInUp 0.4s ease both; }

/* ── Buttons ── */
.btn {
    padding: 10px 24px; border-radius: var(--r-sm); font-size: 0.86rem;
    font-weight: 600; border: none; cursor: pointer; display: inline-flex;
    align-items: center; gap: 6px; transition: all var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); box-shadow: var(--shadow-sm); }
.btn-blue:active { background: var(--blue-darkest); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--gray-900); }
.btn-outline { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border: 1.5px solid var(--gray-200); color: var(--black); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: var(--r-sm); }
.btn-green { background: var(--color-success); color: var(--white); }
.btn-green:hover { background: #219a52; }
.btn-danger { background: var(--color-danger); color: var(--white); }
.btn-danger:hover { background: #a5311f; }

/* ── Navigation ── */
.nav {
    background: var(--black); color: var(--white); height: var(--nav-h);
    padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.nav-brand em { font-style: normal; font-weight: 400; color: rgba(255,255,255,0.45); font-size: 0.78rem; }
.nav-mid { display: flex; align-items: center; gap: 0; }
.nav-mid a {
    color: rgba(255,255,255,0.6); padding: 0 16px; font-size: 0.84rem; font-weight: 500;
    height: var(--nav-h); display: flex; align-items: center; transition: all var(--transition);
    border-bottom: 2px solid transparent;
}
.nav-mid a:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.05); }
.nav-mid a.active { color: var(--white); border-bottom-color: var(--blue-medium); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; background: rgba(255,255,255,0.08); border-radius: var(--r-sm); padding: 2px; }
.lang-switcher a {
    padding: 4px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 6px;
    color: rgba(255,255,255,0.4); transition: all var(--transition);
}
.lang-switcher a.active { background: var(--blue); color: var(--white); }
.lang-switcher a:hover:not(.active) { color: rgba(255,255,255,0.8); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 1px; transition: var(--transition); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--blue-darkest) 60%, var(--blue-dark) 100%);
    color: var(--white); padding: 44px 24px;
}
.hero-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; animation: fadeInUp 0.5s ease; }
.hero h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.hero p { font-size: 0.92rem; opacity: 0.65; max-width: 560px; line-height: 1.6; }
.hero-btns { display: flex; gap: 10px; margin-top: 20px; }

/* ── Ticker ── */
.ticker { background: var(--blue); color: var(--white); padding: 9px 0; font-size: 0.8rem; font-weight: 500; overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; animation: scroll 35s linear infinite; }
.ticker-inner span { padding: 0 24px; }
.ticker-inner:hover { animation-play-state: paused; }

/* ── USP strip ── */
.usps { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 18px 24px; }
.usps-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; }
.usp { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 500; color: var(--gray-700); }
.usp svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ── Top strip / breadcrumb ── */
.topstrip {
    background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 10px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.breadcrumb { font-size: 0.78rem; color: var(--gray-500); }
.breadcrumb a { color: var(--blue); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blue-dark); }
.breadcrumb span { margin: 0 6px; color: var(--gray-300); }
.search-full { display: flex; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm); overflow: hidden; transition: border-color var(--transition); }
.search-full:focus-within { border-color: var(--blue); }
.search-full input { padding: 8px 14px; border: none; width: 280px; font-size: 0.84rem; font-family: var(--font); }
.search-full input:focus { outline: none; }
.search-full button {
    padding: 8px 16px; background: var(--blue); color: var(--white); border: none;
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background var(--transition);
}
.search-full button:hover { background: var(--blue-dark); }

/* ── Layout: sidebar + main ── */
.layout { max-width: 1300px; margin: 0 auto; padding: 16px 24px; display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }

/* ── Sidebar filters ── */
.filters {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
    padding: 16px; position: sticky; top: calc(var(--nav-h) + 16px); box-shadow: var(--shadow-sm);
}
.filters h3 {
    font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gray-500); margin-bottom: 8px; font-weight: 700;
    padding-bottom: 6px; border-bottom: 1px solid var(--gray-100);
}
.flist { margin-bottom: 14px; }
.flist label {
    display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 0.82rem;
    color: var(--gray-700); cursor: pointer; transition: color var(--transition);
}
.flist label:hover { color: var(--black); }
.flist input[type=checkbox],
.flist input[type=radio] { accent-color: var(--blue); width: 14px; height: 14px; }
.flist .cnt {
    margin-left: auto; font-size: 0.72rem; color: var(--gray-500);
    background: var(--gray-50); padding: 0 6px; border-radius: 8px;
}
.sidebar-close { display: none; float: right; font-size: 1.3rem; color: var(--gray-500); padding: 4px; }
.filter-toggle-btn {
    display: none; padding: 5px 12px; border: 1px solid var(--gray-200);
    background: var(--white); border-radius: var(--r-sm); font-size: 0.82rem;
    color: var(--gray-700); cursor: pointer; margin-right: 8px;
}

/* ── Toolbar ── */
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding: 10px 14px; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.toolbar-left { font-size: 0.82rem; color: var(--gray-700); display: flex; align-items: center; }
.toolbar-left strong { color: var(--black); }
.toolbar-right { display: flex; gap: 4px; }
.toolbar-right button {
    padding: 5px 10px; border: 1px solid var(--gray-200); background: var(--white);
    cursor: pointer; border-radius: var(--r-sm); font-size: 0.78rem;
    color: var(--gray-700); transition: all var(--transition);
}
.toolbar-right button:hover { border-color: var(--blue); color: var(--blue); }
.toolbar-right button.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── Product list items ── */
.plist { display: flex; flex-direction: column; gap: 6px; }
.pitem {
    display: grid; grid-template-columns: 64px 80px 1fr 140px auto;
    gap: 12px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--r-md); padding: 12px 14px; align-items: center;
    transition: all var(--transition); box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.3s ease both;
}
.pitem:hover { border-color: var(--blue-medium); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pitem-img {
    width: 52px; height: 52px; background: var(--gray-50); border: 1px solid var(--gray-100);
    border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--gray-200); font-size: 0.8rem; overflow: hidden;
}
.pitem-img img { width: 100%; height: 100%; object-fit: contain; }
.pitem-no { font-weight: 700; color: var(--blue); font-size: 0.85rem; }
.pitem-info .name { font-size: 0.86rem; font-weight: 500; margin-bottom: 2px; }
.pitem-info .desc { font-size: 0.76rem; color: var(--gray-500); }
.pitem-specs { font-size: 0.76rem; color: var(--gray-700); line-height: 1.5; }
.pitem-specs strong { font-weight: 600; color: var(--gray-900); }
/* Print icon button */
.pitem-print {
    width: 36px; height: 36px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); background: var(--gray-50); border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.pitem-print:hover { color: var(--blue); border-color: var(--blue-light); background: var(--blue-lightest); }
.pitem-print:active { background: var(--blue-light); transform: scale(0.95); }
.pitem-print svg { width: 16px; height: 16px; }

/* ── Product grid view ── */
.pgrid { display: none; }
.pgrid.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.plist.active { display: flex; }
.pcard {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
    overflow: hidden; transition: all var(--transition); box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.3s ease both;
}
.pcard:hover { border-color: var(--blue-medium); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pcard-img {
    aspect-ratio: 1; background: var(--gray-50); display: flex; align-items: center;
    justify-content: center; border-bottom: 1px solid var(--gray-100); overflow: hidden;
    position: relative;
}
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pcard-img span { font-weight: 800; font-size: 1.8rem; color: var(--gray-200); }
.pcard-print {
    position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); background: var(--white); border: 1px solid var(--gray-200);
    opacity: 0; transition: all var(--transition);
}
.pcard:hover .pcard-print { opacity: 1; }
.pcard-print:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-lightest); }
.pcard-print svg { width: 14px; height: 14px; }
.pcard-body { padding: 10px 12px; }
.pcard-no { font-size: 0.72rem; color: var(--blue); font-weight: 700; margin-bottom: 3px; }
.pcard-name { font-size: 0.82rem; font-weight: 500; line-height: 1.3; margin-bottom: 6px; }
.pcard-meta { font-size: 0.72rem; color: var(--gray-500); }
.pcard-meta span {
    display: inline-block; background: var(--blue-lightest); padding: 1px 6px;
    border-radius: var(--r-sm); margin-right: 3px; border: 1px solid var(--blue-light);
    color: var(--blue);
}
.products-empty { text-align: center; padding: 48px 20px; color: var(--gray-500); animation: fadeIn 0.3s ease; }

/* ── Page header ── */
.page-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 24px; }
.page-header-inner { max-width: 1300px; margin: 0 auto; }
.page-header h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.page-header p { font-size: 0.88rem; color: var(--gray-700); }

/* ── Gallery ── */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px; max-width: 1300px; margin: 0 auto; padding: 24px;
}
.gallery-item {
    position: relative; border-radius: var(--r-md); overflow: hidden;
    aspect-ratio: 4/3; background: var(--gray-50); cursor: pointer;
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
    transition: all var(--transition); animation: fadeInUp 0.4s ease both;
}
.gallery-item:hover { box-shadow: var(--shadow-md); border-color: var(--blue-medium); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.placeholder-active { display: flex; align-items: center; justify-content: center; }
.gallery-item.placeholder-active::after { content: 'VB'; font-weight: 800; font-size: 2.5rem; color: var(--gray-200); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: var(--white);
    font-size: 0.82rem; font-weight: 500; transform: translateY(100%);
    transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 60px 20px 40px; animation: fadeIn 0.2s ease;
}
.lightbox-close { position: absolute; top: 16px; right: 20px; color: var(--white); font-size: 1.8rem; background: none; border: none; cursor: pointer; opacity: 0.7; transition: opacity var(--transition); }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 2.5rem; background: none; border: none; cursor: pointer; opacity: 0.4; padding: 20px; transition: opacity var(--transition); }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-caption { margin-top: 12px; color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* ── Contact ── */
.contact-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    max-width: 1300px; margin: 0 auto; padding: 24px;
}
.ccard {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
    padding: 24px; border-top: 3px solid var(--blue); box-shadow: var(--shadow-sm);
    transition: all var(--transition); animation: fadeInUp 0.4s ease both;
}
.ccard:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ccard h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 10px; }
.ccard p { font-size: 0.86rem; color: var(--gray-700); line-height: 1.65; }
.ccard a { color: var(--blue); transition: color var(--transition); }
.ccard a:hover { color: var(--blue-dark); text-decoration: underline; }
.map-container { max-width: 1300px; margin: 0 auto; padding: 0 24px 24px; }
.map-container iframe { border-radius: var(--r-md); border: 1px solid var(--gray-200); }

/* ── Footer ── */
.footer {
    background: var(--black); color: rgba(255,255,255,0.5); padding: 28px 24px;
    font-size: 0.8rem; margin-top: 16px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { transition: color var(--transition); }
.footer a:hover { color: var(--white); }

/* ── Login Page ── */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gray-50);
}
.login-box {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
    padding: 40px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.4s ease;
}
.login-box h1 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; text-align: center; }
.login-box .sub { font-size: 0.85rem; color: var(--gray-500); text-align: center; margin-bottom: 24px; }
.login-box .error { background: #fde8e8; color: var(--color-danger); padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.82rem; margin-bottom: 16px; text-align: center; }
.login-box .form-group { margin-bottom: 14px; }
.login-box label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 4px; }
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm); font-size: 0.9rem; font-family: var(--font);
    transition: border-color var(--transition);
}
.login-box input:focus { outline: none; border-color: var(--blue); }
.login-box .btn { width: 100%; justify-content: center; padding: 12px; font-size: 0.9rem; }
.login-box .back { display: block; text-align: center; margin-top: 16px; color: var(--gray-500); font-size: 0.82rem; }
.login-box .back:hover { color: var(--blue); }

/* ── Error page ── */
.error-page { text-align: center; padding: 80px 24px; animation: fadeIn 0.3s ease; }
.error-page h1 { font-size: 4rem; font-weight: 800; color: var(--gray-200); }
.error-page p { font-size: 1rem; color: var(--gray-500); margin: 8px 0 24px; }

/* ── Admin Panel ── */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.3rem; font-weight: 700; }
.admin-stats { display: flex; gap: 12px; }
.admin-stat {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
    padding: 12px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.admin-stat .num { font-size: 1.4rem; font-weight: 800; color: var(--blue); display: block; }
.admin-stat .lbl { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.admin-tab {
    padding: 8px 18px; border: 1px solid var(--gray-200); border-radius: var(--r-sm);
    font-size: 0.84rem; font-weight: 500; color: var(--gray-700); background: var(--white);
    transition: all var(--transition); cursor: pointer;
}
.admin-tab:hover { border-color: var(--blue); color: var(--blue); }
.admin-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.admin-toolbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.admin-toolbar input {
    flex: 1; min-width: 200px; padding: 8px 14px; border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm); font-size: 0.86rem; font-family: var(--font);
    transition: border-color var(--transition);
}
.admin-toolbar input:focus { outline: none; border-color: var(--blue); }
.admin-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.admin-table th {
    text-align: left; padding: 10px 12px; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--gray-500); font-weight: 700;
    background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; font-size: 0.84rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr { transition: background var(--transition); }
.admin-table tr:hover td { background: var(--blue-lightest); }
.admin-table .no-col { font-weight: 700; color: var(--blue); white-space: nowrap; }
.admin-actions { display: flex; gap: 4px; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.2s ease; }

/* ── Filter management (admin) ── */
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.filter-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
    padding: 16px; box-shadow: var(--shadow-sm);
}
.filter-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; background: var(--gray-50); border-radius: var(--r-sm);
    font-size: 0.82rem; transition: background var(--transition);
}
.filter-item:hover { background: var(--blue-lightest); }
.filter-item code { font-size: 0.72rem; color: var(--gray-500); }
.filter-item-del { color: var(--gray-300); cursor: pointer; font-size: 1rem; transition: color var(--transition); padding: 2px 4px; }
.filter-item-del:hover { color: var(--color-danger); }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.15s ease;
}
.modal {
    background: var(--white); border-radius: var(--r-lg); padding: 28px;
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); animation: fadeInUp 0.25s ease;
}
.modal h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 4px;
}
.form-group input, .form-group select {
    width: 100%; padding: 8px 12px; border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm); font-size: 0.88rem; font-family: var(--font);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ── Print-friendly Product Sheet ── */
.print-page {
    max-width: 800px; margin: 0 auto; padding: 32px 24px;
}
.print-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--black);
}
.print-header-brand { font-weight: 700; font-size: 1rem; }
.print-header-brand em { font-style: normal; color: var(--gray-500); }
.print-header-actions { display: flex; gap: 8px; }
.print-product-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.print-product-no { font-size: 0.9rem; color: var(--blue); font-weight: 700; margin-bottom: 24px; }
.print-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.print-image {
    aspect-ratio: 1; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.print-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.print-image span { font-weight: 800; font-size: 4rem; color: var(--gray-200); }
.print-specs { }
.print-specs table { width: 100%; border-collapse: collapse; }
.print-specs th {
    text-align: left; padding: 10px 12px; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--gray-500); font-weight: 700;
    border-bottom: 1px solid var(--gray-200); width: 120px;
}
.print-specs td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.print-footer { padding-top: 16px; border-top: 1px solid var(--gray-200); font-size: 0.78rem; color: var(--gray-500); text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .pitem { grid-template-columns: 50px 70px 1fr auto; gap: 8px; padding: 10px; }
    .pitem-specs { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-mid {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: var(--black); flex-direction: column; padding: 8px;
        transform: translateY(-200%); transition: transform 0.3s ease; z-index: 99;
    }
    .nav-mid.open { transform: translateY(0); }
    .nav-mid a { height: auto; padding: 10px 14px; border-radius: var(--r-sm); border-bottom: none; }
    .layout { grid-template-columns: 1fr; }
    .filters {
        position: fixed; top: 0; left: 0; bottom: 0; width: 280px; z-index: 200;
        border-radius: 0; transform: translateX(-100%); transition: transform 0.3s ease;
        max-height: 100vh; overflow-y: auto;
    }
    .filters.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .filter-toggle-btn { display: flex; }
    .hero-inner { flex-direction: column; gap: 16px; text-align: center; }
    .hero-btns { justify-content: center; }
    .print-layout { grid-template-columns: 1fr; }
}

/* ── Print media query ── */
@media print {
    .nav, .footer, .print-header-actions, .topstrip { display: none !important; }
    body { background: white; font-size: 12pt; }
    .print-page { padding: 0; max-width: 100%; }
    .print-header { border-bottom-width: 1px; }
    .print-image { border: 1px solid #ddd; }
}
