/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --gray-900: #222;
    --gray-800: #333;
    --gray-700: #444;
    --gray-600: #666;
    --gray-500: #888;
    --gray-400: #aaa;
    --gray-300: #ccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --accent: #c8a456;
    --accent-dark: #b08d3e;
    --accent-light: #dfc07a;
    --danger: #e74c3c;
    --success: #27ae60;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 160px; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-family: var(--font); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); text-align: center;
    justify-content: center;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: var(--gray-800); border-color: var(--gray-800); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--black); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 1000; background: var(--white); }

.header-top {
    background: var(--black); color: var(--white);
    font-size: 0.8rem; padding: 6px 0;
}
.header-top-content {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.header-top-content span { display: flex; align-items: center; gap: 6px; }
.header-top-content i { color: var(--accent); font-size: 0.75rem; }

.header-main { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.header-main-content {
    display: flex; align-items: center; gap: 24px;
}

.logo { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; color: var(--black); }
.logo-sub { font-size: 0.85rem; font-weight: 400; color: var(--gray-500); letter-spacing: 2px; text-transform: uppercase; }

.search-bar {
    flex: 1; max-width: 500px; position: relative;
}
.search-bar input {
    width: 100%; padding: 12px 48px 12px 18px;
    border: 2px solid var(--gray-200); border-radius: 50px;
    font-family: var(--font); font-size: 0.95rem;
    background: var(--gray-100); transition: all var(--transition);
    outline: none;
}
.search-bar input:focus { border-color: var(--black); background: var(--white); }
.search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--black); color: var(--white); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.search-btn:hover { background: var(--gray-800); }

.search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); display: none; max-height: 400px;
    overflow-y: auto; z-index: 100;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; transition: background var(--transition);
}
.search-result-item:hover { background: var(--gray-100); }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.search-result-item .result-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.search-result-item .result-info span { font-size: 0.8rem; color: var(--gray-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 600; transition: all var(--transition);
}
.btn-showroom { background: var(--accent); color: var(--white); }
.btn-showroom:hover { background: var(--accent-dark); }

.cart-toggle {
    position: relative; width: 44px; height: 44px;
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); font-size: 1.1rem;
}
.cart-toggle:hover { border-color: var(--black); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent); color: var(--white);
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.mobile-menu-toggle {
    display: none; width: 44px; height: 44px;
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    background: var(--white); cursor: pointer; font-size: 1.2rem;
    align-items: center; justify-content: center;
}

/* Nav */
.nav {
    background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.nav-list {
    display: flex; list-style: none; gap: 0;
}
.nav-list li a {
    display: block; padding: 14px 20px;
    font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
    transition: all var(--transition); position: relative;
}
.nav-list li a::after {
    content: ''; position: absolute; bottom: 0; left: 20px; right: 20px;
    height: 2px; background: var(--black); transform: scaleX(0);
    transition: transform var(--transition);
}
.nav-list li a:hover, .nav-list li a.active { color: var(--black); }
.nav-list li a:hover::after, .nav-list li a.active::after { transform: scaleX(1); }
.nav-highlight {
    color: var(--accent) !important; font-weight: 600 !important;
}
.nav-highlight::after { background: var(--accent) !important; }

/* ===== SIDEBAR CART ===== */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.sidebar-cart {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw;
    height: 100vh; background: var(--white); z-index: 2001;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-xl); transition: right 0.35s ease;
}
.sidebar-cart.active { right: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
    width: 36px; height: 36px; border: none; background: var(--gray-100);
    border-radius: 50%; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.cart-close:hover { background: var(--gray-200); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
    text-align: center; padding: 60px 20px; color: var(--gray-400);
}
.cart-empty i { font-size: 3rem; margin-bottom: 16px; }

.cart-item {
    display: flex; gap: 12px; padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
    width: 70px; height: 70px; border-radius: var(--radius);
    background: var(--gray-100); flex-shrink: 0; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .cart-item-specs { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 6px; }
.cart-item-info .cart-item-price { font-weight: 700; color: var(--accent); }
.cart-item-remove {
    background: none; border: none; color: var(--gray-400);
    cursor: pointer; font-size: 0.85rem; align-self: flex-start;
    padding: 4px; transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
    padding: 20px 24px; border-top: 1px solid var(--gray-200);
    display: flex; flex-direction: column; gap: 12px;
}
.cart-total {
    display: flex; justify-content: space-between;
    font-size: 1.1rem; font-weight: 700;
}

/* ===== HERO ===== */
.hero {
    position: relative; padding: 100px 0;
    background: var(--black); color: var(--white);
    overflow: hidden; min-height: 500px;
    display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a2e 50%, var(--dark) 100%);
    opacity: 1;
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(200,164,86,0.15), transparent 60%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(200,164,86,0.2); border: 1px solid rgba(200,164,86,0.3);
    border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    color: var(--accent); margin-bottom: 24px;
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== USPs ===== */
.usps { padding: 60px 0; background: var(--gray-100); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp-item { text-align: center; padding: 32px 20px; }
.usp-icon {
    width: 60px; height: 60px; margin: 0 auto 16px;
    background: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.usp-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.usp-item p { font-size: 0.85rem; color: var(--gray-600); }

/* ===== CATEGORIES ===== */
.categories { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--gray-500); font-size: 1.05rem; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all var(--transition);
    background: var(--white); border: 1px solid var(--gray-200);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-img {
    height: 220px; background-size: cover; background-position: center;
    transition: transform 0.5s ease;
}
.category-card:hover .category-img { transform: scale(1.05); }
.category-info { padding: 20px 24px; }
.category-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.category-info p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 8px; }
.category-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; background: var(--gray-100); }
.cta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cta-card {
    padding: 48px 40px; border-radius: var(--radius-xl);
    text-align: center;
}
.cta-showroom { background: var(--black); color: var(--white); }
.cta-inmeten { background: var(--white); border: 2px solid var(--gray-200); }
.cta-icon { font-size: 2rem; margin-bottom: 20px; }
.cta-showroom .cta-icon { color: var(--accent); }
.cta-inmeten .cta-icon { color: var(--accent); }
.cta-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.cta-card p { margin-bottom: 24px; opacity: 0.8; font-size: 0.95rem; }
.cta-showroom .btn-primary { background: var(--accent); border-color: var(--accent); }
.cta-showroom .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--black); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-sub { color: var(--gray-400); }
.footer .footer-col > p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex;
    align-items: center; justify-content: center;
    transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray-400); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-400); font-size: 0.9rem; }
.footer-contact i { color: var(--accent); margin-top: 4px; width: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0; display: flex;
    justify-content: space-between; align-items: center;
}
.footer-bottom p { color: var(--gray-500); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-500); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== PRODUCT LISTING PAGE ===== */
.page-header {
    background: var(--black); color: var(--white); padding: 48px 0;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; }
.page-header .breadcrumb { margin-top: 8px; font-size: 0.85rem; color: var(--gray-400); }
.page-header .breadcrumb a { color: var(--accent); }

.products-section { padding: 48px 0 80px; }
.products-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.products-toolbar .result-count { color: var(--gray-500); font-size: 0.9rem; }
.products-toolbar select {
    padding: 8px 16px; border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm); font-family: var(--font);
    font-size: 0.9rem; outline: none; cursor: pointer;
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--gray-200); transition: all var(--transition);
    background: var(--white);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-img {
    height: 240px; background-size: cover; background-position: center;
    position: relative;
}
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: var(--white);
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
}
.product-card-info { padding: 20px; }
.product-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.product-card-info .product-cat { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px; }
.product-card-info .product-price { font-size: 1.15rem; font-weight: 800; color: var(--black); }
.product-card-info .product-price .from { font-size: 0.8rem; font-weight: 400; color: var(--gray-500); }
.product-card-info .product-card-btn {
    display: block; text-align: center; margin-top: 12px;
    padding: 10px; background: var(--black); color: var(--white);
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
    transition: background var(--transition);
}
.product-card-info .product-card-btn:hover { background: var(--gray-800); }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail { padding: 48px 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.product-gallery {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--gray-100); aspect-ratio: 1;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

.product-info-section h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.product-info-section .product-sku { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }
.product-info-section .product-detail-price {
    font-size: 2rem; font-weight: 800; color: var(--black); margin-bottom: 24px;
}
.product-info-section .product-detail-price .price-note {
    font-size: 0.8rem; font-weight: 400; color: var(--gray-500); display: block;
}

/* Configuration Form */
.config-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
}
.form-group label .required { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-control {
    padding: 12px 16px; border: 2px solid var(--gray-200);
    border-radius: var(--radius); font-family: var(--font);
    font-size: 0.95rem; outline: none;
    transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--black); }
select.form-control { cursor: pointer; background: var(--white); }

.form-help { font-size: 0.78rem; color: var(--gray-500); }

/* Color Swatches */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; border: 3px solid transparent;
    transition: all var(--transition); position: relative;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--black); }
.color-swatch.active::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    color: var(--white); font-size: 0.7rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.price-calculator {
    background: var(--gray-100); border-radius: var(--radius-lg);
    padding: 24px; margin-top: 8px;
}
.price-calculator .calc-price {
    font-size: 1.8rem; font-weight: 800; color: var(--black); margin-bottom: 4px;
}
.price-calculator .calc-note { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 16px; }

.product-description {
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}
.product-description h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.product-description p { color: var(--gray-600); line-height: 1.8; }

/* ===== FORMS PAGE ===== */
.form-page { padding: 64px 0 80px; }
.form-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-page-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.form-page-info p { color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; }
.form-page-info .info-list { list-style: none; }
.form-page-info .info-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; font-size: 0.95rem;
}
.form-page-info .info-list i { color: var(--accent); width: 20px; }

.form-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }
.form-card .form-group { margin-bottom: 20px; }
.form-card textarea.form-control { min-height: 120px; resize: vertical; }
.form-success {
    display: none; text-align: center; padding: 40px 20px;
}
.form-success i { font-size: 3rem; color: var(--success); margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--gray-500); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .form-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-top-content { font-size: 0.72rem; gap: 16px; }
    .search-bar { display: none; }
    .header-actions .header-btn span { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav { display: none; }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list li a { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
    .hero { padding: 60px 0; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .usp-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .page-header h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
}
