/* Stilizare generală pentru cart */
.eccart-pro-items {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.eccart-pro-item {
    display: flex;
    padding: 15px 10px;
    margin-bottom: 5px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.eccart-pro-item .ec-pro-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eccart-pro-item .ec-pro-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.eccart-pro-item .ec-pro-content {
    flex: 1;
    position: relative;
    padding-right: 25px;
}

.eccart-pro-item .ec-pro-title {
    font-size: 14px;
    margin-bottom: 8px;
    padding-right: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.empty-cart {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Stilizare butoane plus și minus pentru coș */
.eccart-pro-items li .ec-pro-content .ec-pro-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eccart-pro-items li .ec-pro-content .ec-price {
    margin-top: 10px;
    font-weight: 600;
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus {
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100px;
    display: flex;
    align-items: center;
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus .inc-qty,
.eccart-pro-items li .ec-pro-content .qty-plus-minus .dec-qty {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 5px;
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus .inc-qty:hover,
.eccart-pro-items li .ec-pro-content .qty-plus-minus .dec-qty:hover {
    background-color: #e0e0e0;
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus .qty-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    width: 30px;
    padding: 0;
    font-size: 14px;
}

/* Stiluri pentru efectul de loading în coș */
.eccart-pro-items li .ec-pro-content .qty-plus-minus .inc-qty.loading,
.eccart-pro-items li .ec-pro-content .qty-plus-minus .dec-qty.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.eccart-pro-items li .ec-pro-content .qty-plus-minus .inc-qty.loading:after,
.eccart-pro-items li .ec-pro-content .qty-plus-minus .dec-qty.loading:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: loader-spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Stilizare buton X pentru eliminare produs */
.eccart-pro-items li .ec-pro-content .remove-item {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 2px 8px;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.eccart-pro-items li .ec-pro-content .remove-item:hover {
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

/* Stiluri pentru efectul de loading la butonul de ștergere */
.eccart-pro-items li .ec-pro-content .remove-item.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.eccart-pro-items li .ec-pro-content .remove-item.loading:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ff0000;
    animation: loader-spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Stilizare butoane plus și minus pentru pagina de produs */
.ec-single-qty .qty-plus-minus {
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ec-single-qty .qty-plus-minus:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ec-single-qty .qty-plus-minus .qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 5px;
}

.ec-single-qty .qty-plus-minus .qty-btn:hover {
    background-color: #e0e0e0;
}

.ec-single-qty .qty-plus-minus .qty-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    width: 40px;
    padding: 0;
    font-size: 16px;
}

/* Stiluri pentru efectul de loading în pagina de produs */
.ec-single-qty .qty-plus-minus .qty-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.ec-single-qty .qty-plus-minus .qty-btn.loading:after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: loader-spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes loader-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Stilizare pentru imaginile produselor în categorii */
.ec-product-inner {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ec-product-inner:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ec-product-inner .ec-pro-image-outer {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    width: 100%;
}

.ec-product-inner .ec-pro-image {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-product-inner .ec-pro-image .image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.ec-product-inner .ec-pro-image .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
}

.ec-product-inner .ec-pro-image .image img.main-image {
    opacity: 1;
    transition: all 0.3s ease;
}

.ec-product-inner .ec-pro-image .image img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.ec-product-inner:hover .ec-pro-image .image img {
    transform: scale(1.05);
}

.ec-product-inner .ec-pro-image .percentage {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6b6b;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.ec-product-inner .ec-pro-image .flags {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.ec-product-inner .ec-pro-image .flags .sale {
    background: #28a745;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.ec-product-inner .ec-pro-image .quickview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 14px;
}

.ec-product-inner:hover .ec-pro-image .quickview {
    opacity: 1;
}

.ec-product-inner .ec-pro-image .ec-pro-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.ec-product-inner:hover .ec-pro-image .ec-pro-actions {
    opacity: 1;
}

.ec-product-inner .ec-pro-image .ec-pro-actions button,
.ec-product-inner .ec-pro-image .ec-pro-actions a {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ec-product-inner .ec-pro-image .ec-pro-actions button:hover,
.ec-product-inner .ec-pro-image .ec-pro-actions a:hover {
    background: #fff;
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ajustează înălțimea thumbnail-urilor din galeria produsului */
.single-nav-thumb {
    padding-top: 10px;
}

.single-nav-thumb .single-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 6px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.single-nav-thumb .single-slide img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.ec-product-inner .ec-pro-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ec-product-inner .ec-pro-content .ec-pro-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-product-inner .ec-pro-content .ec-pro-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-product-inner .ec-pro-content .ec-pro-title a:hover {
    color: #007bff;
}

.ec-product-inner .ec-pro-content .ec-pro-rating {
    margin-bottom: 8px;
}

.ec-product-inner .ec-pro-content .ec-pro-rating i {
    color: #ffc107;
    font-size: 12px;
    margin-right: 1px;
}

.ec-product-inner .ec-pro-content .ec-price {
    font-size: 16px;
    font-weight: 700;
    margin-top: auto;
}

.ec-product-inner .ec-pro-content .ec-price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 6px;
    display: block;
}

.ec-product-inner .ec-pro-content .ec-price .new-price {
    color: #007bff;
    font-size: 18px;
}

/* Stilizare pentru Vue Product Card */
.product-card-vue .ec-pro-image-outer {
    min-height: 280px;
    background: #f8f9fa;
}

.product-card-vue .ec-pro-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-card-vue .ec-pro-actions button {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card-vue .ec-pro-actions button:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Layout vertical pentru produse */
.pro-gl-content {
    display: flex;
    flex-direction: column;
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .ec-product-inner .ec-pro-image {
        height: 220px;
    }
    
    .ec-product-inner {
        padding: 8px;
        margin-bottom: 20px;
    }
    
    .ec-product-inner .ec-pro-content .ec-pro-title {
        font-size: 13px;
        min-height: 35px;
    }
    
    .ec-product-inner .ec-pro-content .ec-price .new-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ec-product-inner .ec-pro-image {
        height: 180px;
    }
    
    .ec-product-inner .ec-pro-content .ec-pro-title {
        font-size: 12px;
        min-height: 30px;
    }
}

/* Fixare pentru header și meniul mobil */
@media (max-width: 991px) {
    .ec-mobile-menu {
        position: fixed;
        top: 0;
        right: -350px;
        width: 340px;
        max-width: 100%;
        z-index: 999;
        height: 100vh;
        overflow: auto;
        color: #000000;
        background: #ffffff;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease;
    }

    .ec-mobile-menu.ec-open {
        right: 0;
    }

    .ec-side-overlay {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 12;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
    }

    .ec-side-overlay.ec-open {
        opacity: 1;
        visibility: visible;
    }
}

/* Fixare pentru căutările duble */
.ec-header-bottom {
    position: relative;
}

.ec-header-bottom .header-search {
    position: relative;
}

@media (max-width: 991px) {
    .ec-header-bottom .header-search {
        width: 100%;
        margin-bottom: 15px;
    }

    .ec-header-bottom .header-search .form-control {
        width: 100%;
    }

    .ec-header-bottom .header-search .submit {
        position: absolute;
    }
}

@media (min-width: 992px) {
    .ec-header-bottom.d-lg-none {
        display: none;
    }
}

/* Stilizare Buton Filtru Mobil */
.ec-header-bottons .ec-filter-toggle {
    cursor: pointer;
    margin-right: 15px;
    display: block;
    position: relative;
    color: #777;
    font-size: 15px;
}

/* Asigură că meniul de filtre mobil are stilurile de bază */
#ec-mobile-filter-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 340px;
    max-width: 100%;
    z-index: 999;
    height: 100vh;
    overflow: auto;
    background: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

/* Stiluri pentru containerul de conținut al filtrelor mobile */
#mobile-filter-content-placeholder {
    min-height: 20px;
    display: none;
}

/* Când conținutul este mutat din #shop_sidebar, acesta rămâne gol */
#shop_sidebar:empty {
    padding: 0;
}

/* Fixare pentru Side Cart */
.ec-side-cart-overlay {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 16;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ec-side-cart-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Side cart deschis - principala tema îl are configurat corect */
.ec-side-cart.ec-side-cart-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Previne ascunderea scroll-ului când se deschide cart-ul */
body.cart-open {
    overflow: hidden;
    padding-right: 0;
} 

/* Footer Disclaimer Section */
.footer-disclaimer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.disclaimer-message {
    margin: 0;
}

.disclaimer-message p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive pentru disclaimer */
@media (max-width: 768px) {
    .disclaimer-message p {
        font-size: 13px;
        padding: 0 15px;
    }
} 

/* Corectare pentru .ec-contact-rightside */
.ec-contact-rightside {
    max-width: none;
    width: 100%;
    padding-left: 0;
    float: none;
}

/* Responsive pentru contact page */
@media (min-width: 992px) {
    .ec-contact-rightside {

        width: auto;
        padding-left: 15px;
        float: left;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .ec-contact-rightside {
        max-width: calc(100% - 350px);
        width: auto;
        padding-left: 15px;
        float: left;
    }
}

@media (max-width: 767px) {
    .ec-contact-rightside {
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        float: none;
        margin-top: 30px;
    }
} 

/* Reviews Section */
.ec-t-review-wrapper {
    padding: 20px 0;
}

.ec-t-review-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ec-t-review-average {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.ec-t-review-bar {
    margin-bottom: 10px;
}

.ec-t-review-bar .progress {
    height: 10px;
    background-color: #e9ecef;
}

.ec-t-review-bar .progress-bar {
    background-color: #ffc107;
}

.ec-t-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.ec-t-review-item:last-child {
    border-bottom: none;
}

.ec-t-review-avtar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 20px;
}

.ec-t-review-avtar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-t-review-content {
    overflow: hidden;
}

.ec-t-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ec-t-review-name {
    font-weight: 600;
    color: #333;
}

.ec-t-review-rating .ecicon {
    color: #ddd;
    font-size: 16px;
}

.ec-t-review-rating .ecicon.fill {
    color: #ffc107;
}

.ec-t-review-helpful {
    margin-top: 10px;
}

.ec-t-review-helpful button {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
}

.ec-t-review-helpful button:hover {
    color: #333;
}

.ec-ratting-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.ec-ratting-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.ec-ratting-star {
    margin-bottom: 20px;
}

.ec-ratting-star span {
    display: inline-block;
    margin-right: 10px;
    color: #666;
}

.ec-ratting-star .ecicon {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.ec-ratting-star .ecicon.fill {
    color: #ffc107;
}

.ec-ratting-star .ecicon:hover {
    color: #ffc107;
}

.ec-ratting-input {
    margin-bottom: 15px;
}

.ec-ratting-input input,
.ec-ratting-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ec-ratting-input input:focus,
.ec-ratting-input textarea:focus {
    outline: none;
    border-color: #0062cc;
}

.ec-ratting-input textarea {
    resize: vertical;
    min-height: 100px;
}

.ec-ratting-form .btn-primary {
    background-color: #0062cc;
    border-color: #0062cc;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.ec-ratting-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004a9b;
}

.ec-single-rating a {
    color: #666;
    text-decoration: none;
}

.ec-single-rating a:hover {
    color: #0062cc;
}

.badge-success {
    background-color: #28a745;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.review-image-thumb {
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-image-thumb:hover {
    transform: scale(1.05);
}

/* AdminLTE Layout Adjustments */
@media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 140px;
    }
}

/* ========================================
   Marketplace Banner Styles
   ======================================== */
.ec-marketplace-banner {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

.sell-with-priceminator {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    overflow: hidden;
}

.mktp-content h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.mktp-advantage-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.mktp-advantage-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.mktp-advantage-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
}

.mktp-banner-bg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Marketplace Banner */
@media (max-width: 991px) {
    .ec-marketplace-banner {
        padding: 40px 0;
    }

    .sell-with-priceminator {
        padding: 30px 20px;
    }

    .mktp-content h2 {
        font-size: 2rem;
    }

    .mktp-banner-bg {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .ec-marketplace-banner {
        padding: 30px 0;
    }

    .sell-with-priceminator {
        padding: 20px 15px;
    }

    .mktp-content h2 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .mktp-advantage-list li {
        font-size: 14px;
        padding: 10px 0 10px 28px;
    }

    .mktp-advantage-list li:before {
        font-size: 18px;
    }
}
