
.page-title {
    margin: 10px 0 !important;
}

.price-box.price-final_price {
    align-items: flex-start;
    margin: 0 !important;
    gap: 6px;
}

.spec-value {
    color: #363636;
    font-family: "Public Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.spec-item {
    margin: 0 !important;
}

.available {
    color: #2DB224;
    font-family: "Public Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.unavailable {
    color: #ff4747;
    font-family: "Public Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.product-info-main-content {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-inline-start: 0;
}

.product-info-short-description .product-availability .stock.available {
    font-weight: 700;
}


.product-brand span {
    color: #999999;
    font-family: Almarai;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.custom-product-labels {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    align-items: center;
}

.custom-product-label {
    border-radius: 2px;
    padding: 3px 10px;
    text-align: center;
}

.custom-product-label.exclusive-label {
    background: #F0FFB0;
    color: #3C4D00;
    font-weight: 700;

}

.custom-product-label.bestseller-label {
    background: #D4EDDA;
    color: #209d00;
    font-weight: 700;

}

.custom-product-label.new-label {
    background: #E9F7E6;
    color: #209D00;
}

.custom-product-label.new-label:first-child {
    display: none;
}

.custom-product-label.new-label:last-child {
    background: #edf0ff;
    color: #4660e8;
    font-weight: 700;
}


.custom-product-label.sale-label {
    background: #FFD6D6;
    color: #FF4747;
    font-weight: 700;

}

.product-rating {
    margin-bottom: 15px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-value {
    font-weight: bold;
}

.feedback-link {
    color: #ff6b35;
    text-decoration: none;
}

.page-title {
    font-size: 24px;
    color: #222;
}

.product-details,
.product-details-right {
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 8px;
    display: flex;
    gap: 5px;
}

.detail-item .label {
    color: #666;
}

.in-stock {
    color: #00b517;
}

.out-of-stock {
    color: #ff4747;
}

.product-price {
    margin: 20px 0;
}

.old-price {
    color: #666;
    text-decoration: line-through;
    font-size: 14px;
}

.special-price {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

.discount {
    background: #ffe8e8;
    color: #ff4747;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
    margin-left: 10px;
}

.product-color-selection {
    margin-top: 20px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-info-rating {
    display: flex;
    align-items: center;
}

.rating-summary {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 !important;
}

.rating-icon {
    color: #0E0D0D;
    font-size: 16px;
}

.rating-value {
    color: #191C1F;
    font-family: "Public Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 142.857% */
}

.reviews-count {
    color: #F37021 !important;
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 142.857% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    text-transform: capitalize;
    margin-right: 10px;
}

html:lang(en) .reviews-count {
    margin-right: 0px;
    margin-left: 10px;
}

.reviews-count:visited {
    color: #F37021;
}

.custom-product-info-stock-sku {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: start;
}

ul.specs-list {
    padding: 0;
    list-style: none;
    /* display: grid; */
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 25px;
    margin: 0 !important;
}
.sku-availability, .product-specs
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media(max-width: 768px)
{
    .sku-availability, .product-specs
    {
        grid-template-columns: 1fr ;
        gap: 8px
    }
}


.product-status-messages {
    position: static;
    height: 20px;
    overflow: hidden;
    margin: 5px 0;
    display: block !important;
    width: 100%;
}

.product-status-messages .message {
    position: absolute;
    width: 100%;
    animation: cycleMessages 9s infinite;
    opacity: 0;
    transform: translateY(100%);
}



.stock-warning {
    color: #da4242 !important;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 5px;
    align-items: center;
}

.sales-info {
    color: #4D69FF !important;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 5px;
    align-items: center;
}
.discount-info {
    color: #28A745 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    gap: 5px !important;
    align-items: center !important;
}

@media (max-width: 768px) {

    .sales-info svg,
        .stock-warning svg,
        .sales-info.message svg,
        .discount-info svg {
            width: 12px !important;
            height: 15px !important;
        }
}


/* Remove animation for single messages */
.product-status-messages.single-message .message {
    position: static;
    animation: none;
    opacity: 1;
    transform: none;
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #DA4242;
    /* display: none; */
    /*hide it*/

    height: fit-content !important;
    display: flex;
    justify-content: start;
    align-items: start;
}

/* Only apply animations when not single-message */
.product-status-messages:not(.single-message) .message {
    position: absolute;
    width: 100%;
    animation: cycleMessages 9s infinite;
    opacity: 0;
    transform: translateY(100%);
}

.message p 
{
    margin: 0 !important
}

@keyframes cycleMessages {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    10%,
    30% {
        opacity: 1;
        transform: translateY(0);
    }

    40% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    align-items: end;
}

.discount-label {
    color: #aa3333;
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    background: #F8D7DA;
    padding: 8px 16px;
    border-radius: 1px;
}

/* Add max-height control for gallery images */
.fotorama__stage__frame .fotorama__img,
.gallery-placeholder__image,
.product-image-grid img,
.product-image-list img,
#gallery_images .item img {
    max-height: 500px !important;
    object-fit: contain;
}

.product-info-main .qty.field .control,
.product-info-main .qty.field .qty-changer {
    height: 45px !important;
    margin: 0 !important;
}

.product-info-main .product-addto-links>a.action,
.product-info-main .product-addto-links+a.action.mailto {
    border: 1px solid #C5C5C5;
    color: #F37021 !important;
}

.product-addto-links {
    height: 100%;
}

#product_addtocart_form .fieldset {
    gap: 10px !important;
    height: 38px !important;
}

.field.qty .input-text.qty {
    padding: 13px 12px;
    text-align: center !important;
    width: 97% !important;
}

.product-info-main .qty.field .qty-changer>a {
    height: 100% !important;
}

.product-addto-links .action.towishlist:before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="23" viewBox="0 0 28 23" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.9345 2H22.364L26 8L14 20L2 8L5.609 2H10.0925L14 6.5L17.9345 2Z" stroke="%23F37021" stroke-width="3"/></svg>') !important;
    margin-top: 5px;
}

.product.pricing {
    display: none;
}

button#product-addtocart-button::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="24" viewBox="0 0 21 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 21H15.5V7H1.5V21Z" stroke="white" stroke-width="2"/><path d="M11.5 10V3H5.5V10" stroke="white" stroke-width="2"/><mask id="path-3-outside-1_188_14760" maskUnits="userSpaceOnUse" x="9.5" y="8" width="12" height="12" fill="black"><rect fill="white" x="9.5" y="8" width="12" height="12"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 15V18H16.5V15H19.5V13H16.5V10H14.5V13H11.5V15H14.5Z"/></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 15V18H16.5V15H19.5V13H16.5V10H14.5V13H11.5V15H14.5Z" fill="white"/><path d="M14.5 18H13V19.5H14.5V18ZM14.5 15H16V13.5H14.5V15ZM16.5 18V19.5H18V18H16.5ZM16.5 15V13.5H15V15H16.5ZM19.5 15V16.5H21V15H19.5ZM19.5 13H21V11.5H19.5V13ZM16.5 13H15V14.5H16.5V13ZM16.5 10H18V8.5H16.5V10ZM14.5 10V8.5H13V10H14.5ZM14.5 13V14.5H16V13H14.5ZM11.5 13V11.5H10V13H11.5ZM11.5 15H10V16.5H11.5V15ZM16 18V15H13V18H16ZM16.5 16.5H14.5V19.5H16.5V16.5ZM15 15V18H18V15H15ZM19.5 13.5H16.5V16.5H19.5V13.5ZM18 13V15H21V13H18ZM16.5 14.5H19.5V11.5H16.5V14.5ZM15 10V13H18V10H15ZM14.5 11.5H16.5V8.5H14.5V11.5ZM16 13V10H13V13H16ZM11.5 14.5H14.5V11.5H11.5V14.5ZM13 15V13H10V15H13ZM14.5 13.5H11.5V16.5H14.5V13.5Z" fill="%23F37021" mask="url(%23path-3-outside-1_188_14760)"/></svg>') !important;
    margin: 5px 0 0 6px !important;
}

.action.tocart.primary {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F37021 !important;
    border: unset !important;
}

body.catalog-product-view .action.tocart.primary:hover:before {
    position: unset;
    transition: unset !important;
    transform: unset !important;
}

body.catalog-product-view .action.tocart.primary:before {
    width: 20px;
    transition: none !important;
    position: relative;
    left: unset !important;
    margin-left: unset;
}

body.catalog-product-view .action.tocart.primary:hover:before .action.tocart.primary span {
    padding-inline: 8px !important;
}

@media(max-width: 768px) {
    .product-info-main-content .page-title {
        line-height: 27px;
    }

    .product-info-main-content .page-title span {
        font-size: 18px;
    }
}

@media(min-width: 769px) {
    body.catalog-product-view .product-info-main {
        width: 49% !important;
    }

    body.catalog-product-view .product.media {
        width: 48% !important;
    }
}

.product-info-main-content .price-box .price {
    font-size: 24px !important
}

.product-info-main-content .old-price .price {
    font-size: 16px !important;
}

#flix-minisite {
    display: none !important;
}

div#products_details,
#products_details .product.data.items>.data.item.content#reviews {
    border-top: 16px solid #F2F2F2;
}

#products_details .product.data.items>.data.item.content#reviews {
    margin-top: 24px !important
}

.product-info-short-description {
    margin-bottom: 12px;
    width: 100%;
}

@media(max-width: 768px) {
    .fotorama__wrap--slide .fotorama__stage__frame {
        width: 75%;
        transform: translateX(-50%);
        left: 50% !important;
    }
    .product-info-short-description {
        width: 100%;
    }

    #product_addtocart_form>.fieldset:has(.custom-qty-field) {
        position: fixed;
        width: 100%;
        bottom: 5%;
        background: #fff;
        z-index: 102;
        padding: 16px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        right: 0;
    }

    #product_addtocart_form .action.tocart.primary,
    .product-info-main #product_addtocart_form .qty.field .control {
        height: 56px !important;
    }


    .catalog-product-view .mobile-header {
        box-shadow: none !important
    }

    body.catalog-product-view footer.page-footer>.footer {
        margin-bottom: 150px !important;
    }
}

.spec-value a {
    color: #F37021 !important;
}
.product-specs > div:empty {
    display: none;
}
.product-status-messages .message
{
    font-weight: 700 !important
}
@media(max-width: 768px)
{
    .price-wrapper[data-price-type="finalPrice"]  > .price
    {
        font-size: 24px !important;
        color: #222 !important
    }
    .product.media
    {
        position: relative;
    }
    .product.media .product-social-buttons>.product-addto-links
    {
        background: #fff !important ;
    }
    .product-addto-links .action.towishlist, .product-addto-links .action.tocompare
    {
        width: 100%;
        margin: 0;
    }
}

