.sidebar-box,
.featured-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0px 0px rgba(18, 38, 63, 0.08);
}

.product-card img {
    object-fit: cover;
    height: 180px;
    width: 100%;
    border-radius: .8rem;
    background: #e9ecef;
}

.price-box {
    background: #fff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.badge-soft {
    background: #e8f1ff;
    color: #0d6efd;
}

.frontend-shell {
    width: 100%;
    max-width: none;
}

.frontend-navbar .navbar-brand {
    flex-shrink: 0;
}

.site-footer .container-fluid,
.frontend-shell,
.frontend-navbar .container-fluid {
    max-width: none;
}

.frontend-layout {
    display: grid;
    grid-template-columns: clamp(220px, 18vw, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.frontend-main {
    min-width: 0;
}

.frontend-sidebar {
    position: sticky;
    top: 90px;
    max-width: 260px;
}

.frontend-sidebar .list-group-item.active {
    background: #0d6efd;
    border-color: #0d6efd;
}

@media (max-width: 1200px) {
    .frontend-layout {
        grid-template-columns: 1fr;
    }

    .frontend-sidebar {
        position: static;
        max-width: none;
    }
}

.frontend-navbar .navbar-collapse {
    gap: 1rem;
    padding-left: 20px;
}

.header-search-form {
    min-width: 0;
}

.header-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.header-search-form .form-control {
    min-height: 38px;
}

.header-user-box {
    white-space: nowrap;
}

.homepage-layout {
    align-items: start;
}

.featured-grid-card {
    border: 0;
    box-shadow: 0 8px 22px rgba(18, 38, 63, 0.08);
    border-radius: 1rem;
}

.featured-grid-card .card-body {
    padding: .75rem;
}

.featured-grid-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: .8rem;
    background: #e9ecef;
}

.product-grid-card-compact {
    overflow: hidden;
}

.product-grid-image-link {
    display: block;
}

.product-grid-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    font-size: .7rem;
    line-height: 1.25;
    color: #6c757d;
}

.product-grid-meta-left,
.product-grid-meta-right {
    min-width: 0;
    flex: 1 1 50%;
}

.product-grid-meta-right {
    text-align: right;
}

.product-grid-vehicle {
    font-size: .85rem;
    line-height: 1.3;
    font-weight: 500;
    min-height: 2.2em;
}

.product-grid-description {
    font-size: .7rem;
    line-height: 1.3;
    font-weight: 700;
    min-height: 2.7em;
}

.product-grid-featured-order {
    font-size: .7rem;
    line-height: 1.25;
    color: #6c757d;
}

.product-grid-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
}

.product-grid-production {
    width: 100%;
    font-size: .72rem;
    line-height: 1.3;
    color: #6c757d;
    text-align: left;
    font-weight: 700;
}

.product-grid-button {
    display: block;
    width: 100%;
    white-space: nowrap;
    font-size: .78rem;
    padding: .45rem .75rem;
    text-transform: uppercase;
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.product-grid-button:hover,
.product-grid-button:focus {
    background: #5c636a;
    border-color: #565e64;
    color: #fff;
}

.product-lightbox-link {
    display: block;
    text-decoration: none;
}

.product-lightbox-link,
.product-lightbox-link img,
.lightbox-trigger-image {
    cursor: zoom-in;
}

.product-lightbox-link:hover,
.product-lightbox-link:focus,
.lightbox-trigger-image:hover,
.lightbox-trigger-image:focus {
    opacity: .96;
}

.product-detail-lightbox-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #e9ecef;
}

.product-image-modal .modal-dialog {
    max-width: min(96vw, 1400px);
}

.product-image-modal .modal-content {
    background: rgba(0, 0, 0, 0.96);
    border: 0;
}

.product-image-modal .modal-body {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1.5rem;
}

.product-image-modal .modal-header {
    align-items: start;
}

.product-image-modal .modal-title {
    font-size: 1rem;
}

.product-image-modal-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
}

@media (max-width: 1399px) {
    .frontend-navbar .navbar-collapse {
        align-items: stretch;
    }

    .header-user-box {
        white-space: normal;
    }
}

.product-image-placeholder {
    width: 100%;
    height: 220px;
    border-radius: .8rem;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
}

.header-search-autocomplete {
    min-width: 0;
}

@media (max-width: 991px) {
    .header-search-grid {
        grid-template-columns: 1fr;
    }
}

.additional-models-front {
    border: 1px solid #e9eef5;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fbff;
}

.additional-model-badge {
    color: #0d6efd !important;
    border: 1px solid rgba(13, 110, 253, 0.16);
    padding: .55rem .85rem;
    font-size: .86rem;
}

.additional-model-badge:hover {
    background: #e8f1ff !important;
}

.model-card-title {
    color: #212529;
}

.ajax-cart-feedback {
    margin-top: .25rem;
    border-radius: .85rem;
}

.js-animated-alert {
    transition: opacity .2s ease, transform .2s ease;
    will-change: opacity, transform;
}

.js-animated-alert.is-alert-hidden,
.js-animated-alert.is-alert-entering,
.js-animated-alert.is-alert-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.js-animated-alert.is-alert-visible.show,
.js-animated-alert.is-alert-visible:not(.fade) {
    opacity: 1;
    transform: translateY(0);
}

.js-animated-alert.fade:not(.show) {
    transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
    .js-animated-alert {
        transition: none;
        transform: none;
    }

    .js-animated-alert.is-alert-hidden,
    .js-animated-alert.is-alert-entering,
    .js-animated-alert.is-alert-visible,
    .js-animated-alert.is-alert-leaving {
        transform: none;
    }
}

.product-card:hover .model-card-title {
    color: #0d6efd;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 1.25rem 0 1.75rem;
    box-shadow: 0 -4px 18px rgba(18, 38, 63, 0.04);
}

.product-stock-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.frontend-navbar-light {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6; 
}

.frontend-navbar-light .navbar-brand,
.frontend-navbar-light .nav-link,
.frontend-navbar-light .navbar-toggler {
    color: #000;
}

.frontend-navbar-light .navbar-brand:hover,
.frontend-navbar-light .nav-link:hover {
    color: #000;
}

.frontend-navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, .2);
}

.frontend-navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-search-grid {
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: start;
}

@media (min-width: 992px) {
    .header-search-grid {
        grid-template-columns: repeat(4, minmax(0, 200px));
    }
}

.header-search-autocomplete,
.header-search-form .form-control {
    width: 100%;
    max-width: 200px;
}

@media (max-width: 767px) {
    .header-search-grid {
        grid-template-columns: 1fr;
    }

    .header-search-autocomplete,
    .header-search-form .form-control {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .frontend-topbar-search .header-search-autocomplete {
        position: static !important;
    }

    .frontend-topbar-search .header-search-autocomplete .autocomplete-results {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-top: .45rem;
        z-index: auto;
    }
}

.frontend-site-logo {
    max-height: 42px;
    width: auto;
    display: block;
}

.frontend-settings-dropdown {
    border-radius: .9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 12rem;
}

.frontend-settings-dropdown .dropdown-item {
    padding: .55rem .9rem;
}

.frontend-settings-dropdown .dropdown-item:hover,
.frontend-settings-dropdown .dropdown-item:focus {
    background: #f8f9fa;
}

.product-title-share-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-title-share-row h1 {
    min-width: 0;
}

.product-share-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.product-share-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    background: #e8f1ff;
    border: 1px solid rgba(13, 110, 253, 0.16);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.product-share-link:hover,
.product-share-link:focus { 
    color: #fff;
    background: #0d6efd;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
    transform: translateY(-1px);
}

.product-share-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 575px) {
    .product-title-share-row {
        flex-direction: column;
        align-items: stretch;
    }

    .product-share-links {
        justify-content: flex-start;
        margin-left: 0;
    }
} 

.frontend-topbar .container-fluid {
    min-height: 20px;
}

.frontend-topbar-inner {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0; 
}

.frontend-topbar-slot-search {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
}

.frontend-topbar-slot-search.frontend-topbar-slot-left {
    flex: 0 0 70%;
    max-width: 70%;
}

.frontend-topbar-slot-search.frontend-topbar-slot-right {
    flex: 0 0 30%;
    max-width: 30%;
}

.frontend-topbar-feature-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.frontend-topbar-feature {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .55rem;
    border: 0px solid #dee2e6;
    border-radius: .55rem;
    background: #ffffff00;
    font-size: .75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.frontend-topbar-feature .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 .9rem;
}

.frontend-topbar-slot-search .header-search-form {
    width: 100%;
    margin-bottom: 0;
}

#headerSelect2Search + .select2-container,
#headerModelSelect2 + .select2-container {
    width: 100% !important;
}

#headerSelect2Search + .select2-container .select2-selection--single,
#headerModelSelect2 + .select2-container .select2-selection--single {
    min-height: 38px;
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: .75rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#headerSelect2Search + .select2-container .select2-selection__rendered,
#headerModelSelect2 + .select2-container .select2-selection__rendered {
    line-height: 36px;
    padding-left: .8rem;
    padding-right: 2rem;
    font-size: .875rem;
    color: #212529;
}

#headerSelect2Search + .select2-container .select2-selection__placeholder,
#headerModelSelect2 + .select2-container .select2-selection__placeholder {
    color: #6c757d;
}

#headerSelect2Search + .select2-container .select2-selection__arrow,
#headerModelSelect2 + .select2-container .select2-selection__arrow {
    height: 36px;
    right: .35rem;
}

#headerSelect2Search + .select2-container .select2-selection--single:hover,
#headerSelect2Search + .select2-container.select2-container--open .select2-selection--single,
#headerSelect2Search + .select2-container.select2-container--focus .select2-selection--single,
#headerModelSelect2 + .select2-container .select2-selection--single:hover,
#headerModelSelect2 + .select2-container.select2-container--open .select2-selection--single,
#headerModelSelect2 + .select2-container.select2-container--focus .select2-selection--single {
    border-color: #0d6efd;
    box-shadow: none;
}

.frontend-topbar-slot {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    line-height: 1.2;
}

.frontend-topbar-slot-right {
    justify-content: flex-end;
    text-align: right;
}

.frontend-topbar-links,
.frontend-main-links,
.frontend-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: center;
}

.frontend-topbar-link,
.frontend-main-link,
.frontend-footer-link {
    color: inherit;
    text-decoration: none;
}

.frontend-topbar-link:hover,
.frontend-main-link:hover,
.frontend-footer-link:hover {
    text-decoration: underline;
}

.frontend-topbar-blocks,
.frontend-main-blocks,
.frontend-footer-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.frontend-topbar-block a,
.frontend-main-block a,
.frontend-footer-block a {
    color: inherit;
}

.frontend-main-header-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin-right: .25rem;
    font-size: .9rem;
}

.frontend-main-header-slot .frontend-main-blocks,
.frontend-main-header-slot .frontend-main-links {
    justify-content: flex-end;
}

.frontend-main-nav {
    position: relative;
    width: 100%;
}

.frontend-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: .35rem;
    flex-wrap: wrap;
}

.frontend-nav-item {
    position: relative;
}

.frontend-nav-item-custom {
    display: flex;
    align-items: center;
}

.frontend-nav-item-custom .frontend-main-links,
.frontend-nav-item-custom .frontend-main-blocks {
    gap: .35rem;
}

.frontend-nav-item-custom a {
    text-decoration: none;
}

.frontend-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .7rem;
    border-radius: .65rem;
    text-decoration: none;
    color: var(--g-white);
    font-weight: 400;
    font-size: 1rem;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    text-transform: uppercase;
}

.frontend-nav-link:hover,
.frontend-nav-link:focus {
    
    color: var(--g-druga);
}

.frontend-nav-item.has-submenu > .frontend-nav-link::after,
.frontend-nav-item.has-mega > .frontend-nav-link::after {
    content: '▾';
    font-size: .7rem;
    opacity: .7;
}

.frontend-submenu,
.frontend-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.08);
    border-radius: .9rem;
    box-shadow: 0 18px 32px rgba(18, 38, 63, 0.16);
    padding: .6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 1050;
}

.frontend-nav-item.has-submenu::after,
.frontend-nav-item.has-mega::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
    background: transparent;
}

.frontend-submenu-link {
    display: block;
    padding: .5rem .7rem;
    border-radius: .6rem;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    font-size: .88rem;
}

.frontend-submenu-link:hover,
.frontend-submenu-link:focus {
    background: #f3f6fb;
    color:  var(--g-druga);
}

.frontend-mega-menu {
    min-width: min(860px, 92vw);
    padding: 1rem;
}

.frontend-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 1rem;
}

.frontend-mega-col {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.frontend-mega-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: .25rem;
}

.frontend-mega-link {
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    font-size: .9rem;
}

.frontend-mega-link:hover,
.frontend-mega-link:focus {
   color:  var(--g-druga);
}

.frontend-mega-cta {
    background: #f8fbff;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: .9rem;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.frontend-mega-text {
    font-size: .86rem;
    color: #6c757d;
    margin: 0;
}

.site-footer .frontend-footer-blocks,
.site-footer .frontend-footer-links {
    justify-content: flex-start;
}

.site-footer .text-md-end .frontend-footer-blocks,
.site-footer .text-md-end .frontend-footer-links {
    justify-content: flex-end;
}

.cms-content {
    line-height: 1.7;
}

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

.cms-content table {
    max-width: 100%;
}

@media (max-width: 1399px) {
    .frontend-main-header-slot {
        width: 100%;
        justify-content: flex-start;
        order: 3;
        margin-right: 0;
    }

    .frontend-main-header-slot .frontend-main-blocks,
    .frontend-main-header-slot .frontend-main-links {
        justify-content: flex-start;
    }

    .frontend-nav-list {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .frontend-nav-item:hover > .frontend-submenu,
    .frontend-nav-item:hover > .frontend-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 991px) {
    .frontend-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .frontend-nav-item {
        width: 100%;
    }

    .frontend-submenu,
    .frontend-mega-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border-radius: .75rem;
        margin-top: .35rem;
        display: none;
    }

    .frontend-nav-item.is-open > .frontend-submenu,
    .frontend-nav-item.is-open > .frontend-mega-menu {
        display: block;
    }

    .frontend-mega-grid {
        grid-template-columns: 1fr 1fr;
    }

    .frontend-mega-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .frontend-topbar {
        min-height: auto;
        padding: .3rem 0;
    }

    .frontend-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .frontend-topbar-slot-search {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .frontend-topbar-slot-right {
        justify-content: flex-start;
        text-align: left;
    }

    .frontend-topbar-feature-list {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    padding-top: 5px;
    color: #6c757d;
}

.goles-lazy-media {
    --media-ratio: 75%;
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 12px;
}

.goles-lazy-media::before {
    content: "";
    display: block;
    padding-top: var(--media-ratio);
}

.goles-lazy-media__placeholder,
.goles-lazy-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.goles-lazy-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08)),
        #efefef;
    z-index: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.goles-lazy-media__shimmer {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: golesLazyShimmer 1.6s infinite;
}

.goles-lazy-media__text {
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
    color: #666;
    background: rgba(255,255,255,0.78);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.goles-lazy-media__img {
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.goles-lazy-media.is-loaded .goles-lazy-media__img {
    opacity: 1;
    transform: scale(1);
}

.goles-lazy-media.is-loaded .goles-lazy-media__placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes golesLazyShimmer {
    100% {
        transform: translateX(100%);
    }
}
 
