.play-icon {
    color: var(--secondary);
    font-size: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}
.icon-wrapper {
    position: relative;
}
    .icon-wrapper:after {
        transform: translate(-50%, -50%);
        position: absolute;
        top: 50%;
        left: 50%;
        content: "";
        background-color: white;
        width: 70px;
        height: 55px;
    }

    .play-icon:hover {
        color: var(--primary);
    }
    .page-content .mud-tabs-toolbar-content .mud-tabs-toolbar-wrapper .mud-tab {
        min-width: auto;
    }

.swiper-button-next, .swiper-button-prev {
    color: var(--primary);
}

.filter-category {
    font-weight: bold;
    margin: 10px 0 5px 0;
    display: inline-block;
}
.price-Tva {
    font-size: 10px;
    color: #666;
}
.producer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .producer-info img {
        width: 100%;
        max-width: 80px;
    }

.producer-rating {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.producer-stock {
    font-weight: bold;
    color: #000;
    font-size: 1.125rem;
    text-align: right;
}
.delivery-time__green {
    font-weight: bold;
    color: #388e3c;
    font-size: 1.125rem;
    text-align: right;
}
.stock-info {
    color: black;
}
    .stock-info a {
        color: var(--info-stock);
    }
.delivery-time__red {
    font-weight: bold;
    color: var(--secondary);
    font-size: 12px;
    text-align: right;
}
.product-filters label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .product-filters label input {
        margin-right: 10px;
    }

.produce-price--sup {
    font-size: 12px !important;
}

/* Variante disponibile - red integer, gray decimals */
#Variante .variant-price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
}

#Variante .variant-price .produce-price--sup {
    color: #888 !important;
    background-color: transparent;
    font-weight: 700;
    margin-left: 1px;
}
.product-title a {
    text-decoration: none;
    color: #000;
    transition: 0.3s;
    text-align: center;
}

    .product-title a:hover {
        color: var(--primary);
    }

.product-code {
    font-size: 11px;
    padding: 4px 0;
    color: #666;
}

.produce-price {
    color: var(--secondary);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.product-price-currency {
    font-size: 11px;
}

.product-image-wrapper {
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.product-item > img {
    object-fit: contain;
    width: 200px;
    height: 175px;
}
.cards-icons-column img {
    width: 100px;
}

.product-price {
    font-weight: bold;
    font-size: 1.4rem;
}

.product-widgets {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 20px;
    top: 0;
    bottom: 0;
    justify-content: center;
    transform: translateX(70px);
    transition: 0.6s ease-out;
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.1);
}

.product-image-wrapper:hover .product-widgets {
    transform: translateX(0px);
}


.product-widgets div {
    margin: 4px 0;
    background: white;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    transition: 0.3s;
}

    .product-widgets div:hover {
        color: #000;
        background-color: var(--primary);
    }

    .product-widgets div i {
        margin: auto;
    }

.product-title a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

    .product-title a:hover {
        color: var(--primary);
    }


.product-list {
    width: 100%;
}

.product-categories {
    flex: 0 0 300px;
    padding: 0 10px;
}


.product-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 10px;
}

    .product-details .producer-image img {
        max-height: 60px;
        height: auto;
        -o-object-fit: contain;
        object-fit: contain;
    }

    .product-details .producer-image, .product-details .producer-rating {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
.swiper-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.stock-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0px 0px 10px 0px;
    padding: 10px 15px;
    font-size: 1.125rem;
    border: 1px solid #ddd;
}

.product-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.details-column {
    font-size: 14px;
    color: #888;
}

.product-details-middle .details-column {
    color: #888;
}

.product-details-middle .details-column > div {
    color: #888;
    margin: 2px 0;
}

.details-column a {
    color: var(--primary);
    font-weight: 600;
}

.details-column a:hover {
    color: var(--secondary);
}

.price-column {
    width: 50%;
}

.producer-image {
    margin: 8px 0;
}

.product-details-wrap {
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
    .product-details-wrap .mud-expand-panel .mud-expand-panel-header {
        padding: 8px;
        min-height: 0;
    }

.product-page-title {
    font-size: 24px;
    font-weight: 600;
    padding: 12px 0;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    color: #000;
    line-height: 1.25;
}

.gallery-active {
    opacity: 1;
}

.fullscreen-product-gallery {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
}

    .fullscreen-product-gallery.visible {
        opacity: 1;
        pointer-events: all;
    }

.product-gallery {
    width: 98%;
    height: 98%;
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: auto 1fr;
    grid-template-rows: auto 1fr;
    -ms-grid-columns: 1fr auto;
    grid-template-columns: 1fr auto;
    max-width: 1600px;
    max-height: 1200px;
    padding: 10px 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-gallery-toolbar {
    width: 100%;
    -ms-grid-column-span: 2;
    grid-column: span 2;
    padding: 4px 0px;
    text-align: right;
}



@media only screen and (max-width: 960px) {
    .product-details-wrap {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }

    .product-gallery-toolbar {
        grid-column: unset;
    }

    .product-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
}

.CustomTabs {
    position: sticky;
    top: 40px;
    z-index: 2;
}

.CustomTabs .mud-tabs-toolbar {
    background-color: var(--tertiary);
}
.CustomTabs .mud-tab {
    color: #000 !important;
    transition: 0.3s;
}
.CustomTabs .mud-tab.mud-tab-active {
    background-color: var(--primary) !important;
    color: #000 !important;
    font-weight: 600;
}
.CustomTabs .mud-tab:hover {
    background-color: #333 !important;
    color: var(--primary) !important;
}
.CustomTabs .mud-tabs-toolbar-secondary .mud-tab.mud-tab-active:hover {
    background-color: var(--primary) !important;
    color: #000 !important;
}
.CustomTabs .mud-tab-slider {
    background-color: var(--primary) !important;
}

    .field-title {
        font-size: 22px;
        border-bottom: solid 3px var(--primary);
        padding-bottom: 6px;
        color: #000;
        margin-bottom: 12px;
        margin-top: 15px;
        font-weight: 600;
    }
.cards-icons-column img {
    width: 90px;
    height: auto;
}
.field-body {
    padding: 12px 20px;
}

.produce-price {
    text-align: right;
    color: var(--secondary);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}

#main-slider {
    height: 400px;
    background-color: #fff;
    border-radius: 4px;
}

#nav-slider img {
    -o-object-fit: contain;
    object-fit: contain;
}

.swiper-slide {
    border: 2px solid transparent;
    cursor: pointer;
    background-color: white;
}

#nav-slider .swiper-slide-thumb-active, #nav-full-slider .swiper-slide-thumb-active {
    border: 2px solid var(--primary);
}

#nav-slider .swiper-slide {
    width: 100px;
    height: 80px;
}

.fullscreen-galleries {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 220px;
    grid-template-columns: 1fr 220px;
    min-width: 0;
    min-height: 0;
}

#nav-full-slider {
    padding: 10px;
}

    #nav-full-slider .swiper-slide {
        width: 100px;
        height: 80px;
    }

#nav-full-slider .swiper-wrapper {
    width: unset !important;
}

@media only screen and (min-width: 1280px) {
    #main-full-slider {
        border-right: 1px solid rgba(100, 100, 100, 0.4);
        margin-right: 10px;
        padding-right: 10px;
    }
}

@media only screen and (max-width: 1280px) {
    .fullscreen-galleries {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        -ms-grid-rows: 1fr 120px;
        grid-template-rows: 1fr 120px;
    }

    #main-full-slider {
        border-bottom: 1px solid rgba(100, 100, 100, 0.4);
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
}

.price-Tva {
    font-size: 10px;
    color: #666;
}

.product-image-gallery {
    flex: 0 1 380px;
    max-width: 420px;
    overflow: hidden;
}

.product-details-wrap {
    flex: 1.4 1 480px;
    max-width: 100%;
    overflow: hidden;
}

.product-details-middle {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

    .product-image-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-page {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        gap: 15px;
        min-width: 0;
        align-items: flex-start;     /* fără stretch — fiecare coloană e cât conținutul ei */
    }

/* Wrapper pe 2 coloane: info bars stânga + buy panel dreapta */
.product-purchase-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
}

.product-info-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.product-info-bars > .mud-paper,
.product-info-bars > a > .mud-paper,
.product-info-bars > .mud-expansion-panels {
    width: 100%;
    box-sizing: border-box;
}

/* Spațiu interior în bare: label la stânga, valoare la dreapta, dar cu gap rezonabil */
.product-info-bars .mud-paper.d-flex {
    gap: 12px;
}

.buy-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background-color: #EDEDED;
    align-items: stretch;
    align-self: flex-start;
    flex: 0 0 320px;
    min-width: 0;
    height: auto;
    margin-top: 12px;
}

.buy-producer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    padding: 6px;
}

.buy-producer-logo img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
}

.buy-price-big {
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px 8px;
}

.buy-price-big .buy-price-current {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.05;
    word-break: break-word;
}

.buy-price-big .buy-price-current .product-price-currency {
    font-size: 1rem;
    font-weight: 700;
}

.buy-price-big .buy-price-current .produce-price--sup {
    font-size: 1.1rem !important;
    top: -0.7em;
    color: #888 !important;
}

.buy-price-big .buy-price-old {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.buy-price-big .price-Tva {
    display: block;
    color: #555;
    margin-top: 2px;
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.product-options-row {
    max-width: 100%;
}

.producer-rating {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 1115px) {
    .buy-wrap {
        justify-content: center;
        align-items: center;
    }

    .buy-buttons {
        margin: 0;
    }
}

/* Product detail page - stock and info panels: compact */
.buy-wrap .mud-paper {
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    border-radius: 4px;
    background-color: #fff;
    padding: 6px 10px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    min-height: 0 !important;
    font-size: 0.9rem;
}

.buy-wrap .mud-expansion-panels {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 4px 0;
    background-color: #fff;
}

.buy-wrap .mud-expand-panel {
    background-color: #fff;
}

/* Reduce spațiul între blocurile de detalii (specificații, producător) */
.product-details-middle .product-details {
    margin-bottom: 6px;
}

.product-quick-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.product-quick-fields .quick-field {
    border-left: none;
    padding: 0;
}

.product-quick-fields .quick-field-title {
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.product-quick-fields .quick-field-value {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.45;
}

.product-quick-fields .quick-field-value p {
    margin: 0 0 4px 0;
}

/* Cantitate compactă */
.product-options-row .mud-input-control {
    margin-top: 4px !important;
}

.product-options-row .mud-input-slot {
    padding: 4px 8px !important;
}

/* Product info section below tabs - chenar mare gri care include Variante, Descriere, Greutate, GSPR */
#product-infos {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: -1px;
    padding: 8px 12px;
}

#product-infos .field-body {
    border-bottom: 1px solid #e6e6e6;
    padding: 14px 20px;
}

#product-infos .field-body:last-child {
    border-bottom: none;
}

/* tabelul de variante să respire la fel cu restul field-body */
#product-infos #Variante {
    padding: 14px 20px;
}

.product-options-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
}

.product-options-row > .center-content {
    width: 100%;
    min-width: 0;
}

.product-options-row .mud-input-control,
.product-options-row .mud-select {
    width: 100% !important;
}
