/**
 * STB Theme Styles
 * Based on original STB International design
 * Subtly modernized
 *
 * @package STB_Theme
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --stb-red: #d81300;
    --stb-red-dark: #b81100;
    --stb-red-light: #ff2a15;
    --stb-dark: #2d2d2d;
    --stb-darker: #1a1a1a;
    --stb-gray: #5a5a5a;
    --stb-gray-light: #8a8a8a;
    --stb-border: #e0e0e0;
    --stb-bg-light: #f8f8f8;
    --stb-white: #ffffff;
    --stb-font: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Modern additions */
    --stb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.12);
    --stb-shadow: 0 3px 6px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08);
    --stb-shadow-lg: 0 10px 20px rgba(0,0,0,0.12), 0 6px 6px rgba(0,0,0,0.08);
    --stb-radius-sm: 3px;
    --stb-radius: 6px;
    --stb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--stb-font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--stb-dark);
    background-color: var(--stb-bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--stb-red);
    text-decoration: none;
    transition: color var(--stb-transition);
}

a:hover {
    color: var(--stb-red-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Top Bar */
.topbar {
    background-color: #d81301;
    border-bottom: none;
    font-size: 12px;
}

.topbar-content {
    display: flex;
    justify-content: flex-end;
    padding: 4px 0;
}

.topbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.topbar-menu li a {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.topbar-menu li a:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

/* Topbar User Menu */

.topbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    padding: 4px 0;
}

.topbar-nav {
    display: flex;
    align-items: center;
}

.topbar-nav .topbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.topbar-user {
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.topbar-user-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.topbar-user-menu li {
    display: flex;
    align-items: center;
}

.user-greeting {
    font-size: 12px;
    color: #ffffff;
}

.user-greeting .user-name {
    font-weight: 600;
    margin-right: 5px;
    text-transform: uppercase;
    color: #ffffff;
}

.user-greeting .logout-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-greeting .logout-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.user-cart .cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.user-cart .cart-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.user-cart .cart-link i {
    font-size: 14px;
}

.user-cart .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #d81300; /* STB rood */
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .topbar-user-menu {
        gap: 15px;
        font-size: 11px;
    }
    
    .user-cart .cart-link {
        padding: 3px 8px;
    }
}

/* Main Header */
/* Main header: hoog genoeg om de logo te bevatten */
.main-header {
    position: relative;
    background: #fff;
    min-height: 90px;       /* Ruimte voor nav-rij */
    padding-top: 0;
}

/* Logo wordt verankerd aan de bovenkant van de site-header (boven topbar) via
   absolute positionering t.o.v. .site-header. De logo loopt door in de header
   maar stopt BOVEN de page-content. */
.site-header {
    position: relative;
}

.header-inner {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    position: relative;
    min-height: 90px;
}

/* Logo - hangt aan de linker kant, uitlijning op bovenkant van .main-header */
.site-logo {
    position: absolute;
    top: -55px;   /* Overlapt in de topbar */
    left: 0;
    z-index: 200;
    /* Hoogte begrenzen zodat logo NIET onder de .main-header uitsteekt */
    bottom: 0;
    overflow: visible;
}

.site-logo a {
    display: inline-block;
    background: var(--stb-white);
    padding: 15px 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-placeholder {
    text-align: left;
    min-width: 130px;
}

.logo-stb {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--stb-red);
    line-height: 1;
}

.logo-text {
    display: block;
    font-size: 16px;
    color: var(--stb-dark);
    margin-top: 2px;
}

.logo-tagline {
    display: block;
    font-size: 10px;
    color: var(--stb-gray);
    margin-top: 8px;
    line-height: 1.3;
}

.logo-img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    align-self: center; /* Centreer in header */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-menu > li:last-child > a {
	padding-right: 0px;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--stb-red);
}

/* Dropdown indicator */
.nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* Submenu */
.nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--stb-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--stb-dark);
    font-size: 13px;
}

.nav-menu .sub-menu li a:hover {
    background: var(--stb-bg-light);
    color: var(--stb-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--stb-white);
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */
.hero-slider-section {
    position: relative;
    height: 400px;
    overflow: hidden;
}

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-slide-link {
    text-decoration: none;
}

.hero-text {
    text-align: right;
}

.hero-title-top, .hero-title-sub {
    font-size: 42px;
    font-weight: 700;
    color: var(--stb-white);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-title-sub {
	margin-right: 5px;
}

.hero-title-bottom {
    font-size: 42px;
    font-weight: 700;
    color: var(--stb-red);
    line-height: 1.1;
    text-transform: uppercase;
}

/* Slider Navigation Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--stb-transition);
}

.hero-slider-dot:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.4);
}

.hero-slider-dot.active {
    background: #fff;
    border-color: #fff;
}

/* Slider Navigation Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 22px;
    cursor: pointer;
    transition: all var(--stb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-slider-prev {
    left: 0;
}

.hero-slider-next {
    right: 0;
}

/* Legacy hero-section support */
.hero-section {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-section {
    background: var(--stb-white);
    padding: 45px 0;
    border-bottom: 1px solid var(--stb-border);
}

.intro-text {
    font-size: 24px;
    color: var(--stb-dark);
    line-height: 35px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.intro-text strong {
    font-weight: 700;
    color: var(--stb-darker);
}

.intro-subtext {
    font-size: 14px;
    color: var(--stb-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

.btn-phone {
    padding: 16px 32px;
    font-size: 16px;
    white-space: nowrap;
    border-radius: var(--stb-radius);
}

.btn-phone i {
    margin-right: 10px;
    font-size: 18px;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 60px 0;
    background: var(--stb-bg-light);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--stb-dark);
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--stb-border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--stb-red);
    border-radius: 2px;
}

/* Product Category Card */
.product-category-card {
    background: var(--stb-white);
    border-radius: var(--stb-radius);
    overflow: hidden;
    box-shadow: var(--stb-shadow-sm);
    transition: all var(--stb-transition);
}

.product-category-card:hover {
    box-shadow: var(--stb-shadow-lg);
    transform: translateY(-4px);
}

.category-image {
    position: relative;
    overflow: hidden;
    background: var(--stb-bg-light);
    aspect-ratio: 4/3;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--stb-red);
    color: var(--stb-white);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--stb-radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--stb-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.category-btn:hover {
    background: var(--stb-red-dark);
    color: var(--stb-white);
    transform: translateX(3px);
}

.category-btn i {
    font-size: 10px;
    transition: transform var(--stb-transition);
}

.category-btn:hover i {
    transform: translateX(2px);
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--stb-dark);
    margin: 0 0 8px 0;
}

.category-content p {
    font-size: 13px;
    color: var(--stb-gray);
    margin: 0;
    line-height: 1.6;
}

.products-section .row {
    display: flex;
    flex-wrap: wrap;
}

.product-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 50px 0 60px;
    background: var(--stb-white);
    border-top: none;
}

.features-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--stb-dark);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stb-border);
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--stb-red);
    border-radius: 2px;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    padding: 2px 0;
    font-size: 14px;
    color: var(--stb-gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color var(--stb-transition);
}

.features-list li:hover {
    color: var(--stb-dark);
}

.features-list li i {
    color: #72c02c;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #222222;
    color: #fff;
}

.footer-main {
    padding: 60px 0 50px;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--stb-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--stb-red);
}

.footer-text {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact {
    font-style: normal;
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact a {
    color: var(--stb-red);
}

.footer-contact a:hover {
    color: var(--stb-white);
}

/* Newsletter Form */
.newsletter-form .input-group {
    display: flex;
}

.newsletter-form .form-control {
    background: var(--stb-white);
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    flex: 1;
}

.newsletter-form .btn {
    padding: 10px 20px;
    font-size: 13px;
    white-space: nowrap;
}

/* Footer Logos */
.footer-logos {
    margin-top: 10px;
}

.footer-logo-link {
    display: inline-block;
    margin-right: 15px;
}

.footer-logo {
    max-height: 50px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.nhk-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.play-btn {
    color: var(--stb-white);
    font-size: 48px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.play-btn:hover {
    opacity: 1;
    color: var(--stb-white);
}

/* Footer Bottom */
.footer-bottom {
    background: #111;
    padding: 10px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social a {
    font-size: 18px;
    transition: color 0.2s ease;
    color: #fff;
}

.footer-social a:hover {
    color: var(--stb-white);
}

.footer-copyright {
    font-size: 12px;
}

.footer-copyright a {
    color: var(--stb-red);
    margin-left: 15px;
}

.footer-brand .brand-stb {
    font-size: 28px;
    font-weight: 700;
    color:  #fff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-stb {
    background-color: var(--stb-red);
    color: var(--stb-white);
    border: none;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--stb-radius-sm);
    cursor: pointer;
    transition: all var(--stb-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(216, 19, 0, 0.2);
}

/* Kleinere variant voor formulieren/tools */
.btn-stb-sm,
.btn.btn-stb-sm {
    background-color: var(--stb-red);
    color: var(--stb-white);
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--stb-radius-sm);
    cursor: pointer;
    transition: all var(--stb-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(216, 19, 0, 0.2);
}

.btn-stb:hover,
.btn-stb:focus {
    background-color: var(--stb-red-dark);
    color: var(--stb-white);
    box-shadow: 0 4px 8px rgba(216, 19, 0, 0.3);
    transform: translateY(-1px);
}

.btn-stb:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(216, 19, 0, 0.2);
}

.btn-stb-sm:hover,
.btn-stb-sm:focus,
.btn.btn-stb-sm:hover,
.btn.btn-stb-sm:focus {
    background-color: var(--stb-red-dark);
    color: var(--stb-white);
    box-shadow: 0 3px 6px rgba(216, 19, 0, 0.3);
    transform: translateY(-1px);
}

.btn-stb-sm:active,
.btn.btn-stb-sm:active {
    transform: translateY(0);
}

.btn-outline-stb {
    background-color: transparent;
    color: var(--stb-red);
    border: 2px solid var(--stb-red);
    padding: 10px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--stb-radius-sm);
    cursor: pointer;
    transition: all var(--stb-transition);
}

.btn-outline-stb:hover {
    background-color: var(--stb-red);
    color: var(--stb-white);
    box-shadow: 0 4px 8px rgba(216, 19, 0, 0.25);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-stb {
    color: var(--stb-red) !important;
}

.bg-stb {
    background-color: var(--stb-red) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--stb-dark);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 12px 20px;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        padding-left: 20px;
    }

    .hero-section {
        height: 280px;
    }

    .hero-title-top,
    .hero-title-bottom {
        font-size: 28px;
    }

    .hero-text {
        padding-right: 20px;
    }

    .intro-section {
        text-align: center;
    }

    .intro-section .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title-top,
    .hero-title-bottom {
        font-size: 24px;
    }

    .hero-title-sub {
        font-size: 14px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    #back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}

/* ==========================================================================
   Product Table - Staffelprijzen & Prijsweergave
   ========================================================================== */

/* Price column styling */
.stb-product-table .col-price {
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.stb-product-table .col-price.price-updated {
    background-color: #e8f5e9;
    animation: priceFlash 0.5s ease;
}

@keyframes priceFlash {
    0% { background-color: #c8e6c9; }
    100% { background-color: transparent; }
}

/* Quantity input wrapper */
.quantity-input-wrapper {
    position: relative;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.quantity-input.has-staffel {
    border-color: var(--stb-green);
}

/* Staffel hint below input */
.staffel-hint {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    font-size: 11px;
    color: var(--stb-green);
    white-space: nowrap;
    margin-top: 2px;
}

/* Staffel popover */
.staffel-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 100;
    min-width: 180px;
    margin-top: 5px;
}

.staffel-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ddd;
}

.staffel-popover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.staffel-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--stb-red);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.staffel-table {
    width: 100%;
    font-size: 11px;
}

.staffel-table td {
    padding: 3px 5px;
}

.staffel-table td:first-child {
    color: #666;
}

.staffel-table td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Notification toast */
.stb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stb-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.stb-notification-success {
    background: var(--stb-green);
}

.stb-notification-error {
    background: var(--stb-red);
}

.stb-notification-info {
    background: #0d6efd;
}

/* MRO Quick Order Table */
.mro-quick-order .table {
    margin-bottom: 0;
}

.mro-quick-order .mro-checkbox {
    width: 18px;
    height: 18px;
}

.mro-quick-order .mro-qty {
    width: 70px;
    text-align: center;
}

.mro-actions {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Product table action column */
.stb-product-table .col-action {
    text-align: center;
}

.stb-product-table .btn-add-single {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Dealer search badge */
.btn-dealer {
    background-color: var(--stb-green);
    border-color: var(--stb-green);
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
}

.btn-dealer:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

/* Line total display */
.line-total {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* Product table responsive adjustments */
@media (max-width: 768px) {
    .staffel-popover {
        left: auto;
        right: 0;
        transform: none;
    }
    
    .staffel-popover::before,
    .staffel-popover::after {
        left: auto;
        right: 15px;
        transform: none;
    }
    
    .stb-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
