/* ===== FBT Shop - Dark Theme (worldstoughestfix.com inspired) ===== */

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-surface: #1e1e1e;
    --bg-surface-light: #252525;
    --accent: #f5a623;
    --accent-hover: #e09015;
    --accent-rgb: 245, 166, 35;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border: #2a2a2a;
    --border-light: #333333;
    --success: #27ae60;
    --danger: #e94560;
    --info: #3498db;
    --warning: #f5a623;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body.dark-theme {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }

.text-light-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.8rem;
}
.top-social {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.top-social:hover { color: var(--accent) !important; }
.top-links a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.top-links a:hover { color: var(--accent) !important; }

/* ===== Header ===== */
.main-header {
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
}
.navbar { padding: 0; }
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    padding: 10px 0;
}
.header-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.header-logo:hover { opacity: 0.85; }

.nav-link {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 22px 18px !important;
    transition: color 0.2s, background 0.2s;
    border-bottom: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
    background: rgba(var(--accent-rgb), 0.08);
}
.dropdown-menu-dark {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
    border-radius: 0;
    margin-top: 0;
}
.dropdown-menu-dark .dropdown-item {
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.9rem;
}
.dropdown-menu-dark .dropdown-item:hover {
    background: var(--bg-surface);
    color: var(--accent);
}

.header-icon {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.2s;
}
.header-icon:hover { color: var(--accent); }

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===== Smart Search Bar ===== */
.header-search-bar,
.hero-search-bar,
.shop-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-bar:focus-within,
.hero-search-bar:focus-within,
.shop-search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 255,165,0), 0.15);
}
.header-search-icon,
.hero-search-icon,
.shop-search-icon {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}
.header-search-bar .form-control,
.hero-search-bar .form-control,
.shop-search-bar .form-control {
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 10px 8px;
    font-size: 0.95rem;
    box-shadow: none !important;
}
.header-search-bar .form-control::placeholder,
.hero-search-bar .form-control::placeholder,
.shop-search-bar .form-control::placeholder { color: var(--text-muted); }
.header-search-kbd {
    padding: 2px 6px;
    font-size: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hero search */
.hero-search-bar {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.hero-search-bar:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: var(--accent);
}
.hero-search-bar .form-control { color: #fff; font-size: 1.05rem; padding: 14px 8px; }
.hero-search-bar .form-control::placeholder { color: rgba(255,255,255,0.6); }
.hero-search-icon { color: rgba(255,255,255,0.5); font-size: 1.1rem; }
.hero-search-btn {
    border-radius: 0;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* Shop search */
.shop-search-bar { border-radius: 6px; }
.shop-search-btn { border-radius: 0; padding: 8px 20px; flex-shrink: 0; }

/* ===== Smart Search Dropdown ===== */
.smart-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10100;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 8px 8px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.smart-search-section {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.smart-search-section:last-child { border-bottom: none; }
.smart-search-section-title {
    padding: 6px 16px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}
.smart-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    gap: 12px;
    cursor: pointer;
}
.smart-search-item:hover,
.smart-search-item.active {
    background: var(--bg-surface);
    color: var(--text-primary);
}
.smart-search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg-surface);
}
.smart-search-item-info { flex-grow: 1; min-width: 0; }
.smart-search-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smart-search-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}
.smart-search-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.smart-search-item-stock {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.smart-search-item-stock.in-stock { background: rgba(40,167,69,0.15); color: #28a745; }
.smart-search-item-stock.out-of-stock { background: rgba(220,53,69,0.15); color: #dc3545; }
.smart-search-nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    gap: 10px;
}
.smart-search-nav-item:hover,
.smart-search-nav-item.active {
    background: var(--bg-surface);
    color: var(--text-primary);
}
.smart-search-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.smart-search-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.smart-search-footer a:hover { text-decoration: underline; }
.smart-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
}
.smart-search-empty i { font-size: 1.5rem; display: block; margin-bottom: 8px; }
mark { background: rgba(var(--accent-rgb, 255,165,0), 0.2); color: inherit; padding: 0; border-radius: 2px; }

/* ===== Hero Section ===== */
.hero-section {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 42%;
    background: #000;
}
.hero-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(10,10,10,0.7) 50%, rgba(245,166,35,0.15) 100%);
    z-index: 1;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Category Icons (like worldstoughestfix) ===== */
.category-icons-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 0;
}
.category-icon-item {
    text-align: center;
    text-decoration: none !important;
    color: var(--text-primary);
    transition: all 0.3s;
    display: block;
    padding: 15px;
}
.category-icon-item:hover { color: var(--accent); transform: translateY(-5px); }
.category-icon-item .icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 2rem;
    transition: all 0.3s;
}
.category-icon-item:hover .icon-circle {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}
.category-icon-item .icon-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.section-dark { background: var(--bg-darker); padding: 60px 0; }
.section-surface { background: var(--bg-dark); padding: 60px 0; }

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--accent-rgb), 0.08);
    transform: translateY(-6px);
}
.product-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-surface);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card-title a { color: var(--text-primary); text-decoration: none; }
.product-card-title a:hover { color: var(--accent); }
.product-card-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-card-price { font-size: 1.2rem; font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.product-card-price .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; margin-left: 8px; }
.product-card-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 8px;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--accent); color: var(--bg-dark); }
.badge-preorder { background: var(--info); color: #fff; }
.badge-outofstock { background: var(--text-muted); color: #fff; }

.product-card-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.overlay-btn {
    width: 38px;
    height: 38px;
    border-radius: 0;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
    text-decoration: none;
}
.overlay-btn:hover { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }

/* Stars */
.stars { color: var(--accent); font-size: 0.85rem; }
.stars .bi-star-fill { color: var(--accent); }
.stars .bi-star { color: var(--border-light); }

/* ===== Main Content ===== */
.main-content { min-height: 60vh; }

/* ===== Buttons ===== */
.btn-accent {
    background: var(--accent);
    color: var(--bg-dark) !important;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.25s;
    padding: 12px 28px;
}
.btn-accent:hover {
    background: #fff;
    color: var(--bg-dark) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    background: transparent;
    padding: 10px 28px;
    transition: all 0.25s;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.btn-outline-light {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 0;
}
.btn-outline-light:hover { background: var(--text-primary); color: var(--bg-dark); }
.btn-outline-secondary { border-radius: 0; }
.btn-outline-danger { border-radius: 0; }

/* ===== Forms (Dark) ===== */
.form-control, .form-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 0;
}
.form-control:focus, .form-select:focus {
    background: var(--bg-surface);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.form-check-input { background-color: var(--bg-surface); border-color: var(--border-light); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-label { color: var(--text-secondary); }
.form-control:disabled, .form-select:disabled {
    background: var(--bg-surface-light) !important;
    color: var(--text-secondary) !important;
    opacity: 1 !important;
    border-color: var(--border) !important;
}

/* ===== Cards (Dark) ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-primary);
}
.card-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.card-footer { background: var(--bg-surface); border-top: 1px solid var(--border); }

/* ===== Tables (Dark) ===== */
.table { color: var(--text-primary); --bs-table-color: var(--text-primary); --bs-table-striped-color: var(--text-primary); --bs-table-hover-color: var(--text-primary); --bs-table-active-color: var(--text-primary); --bs-table-bg: transparent; --bs-table-hover-bg: var(--bg-surface); }
.table th { border-color: var(--border); color: var(--text-secondary); font-family: var(--font-heading); font-weight: 500; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.table td { border-color: var(--border); vertical-align: middle; }
/* Sicherstellen, dass Zelltext auf dem dunklen Theme lesbar ist (Bootstrap-5 setzt
   sonst eine eigene, dunkle Tabellenfarbe über CSS-Variablen). Höhere Spezifität
   als der Bootstrap-Selektor .table > :not(caption) > * > *. */
.table > tbody > tr > td { color: var(--text-primary); }
.table > tbody > tr > td .text-muted, .table > tbody > tr > td small.text-muted { color: var(--text-secondary) !important; }
.table-striped > tbody > tr:nth-of-type(odd) { --bs-table-bg: var(--bg-surface); }

/* ===== Shop Sidebar ===== */
.shop-sidebar .filter-group { margin-bottom: 1.5rem; }
.shop-sidebar .filter-group h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ===== Product Detail ===== */
.product-gallery { position: relative; }
.product-gallery .main-image { width: 100%; overflow: hidden; background: var(--bg-card); }
.product-gallery .main-image img { width: 100%; height: auto; }
.product-gallery .thumbnails { display: flex; gap: 8px; margin-top: 10px; }
.product-gallery .thumb {
    width: 70px; height: 70px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}
.product-gallery .thumb.active, .product-gallery .thumb:hover { border-color: var(--accent); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 2rem; font-weight: 700; letter-spacing: 2px; }
.product-price { font-size: 2.2rem; font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.product-price .old-price { font-size: 1.3rem; text-decoration: line-through; color: var(--text-muted); font-weight: 400; }

.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-light);
}
.qty-input button {
    width: 40px; height: 40px; border: none;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1.1rem; cursor: pointer;
    transition: background 0.2s;
}
.qty-input button:hover { background: var(--accent); color: var(--bg-dark); }
.qty-input input {
    width: 55px; height: 40px; border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    text-align: center; font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    -moz-appearance: textfield;
}
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ===== Cart ===== */
@media (max-width: 768px) {
    .cart-table thead { display: none; }
    .cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        gap: 8px;
        align-items: center;
    }
    .cart-table tbody td {
        border: none;
        padding: 4px 0;
    }
    /* Product info: full width */
    .cart-table tbody td:nth-child(1) {
        flex: 1 1 100%;
    }
    /* Price */
    .cart-table tbody td:nth-child(2) {
        flex: 1 1 auto;
    }
    /* Quantity */
    .cart-table tbody td:nth-child(3) {
        flex: 0 0 auto;
    }
    /* Line total */
    .cart-table tbody td:nth-child(4) {
        flex: 1 1 auto;
        text-align: right;
    }
    /* Remove button */
    .cart-table tbody td:nth-child(5) {
        flex: 0 0 auto;
    }
    .cart-table tbody td .d-flex.align-items-center.gap-3 img {
        width: 50px !important;
        height: 50px !important;
    }
    .qty-input button { width: 32px; height: 32px; font-size: 0.9rem; }
    .qty-input input { width: 40px; height: 32px; font-size: 0.85rem; }
}

.cart-table th {
    font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted);
}

/* ===== Checkout ===== */
.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 20px;
}
.checkout-section h4 {
    font-family: var(--font-heading);
    font-weight: 600; margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    letter-spacing: 1px;
}

/* ===== Admin ===== */
.admin-sidebar {
    background: var(--bg-darker);
    min-height: 100vh;
    color: #fff;
    border-right: 1px solid var(--border);
    transition: transform 0.3s;
    z-index: 100;
}
.admin-sidebar a {
    color: var(--text-secondary);
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    border-left-color: var(--accent);
}
.admin-layout { display: flex; min-height: 100vh; }
.admin-content { flex: 1; padding: 25px; background: var(--bg-dark); overflow-x: auto; }
.admin-header {
    background: var(--bg-card);
    padding: 15px 25px;
    margin: -25px -25px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-menu-toggle {
    display: none;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Admin table text visibility */
.admin-content .table { color: var(--text-primary); --bs-table-color: var(--text-primary); --bs-table-striped-color: var(--text-primary); --bs-table-hover-color: var(--text-primary); }
.admin-content .table td { color: var(--text-primary); }
.admin-content .table th { color: var(--text-secondary); }
.admin-content .text-muted { color: var(--text-muted) !important; }
.admin-content .text-light-muted { color: var(--text-secondary) !important; }
.admin-content .card { color: var(--text-primary); }
.admin-content .form-label { color: var(--text-secondary); }
.admin-content .badge.bg-warning { color: var(--bg-dark) !important; }

/* Admin nav-tabs for settings */
.admin-content .nav-tabs { border-color: var(--border); }
.admin-content .nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
}
.admin-content .nav-tabs .nav-link:hover { color: var(--text-primary); border-bottom-color: var(--text-muted); }
.admin-content .nav-tabs .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

/* Admin responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        width: 260px !important;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .admin-content { padding: 15px; }
    .admin-header { padding: 12px 15px; margin: -15px -15px 15px; }
}
@media (max-width: 576px) {
    .admin-content { padding: 10px; }
    .admin-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}
.newsletter-section .form-control {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-warning {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 0;
    font-weight: 600;
}
.btn-warning:hover { background: var(--accent-hover); color: var(--bg-dark); }

/* ===== Footer ===== */
.main-footer {
    background: #000;
    color: var(--text-secondary);
    padding: 60px 0 25px;
    border-top: 2px solid var(--accent);
}
.footer-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: var(--border); margin: 30px 0 20px; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; margin-left: 20px; font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--accent); }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}
.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}
.payment-icons i { font-size: 1.5rem; color: var(--text-muted); margin-right: 12px; }

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 18px 0;
    z-index: 9999;
}

/* ===== Alerts ===== */
.alert { border-radius: 0; }
.alert-success { background: rgba(39, 174, 96, 0.15); border-color: var(--success); color: var(--success); }
.alert-danger { background: rgba(233, 69, 96, 0.15); border-color: var(--danger); color: var(--danger); }

/* ===== Blog ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { color: var(--text-secondary); line-height: 1.8; }
.blog-content h2, .blog-content h3 { color: var(--text-primary); margin-top: 2rem; }

/* ===== Compare ===== */
.compare-table th { background: var(--bg-surface); }
.compare-table td { vertical-align: middle; text-align: center; }

/* ===== Pagination ===== */
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
    border-radius: 0;
}
.pagination .page-link:hover { background: var(--bg-surface); color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: var(--bg-dark); }

/* ===== Breadcrumb ===== */
.breadcrumb { background: transparent; padding: 0; font-size: 0.85rem; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--text-muted); }

/* ===== Rating Input ===== */
.rating-input { display: flex; gap: 4px; }
.rating-input .bi { font-size: 1.5rem; cursor: pointer; color: var(--border-light); }
.rating-input .bi.active { color: var(--accent); }

/* ===== Toast ===== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-marker,
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
}

/* ===== Badge overrides ===== */
.badge.bg-accent { background: var(--accent) !important; color: var(--bg-dark); }
.badge.bg-secondary { background: var(--bg-surface-light) !important; color: var(--text-secondary); }
.badge.bg-success { background: var(--success) !important; }
.badge.bg-warning { background: var(--accent) !important; color: var(--bg-dark) !important; }
.badge.bg-danger { background: var(--danger) !important; }
.badge.bg-info { background: var(--info) !important; }
.badge.bg-primary { background: var(--info) !important; }
.badge.bg-light { background: var(--bg-surface) !important; color: var(--text-secondary) !important; }

/* ===== Misc ===== */
hr { border-color: var(--border); }
.text-muted { color: var(--text-muted) !important; }
.bg-light { background: var(--bg-surface) !important; }
.border-bottom { border-color: var(--border) !important; }

/* ===== WTF-Style Homepage Sections ===== */

/* Hero */
.wtf-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wtf-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 70%);
    z-index: 0;
}
.wtf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
}
.wtf-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
}
.wtf-hero-logo {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}
.wtf-hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Category Bar */
.wtf-categories {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.wtf-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.25s, transform 0.25s;
}
.wtf-cat-item i {
    font-size: 1.8rem;
    color: var(--accent);
}
.wtf-cat-item span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.wtf-cat-item:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Showcase Section */
.wtf-showcase {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.wtf-showcase-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000 0%, #0d0d0d 40%, #000 100%);
    z-index: 0;
}
.wtf-showcase-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
}
.wtf-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    position: relative;
}
.wtf-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
}
.wtf-product-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.wtf-product-scroll::-webkit-scrollbar { height: 4px; }
.wtf-product-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.wtf-product-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.wtf-product-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}
.wtf-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.wtf-product-link:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(var(--accent-rgb), 0.1);
    transform: translateY(-4px);
    color: inherit;
}
.wtf-product-img {
    height: 260px;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wtf-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.wtf-product-link:hover .wtf-product-img img {
    transform: scale(1.05);
}
.wtf-product-placeholder {
    font-size: 3rem;
    color: var(--text-muted);
}
.wtf-product-info {
    padding: 16px;
}
.wtf-product-cat {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--font-heading);
}
.wtf-product-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 6px 0 8px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: none;
}
.wtf-product-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
}

/* Trust / USP Section */
.wtf-trust {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.wtf-trust-item {
    text-align: center;
    padding: 20px 10px;
}
.wtf-trust-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.wtf-trust-item h6 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.wtf-trust-item small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Grid Section (Neuheiten / Bestseller) */
.wtf-grid-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

/* Banner CTA */
.wtf-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}
.wtf-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 60%);
}
.wtf-banner-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 16px;
    position: relative;
}

/* ===== Netto Price Display ===== */
.product-card-netto { margin-top: 2px; margin-bottom: 4px; }
.wtf-product-netto {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.wtf-product-price small {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== Hero Background Image ===== */
.wtf-hero-bgimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 0;
}
.wtf-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 0;
}
.wtf-hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== USP Bar ===== */
.wtf-usp-bar {
    background: var(--accent);
    padding: 12px 0;
    overflow: hidden;
}
.wtf-usp-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}
.wtf-usp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
.wtf-usp-item i { font-size: 1.1rem; }

/* ===== CTA Banner with Image ===== */
.wtf-banner-img { position: relative; }
.wtf-banner-bgimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    z-index: 0;
}

/* ===== Service CTA Section ===== */
.wtf-service-cta {
    padding: 80px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}
.wtf-service-cta .wtf-section-title { text-align: left; }
.wtf-service-cta .wtf-section-title::after { margin: 12px 0 0; }
.wtf-service-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wtf-service-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.wtf-service-feature:hover { border-color: var(--accent); }
.wtf-service-feature i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.wtf-service-feature strong {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ===== Skip to content (a11y) ===== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 12px 24px;
    font-weight: 700;
    text-decoration: none;
}
.skip-to-content:focus {
    left: 0;
}

/* ===== Focus styles (a11y) ===== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.2); }
    50% { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4); }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        padding: 15px;
        border-top: 1px solid var(--border);
    }
    .nav-link { padding: 12px 0 !important; border-bottom: 1px solid var(--border); }
    .header-search-wrapper { max-width: 100% !important; width: 100%; margin-top: 10px; order: 10; }
    .header-actions { margin-top: 10px; justify-content: center; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; letter-spacing: 2px; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .product-card-img { height: 180px; }
    .category-icon-item .icon-circle { width: 60px; height: 60px; font-size: 1.5rem; }
    .product-info h1 { font-size: 1.5rem; }
    .product-price { font-size: 1.8rem; }
    .wtf-hero { min-height: 50vh; }
    .wtf-hero-logo { height: 80px; }
    .wtf-hero-tagline { font-size: 0.9rem; letter-spacing: 3px; }
    .wtf-hero-sub { font-size: 0.9rem; }
    .wtf-section-title { font-size: 1.5rem; letter-spacing: 2px; }
    .wtf-product-item { flex: 0 0 220px; }
    .wtf-product-img { height: 200px; }
    .wtf-banner-title { font-size: 1.6rem; letter-spacing: 3px; }
    .wtf-showcase, .wtf-grid-section { padding: 50px 0; }
    .wtf-banner { padding: 60px 0; }
    .wtf-service-cta { padding: 50px 0; }
    .wtf-usp-scroll { gap: 12px; }
    .wtf-usp-item { font-size: 0.7rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .wtf-hero-logo { height: 60px; }
    .wtf-hero-tagline { font-size: 0.75rem; letter-spacing: 2px; }
    .wtf-hero-sub { font-size: 0.8rem; }
    .wtf-hero-cta { flex-direction: column; align-items: center; }
    .wtf-hero-cta .ms-2 { margin-left: 0 !important; }
    .wtf-cat-item i { font-size: 1.3rem; }
    .wtf-cat-item span { font-size: 0.65rem; }
    .wtf-usp-scroll { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; }
}

/* ===== Search Dropdown Mobile Fix ===== */
/* Ensure the search wrapper creates a stacking context above following content */
.hero-search-wrapper,
.header-search-wrapper,
.shop-search-wrapper {
    position: relative;
    z-index: 1050;
}

@media (max-width: 768px) {
    /* On mobile: stay attached to search bar width, same as desktop */
    .smart-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 55vh;
        border-radius: 0 0 8px 8px;
    }
    /* Hero search wrapper needs higher z-index to overlap USP bar and categories */
    .hero-search-wrapper {
        z-index: 10100;
    }
    /* Remove overflow:hidden on hero so dropdown is not clipped */
    .wtf-hero,
    .hero-section {
        overflow: visible;
    }
    .smart-search-item img {
        width: 40px;
        height: 40px;
    }
    .smart-search-item {
        padding: 8px 12px;
        gap: 10px;
    }
    .smart-search-item-name {
        font-size: 0.82rem;
    }
    .smart-search-item-price {
        font-size: 0.85rem;
    }
    .smart-search-item-meta {
        font-size: 0.7rem;
    }
}
