:root {
    --vidix-dark: #1C1C1A;
    --vidix-orange: #FC8D3C;
    --vidix-orange-hover: #e07d2f;
    --vidix-gray: #f0f0ee;
    --vidix-light: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--vidix-light);
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar-wrapper {
    width: 260px;
    min-height: 100vh;
    background: var(--vidix-dark);
    flex-shrink: 0;
    transition: margin-left 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

#sidebar-wrapper .sidebar-logo {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar-wrapper .sidebar-logo img {
    max-height: 36px;
}

#sidebar-wrapper .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

#sidebar-wrapper .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--vidix-orange);
}

#sidebar-wrapper .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--vidix-orange);
}

#sidebar-wrapper .nav-link i {
    width: 22px;
    text-align: center;
    margin-right: 8px;
}

#sidebar-wrapper .nav-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0,0,0,0.15);
}

#sidebar-wrapper .nav-sub .nav-link {
    padding-left: 3rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

#sidebar-wrapper .nav-sub .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

#sidebar-wrapper .nav-link .bi-chevron-down {
    transition: transform 0.2s;
}

#sidebar-wrapper .nav-link.open .bi-chevron-down {
    transform: rotate(180deg);
}

#sidebar-wrapper .search-form {
    padding: 1rem 1.25rem;
}

#page-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#menu-toggler {
    color: var(--vidix-dark);
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.breadcrumb-bar {
    background: var(--vidix-dark);
    padding: 0.75rem 0;
}

.breadcrumb-bar .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.breadcrumb-bar .breadcrumb-item a {
    color: var(--vidix-orange);
    text-decoration: none;
}

.breadcrumb-bar .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.btn-conversion {
    background: var(--vidix-orange);
    border-color: var(--vidix-orange);
    color: #fff;
}

.btn-conversion:hover {
    background: var(--vidix-orange-hover);
    border-color: var(--vidix-orange-hover);
    color: #fff;
}

.card-product {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.card-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-product .card-img-top {
    height: 220px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}

.card-product .card-body {
    padding: 1rem;
    background: var(--vidix-gray);
}

.card-product .card-footer {
    background: var(--vidix-gray);
    border-top: none;
    padding: 0.75rem 1rem;
}

.price-bez-dph {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vidix-dark);
}

.price-s-dph {
    font-size: 0.8rem;
    color: #666;
}

.cart-badge {
    background: var(--vidix-orange);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    border-radius: 10px;
    margin-left: 6px;
}

.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 400px;
}

.category-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: #fff;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card img {
    height: 180px;
    object-fit: contain;
    padding: 1rem;
}

.category-card .card-footer {
    background: var(--vidix-dark);
    border-top: none;
    padding: 0.75rem;
}

.category-card .card-footer a {
    color: #fff;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vidix-dark);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 12px;
}

.footer-b2b {
    background: var(--vidix-dark);
    color: rgba(255,255,255,0.6);
    padding: 1rem 0;
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 1199.98px) {
    #sidebar-wrapper {
        margin-left: -260px;
    }

    #sidebar-wrapper.show {
        margin-left: 0;
    }

    #page-content-wrapper {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    #menu-toggler {
        display: none;
    }
}

.order-table th {
    background: var(--vidix-dark);
    color: #fff;
    font-weight: 500;
    border-bottom: none;
}

.product-detail-image {
    max-height: 400px;
    object-fit: contain;
}

.variant-selector {
    width: 100%;
}
