/* Lemberg Fachhandel - Shop Stylesheet */
:root {
    --primary: #0b2a4a;
    --primary-dark: #061b30;
    --accent: #c46a2b;
    --accent-light: #e58a3f;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #1a1f2b;
    --muted: #6a7385;
    --border: #e2e6ec;
    --success: #2e7d32;
    --shadow: 0 2px 8px rgba(15, 30, 60, 0.06);
    --shadow-lg: 0 8px 24px rgba(15, 30, 60, 0.1);
    --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
    background: var(--primary-dark);
    color: #cfd6e2;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #cfd6e2; }
.topbar a:hover { color: #fff; }
.topbar .info span { margin-right: 18px; }
.topbar .info span::before { content: "✓ "; color: var(--accent-light); font-weight: 700; }

/* Header */
header.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 18px 0; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.logo-mark {
    width: 44px; height: 44px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #1a4a82);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px; font-family: Georgia, serif;
    letter-spacing: -1px;
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 20px; letter-spacing: -0.3px; }
.logo-text small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.search-box { position: relative; width: 100%; max-width: 520px; }
.search-box input {
    width: 100%; padding: 11px 44px 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; outline: none;
    background: #fafbfc;
}
.search-box input:focus { border-color: var(--accent); background: #fff; }
.search-box button {
    position: absolute; right: 4px; top: 4px; bottom: 4px;
    background: var(--primary); color: #fff; border: 0;
    padding: 0 14px; border-radius: 4px; cursor: pointer;
    font-size: 14px;
}
.search-box button:hover { background: var(--accent); }

.header-actions { display: flex; gap: 22px; align-items: center; }
.header-action { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.header-action .icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f1f3f7; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.header-action .label { line-height: 1.15; }
.header-action .label small { display: block; color: var(--muted); font-size: 11px; }
.header-action .label strong { font-weight: 600; }
.header-action.cart .icon { background: var(--accent); color: #fff; }

/* Nav */
nav.main-nav {
    background: var(--primary);
    color: #fff;
}
.nav-inner { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-inner a {
    color: #fff; padding: 14px 16px;
    font-size: 14px; font-weight: 500;
    display: inline-block;
}
.nav-inner a:hover { background: var(--primary-dark); color: #fff; }
.nav-inner a.cat-all { background: var(--accent); font-weight: 600; }
.nav-inner a.cat-all:hover { background: var(--accent-light); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0b2a4a 0%, #1a4a82 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -80px; bottom: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(196, 106, 43, 0.18);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 17px; opacity: 0.92; margin-bottom: 24px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 13px 24px;
    border-radius: var(--radius); font-weight: 600;
    font-size: 15px; cursor: pointer; border: 0;
    transition: transform 0.05s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

.usp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 460px; }
.usp-item { background: rgba(255,255,255,0.08); padding: 16px 12px; border-radius: var(--radius); text-align: center; backdrop-filter: blur(4px); }
.usp-item strong { display: block; font-size: 22px; color: var(--accent-light); margin-bottom: 4px; }
.usp-item small { font-size: 11px; opacity: 0.85; line-height: 1.3; display: block; }

/* Trust strip */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.trust-item .check {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e8f5e9; color: var(--success);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-weight: 700;
}
.trust-item strong { display: block; font-size: 14px; color: var(--text); }
.trust-item span { color: var(--muted); font-size: 12px; }

/* Section */
section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.3px; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.section-head a { font-size: 14px; font-weight: 600; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px;
    text-align: center;
    color: var(--text);
    transition: all 0.15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-icon {
    font-size: 32px; margin-bottom: 10px; display: block;
}
.cat-card strong { display: block; font-size: 13px; font-weight: 600; }
.cat-card small { color: var(--muted); font-size: 11px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.15s;
    position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card .badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.5px;
    z-index: 2;
}
.product-card .badge.bestseller { background: var(--success); }
.product-card .badge.new { background: var(--primary); }
.product-card .product-image {
    aspect-ratio: 1 / 1; background: #f9fafb;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; overflow: hidden;
}
.product-card .product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-card .product-image .placeholder {
    width: 100%; height: 100%; border-radius: 4px;
    background: linear-gradient(135deg, #e2e6ec 0%, #f5f6f8 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 36px;
}
.product-card .product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card .brand { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; min-height: 38px; margin-bottom: 8px; }
.product-card h3 a { color: var(--text); }
.product-card .stars { color: #f5b400; font-size: 13px; margin-bottom: 6px; }
.product-card .stars small { color: var(--muted); margin-left: 4px; }
.product-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 10px; }
.product-card .price { font-size: 20px; font-weight: 700; color: var(--primary); }
.product-card .price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-card .price-info { font-size: 11px; color: var(--muted); margin-top: 2px; }
.product-card .stock { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 6px; }
.product-card .stock::before { content: "● "; }

/* Footer */
footer.site-footer {
    background: var(--primary-dark);
    color: #cfd6e2;
    padding: 50px 0 0;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; font-size: 14px; }
footer ul li a { color: #cfd6e2; }
footer ul li a:hover { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.6; margin-bottom: 14px; opacity: 0.85; }
.footer-contact { font-size: 14px; line-height: 1.7; }
.footer-contact strong { color: #fff; }
.payment-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pay-badge {
    background: #fff; color: var(--primary-dark);
    padding: 5px 9px; border-radius: 3px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0; text-align: center; font-size: 13px;
    opacity: 0.75;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }
.breadcrumb strong { color: var(--text); font-weight: 500; }

/* Product detail */
.product-detail { padding: 40px 0; }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.detail-gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; }
.detail-gallery .main-image {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    background: #fff;
}
.detail-gallery .main-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-gallery .badge {
    position: absolute; top: 18px; left: 18px;
    background: var(--success); color: #fff; padding: 6px 12px;
    border-radius: 3px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.detail-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.detail-thumbs .thumb {
    aspect-ratio: 1 / 1; border: 1px solid var(--border);
    border-radius: 4px; padding: 6px; cursor: pointer;
    background: #fafbfc; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.detail-thumbs .thumb.active { border-color: var(--accent); border-width: 2px; }
.detail-thumbs .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-thumbs .thumb .ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e2e6ec, #f5f6f8);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 18px; border-radius: 3px;
}

.detail-info .brand-line { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.detail-info h1 { font-size: 28px; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.3px; }
.detail-info .sku-row { display: flex; gap: 18px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.detail-info .sku-row .stars { color: #f5b400; font-size: 14px; }
.detail-info .sku-row .stars a { color: var(--muted); margin-left: 4px; text-decoration: underline; }
.detail-info .short-desc { font-size: 15px; line-height: 1.65; color: #3a4252; margin-bottom: 24px; }

.detail-features { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.detail-features ul { list-style: none; }
.detail-features li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; }
.detail-features li::before {
    content: "✓"; position: absolute; left: 0; top: 6px;
    color: var(--success); font-weight: 700;
}

.price-box {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; margin-bottom: 22px;
}
.price-box .price-now { font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1; }
.price-box .price-old { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-left: 10px; }
.price-box .save { display: inline-block; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; margin-left: 10px; }
.price-box .price-info { font-size: 12px; color: var(--muted); margin-top: 6px; }
.price-box .price-bulk { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 12px; }
.price-box .price-bulk div { background: #f5f6f8; padding: 6px 10px; border-radius: 4px; text-align: center; flex: 1; }
.price-box .price-bulk div strong { display: block; color: var(--primary); font-size: 14px; }

.stock-row {
    display: flex; gap: 18px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    margin-bottom: 18px; font-size: 14px;
}
.stock-row .available { color: var(--success); font-weight: 600; }
.stock-row .available::before { content: "● "; }
.stock-row .delivery { color: var(--muted); font-size: 13px; }
.stock-row .delivery strong { color: var(--text); }

.add-to-cart-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.qty-input {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.qty-input button { background: #f5f6f8; border: 0; width: 40px; height: 48px; font-size: 18px; cursor: pointer; color: var(--text); }
.qty-input button:hover { background: #e2e6ec; }
.qty-input input { border: 0; width: 60px; height: 48px; text-align: center; font-size: 16px; font-weight: 600; outline: none; }

.btn-cart { flex: 1; padding: 14px 24px; font-size: 16px; }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--border); padding: 12px 16px; border-radius: var(--radius); cursor: pointer; font-size: 14px; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border); }
.detail-meta strong { color: var(--text); margin-left: 4px; }

/* Tabs */
.detail-tabs { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 40px; }
.tab-headers { display: flex; border-bottom: 1px solid var(--border); }
.tab-headers div {
    padding: 16px 24px; cursor: pointer; font-weight: 600;
    font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tab-headers div.active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-content { padding: 28px; }
.tab-content h3 { font-size: 18px; margin: 20px 0 10px; color: var(--primary); }
.tab-content h3:first-child { margin-top: 0; }
.tab-content p { margin-bottom: 12px; font-size: 14px; line-height: 1.7; color: #3a4252; }
.tab-content ul { padding-left: 20px; margin-bottom: 12px; }
.tab-content ul li { font-size: 14px; line-height: 1.7; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; font-size: 14px; vertical-align: top; }
.spec-table th { background: #fafbfc; color: var(--primary); width: 35%; font-weight: 600; }

/* Reviews */
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-meta { font-size: 12px; color: var(--muted); }
.review-stars { color: #f5b400; font-size: 14px; margin-left: auto; }
.review-text { font-size: 14px; line-height: 1.65; color: #3a4252; }

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a82 100%);
    color: #fff;
    padding: 44px 0;
    margin-top: 30px;
}
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: 24px; margin-bottom: 6px; }
.newsletter p { opacity: 0.9; font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1; padding: 13px 16px;
    border: 0; border-radius: var(--radius);
    font-size: 14px; outline: none;
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid, .detail-grid, .footer-grid, .newsletter-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { grid-template-columns: 1fr auto; gap: 14px; }
    .search-box { grid-column: 1 / -1; max-width: 100%; }
    .header-actions .header-action .label { display: none; }
    .topbar .info span { display: inline-block; margin-bottom: 4px; }
}
@media (max-width: 560px) {
    .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .usp-row { grid-template-columns: repeat(2, 1fr); }
    .tab-headers { overflow-x: auto; }
    .tab-headers div { white-space: nowrap; }
}
