/* Rommelsbacher Components Common Styles */

/* Filter Section */
/* .filter-section {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
} */

.filter-header-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.filter-section h2 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 48px;
    line-height: 58px;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0;
    flex: none;
    flex-grow: 0;
}

.filter-buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
}

.filter-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px;
    gap: 8px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F5F5F5;
    color: #757575;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%; /* identical to box height, or 16px */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: none;
    flex-grow: 0;
    text-decoration: none;
}

.filter-btn:hover {
    background: #E5E5E5;
}

.filter-btn.active {
    background: #2C2C2C;
    color: #F5F5F5;
}

.filter-btn .new-icon,
.filter-btn .filter-icon {
    width: 16px;
    height: 16px;
    flex: none;
    flex-grow: 0;
    display: none;
}

.filter-btn.active .new-icon,
.filter-btn.active .filter-icon {
    display: inline-block;
}

.dealer-list-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dealer-list-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.briefcase-icon {
    width: 20px;
    height: auto;
}

.dealer-list-btn i {
    font-size: 16px;
}


/* Landing page styles (moved from rommelsbacher-landing.blade.php) */
.search-language-container {
    gap: 24px;
}

.search-form {
    position: relative;
    width: 400px;
    height: 39px;
}

.search-form input {
    border: none;
    border-bottom: 1px solid #BCC1C7;
    padding: 0 40px 0 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: #333;
    background: transparent;
}

.search-form input::placeholder {
    color: #BCC1C7;
    font-weight: 500;
}

.search-form input:focus {
    outline: none;
    border-bottom-color: #BCC1C7;
    box-shadow: none;
}

.search-form button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button i {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transform: rotate(90deg);
    color: #1E1E1E;
}

.search-form button:hover i {
    opacity: 1;
}

.main-nav {
    background-color: white;
    padding: 35px 0;
    margin-top: 0;
    /* border-bottom: 1px solid #e8e8e8; */
}

.main-nav .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 72px;
    list-style: none;
    margin: 0;
}

.main-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    display: flex;
    align-items: flex-end;
    text-align: center;
    color: #757575;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    flex: none;
    flex-grow: 0;
    position: relative;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E30613;
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover {
    color: #333;
    transform: translateY(-2px);
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

.main-nav .nav-link.active {
    color: #757575;
}

.main-nav .nav-link.active::after {
    width: 100%;
}

.main-nav .nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Main Nav Wrapper */
.main-nav-wrapper {
    position: relative;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    display: block;
}

.menu-toggle:hover span {
    background-color: #E30613;
}

.menu-toggle.active {
    justify-content: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
    background-color: #E30613;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
    background-color: #E30613;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        z-index: 1050;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        animation: slideInLeft 0.3s ease-out;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .main-nav.show {
        display: block;
    }

    .main-nav .container {
        padding: 20px 15px;
        max-width: 100%;
    }

    .main-nav .nav {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .main-nav .nav-item {
        width: 100%;
        margin: 0;
    }

    .main-nav .nav-link {
        display: block;
        padding: 18px 20px;
        border-left: 4px solid transparent;
        border-bottom: 1px solid #F5F5F5;
        text-align: left;
        width: 100%;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 20px;
        line-height: 28px;
        color: #333333;
        transition: all 0.3s ease;
        position: relative;
        background-color: transparent;
    }

    .main-nav .nav-link:first-child {
        border-top: 1px solid #F5F5F5;
    }

    .main-nav .nav-link.active {
        border-left-color: #E30613;
        color: #E30613;
        background-color: #F8F8F8;
        font-weight: 500;
    }

    .main-nav .nav-link:hover {
        border-left-color: #E30613;
        background-color: #F8F8F8;
        color: #E30613;
        transform: none;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 15px;
        border-bottom: 1px solid #F5F5F5;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-menu-logo {
        flex: 1;
    }

    .mobile-logo-image {
        max-width: 200px;
        height: auto;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .mobile-menu-close:hover {
        background-color: #F5F5F5;
    }

    .mobile-menu-close svg {
        transition: transform 0.3s ease;
    }

    .mobile-menu-close:hover svg {
        transform: rotate(90deg);
    }

    /* No overlay - full white background */
    .main-nav {
        box-shadow: none;
    }
}

.hero-rommel {
    background: #f5f5f5;
}

.hero-rommel__headline {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #003366;
}

.hero-rommel__sub {
    font-size: .95rem;
    color: #555;
}

.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: #222;
}

.rommel-highlight {
    color: #e3000f;
}

.product-grid .card {
    min-height: 100%;
}

.blog-grid .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.blog-grid .card-text {
    font-size: .9rem;
    color: #555;
}

.badge-new {
    background-color: #e3000f;
}

.rommel-bg-light {
    background-color: #f8f8f8;
}

.rommel-footer-cta {
    background: #f5f5f5;
}

.rommel-cta-btn {
    background-color: #e3000f;
    border-color: #e3000f;
}

.rommel-cta-btn:hover {
    background-color: #c1000c;
    border-color: #c1000c;
}

.rommel-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.rommel-badge-de {
    font-size: .7rem;
    letter-spacing: .06em;
}

.rommel-filter-btn {
    color: #444;
    font-weight: 600;
    border-radius: 999px;
    padding: .35rem .85rem;
    background: #f2f2f2;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.rommel-filter-btn:hover {
    background: #e8e8e8;
    border-color: #ddd;
}

.rommel-filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-grid [data-category] {
    transition: opacity 0.3s, transform 0.3s;
}

.product-grid [data-category].hidden {
    display: none;
}

.rommel-footer-links a {
    color: #444;
    text-decoration: none;
}

.rommel-footer-links a:hover {
    color: #e3000f;
    text-decoration: underline;
}

.rommel-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rommel-fab a {
    width: 200px;
    height: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-select-wrapper {
    position: relative;
    /* min-width: 130px; */
}

.language-select-wrapper select {
    padding-left: 34px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #555;
    box-shadow: none;
}

.language-select-wrapper select:focus {
    outline: none;
    box-shadow: none;
}


/* Header (topbar + language) */
.topbar-rommel {
    background: #f5f5f6;
    border-bottom: 1px solid #e3e3e3;
    font-size: 12px;
    padding: 8px 0;
    margin-bottom: 25px !important;
}

.topbar-rommel .container {
    padding-left: 15px;
    padding-right: 15px;
}

.rommel-company {
    letter-spacing: 0.04em;
    color: #6c757d;
}

.rommel-support {
    gap: 8px;
}

.rommel-support-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    align-self: flex-start;
    margin-top: 2px;
}

.rommel-support-text {
    color: #666;
}

.rommel-menu-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.logo-image {
    width: 310px;
    height: 59px;
    object-fit: contain;
}

/* Header Responsive */
@media (max-width: 992px) {
    .logo-image {
        width: 250px;
        height: auto;
    }
    
    .rommel-header-wrapper {
        padding: 10px 0;
    }
    
    .rommel-header-wrapper .d-flex.align-items-center {
        align-items: center;
    }
    
    .topbar-rommel {
        padding: 6px 0;
        font-size: 11px;
        margin-bottom: 15px !important;
    }
    
    .rommel-company {
        font-size: 10px;
    }
    
    .rommel-support-text {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 200px;
        height: auto;
    }
    
    .rommel-header-wrapper .d-flex.align-items-center {
        gap: 12px;
    }
    
    .menu-toggle {
        width: 22px;
        height: 16px;
    }
    
    .topbar-rommel {
        padding: 5px 0;
        font-size: 10px;
        margin-bottom: 10px !important;
    }
    
    .rommel-company {
        font-size: 9px;
        line-height: 1.3;
    }
    
    .rommel-support {
        gap: 6px;
    }
    
    .rommel-support-text {
        font-size: 10px;
    }
    
    .rommel-support-icon {
        width: 12px;
        height: 12px;
    }
    
    .rommel-menu-icon {
        width: 16px;
        height: 16px;
    }
    
    .search-language-container {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .logo-image {
        width: 180px;
        height: auto;
    }
    
    .rommel-header-wrapper .d-flex.align-items-center {
        gap: 10px;
    }
    
    .menu-toggle {
        width: 20px;
        height: 14px;
    }
    
    .menu-toggle span {
        height: 1.5px;
    }
    
    .rommel-company {
        font-size: 8px;
    }
}

/* Language dropdown */
.language-select-wrapper {
    position: relative;
    display: inline-block;
}

.language-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none !important;
    box-shadow: none !important;
}

.language-selector-btn:hover,
.language-selector-btn:focus,
.language-selector-btn:active {
    background: rgba(0, 0, 0, 0.03) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.language-flag-icon {
    width: 30px;
    height: 20px;
    object-fit: cover;
}

.dropdown-arrow {
    width: 12px;
    height: 8px;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 4px;
    transform: rotate(-180deg);
    position: relative;
    z-index: 1;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    min-width: 90px;
    overflow: hidden;
    padding: 2px 0;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.language-option-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.2px;
}

.language-option:hover {
    background: #f5f5f5;
}

.language-option.active {
    background: #e3f2fd;
    font-weight: 500;
}

.flag-small {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Blog categories row */
.blog-categories {
    width: 100%;
}
/* .blog-category-link {
    flex: 1 1 0;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 8px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}
.blog-category-link:hover {
    background: #f2f2f2;
    color: #000;
} */

/* Blog sidebar product card (used in components/blog.blade.php) */
.blog-sidebar-product .product-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-sidebar-product .product-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.blog-sidebar-product .product-image {
    position: relative;
    padding: 12px;
    background: #f8f8f8;
}
.blog-sidebar-product .product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.blog-sidebar-product .badge-hot {
    position: absolute;
    bottom: 10px;
    left: 10px;
}
.blog-sidebar-product .hot-icon {
    width: 36px;
    height: auto;
}
.blog-sidebar-product .badge-made-in {
    width: 60px;
    height: auto;
}
.blog-sidebar-product .product-info {
    position: relative;
    padding: 12px;
}
.blog-sidebar-product .product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.35;
}
.blog-sidebar-product .product-title-span {
    font-size: 13px;
    font-weight: 500;
}
.blog-sidebar-product .btn-favorite {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.blog-sidebar-product .btn-favorite:hover {
    border-color: #e30613;
}
.blog-sidebar-product .btn-favorite.active {
    border-color: #e30613;
    box-shadow: 0 2px 8px rgba(227,6,19,0.15);
}
.blog-sidebar-product .heart-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.blog-sidebar-product .sidebar-link {
    text-decoration: none;
    color: inherit;
}
.blog-sidebar-product .sidebar-link:hover .product-title {
    color: #e30613;
}
