/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

.product-information {
    font-size: 1.25rem;
}

.product-description,
.product-description p,
.product-description span,
.product-description strong {
    font-size: 1.3rem !important;
}

.product-unit-price {
    margin-bottom: 0;
    font-size: 1.1rem !important;
}

.category-description {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.8rem;
}

div.MagicToolboxMessage {
    text-align: center;
    margin-bottom: 2rem !important;
}

/*Add PH - 08.12.2025*/
.logo.img-fluid {
    max-width: 16.25rem;
    max-height: 12.625rem;
}

/* Header center blocks alignment - Search and Contact */
.col-header-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.col-header-center #search_widget {
    flex: 1 1 0;
    min-width: 0;
}

.col-header-center #contact-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
}

.col-header-center #contact-link .text-made-usa {
    margin-top: 10px;
}


.col-header-center #contact-link .text-made-usa,
.col-header-center #contact-link .contact-question {
    font-size: 1.1538461538rem;
    font-weight: bold;
}

.col-header-center #contact-link .contact-question,
.col-header-center #contact-link .contact-phone,
.col-header-center #contact-link .contact-email {
    line-height: 1.4;
    white-space: nowrap;
}

.col-header-center #contact-link .contact-phone a,
.col-header-center #contact-link .contact-email a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.col-header-center #contact-link .contact-phone a:hover,
.col-header-center #contact-link .contact-email a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 430px) {
    #notify-available-modal-overlay input[type="submit"],
    .js-notify-available,
    .js-select-options-iqit,
    .js-add-to-cart-iqit,
    .ph-js-ajax-add-to-cart,
    .js-quick-view-iqit {
        padding: 1rem 0.8rem !important;
    }
}

@media (max-width: 370px) {
    #notify-available-modal-overlay input[type="submit"],
    .js-notify-available,
    .js-select-options-iqit,
    .js-add-to-cart-iqit,
    .ph-js-ajax-add-to-cart,
    .js-quick-view-iqit {
        width: 100% !important;
        justify-content: center;
        margin-top: 5px;
    }

    .ph-add-to-cart,
    .ph-add-to-cart-button {
        width: 100% !important;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .logo.img-fluid {
        max-width: 18.25rem;
    }

    #mobile-header .mobile-main-bar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .col-header-center {
        flex-direction: column;
        align-items: stretch;
    }

    .col-header-center #search_widget {
        flex: 1 1 auto;
        width: 100%;
    }

    .col-header-center #contact-link {
        width: auto;
        align-self: flex-start;
    }
}

/*.text-made-usa-name,*/
.text-made-usa-description {
    font-weight: bolder;
}

/* Add to cart button in product miniature */
#notify-available-modal-overlay input[type="submit"],
.js-notify-available,
.js-select-options-iqit,
.js-add-to-cart-iqit,
.js-quick-view-iqit {
    border: none;
    background-color: rgb(33 33 33);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    width: max-content;
    position: relative;
    overflow: hidden;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
}

#notify-available-modal-overlay input[type="submit"],
.product-miniature .js-notify-available,
    /*.product-miniature .js-select-options-iqit,*/
.product-miniature .js-add-to-cart-iqit
    /*.product-miniature .js-quick-view-iqit */
{
    font: inherit;
}

.product-miniature .js-quick-view-iqit {
    font-size: 1.37rem;
}

/* Мобільна версія для кнопки .js-notify-available */
@media (max-width: 767px) {
    .js-notify-available {
        padding: 0.625rem 0.875rem !important;
        font-size: 1.1rem !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        word-wrap: break-word;
        line-height: 1.3 !important;
        min-width: auto !important;
    }
}

/*.js-select-options-iqit::before,*/
/*.js-add-to-cart-iqit::before,*/
/*.js-quick-view-iqit::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);*/
/*    transition: left 0.5s ease;*/
/*}*/

/*.js-select-options-iqit:hover,*/
/*.js-add-to-cart-iqit:hover,*/
/*.js-quick-view-iqit:hover {*/
/*    background-color: rgba(0, 0, 0, 0.9);*/
/*    color: #fff;*/
/*    text-decoration: none;*/
/*    !*transform: translateY(-2px);*!*/
/*    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.js-select-options-iqit:hover::before,*/
/*.js-add-to-cart-iqit:hover::before,*/
/*.js-quick-view-iqit:hover::before {*/
/*    left: 100%;*/
/*}*/

/*.js-select-options-iqit:active,*/
/*.js-add-to-cart-iqit:active,*/
/*.js-quick-view-iqit:active {*/
/*    transform: translateY(0);*/
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
/*}*/

.js-select-options-iqit:disabled,
.js-add-to-cart-iqit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.js-select-options-iqit i,
.js-add-to-cart-iqit i {
    font-size: 1rem;
}

/* Product attributes groups styling */
.products-attributes {
    padding: 0px 10px;
    text-align: center;
}

.products-attributes .group {
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    clear: both;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/*.products-attributes .group:last-child {*/
/*    margin-bottom: 0;*/
/*    padding-bottom: 0;*/
/*    border-bottom: none;*/
/*}*/

/* Modern attributes links styling */
.attributes-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    clear: both;
}

.attributes-links a,
.attributes-links .attribute-link {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border: 2px solid #333;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
}

.attributes-links a::before,
.attributes-links .attribute-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.attributes-links a:hover,
.attributes-links .attribute-link:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    /*transform: translateY(-2px);*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.attributes-links a:hover::before,
.attributes-links .attribute-link:hover::before {
    left: 100%;
}

.attributes-links a:active,
.attributes-links .attribute-link:active {
    /*transform: translateY(0);*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attributes-links a:hover:not(.nav-link):not(.btn) {
    color: #ffffff;
}

.products-attributes .group label {
    font-size: 1rem;
}

.product-miniature-btn {
    padding-bottom: 10px;
    margin: 0px auto;
}

.product-description {
    text-align: center;
}

.product-description .product-title {
    font-size: large;
}

/*--------- AND Add PH ---------*/

.header-top-actions {
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 0.5rem;

    #blockcart, #user_info {
        margin-top: 0;
    }
}

.col-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    [id^="visitor_assurance"] {
        width: 100%;
        text-align: right;
    }
}

#header .desktop-header-style-1 #user_info {
    margin-top: 0px;
}

.viewed-products .products-grid .product-miniature-default {
    margin-top: 10px;
}

.ps-shoppingcart.dropdown #blockcart-content {
    z-index: 10000;
}

.products-grid .product-miniature-layout-2 .product-price-and-shipping {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

.products-grid .product-miniature-layout-2 .product-price-and-shipping .product-price {
    font-size: 2.1538461538rem !important;
    font-style: normal;
    font-weight: bold;
    text-transform: none;
}

.product-miniature .product-unavailable,
.product-miniature .product-available,
.product_header_container #product-availability.product-available,
.product_header_container #product-availability.product-unavailable {
    font-size: large;
    padding: 7px;
}

.product-miniature .product-unavailable,
.product_header_container #product-availability.product-unavailable {
    background: #212121;
}

.product-miniature .product-available,
.product_header_container #product-availability.product-available {
    background: #27AE60;
}

#product .product-tabs .product-description,
#product .product-information .product-description {
    text-align: left;
}

/* Center align menu items in horizontal menu */
#iqitmegamenu-horizontal .cbp-horizontal > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#iqitmegamenu-horizontal .cbp-horizontal > ul > li {
    float: none !important;
}

/* Center block-made-by in footer row */
#footer-copyrights .row.align-items-center {
    position: relative !important;
}

#footer-copyrights .row.align-items-center .block-made-by {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1;
}

/* На мобільних пристроях block-made-by розміщується зліва */
@media (max-width: 991px) {
    #footer-copyrights .row.align-items-center .block-made-by {
        position: static !important;
        left: auto !important;
        transform: none !important;

        margin-bottom: 1rem;
        padding-left: 15px;
    }
}

.block-made-by i.fa-heart {
    margin: 0px 5px;
    font-size: large;
    color: #F44336;
}

.block-made-by a {
    font-weight: 600;
}

/* Custom Modal Window for Email Alerts */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    pointer-events: auto;
}

/* Блокуємо всі події на сторінці коли модальне вікно відкрите */
body.modal-notify-open {
    overflow: hidden !important;
}

body.modal-notify-open > * {
    pointer-events: none !important;
}

/* Модальне вікно та його контент мають бути інтерактивними */
body.modal-notify-open #notify-available-modal-overlay,
body.modal-notify-open #notify-available-modal-overlay * {
    pointer-events: auto !important;
}

.custom-modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.custom-modal-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #212529;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.custom-modal-close:hover {
    opacity: 1;
}

.custom-modal-close span {
    line-height: 1;
    font-size: xx-large;
}

.custom-modal-body {
    padding: 1.5rem;
}

#notify-available-modal-overlay form,
#notify-available-modal-overlay .alert,
#notify-available-modal-overlay input[type="email"],
#notify-available-modal-overlay input[type="submit"] {
    width: 100%;
}

#notify-available-modal-overlay input[type="email"] {
    margin-bottom: 1rem;
}

#notify-available-modal-overlay .input-group {
    margin: 0px !important;
}

#notify-available-modal-overlay .alert {
    font-size: 1.3rem;
}

#notify-available-modal-overlay .alert-warning {
    margin-top: 1rem;
    margin-bottom: 0px;
}

#notify-available-modal-overlay .alert-info {
    margin-bottom: 0px;
}


#notify-available-modal-overlay input[type="submit"] {
    background-color: #000000;
    color: #FFF;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-modal-container {
        max-width: 100%;
        margin: 0;
    }

    .custom-modal-content {
        border-radius: 0;
    }

    .custom-modal-header,
    .custom-modal-body {
        padding: 1rem;
    }
}

.modal.show .modal-content {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.quickview #js-quickview-prev-btn,
.quickview #js-quickview-next-btn {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

#wrapper .blockreassurance_product .block-title {
    display: block !important;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}

#wrapper .blockreassurance_product .element-item {
    margin-bottom: 1.5rem;
}

.blockreassurance_product .element-item .item-product {
    margin-right: 2rem;
    padding-top: 0px;
}

.blockreassurance_product .element-item .item-product img,
.blockreassurance_product .element-item .item-product svg {
    height: 45px;
    width: 45px;
}

.blockreassurance_product .element-item p {
    font-size: 1.1rem;
}

.blockreassurance p {
    text-align: left;
}