html, body { overflow-anchor: none; }

:focus-visible {
    outline: none !important;
}

.btn-outline-primary {
    color: var(--th-color-light-blue);
    leading-trim: both;
    text-edge: cap;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 14.3px;
    padding: 8px 32px;
    border: 1px solid var(--th-color-light-blue);
    border-radius: 41px;
}

.btn-outline-primary:hover {
    background: var(--th-color-light-blue);
    border: 1px solid var(--th-color-light-blue);
}

/* Category Header Styles - Based on Figma Design */

/* Category Cards Grid */
.category-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 26px;
}

.category-cards-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

/* Individual Category Card */
.category-card {
    background-color: #f4f4f4;
    border-radius: 20px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1 1 auto;
    max-width: calc(20% - 12.8px);
    min-width: 173px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.category-card-image {
    width: 157px;
    height: 129px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.category-card-image img {
    width: 129px;
    height: 129px;
    object-fit: cover;
    border-radius: 8px;
}

.category-card-title {
    width: 100%;
    padding: 4px 0;
    text-align: center;
}

.category-card-title p {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #00181c;
    line-height: 1.4;
    margin: 0;
}

/* Category Header Title Section */
.category-header-section {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.category-title-row {
    margin-bottom: 26px;
}

.category-main-title h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #29b4d6;
    line-height: 1.4;
    margin: 0;
}

.category-description-text p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #9aa8ae;
    line-height: 1.4;
    margin: 0;
}

/* Sorting and Pagination Controls */
.category-controls {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    width: 100%;
}

.category-controls-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
    justify-content: flex-end;
    width: 345px;
}

.category-controls-center {
    flex: 1;
}

.category-controls-right {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.control-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #9aa8ae;
    white-space: nowrap;
}

.control-dropdown {
    background-color: #ffffff;
    border: 1px solid #ebe9ef;
    border-radius: 8px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.control-dropdown.active {
    border-color: #9aa8ae;
}

.control-dropdown-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #00181c;
    flex: 1;
    text-align: center;
}

.control-dropdown.active .control-dropdown-text {
    color: #2a1a46;
}

.control-dropdown-icon {
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #ebe9ef;
}

.control-dropdown.active .control-dropdown-icon {
    color: #2a1a46;
}

#category .product-miniature-card {
    width: auto;
}

#category .product-miniature {
    margin-bottom: 26px;
}

.search-filters-subtitle {
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
    color: var(--th-color-dark-blue);
    margin-top: 16px;
}

.search-filters-subtitle h6 {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--th-color-lines-light-grey);
}

.search-filters .noUi-connect {
    background: var(--th-color-light-blue) !important;
}

.search-filters .noUi-horizontal .noUi-handle {
    background: var(--th-color-light-blue);
    border-color: var(--th-color-light-blue);
}

.search-filters .js-faceted-values {
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: var(--th-color-text-medium-grey);
    text-align: center;
}

.search-filters .search-filters-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--th-color-dark-blue);
}

.search-filters .search-filters-link .magnitude {
    color: var(--th-color-text-medium-grey);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-cards-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .category-card {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
    
    .category-title-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .category-controls {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    
    .category-controls-left,
    .category-controls-right {
        width: 100%;
    }
    
    .control-group {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: none;
        width: 100%;
    }
    
    .category-card-image {
        width: 120px;
        height: 100px;
    }
    
    .category-card-image img {
        width: 100px;
        height: 100px;
    }
}

/*Brand*/
#manufacturer .brand-header {
    margin-bottom: 42px;
}

#manufacturer .brand-header img {
    margin-right: 26px;
}

#manufacturer .brand-header .manufacturer-intro {
    font-size: 14px;
    color: var(--th-color-text-medium-grey) !important;
    font-weight: 400;
    line-height: 140%;
}

#manufacturer .brand-header .manufacturer-name {
    font-size: 28px;
    font-weight: 700 !important;
    color: var(--th-color-light-blue) !important;
    line-height: 120%;
}

#manufacturer .brand-header .brand-description {
    color: var(--th-color-text-medium-grey) !important;
    font-size: 14px;
    font-weight: 300;
    line-height: 140%;
}

#manufacturer .brand-header .brand-description p {
    margin-bottom: 0px;
}

#_desktop_user_info {
    width: unset !important;

    .header-block__title {
        color: var(--th-color-text-grey);
        text-align: center;
        font-style: normal;
        font-weight: 400;
        line-height: 18px;
        font-size: 14px;
    }
}

#_desktop_cart {
    .header-block__title {
        color: var(--th-color-text-grey);
        text-align: center;
        font-style: normal;
        font-weight: 400;
        line-height: 18px;
        font-size: 14px;
    }

    .header-block__action-btn {
        position: relative;

        .header-block__badge {
            position: absolute;
            top: -8px;
            right: -8px;
            left: auto;
            min-width: 20px;
            height: 20px;
            background-color: #E3001B;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            padding: 2px 5px;
            border: 2px solid #ffffff;
            box-sizing: border-box;
        }
    }

    .blockcart .dropdown-menu {
        width: 380px
    }

    .cart_product_line_wrapper:not(:last-child) {
        border-bottom: 1px solid #e6e6e6;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .cart-voucher {
        display: none;
    }

    .cart_product_list {
        border-bottom: 1px solid #e6e6e6;
        border-radius: 0;
        margin-bottom: 0;
        border-top: 0;
        border-right: 0;
        border-left: 0;
        padding-bottom: .5rem;
    }

    .cart-detailed__totals,
    .cart_actions {
        padding: 0.5rem 0;
    }

    .cart-summary__line {
        padding: 0;
        font-size: .875rem;
    }

    .cart-summary__line:not(:last-child) {
        border-bottom: 1px solid #e6e6e6;
        padding-bottom: 0.3rem;
        margin-bottom: 0.3rem;
    }

    .cart-summary__totals {
        border-top: 1px solid #e6e6e6;
        margin-top: 0.3rem;
        padding-top: 0.3rem;

        .cart-summary__label {
            font-weight: normal;
        }
    }

    .cart_actions a {
        background: var(--th-color-main-purple);
        border-radius: 58px;
        font-family: Roboto;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 140%;
        width: 100%;
        color: #FFF;
    }

    .delete-from-cart {
        color: var(--th-color-dark-grey);
        padding: 0;
    }

    .delete-from-cart:hover {
        transform: scale(1.1);
    }
}

.product-comment-list-item {
    i {
        font-size: 18px;
    }
}

#post-product-comment-modal button[type="submit"],
#product-comment-posted-modal .modal-footer button {
    background: var(--th-color-main-purple);
    border: none;
    border-radius: 41px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    height: 40px;
    line-height: 14.3px;
    padding: 0 32px;
    transition: opacity 0.2s ease;
}

.wishlist-add-to {
    color: var(--th-color-text-grey);
}

.wishlist-create button:hover {
    transform: scale(1.01);
}

.wishlist-create button.btn.btn-primary,
.wishlist-product-addtocart {
    background: var(--th-color-main-purple) !important;
    border: none;
    border-radius: 41px;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    height: 40px;
    line-height: 14.3px;
    padding: 0 32px;
    transition: opacity 0.2s ease;
}

.wishlist-create button.btn.btn-secondary,
.wishlist-modal button.btn.btn-secondary {
    background: transparent;
    border: 1px solid var(--th-color-light-blue);
    border-radius: 41px;
    color: var(--th-color-light-blue);
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    height: 40px;
    line-height: 14.3px;
    padding: 0 32px;
    transition: opacity 0.2s ease;
}

.th-swiper-button-next {
    background: transparent;
    box-shadow: none;
}

#blockcart-modal .modal-footer a.btn.btn-primary:hover {
    transform: scale(1.01);
}

#blockcart-modal .modal-footer a.btn.btn-primary {
    background-color: var(--th-color-main-purple);
    border-radius: 41px;
    border-color: var(--th-color-main-purple);
}

.product__stock-status {
    i {
        font-size: 16px;
    }

    i.product-available {
        color: #9CD967
    }

    i.product-unavailable {
        color: #E3001B;
    }

    .fw-semibold {
        margin-right: 6px;
    }
}

input.js-cart-line-product-quantity {
    border-radius: 0 !important;
    min-width: 40px !important;
}

.privacy-policy .form-check {
    padding-left: 0;
}

.th-review-verified {
    color: var(--th-color-main-purple);
}

@media (max-width: 768px) {
    .th-swiper-button-next,
    .th-swiper-button-prev {
        display: none;
    }

    .th-content-grids-container {
        #industrii-grid {
            .th-grid-item {
                display: flex;
                align-items: center;
                justify-content: center;

                .th-item-image {
                    width: 50%;
                }
            }

            .th-grid-item:not(:last-child) {
                margin-bottom: 8px;
            }
        }

        #producatori-grid .th-grid-item {
            padding: 0;
        }

        #parteneriate-succes {
            .th-item-link {
                display: flex;
            }
        }
    }

    .th-footer-element.th-link-list, .th-footer-element.th-contact {
        padding-top: 0;
    }

    .th-banners-hook-displayHome {
        .container:last-child {
            padding: 0;
        }

        .th-banner-full-width-wrapper {
            width: 100% !important;
        }

        .th-banner-image-text {
            padding: 0;
        }

        .th-banner-content {
            padding: 1em;
        }
    }

    .products-selection-vitrine .sort-section {
        flex: unset;
        width: 100%;
    }

    .products-selection-vitrine .sort-dropdown-wrapper {
        flex-grow: unset;
    }

    .product-sections .section-header {
        gap: 0;
    }

    .product-sections .section-border-line {
        margin-top: 0;
    }

    .product-showcase {
        padding: 0 !important;
    }

    .product__info {
        position: relative;

        .product__brand {
            position: absolute;
            top: 0;
            right: 0;

            img {
                height: 4em;
                max-height: 4.5em;
            }
        }
    }

    .product-actions__quantity.quantity-button {
        order: 1;
    }

    .wishlist-button-product {
        order: 2;
        margin-left: auto;
    }

    .th-share-services {
        order: 3;
    }

    .product-actions__button {
        order: 4;
    }

    .th-reassurance-items {
        justify-content: unset;
    }

    .login__register-prompt {
        margin-bottom: 2em;
    }

    section.register-form button[type="submit"],
    #identity form#customer-form button[type="submit"],
    #address div.address-form button[type="submit"] {
        width: 100%;
    }

    #order-detail .order__detail__products {
        margin-top: 1em;
    }

    #history, #order-detail {
        div.table-wrapper {
            padding: 1rem;
        }
    }

    .wishlist-list {
        padding: 0 1em;
    }

    .th-cart-item .product-line__informations.col-md-4 {
        width: 100%;
    }

    .th-cart-item .product-line__informations.col-md-4 .quantity-button.col-5 {
        width: 30%;
    }

    .th-cart-item .product-line__informations .row {
        justify-content: space-between;
    }
}

/* Fix long category names overflowing dropdown */
.th-menu--vertical .th-menu__link,
.th-vertical-menu .th-menu__link,
.th-menu__link {
    overflow: hidden !important;
    max-width: 100% !important;
}

.th-menu__label {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

/* ========================================
   HOMEPAGE: Categories dropdown in content area
   ======================================== */

/* Dropdown wrapper positioning */
#homepage-dropdown-wrapper {
    position: absolute;
    top: 0;
    z-index: 99;
    overflow: visible;
    pointer-events: auto;
}

#homepage-dropdown-wrapper #th-vertical-menu-1 {
    position: relative !important;
    top: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

#homepage-dropdown-wrapper #th-vertical-menu-1 > li {
    flex: 1 !important;
}

#homepage-dropdown-wrapper #th-vertical-menu-1 > li > .th-menu__link {
    height: 100% !important;
    align-items: center !important;
}

#homepage-dropdown-wrapper .th-menu--vertical .th-menu__item {
    border-bottom: none !important;
}

body#index #wrapper {
    position: relative;
}

/* ===== STICKY HEADER - GP BEHAVIOR ===== */

#gp-placeholder {
    display: none;
}
#gp-placeholder.active {
    display: block;
}

#header:not(.gp-slide-in) {
    position: relative !important;
    transform: none !important;
}

#header.gp-stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

#header.gp-stuck:not(.gp-slide-in) {
    transform: none !important;
    animation: none !important;
}

#header.gp-stuck #custom-top-bar,
#header.gp-stuck .header__banner {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
}

#header.gp-slide-in {
    animation: gpSlideDown 0.6s ease both !important;
}

@keyframes gpSlideDown {
    0% { transform: translate3d(0, -100%, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* ===== CATEGORIES DROPDOWN - SCROLL BEHAVIOR ===== */

body#index:not(.is-scrolled) header nav.th-menu--vertical .th-vertical-menu #th-vertical-menu-1 {
    min-height: auto;
    max-height: none;
    z-index: 99;
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 290px !important;
    height: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(55,52,53,0.2) !important;
}

body.is-scrolled header nav.th-menu--vertical .th-vertical-menu #th-vertical-menu-1 {
    display: none !important;
    clip-path: inset(100%) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

body.is-scrolled:not(.th-is-touch) .th-vertical-menu:hover .th-menu__list--vertical,
body.is-scrolled .th-vertical-menu:hover .th-menu__list--vertical,
body.is-scrolled .th-vertical-menu:hover #th-vertical-menu-1 {
    display: none !important;
    clip-path: inset(100%) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

body.is-scrolled header nav.th-menu--vertical .th-vertical-menu.is-hovered #th-vertical-menu-1 {
    border-radius: 0 0 6px 6px;
    min-height: auto;
    max-height: none;
    z-index: 1001;
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 290px !important;
    height: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(55,52,53,0.2) !important;
}

body#index.is-scrolled:not(.gp-header-stuck) #th-vertical-menu-1 {
    display: flex !important;
    width: 290px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    clip-path: none !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 99 !important;
}

@media (min-width: 1200px) {
    #index.gp-header-stuck #th-vertical-menu-1 {
        display: none !important;
    }

    #index.gp-header-stuck .th-vertical-menu:hover #th-vertical-menu-1,
    #index.gp-header-stuck .th-vertical-menu.is-hovered #th-vertical-menu-1 {
        display: flex !important;
        width: 290px !important;
        height: auto !important;
        min-height: 300px !important;
        clip-path: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 1001 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border: 1px solid rgba(55,52,53,0.2) !important;
        border-radius: 0 0 6px 6px !important;
    }
}

@media (max-width: 1399px) {
    body.is-scrolled header nav.th-menu--vertical .th-vertical-menu.is-hovered #th-vertical-menu-1,
    #index.gp-header-stuck .th-vertical-menu.is-hovered #th-vertical-menu-1 {
        max-height: calc(100vh - 160px) !important;
        overflow: visible !important;
    }
}

.th-menu--vertical .th-menu__submenu {
    overflow: visible;
}



#homepage-dropdown-wrapper #th-vertical-menu-1 {
    position: relative !important;
    top: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

#homepage-dropdown-wrapper #th-vertical-menu-1 > li {
    flex: 1 1 0% !important;
}

#homepage-dropdown-wrapper #th-vertical-menu-1 > li > .th-menu__link {
    height: 100% !important;
    align-items: center !important;
}

#homepage-dropdown-wrapper.is-moved {
    display: none !important;
}

.header-bottom .header-bottom__menuContainer {
    background-color: #ffffff;
    width: 100%;
    border-top: none;
}

/* lightGallery over header */
.lg-backdrop { z-index: 10000 !important; }
.lg-outer { z-index: 10001 !important; }
#product-modal { display: none !important; }
#product-images .carousel-item { cursor: pointer; }

/* Hide technical image placeholder */
.product-technical-image {
    display: none;
}

/* Cart hover cursor when empty */
.blockcart span.header-block__action-btn {
    cursor: pointer;
}

/* Modal add-to-cart: push below sticky header */
body.gp-header-stuck #blockcart-modal .modal-dialog {
    margin-top: 150px;
}

@media (max-width: 575px) {
    body.gp-header-stuck #blockcart-modal .modal-dialog {
        margin-top: 0;
    }
}

@media (max-width: 1199px) {
    .header-bottom .header-bottom__menuContainer {
        width: auto;
    }
}

@media (max-width: 1028px) {
    body #wrapper {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    body #wrapper {
        padding-top: 0 !important;
    }
}

/* ===== Stilizare butoane Relevanta/Filtrare ===== */

.sort-dropdown .sort-dropdown-btn {
  min-width: 186px;
  border-color: var(--th-color-light-blue);
  background-color: white;
  color: var(--th-color-light-blue);
  border-radius: 8px;
}

.sort-dropdown .sort-dropdown-text {
  color: var(--th-color-light-blue);
}

.sort-dropdown .sort-dropdown-icon {
  color: var(--th-color-light-blue);
}

.sort-dropdown .sort-dropdown-item.active {
  background-color: var(--th-color-light-blue);
  color: #fff;
}

.per-page-btn {
  border-color: var(--th-color-light-blue) !important;
  background-color: white !important;
  color: var(--th-color-light-blue) !important;
}

.per-page-dropdown .per-page-value {
  color: var(--th-color-light-blue);
  flex-grow: 1;
}

.per-page-btn i {
  color: var(--th-color-light-blue);
}

.per-page-dropdown {
  position: relative;
  display: inline-block;
}

.per-page-dropdown .dropdown-menu {
  width: 100%;
  min-width: unset !important;
}

/* ===== Layout responsive mobile (max-width: 767px) ===== */
@media (max-width: 767px) {
  .products-selection-vitrine .products-selection-content {
    gap: 10px;
    flex-wrap: wrap;
  }

  .products-selection-vitrine .sort-section {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
    flex-wrap: nowrap;
  }

  .products-selection-vitrine .per-page-section {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
  }

  .products-selection-vitrine .sort-dropdown-wrapper {
    flex-grow: 1;
  }

  .products-selection-vitrine .mobile-filter-section {
    flex: 0 0 calc(50% - 5px);
    width: calc(50% - 5px);
  }

  .products-selection-vitrine .mobile-filter-section .btn {
    width: 100%;
    border-radius: 8px;
  }

  .sort-dropdown {
    position: relative;
    width: 100%;
  }

  .sort-dropdown .sort-dropdown-btn {
    width: 100% !important;
    min-width: unset !important;
  }

  .sort-dropdown .sort-dropdown-menu {
    width: 100%;
    min-width: unset;
  }
}

/* ===== Layout tablet (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .products-selection-vitrine .products-selection-content {
    gap: 15px;
  }

  .products-selection-vitrine .sort-section,
  .products-selection-vitrine .per-page-section {
    flex: 0 0 calc(50% - 8px);
  }

  .sort-dropdown .sort-dropdown-btn {
    min-width: unset !important;
    width: 100% !important;
  }

  .per-page-dropdown .dropdown-menu {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* ===== Desktop (min-width: 768px) ===== */
@media (min-width: 768px) {
  .products-selection-vitrine .products-selection-content {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* Fix: headerul nu mai vine peste filtrul offcanvas pe mobile */
#offcanvas-faceted {
  z-index: 10000 !important;
}

.offcanvas-backdrop {
  z-index: 9999 !important;
}

/* Fix: modalele apar deasupra sticky header */
.modal {
  z-index: 10000 !important;
}

.modal-backdrop {
  z-index: 9999 !important;
}

/* Coboara modalele sub sticky header */
body.gp-header-stuck .modal .modal-dialog {
  padding-top: 80px;
}

/* Butoane produs - border radius mai patrat */
.product-miniature .view-details-button,
.product-miniature .th-btn,
.product-miniature .add-to-cart-button {
  border-radius: 9px !important;
}

/* Fix breadcrumb spacing */
@media (max-width: 1200px) {
    .breadcrumb__wrapper .container {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

.breadcrumb__wrapper {
    margin-bottom: 24px !important;
}

@media (max-width: 1200px) {
    .breadcrumb__wrapper {
        margin-bottom: 12px !important;
    }
}

/* Fix slider navigation buttons - ies din ecran pe rezolutii medii */
@media (max-width: 1200px) {
    .th-swiper-button-prev {
        left: 8px !important;
    }
    .th-swiper-button-next {
        right: 8px !important;
    }
}

/* ===== STICKY HEADER - GP BEHAVIOR ===== */

#gp-placeholder {
    display: none;
}
#gp-placeholder.active {
    display: block;
}

#header:not(.gp-slide-in) {
    position: relative !important;
    transform: none !important;
}

#header.gp-stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

#header.gp-stuck:not(.gp-slide-in) {
    transform: none !important;
    animation: none !important;
}

#header.gp-stuck #custom-top-bar,
#header.gp-stuck .header__banner {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
}

#header.gp-slide-in {
    animation: gpSlideDown 0.6s ease both !important;
}

@keyframes gpSlideDown {
    0% { transform: translate3d(0, -100%, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0); opacity: 1; }
}


/* =================================================================
   VITRINE TOP-BAR FIX - Replicare 1:1 dupa gastroprofesional.nexloc.com
   ================================================================= */

@media (max-width: 1028px) {

  /* 1. Afiseaza top-bar-ul */
  #custom-top-bar {
    display: block !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
  #custom-top-bar .header-top-desktop {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    align-items: center !important;
    min-height: 32px !important;
  }
  #custom-top-bar .container-md {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #custom-top-bar .header-top__left {
    display: none !important;
  }
  #custom-top-bar .header-top__right {
    display: flex !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  /* Program L-V: primul element, stanga */
  #custom-top-bar .header-top__right .top-bar__contact-info {
    display: flex !important;
    order: 1 !important;
    align-items: center !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Ascunde telefoanele, pastreaza doar programul (ultimul span) */
  #custom-top-bar .header-top__right .top-bar__contact-info > *:not(:last-child) {
    display: none !important;
  }
  #custom-top-bar .header-top__right .top-bar__contact-info > :last-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  /* EUR € - al doilea, dreapta, impins cu margin-left: auto */
  #custom-top-bar .header-top__right #_desktop_currency_selector {
    order: 10 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  /* Romana - ultimul */
  #custom-top-bar .header-top__right #_desktop_language_selector {
    order: 11 !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
  }

  /* Select-uri compacte */
  #custom-top-bar .header-top__right #_desktop_currency_selector .js-currency-selector,
  #custom-top-bar .header-top__right #_desktop_language_selector .js-language-selector,
  #custom-top-bar #currency-selector,
  #custom-top-bar #language-selector {
    padding: 0 20px 0 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    height: auto !important;
    min-width: 0 !important;
    width: auto !important;
    background-position: right 4px center !important;
    background-size: 12px 10px !important;
  }
  #custom-top-bar .currency-selector__wrapper,
  #custom-top-bar .language-selector__wrapper {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 2. Iconitele (cos, cont, cereri oferta) in DREAPTA - logo impinge cu margin-right: auto */
  .header-bottom__row .logo {
    margin-right: auto !important;
  }

  /* 3. Ascunde selectorul de pret duplicat din header-bottom */
  .header-bottom__row #_desktop_currency_selector {
    display: none !important;
  }

  /* 4. Hamburger fara salt la tranzitia static/sticky */
  .header-bottom {
    position: relative !important;
  }
  #header .th-mobile-menu-wrapper {
    top: 0 !important;
  }

}

@media (max-width: 768px) {
  #custom-top-bar {
    display: block !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
  #custom-top-bar .header-top-desktop {
    display: flex !important;
  }
  .header-bottom__row .logo {
    margin-right: auto !important;
  }
  .header-bottom__row #_desktop_currency_selector {
    display: none !important;
  }

  /* Override menu.css: header in flux normal (relative), fara padding extra pe wrapper */
  body #header:not(.gp-stuck) {
    position: relative !important;
  }
  body:not(.gp-header-stuck) #wrapper,
  body.gp-header-stuck #wrapper,
  body #wrapper {
    padding-top: 0 !important;
  }

  /* Animatie subtila la mobile: slide 32px + fade, fara iesire din ecran */
  @keyframes gpSlideDownMobile {
    0%   { transform: translate3d(0, -32px, 0); opacity: 0.3; }
    100% { transform: translate3d(0, 0, 0);     opacity: 1; }
  }
  body #header.gp-slide-in {
    animation: gpSlideDownMobile 0.4s ease both !important;
  }
}

@media (max-width: 420px) {
  #custom-top-bar .header-top__right .top-bar__contact-info {
    font-size: 11px !important;
  }
  #custom-top-bar #currency-selector,
  #custom-top-bar #language-selector {
    font-size: 12px !important;
    padding-right: 18px !important;
  }
  #custom-top-bar .header-top__right #_desktop_language_selector {
    margin-left: 6px !important;
  }
}

@media (max-width: 360px) {
  #custom-top-bar .header-top__right .top-bar__contact-info {
    font-size: 10px !important;
  }
  #custom-top-bar #currency-selector,
  #custom-top-bar #language-selector {
    font-size: 11px !important;
    padding-right: 16px !important;
    background-size: 10px 8px !important;
    background-position: right 3px center !important;
  }
}

/* =========================================================
   FIX 1 — Homepage: <html> e scroll container (sticky merge)
   ========================================================= */
html { overflow-x: hidden; }
body#index { overflow-x: visible !important; overflow-y: visible !important; }

/* =========================================================
   FIX 2 — Slider home, fara overflow orizontal pe mobil
   ========================================================= */
.thblog-home-wrapper { overflow: hidden; }
.thblog-home-slider {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =========================================================
   FIX 3 — Animatie PURA de coborare (translate, FARA fade)
   Foloseste proprietatea CSS `translate` pentru a evita
   conflictul cu regulile vechi `transform: none !important`.
   ========================================================= */
@keyframes gpHeaderSlideDownTranslate {
  from { translate: 0 -100%; }
  to   { translate: 0 0;     }
}

html body #header.gp-stuck.gp-coboara,
html body #header.gp-stuck.gp-slide-in.gp-coboara {
  animation: gpHeaderSlideDownTranslate 0.7s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  html body #header.gp-stuck.gp-coboara,
  html body #header.gp-stuck.gp-slide-in.gp-coboara {
    animation: gpHeaderSlideDownTranslate 0.7s cubic-bezier(0.22, 1, 0.36, 1) both !important;
    opacity: 1 !important;
  }
}

@media (min-width: 1029px) and (max-width: 1199.98px) {
  #custom-top-bar .header-top__left {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    width: 35% !important;
  }
  #custom-top-bar .header-top__left .top-bar__main-content p {
    font-size: 15px;
    white-space: nowrap;
    margin: 0;
  }
  #custom-top-bar .header-top__right {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    width: 65% !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  #custom-top-bar .top-bar__contact-info {
    gap: 8px !important;
    font-size: 15px;
    white-space: nowrap;
  }
  #custom-top-bar .top-bar__contact-info span,
  #custom-top-bar .top-bar__contact-info a {
    font-size: 15px;
  }
}

/* Identity form — email/parola pe rand 2, parola noua/data nasterii pe rand 3 */
#identity form section > .mb-1:has(#field-email) {
  grid-column: 1 / 2;
}
#identity form section > .field-password-policy:has(#field-password) {
  grid-column: 2 / 3;
}
#identity form section > .field-password-policy:has(#field-new_password) {
  grid-column: 1 / 2;
}
#identity form section > .mb-1:has(#field-birthday) {
  grid-column: 2 / 3;
}

/* Identity form — mobil: 1 coloană, toate casetele + checkbox-urile full width */
@media (max-width: 767.98px) {
  #identity form section {
    grid-template-columns: 1fr !important;
  }
  #identity form section > .mb-1,
  #identity form section > .field-password-policy {
    grid-column: 1 / -1 !important;
  }
}

/* Sticky header: hide top bar + banner when .gp-stuck active */
header#header.gp-stuck .header-top,
header#header.gp-stuck #custom-top-bar,
header#header.gp-stuck .header__banner {
  display: none !important;
}


/* GASTRO #task: tighten footer link list spacing (subfooter) */
#footer .th-footer-links li {
    margin-bottom: 0.15rem !important;
    line-height: 1.4 !important;
}
#footer .th-footer-links a {
    line-height: 1.4 !important;
    display: inline-block;
}
#footer .th-footer-element + .th-footer-element {
    margin-top: 0.5rem !important;
}


/* GASTRO #task: breadcrumb — tighter spacing between items and separator */
.breadcrumb {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.breadcrumb .breadcrumb-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.25rem !important;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.25rem !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.breadcrumb .breadcrumb-item span,
.breadcrumb .breadcrumb-link {
    margin: 0 !important;
}
@media (max-width: 767.98px) {
    .breadcrumb .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.2rem !important;
    }
    .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.2rem !important;
    }
}


/* GASTRO #task: CMS / rich-text links — green always (not just on hover) */
.page-cms a,
.page-cms.rich-text a,
.rich-text a,
section#content.rich-text a,
.cms-block a {
    color: var(--th-color-main-purple) !important;
}
.page-cms a:hover,
.page-cms a:focus,
.page-cms.rich-text a:hover,
.page-cms.rich-text a:focus,
.rich-text a:hover,
.rich-text a:focus,
section#content.rich-text a:hover,
section#content.rich-text a:focus,
.cms-block a:hover,
.cms-block a:focus {
    color: var(--th-color-main-purple) !important;
    text-decoration: underline !important;
}


/* GASTRO #task: product page first-screen layout (right column) */
.product__col .mb-default {
    margin-bottom: 18px !important;
}
.product__col h1.product__name {
    margin-bottom: 18px !important;
}

/* Remove top space on the left (image) column */
.product__left,
.product__left > .product__images,
.product__left .product__images,
.product__left .product__images__cover,
.product__left .product-cover,
.product__left .carousel,
.product__left .carousel-inner,
.product__left .carousel-item {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide share button (th_shareservices + ps_sharebuttons fallback) on product page */
.th-share-services,
.th-share-button-container,
.product-actions__share,
.social-sharing,
.product__share {
    display: none !important;
}
/* Ensure top brand image column tops with the text column on desktop */
.product__col .product__info--top .row {
    align-items: flex-start;
}

/* Vertical alignment fix: every direct content block under .product__col must
   start at the SAME left edge (the .product__col padding edge). Cancel any
   Bootstrap/theme left padding/margin on the wrapping nodes. */
.product__col > h1,
.product__col > .product__info,
.product__col > .product__description-short,
.product__col > .product__services-list,
.product__col > .product__prices,
.product__col > .product__actions,
.product__col > .product__offer-button-wrapper,
.product__col .product__prices > *,
.product__col .prices__wrapper,
.product__col .prices__wrapper > *,
.product__col .prices__content,
.product__col .prices__content--inline {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* description-short may inherit rich-text left padding */
.product__col .product__description-short.rich-text {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Inner stack inside the info col: consistent 8px vertical gap, left-aligned */
.product__col .product__info--top .col-md-8 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.product__col .product__info--top .col-md-8 > * {
    margin: 0 !important;   /* defer to flex gap */
}

/* Product code (under title) */
.product__col .product__code {
    font-size: 13px;
}

/* Delivery time accentuated badge */
.product__col .product__delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background-color: #1ec3a4;
    color: #fff;
    width: fit-content;
    max-width: 100%;
}
.product__col .product__delivery-badge i {
    font-size: 18px;
    color: #fff;          /* check stays white on green */
}
.product__col .product__delivery-badge--lastitems {
    background-color: #ffb368;
    color: #00181c;
}
.product__col .product__delivery-badge--lastitems i {
    color: #00181c;
}
.product__col .product__delivery-badge--backorder {
    background-color: #f4b84a;
    color: #00181c;
}
.product__col .product__delivery-badge--backorder i {
    color: #00181c;
}

/* Transport cost line */
.product__col .product__shipping-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
}
.product__col .product__shipping-line i {
    font-size: 16px;
}

/* Services bullet list */
.product__col .product__services-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 18px 0;
}
.product__col .product__services-list li {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
}
.product__col .product__services-list li::before {
    content: "\2713"; /* checkmark */
    position: absolute;
    left: 0;
    top: 0;
    color: #1ec3a4;
    font-weight: 700;
    font-size: 14px;
}

/* Prices inline */
.product__col .prices__content--inline {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.product__col .product__current-price {
    color: #00181c;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
}
.product__col .product__price-regular {
    color: #9aa8ae;
    font-size: 15px;
    text-decoration: line-through;
    font-weight: 400;
}
.product__col .product__discount-badge {
    background-color: #ee0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
}
.product__col .product__tax-info {
    margin-top: 6px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
}
.product__col .product__tax-line {
    color: #6c757d;
    font-size: 12px;
}
.product__col .prices__wrapper,
.product__col .product__prices {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Offer button placement: under the reassurance list, right-aligned */
.product__offer-button-wrapper {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}
.product__offer-button-wrapper .th_quotation_add_wrapper {
    margin: 0;
}

/* Reassurance link items — spread across full column width */
.product__col .th-reassurance-container,
.product__col .th-reassurance-section,
.product__col .th-reassurance-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
}
.product__col .th-reassurance-section .th-reassurance-items {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start;
    gap: 8px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.product__col .th-reassurance-section .th-reassurance-item.th-reassurance-link {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.product__col .th-reassurance-section .th-reassurance-item.th-reassurance-link:last-child {
    text-align: right;
}
.product__col .th-reassurance-section .th-reassurance-link-wrapper {
    width: 100%;
}
.product__col .th-reassurance-section .th-reassurance-link {
    font-size: 13px;
    white-space: nowrap;
}


/* GASTRO #task: product page slider arrows — clean, side-positioned, brand-colored */
.product__left .carousel-control-prev,
.product__left .carousel-control-next,
#product-images .carousel-control-prev,
#product-images .carousel-control-next {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 44px !important;
    height: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
}
.product__left .carousel-control-prev,
#product-images .carousel-control-prev { left: -10px !important; }
.product__left .carousel-control-next,
#product-images .carousel-control-next { right: -10px !important; }
@media (max-width: 767.98px) {
    .product__left .carousel-control-prev,
    #product-images .carousel-control-prev { left: 0 !important; }
    .product__left .carousel-control-next,
    #product-images .carousel-control-next { right: 0 !important; }
}

/* Replace default Bootstrap SVG icons with thin CSS chevrons (precise stroke control) */
.product__left .carousel-control-prev-icon,
.product__left .carousel-control-next-icon,
#product-images .carousel-control-prev-icon,
#product-images .carousel-control-next-icon {
    background-image: none !important;
    background-color: transparent !important;
    width: 44px;
    height: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product__left .carousel-control-prev-icon::before,
.product__left .carousel-control-next-icon::before,
#product-images .carousel-control-prev-icon::before,
#product-images .carousel-control-next-icon::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-style: solid;
    border-color: var(--gp-arrow-color, #1ec3a4);
    border-width: 0;
    transition: border-color .15s, transform .15s;
}
.product__left .carousel-control-prev-icon::before,
#product-images .carousel-control-prev-icon::before {
    border-top-width: 2px;
    border-left-width: 2px;
    transform: rotate(-45deg);
    margin-left: 4px;
}
.product__left .carousel-control-next-icon::before,
#product-images .carousel-control-next-icon::before {
    border-top-width: 2px;
    border-right-width: 2px;
    transform: rotate(45deg);
    margin-right: 4px;
}
.product__left .carousel-control-prev:hover .carousel-control-prev-icon::before,
#product-images .carousel-control-prev:hover .carousel-control-prev-icon::before {
    transform: rotate(-45deg) scale(1.15);
}
.product__left .carousel-control-next:hover .carousel-control-next-icon::before,
#product-images .carousel-control-next:hover .carousel-control-next-icon::before {
    transform: rotate(45deg) scale(1.15);
}

/* VITRINE ONLY: brand light-blue accent */
:root { --gp-arrow-color: rgb(41, 180, 214); }

/* Product page thumbnails — same horizontal slider as gastro */
.thumbnails__list.swiper {
    overflow: hidden;
}
.thumbnails__list .swiper-slide.thumbnail {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    cursor: pointer;
}
.thumbnails__list .swiper-slide.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Active thumbnail border — vitrine brand light-blue */
.thumbnail.active img,
.thumbnails__list .swiper-slide.thumbnail.active img {
    border-color: rgb(41, 180, 214) !important;
}

/* Services bullet list checkmarks — blue on vitrine */
.product__col .product__services-list li::before {
    color: rgb(41, 180, 214) !important;
}

/* Breadcrumb — same behavior as gastro (rules mirrored from gastro custom_theme.css), brand blue */
.breadcrumb-item a:hover {
    color: rgb(41, 180, 214) !important;
}
.breadcrumb-item.active,
.breadcrumb-item.active span,
.breadcrumb-item:last-child,
.breadcrumb-item:last-child span {
    color: rgb(41, 180, 214) !important;
}

/* ============================================================
   VITRINE Mobile - infinite scroll replaces pagination
   - Hide "Produse pe pagina" selector on mobile
   - Hide numerical pagination on mobile
   - Loader spinner shown between products and sentinel during fetch
   ============================================================ */
@media (max-width: 767.98px) {
  .products-selection-vitrine .per-page-section { display: none !important; }
  #js-product-list .pagination-container { display: none !important; }
}

.vt-infinite-loader {
  display: none;
  width: 100%;
  text-align: center;
  padding: 20px 0 28px;
}
.vt-infinite-loader.is-active { display: block; }
.vt-infinite-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid #29B4D6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: vt-infinite-spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes vt-infinite-spin {
  to { transform: rotate(360deg); }
}

/* GASTRO-MOD 2026-05-13 (rev 5 - cauza adevarata gasita): theme.css are .product-flags{padding:.25rem=4px} si .badge{margin:.25rem=4px} care impingeau LI-ul cu 8px in jos fata de UL — de aceea Premium aparea aliniat dar discount-ul aparea mai jos. Resetam padding/margin pe wrapper si LI. */
.gp-product-flags-aligned {
    position: absolute;
    top: 14px !important;
    left: 10px;
    z-index: 11;
    padding: 0 !important;
}
.gp-product-flags-aligned > .gp-discount-badge {
    margin: 0 !important;
}
@media (max-width: 1199px) {
    .gp-product-flags-aligned {
        top: 14px !important;
        left: 8px;
    }
}
@media (max-width: 767px) {
    .gp-product-flags-aligned {
        top: 14px !important;
        left: 6px;
    }
}

/* Badge interior — dimensiuni si responsive scaling identice cu thproductlabel-text (label-ul Premium curent are inline-style padding:4px 8px). */
.gp-discount-badge {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1;
}
@media (max-width: 1199px) {
    .gp-discount-badge {
        font-size: 13px;
    }
}
@media (max-width: 767px) {
    .gp-discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* GASTRO-MOD 2026-05-13: link descarcare factura PDF pe pagina detalii comanda — albastru + bold + subliniat ca sa sara in ochi. */
.gp-invoice-download-link {
    color: var(--th-color-main-blue, #004288) !important;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: .25rem;
}
.gp-invoice-download-link:hover,
.gp-invoice-download-link:focus {
    color: var(--th-color-main-blue, #004288) !important;
    text-decoration: underline;
    filter: brightness(1.2);
}

/* GASTRO-MOD 2026-05-13: pe pagina produs cu pret ascuns, butonul "Adauga in oferta" se mareste si fill-uieste spatiul (in lipsa butonului Add to cart). Wrapper-ul primeste class --hidden-price din product.tpl. */
.product__offer-button-wrapper--hidden-price {
    justify-content: stretch !important;
}
.product__offer-button-wrapper--hidden-price .th_quotation_add_wrapper {
    flex: 1 1 auto;
    width: 100%;
}
.product__offer-button-wrapper--hidden-price .th_quotation_add {
    width: 100%;
    height: 56px !important;
    padding: 0 32px !important;
    font-size: 17px;
}

