/* Common styles for all sliders */
.mgz-carousel-item {
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Desktop Slider */
.mgz-element-slider:not(.mobile-slider):not(.tablet-slider) .item {
    width: 100%;
    height: 235px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tablet Slider */
.tablet-slider .item {
    width: 100%;
    height: 331px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile Slider */
.mobile-slider .item {
    width: 100%;
    height: 245px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Desktop Responsive */
@media screen and (min-width: 1367px) {
    .mgz-element-slider:not(.mobile-slider):not(.tablet-slider) .item {
        height: 600px !important;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1366px) {
    .mgz-element-slider:not(.mobile-slider):not(.tablet-slider) .item {
        height: 380px !important;
    }
}

/* Tablet Responsive */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
    .tablet-slider .item {
        height: 413px !important;
    }
}

@media screen and (min-width: 820px) and (max-width: 1023px) {
    .tablet-slider .item {
        height: 331px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 819px) {
    .tablet-slider .item {
        height: 310px !important;
    }
}

/* Mobile Responsive */
@media screen and (max-width: 320px) {
    .mobile-slider .item {
        height: 183px !important;
    }
}

@media screen and (min-width: 321px) and (max-width: 375px) {
    .mobile-slider .item {
        height: 214px !important;
    }
}


@media screen and (max-width: 1023px){
    .main-panel-top {
        display: none !important;
    }
}

/* Fix for background images */
.mgz-carousel-item .slide-background {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Ensure overlay links cover the entire area */
.mgz-carousel-item .overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/** Product Card Styles **/

/* Common Product Card Styles */
.product-item-info {
    .product-item-details {
        .price-box {
            margin-bottom: 0.2rem !important;
            display: block !important;
            line-height: 1 !important;
            font-weight: 600 !important;
        }

        .product-item-name {
            margin-bottom: 0.5rem !important;
        }

        .product-item-link {
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .mp-discount-label-wrap {
            font-weight: 600 !important;
            font-size: 1.0rem !important;
            color: #ee3e54 !important;
            display: block !important;
            margin-top: 1.5rem !important;
        }

        .product.actions.product-item-actions {
            margin-top: 0.8rem !important;
        }
    }
}

/* Arabic Styles */
[lang="ar"] {
    .product-item-info {
        .product-item-details {
            .price-box {
                font-size: 1.4rem !important;
            }
            
            .product-item-name a {
                font-size: 1.05rem !important;
            }
        }
    }
}

/* English Styles */
[lang="en"] {
    .product-item-info {
        .product-item-details {
            .price-box {
                font-size: 1.2rem !important;
            }
            
            .product-item-name a {
                font-size: 0.9rem !important;
            }
        }
    }
}

/* Product Card Grid Layout */
.products-grid {
    .product-items {
        .product-item {
            .product-item-info {               
                position: relative !important;
                min-height: 515px !important;
                
                .product.details.product-item-details {
                    position: static !important;
                    
                    .product-item-inner {
                        position: absolute !important;
                        bottom: 0 !important;
                        left: 0 !important;
                        right: 0 !important;
                        z-index: 1 !important;
                        padding: 10px !important;
                    }
                }
            }
        }
    }
}

/* Responsive Styles */


/* Mobile */
/* Mobile */
@media screen and (max-width: 475px) {
    .products-grid .product-item {
        width: 44%;
    }
    .products-grid .product-items .product-item .product-item-info {
        min-height: 390px !important;
    }
    .products-grid .product-item {
        min-height: 390px !important;
    }
}

/* Mobile */
@media screen and (max-width: 375px) {
    .products-grid .product-item {
        width: 43%;
    }
    .products-grid .product-items .product-item .product-item-info {
        min-height: 355px !important;
    }
    .products.grid .product-item {
        min-height: 370px !important;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .products-grid .product-item {
        width: 44%;
    }
    .products-grid .product-items .product-item .product-item-info {
        min-height: 445px !important;
    }
    .products.grid .product-item {
        min-height: 457px !important;
    }
}

/* Desktop */
@media screen and (min-width: 1200px) {
    .products-grid .product-items .product-item .product-item-info {
        min-height: 485px !important;
    }
    .products.grid .product-item {
        min-height: 485px !important;
    }
}

.product-item-info:hover .weltpixel-quickview.weltpixel_quickview_button_v2 {
    padding: 0 !important;
}

.opc-block-summary tr.totals-tax {
    display: none !important;
}

html .action.primary {
    color: #fff !important;
    background-color: #ee3e54 !important;
    border-color: #ee3e54 !important;
}

html .action.primary:hover {
    opacity: 0.8 !important;
}

.fieldset > .legend {
    color: #ee3e54 !important;
}

.action-primary {
    background: #ee3e54 !important;
    border: 1px solid #ee3e54 !important;
}

.action-primary:hover {
    opacity: 0.8 !important;
}

.opc-wrapper .shipping-address-item.selected-item {
    border-color: #ee3e54 !important;
}

.opc-wrapper .shipping-address-item.selected-item:after {
    background: #ee3e54 !important;
}

/* Cart Actions Toolbar Styling */
.actions-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.actions-toolbar .action {
    color: #666 !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: max-content;
}

.actions-toolbar .action span {
    white-space: nowrap;
}

.actions-toolbar .action-towishlist {
    color: #ee3e54 !important;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding-left: 20px;
    order: 1;
}

.actions-toolbar .action-edit {
    order: 2;
}

.actions-toolbar .action-delete {
    order: 3;
}

[lang="ar"] .actions-toolbar .action-towishlist {
    padding-left: 0;
    padding-right: 20px;
}

.login-container .block .actions-toolbar > .primary {
    margin-bottom: 0 !important;
}

@media screen and (min-width: 769px) {
    .actions-toolbar .secondary a.action {
        margin-top: 0 !important;
    }
}

.form.form-login .actions-toolbar .action:hover {
    color: #fff !important;
}

.form.form-login .actions-toolbar .secondary .action:hover {
    color: #666 !important;
}

/* Mobile styles for sticky product */
@media screen and (max-width: 767px) {
    .sticky-product .sticky-detail .product-name-area {
        display: none !important;
    }

    .sticky-product .container {
        margin-top: 20px !important;
    }

    .page-header.type1 .header-contact .my-account i, .page-header.type1 .header-contact .wishlist i {
        font-size: 21px !important;
    }
    
    .cart-design-2 .action.showcart .minicart-icon::before {
        font-size: 29px !important;
    }
    
    .minicart-wrapper .action.showcart .counter.qty {
        font-size: 8px;
        width: 13px !important;
        height: 13px !important;
        left: 41px !important;
        top: -3px !important;
    }
}

.box-gotoproduct a#product-gotoproduct-button{
    background: none !important;
    color: black !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
  right: unset !important;
  width: unset !important; 
}

[lang="en"] .mfp-iframe-holder .mfp-close {
    top: -9px !important;
}



.abs-actions-addto:hover:before, 
.bundle-options-container .block-bundle-summary .product-addto-links > .action:hover:before, 
.action.tocompare:hover:before, 
.product-addto-links .action.tocompare:hover:before, 
.moved-add-to-links .action.tocompare:hover:before, 
.product-social-links .action.tocompare:hover:before, 
.wishlist.split.button > .action.split:hover:before, 
.product-social-links .action.mailto.friend:hover:before, 
.moved-add-to-links .action.mailto.friend:hover:before, 
.product-social-links .action.towishlist:hover:before, 
.product-addto-links .action.towishlist:hover:before, 
.block-bundle-summary .action.towishlist:hover:before, 
.product-item .action.towishlist:hover:before, 
.table-comparison .action.towishlist:hover:before {
    color: #ee3e54 !important;
}



@media screen and (max-width: 1024px) {
    .product-item-info .product-item-details .product-item-actions .actions-secondary.towishlist {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .product-item-info .product-item-details .product-item-actions .actions-secondary.tocompare {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.sticky-image .product-image-photo.default_image {
    max-width: 100px !important;
}


.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
    left: 20px !important;
    top: 0 !important;
    color: #000 !important;
    font-weight: 800 !important;
}


.mfp-image-holder .mfp-close:hover, 
.mfp-iframe-holder .mfp-close:hover {
    opacity: 0.3 !important;
}

iframe#Iframe1 {
    display:none;
}

div#cart-totals .totals-tax{
    display: none;
}

#shopping-cart-table .mp-discount-label-wrap {
    margin-top: 10px;
    font-size: 1.1rem;
}


.column:not(.sidebar-main) .form.contact, .column:not(.sidebar-additional) .form.contact {
    width: 100% !important;
}

html[lang="ar"] .order-actions-toolbar .action {
    margin-right: unset;
}



@media (max-width: 768px) { 
    [lang="en"] .minicart-wrapper .action.showcart .counter.qty {
        position: absolute;
        left: 20px !important;
        width: 18px !important;
        height: 18px !important;
        top: -9px !important;
        font-size: 11px !important;
        line-height: 19px !important;
    }
}


[lang="en"] .minicart-wrapper .action.showcart .counter.qty {
    position: absolute;
    left: 23px;
    font-weight: 600;
    text-align: center;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    background-color: #ff5b5b;
    padding: 0;
    font-size: 12px !important;
}

[lang="ar"] .minicart-wrapper .action.showcart .counter.qty {
    color: #ffffff !important;
    position: absolute !important;
    left: 38px !important;
    font-weight: 600;
    text-align: center;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    border-radius: 10px !important;
    overflow: hidden;
    color: #fff !important;
    background-color: #ff5b5b !important;
    padding: 0;
    font-size: 12px !important;
}