/* Custom Overlay */
.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}
#paypal-express-in-context-button{
    display:none !important;
}
.minicart-items-wrapper {
    max-height: 350px !important;
}

.custom-overlay-cookies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: block;
}

#form-validate .field.password .control .input-text {
    -ms-flex-order: 0;
    -webkit-order: 0;
    order: 0;
    z-index: 2;
    height: 38px !important;
    width: 350px !important;
}

#form-validate .field.confirmation .control .input-text {
    height: 38px !important;
    width: 350px !important;
}
#form-validate .password-strength-meter {
    background-color: #f4f4f4;
    height: 32px;
    line-height: 32px;
    padding: 0 9px;
    position: relative;
    z-index: 1;
    width: 350px !important;
}

.custom-country-popup {
    display: flex;
    align-items: flex-end;
}

/* Custom Popup Styles */
#country-popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    max-width: 1200px;
    width: 90vw;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-height: 900px) {
    #country-popup-modal {
        max-height: 590px;
        overflow: auto;
        height: calc(100% - 50px);
    }
}

/* Split layout */
.country-popup-wrapper {
    display: flex;
    gap: 30px;
}

.country-list {
    flex: 0 0 40%;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

.popup-content {
    flex: 1;
    text-align: center;
    padding: 20px;
}

/* Country List Styles */
.country-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.country-item {
    text-align: center;
}

.country-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.country-flag:hover {
    transform: scale(1.1);
}

.country-name {
    font-size: 12px;
    margin-top: 5px;
    color: #555;
}

/* Content Side Styles */
.popup-title {
    color: #2c3e50;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-description {
    font-size: 18px;
    margin-bottom: 30px;
}

#selected-country {
    margin-bottom: 30px;
    margin-top: 90px;
}

.selected-flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

.customer-type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.customer-type-buttons button {
    background-color: #34495e;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.customer-type-buttons button:hover {
    background-color: #2c3e50;
}

.header-top select {
    background: none;
    border: none;
    color: #364064;
    font-weight: bold;
}

.customer-type-country-row .customer-type,
.customer-type-country-row .country-type {
    position: relative;
}

.customer-type-country-row .customer-type:after,
.customer-type-country-row .country-type:after {
    position: absolute;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 10px;
    line-height: 28px;
    color: #364064;
    content: '\e622';
    font-family: 'luma-icons';
    margin: 0;
    vertical-align: top;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: center;
    right: 15px;
    z-index: -1;
}

.nav-sections-items > div:nth-child(3) {
    display: none;
}
.pages a.page:visited,
.pages a.page {
    color: #364064;
}

.pages a.page:hover {
    color: #e46f44;
}

.pages strong.page {
    background: #e46f44;
    line-height: normal;
    color: #fff;
    padding: 8px 11px;
    border-radius: 4px;
}

.pages .action.next,
.pages .action.previous {
    border: none;
    box-shadow: none;
    background: #e46f44;
    line-height: normal;
    color: #fff;
    padding: 8px 7px;
    border-radius: 4px;
}

.pages .action.next:visited:before,
.pages .action.previous:visited:before,
.pages .action.next:before,
.pages .action.previous:before {
    color: #fff;
}

.product-items .product-item .price-box .price-label {
    font-size: 16px;
}

.product-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
    max-height: 50px;
}

.product-item .price-box {
    margin: 10px 0 25px;
    max-height: 48px;
}

.page-products .products-grid .product-item {
    border-left: 1px solid #ccdded;
    border-bottom: 1px solid #ccdded;
}

.toolbar-sorter.sorter select#sorter {
    border: 1px solid #f0f0f0;
}

.filter-title strong {
    background-color: #e46f44;
    box-shadow: none;
    border: none;
    color: white;
}

button.action.update {
    background: #364064;
    color: #fff;
    border: 0 !important;
    padding: 0 35px !important;
    min-height: 40px !important;
    transition: background 0.25s ease-in-out, color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

button.action.update:hover {
    background: #e46f44;
}

.filter-options-content .count {
    min-width: fit-content;
}



#social-login-popup .fieldset .field .input-text,
#social-login-popup.fieldset .field select {
    height: 35px;
}
.amsl-popup-block .fieldset {
    margin-bottom: 10px;
}

.product-items .product-item-info {
    border: none !important;
}
/*Menu css*/
/* Sidebar wrapper */
.sidebar-active {
    overflow: hidden;
}

.sidebar-wrapper.active:after {
    left: 0;
    opacity: .5;
    transition: opacity .5s ease;
    background-color: #222831;
    height: 100%;
    position: absolute;
    top: 276px;
    width: 100%;
    z-index: 150;
    content: "";
}

.sidebar-menu {
    position: fixed;
    top: 276px;
    left: -350px;
    width: 320px;
    height: calc(100% - 300px);
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 9999;
    padding: 15px;
}

.sidebar-menu.active {
    left: 0;
}

.category-arrow {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
    vertical-align: middle;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu ul li {
    border-bottom: none;
    min-height: 4.2rem;
    padding-bottom: 3px;
    padding-top: 3px;
    margin: 0;
}


.sidebar-menu li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 5px 5px;
    min-height: 40px;
}

.sidebar-menu li a:hover {
    font-weight: 600;
}

.sidebar-menu li a .category-arrow {
    margin-left: auto;
    font-size: 0;
}

.sidebar-menu li a .category-arrow:after {
    font-size: 14px;
    content: '\e608';
    font-family: 'luma-icons';
    color: #000;
}

.sidebar-menu li img {
    margin-right: 5%;
    max-height: 30px;
    height: 30px;
    min-width: 30px;
    width: 30px;
    margin-left: 10px;
}

.sidebar-menu {
    display: block;
}


.flyout-panel {
    position: fixed;
    top: 276px;
    left: -350px;
    /* Start hidden (same as sidebar) */
    width: 320px;
    /* Same width as sidebar */
    height: calc(100% - 300px);
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 9998;
    /* Slightly less than sidebar */
    padding: 15px;
    overflow-y: auto;
}

/* When sidebar is active AND flyout is active */
.sidebar-menu.active + .flyout-panel.active,
.flyout-panel.active {
    left: 320px;
    /* Position exactly to the right of sidebar */
}

.sidebar-menu .category-item.active {
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}

/* Sticky state aligns menu and flyout to viewport top */
.sidebar-menu.sticky {
    top: 0;
    height: 100%;
}

.sidebar-menu.sticky + .flyout-panel,
.flyout-panel.sticky {
    top: 0;
    height: 100%;
}

.flyout-panel {
    display: block !important;
}


.flyout-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flyout-panel ul li {
    border-bottom: none;
    min-height: 4.2rem;
    padding-bottom: 3px;
    padding-top: 3px;
    margin: 0;
}

.flyout-panel li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 4px 4px;
}

.flyout-panel li a:hover {
    font-weight: 600;
}

.flyout-panel li img {
    margin-right: 5%;
    max-height: 30px;
    height: 30px;
    min-width: 30px;
    width: 30px;
    margin-left: 10px;
}

.flyout-panel .flyout-category-item:hover {
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
}
/* Moving Header Strip Styles */
.header-strip-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    background-color: #605dba;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.header-strip-content {
    display: flex;
    animation: scroll-left 60s linear infinite;
    will-change: transform;
}

.header-strip-content:hover {
    animation-play-state: paused;
}

.header-strip-item {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 0 32px;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-strip-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.header-strip-item .icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.header-strip-item .text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.header-strip-item .separator {
    margin-left: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}
.summary__field.product {
    flex-wrap:nowrap;
}
.button--outline:hover, a.button--outline:hover {
    background-color: #364064;
    border-color: #364064;
    color: #fff;
}
button.button.button--plain.co-modal__close {
    width: 30px;
    height: 30px;
    background: none;
}

/* Animation keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .country-popup-wrapper {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .country-list {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        width: 100%;
        flex: auto;
    }

    .country-flag {
        width: 100%;
        height: auto;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-description {
        font-size: 14px;
    }

    .selected-flag {
        width: 80px;
        height: 80px;
    }

    .customer-type-buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Close Button */
    .country-modal-close {
        position: absolute;
        top: -8px;
        right: 9px;
        background: none;
        border: none;
        font-size: 36px;
        cursor: pointer;
        color: #333;
        z-index: 10001;
        line-height: normal;
    }

    /* Optional: Add hover effect for better user feedback */
    .country-modal-close:hover {
        color: #2c3e50;
        /* Darker shade on hover */
    }

    .popup-content {
        display: flex;
        text-align: center;
        padding: 20px;
        flex-direction: column-reverse;
    }

    #selected-country {
        margin: 0 !important;
        order: 5;
    }

    .customer-type-buttons {
        flex-direction: column;
        order: 1;
    }

    .popup-title {
        order: 3;
    }

    hr.gphr-sp {
        order: 4;
    }

    p#customer-type-text {
        order: 2;
        line-height: normal;
    }

    .customer-type-buttons button.primary,
    .customer-type-buttons .action.primary {
        padding: 10px 35px !important;
    }

    .owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-next, .owl-carousel button.owl-dot {

    }

    /* Dots Navigation */
    .owl-dots {
        text-align: center;
        padding-top: 15px;
    }

    .owl-dots .owl-dot {
        display: inline-block;
        margin: 0 5px;
        width: 12px;
        height: 12px;
        background-color: #ddd;
        border-radius: 50%;
        transition: background-color 0.3s;
    }

    .owl-dots .owl-dot.active {
        background-color: #007bff;
    }

    .owl-dots .owl-dot:hover {
        background-color: #0056b3;
    }
}





/* Desktop View: 4 products per row */
@media (min-width: 1024px) {
    .page-products .products-grid .product-item:nth-child(4n + 1) {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-products .products-grid .product-item {
        width: calc((100%) / 4) !important; /* 3 gaps of 2% */
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (min-width: 768px) {
    .cart-container .cart.table-wrapper .actions-toolbar > .action-edit,
    .cart-container .cart.table-wrapper .actions-toolbar > .action-delete {
        position: static
    }
}

@media (max-width: 1024px) {
    .page-layout-2columns-left .column.main {
        width: 69%;
    }

    .filter-no-options .filter-title:before {
        display: none;
    }

}

/* Tablet View: 3 products per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-products .products-grid .product-item:nth-child(3n + 1) {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-products .products-grid .product-item {
        width: calc((100%) / 3) !important; /* 2 gaps of 2% */
        margin: 0 !important;
        padding: 0 !important;
    }

    .catalog-product-view .fotorama__wrap {
        padding-left: 0;
    }

    .page-layout-2columns-left .sidebar-main {
        width: 100%;
        max-width: 100%;
    }

    .page-layout-2columns-left .column.main {
        width: 100%;
    }
}


/* Mobile View: 2 products per row */
@media (max-width: 767px) {
    .page-products .products-grid .product-item:nth-child(2n + 1) {
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-products .products-grid .product-item {
        width: calc((100%) / 2) !important; /* 1 gap of 2% */
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-layout-2columns-left .sidebar-main {
        width: 100%;
        max-width: 100%;
    }

    .filter .filter-current {
        border: solid #ccc;
        border-width: 1px 0;
        margin: 5px -10px 0;
    }

    .filter-no-options .filter-title:before {
        display: none;
    }

    .filter-title strong {
        background-color: #e46f44;
        box-shadow: none;
        border: none;
        color: white;
    }

    .header-top ul {
        display: none;
    }

    .panel.header .switcher {
        display: block !important;
    }

    .header-top .customer-type-country-row .customer-type {
        margin-right: 10px;
        margin-left: 15px;
    }

    .page-header .header.panel .switcher {
        position: absolute;
        bottom: 14px;
        right: 20px;
    }

    select#country_type {
        max-width: 100px;
    }

    select#customer_type {
        max-width: 170px;
    }

    .page-header .panel.wrapper {
        z-index: 10;
    }

    /*========== pdp page=============*/
    .catalog-product-view #configurable-grid-form {
        max-width: 100%;
        padding: 15px;
    }

    .catalog-product-view .column.main {
        display: flex !important;
    }

    .catalog-product-view .fotorama__wrap {
        padding-left: 0;
    }

    .cart-discount .content .input-text {
        max-width: 100%;
        min-width: auto;
    }

    button.action.apply.primary {
        padding: 0 11px !important;
    }

    .page-products .sorter {
        font-size: 0px;
    }


    /*div#configGrid_wrapper {*/
    /*    overflow-y: auto;*/
    /*    padding: 15px;*/
    /*}*/
    /*.catalog-product-view #configurable-grid-form table.dataTable tbody td {*/
    /*    justify-content: space-between;*/
    /*    display: flex;*/
    /*    text-align: right;*/
    /*    border: none;*/
    /*}*/
    /*.catalog-product-view #configurable-grid-form table.dataTable tbody td:before {*/
    /*    text-align: left;*/
    /*}*/
    /*.catalog-product-view #configurable-grid-form table.dataTable tbody tr{*/
    /*    background: white;*/
    /*    box-shadow: 0px 0px 10px #d7d7d7;*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*    padding: 10px;*/
    /*    padding-bottom: 20px;*/
    /*    position: relative;*/
    /*    border-radius: 0.5rem;*/
    /*    margin-bottom: 20px;*/
    /*}*/
}



@media (max-width: 767px) {
    .sidebar-menu {
        position: fixed;
        top: 0px;
        left: -350px;
        width: 320px;
        height: -webkit-fill-available;
        background: #fff;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        z-index: 9999;
        padding: 15px;
    }

    .flyout-panel {
        position: fixed;
        top: 0px;
        left: -350px;
        /* Start hidden (same as sidebar) */
        width: 320px;
        /* Same width as sidebar */
        height: -webkit-fill-available;
        background: #fff;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        z-index: 10000;
        /* Slightly less than sidebar */
        padding: 15px;
        overflow-y: auto;
    }

    .flyout-panel.active {
        left: 0px !important;
        /* Position exactly to the right of sidebar */
    }

}



/* Responsive design */
@media (max-width: 768px) {
    .header-strip-item {
        padding: 0 20px;
    }

    .header-strip-item .text {
        font-size: 13px;
    }

    .header-strip-item .separator {
        margin-left: 16px;
    }

}

@media (max-width: 480px) {
    .header-strip-wrapper {
        height: 44px;
    }

    .header-strip-item {
        padding: 0 16px;
    }

    .header-strip-item .text {
        font-size: 12px;
    }

    .header-strip-item .icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
}
