@font-face {
    font-family: 'Monts';
    src: url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('woff2'),
        url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}





body {
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
}

body.dark header {
    background-color: rgb(66 66 66 / 60%);
}

.main-content {
    max-width: 1500px;
    background-color: whitesmoke;
}

@media (min-width: 1500px) {
    body {
        align-items: center;
    }

    .order-summary-container {
        min-width: 390px;
    }
}



.in-stock {
    color: rgb(0, 167, 0);
}

.out-of-stock {
    color: rgb(220, 22, 22);
}


.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: solid rgba(0, 0, 0, 0.4) 1px;
    padding: 2px 2px;
    border-radius: 50px;
    background-color: white;
    gap: 5px;
}

.quantity-controls button {
    border: none;
    background-color: rgb(255, 255, 255);
    font-size: 16px;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: solid rgba(0, 0, 0, 0.2) 1px;
}

.quantity-controls button:hover {
    background-color: rgb(234, 234, 234);
}

.subtract-quantity-button {
    border-radius: 30px 0px 0px 30px;
}

.add-quantity-button {
    border-radius: 0px 30px 30px 0px;
}

.quantity-controls span {
    height: 30px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: black;
}


.price-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    align-items: center;
    padding: 10px 12px;
}


.change-currency-button {
    border-radius: 5px;
}

select {
    height: 35px;
    width: 70px;
    padding-inline: 5px;
    border-radius: 5px;
    cursor: pointer;
}






.order-summary-container {
    height: 82vh;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* border: solid rgb(222, 222, 222) 1.5px;
    padding: 2px;
    border-radius: 5px; */
}

.order-summary-container p {
    font-family: 'Monts', Arial, Helvetica, sans-serif;
}

.top-order-summary {
    border-radius: 5px;
    overflow: hidden;
    border: solid rgb(232, 232, 232) 1.5px;
    padding: 0px 20px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.03);
}

.order-summary-title-container {
    padding-block: 25px;
    font-size: 18px;
    font-weight: bold;
    color: #303030;
    border-radius: 5px 5px 0px 0px;
}

.order-summary-details-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding-block: 30px 10px;
    font-size: 14px;
}

.order-summary-details-container hr,
.top-order-summary hr {
    border: solid rgb(233, 233, 233) 1px;
}


.order-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5f5f5f;
}

.order-summary-total-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 20px;
    font-size: 24px;
    color: #333;
    gap: 15px;
}

.total-price {
    font-size: 22px;
}



.place-order-button {
    color: white;
    background-color: rgb(61, 0, 158);
    padding: 18px 40px;
    font-size: 14px;
    transition: 0.35s ease;
    border: none;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.place-order-button:hover {
    background-color: rgb(85, 0, 205);
    color: whitesmoke;
}

.place-order-button:active {
    background-color: rgb(218, 218, 218);
    color: #333;
}

.cart-items-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-container {
    display: flex;
}


.change-currency-button {
    padding: 9px 20px;
    background-color: #333;
    color: rgb(255, 255, 255);
    border: solid rgba(0, 0, 0, 0.482) 1px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.change-currency-button:hover {
    background-color: #5f5f5f;
}

.change-currency-button:hover img {
    transform: rotateZ(180deg);
}

.change-currency-button img {
    height: 17px;
    width: 17px;
    margin-left: 15px;
    object-fit: contain;
    transition: 0.3s ease;
}


@media (max-width: 1150px) {

    .cart-items-main-container {
        flex-direction: column;
    }

    .order-summary-container {
        margin-bottom: 50px;
    }

}

@media (min-width: 1150px) {

    .cart-items-main-container {
        flex-direction: row-reverse;
        justify-content: center;
    }

    .order-summary-container {
        position: sticky;
        top: 92px;
        max-width: 420px;
    }

}


@media (max-width: 795px) {
    .cart-items-main-container {
        padding: 20px 0px;
    }

    .cart-title {
        color: #2e2e2e;
    }

    .cart-items-title-container {
        background-color: rgb(255, 255, 248);
        border-radius: 10px;
        padding: 15px;
    }

    .order-summary-container {
        margin-bottom: 40px;
        padding: 0px 10px;
    }

    .top-order-summary {
        border-radius: 20px;
    }

    body.dark .top-order-summary {
        background-color: rgb(255, 255, 248);
    }

    .cart-item-name-container {
        justify-content: space-between;
    }

    .place-order-button {
        border-radius: 15px;
    }

    .favorites-button-container {
        justify-content: space-between;
        width: 100%;
    }

    .cart-items-container {
        gap: 25px;
        padding: 10px;
    }

    .cart-items-title-container {
        flex-direction: column;
        border-radius: 20px;
        box-shadow: 0px 0px 1.5px 3px rgba(0, 0, 0, 0.05);
    }

    .currency-container {
        width: 100%;
        justify-content: space-between;
        border-top: solid rgb(229, 229, 229) 1.5px;
        padding-block: 15px 0px;
        gap: 30px;
    }

    .currency-container .custom-dropdown-selected {
        min-width: 60px;
    }

    .currency-container .dropdown-icon-container {
        width: 55px;
    }

    .cart-item {
        flex-direction: column;
        background-color: rgb(255, 255, 248);
        padding: 220px 12px 15px 12px;
        position: relative;
        border: solid rgba(0, 0, 0, 0.08) 1.5px;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
        border-radius: 25px !important;

    }

    .cart-item-image-container {
        height: 200px;
        min-width: 100%;
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        z-index: 5;
        overflow: hidden;
        background-color: rgb(230, 230, 218);
        border-radius: 25px 25px 0px 0px;
        border: solid rgba(0, 0, 0, 0.1) 1px;
    }

    body.dark .cart-item-image-container {
        border: solid rgba(0, 0, 0, 0) 1px;
    }


    .options-container {
        padding: 0px 0px 1.5px 0px;
    }

    .total-price-container {
        gap: 20px;
        flex-direction: column-reverse;
    }

    .cart-item-total-price {
        padding: 5px 10px;
        text-align: left;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 20;
        /* border: solid rgba(55, 55, 55, 0.292) 1px; */
        border-radius: 50px;
        color: rgb(59, 59, 59);
    }

    .cart-item-name-container {
        margin-bottom: 5px;
    }

    .cart-item-name {
        padding-inline: 5px;
        padding-bottom: 10px;
    }

    .availability-price-container {
        justify-content: space-between;
        padding-inline: 5px;
        margin-bottom: 20px;
    }

    .favorites-button,
    .exclude-from-cart-button {
        background-color: rgb(255, 255, 255);
        padding: 13px 30px;
        flex: 1;
        align-items: center;
        justify-content: center;
    }

    .custom-options-container {
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 5px;
    }

    .custom-options-container div {
        flex: 1;
    }

    .dropdown-icon-container {
        max-width: 45px;
    }

    .quantity-controls {
        flex: 1;
        justify-content: space-between;
    }

    .quantity-controls button {
        width: 35px;
        height: 35px;
    }

    .custom-dropdown {
        flex: 1;
        height: 40.33px;
    }

    .toaster {
        left: 0px;
        right: 0px;
        bottom: 0px;
        padding: 20px 20px 15px 20px;
        border-radius: 0px;
        color: rgb(228, 228, 228);
    }

    .dropdown-icon-container {
        width: 30px;
    }

    .popup-modal {
        bottom: 70px;
    }

}

@media (min-width: 795px) {
    .cart-items-main-container {
        padding: 20px 20px;
    }

    .top-order-summary {
        border-radius: 15px;
    }

    .place-order-button {
        border-radius: 10px;
    }

    .cart-title {
        color: #2e2e2e;
    }

    .cart-items-container {
        gap: 6px;
        background-color: white;
    }

    .currency-container {
        gap: 10px;
    }

    .cart-item {
        height: 210px;
        padding: 20px 10px 10px 8px;
        border: solid rgba(0, 0, 0, 0.057) 1.5px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05);
        gap: 30px;
    }

    .cart-item-total-price {
        color: rgb(86, 86, 86);
    }

    .cart-item-image-container {
        height: 100%;
        min-width: 125px;
        max-width: 125px;
        border-radius: 15px;
        background-color: whitesmoke;
    }

    .cart-item-name-container {
        margin-bottom: 25px;
    }

    .cart-item-name {
        max-width: 220px;
    }

    .cart-item-image {
        border-radius: 15px;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
        border: solid rgba(0, 0, 0, 0.05) 1.5px;
    }

    .cart-item-image:hover {
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    }

    .favorites-button-container .favorites-button,
    .exclude-from-cart-button {
        width: 111.58px;
        max-height: 36.67px;
        background-color: rgb(241, 241, 241);
        padding: 10px 20px;
    }

    .options-container {
        padding: 20px 0px 1.5px 0px;
    }

    .quantity-controls button {
        width: 35px;
        height: 30px;
    }

    .custom-dropdown {
        height: 35.33px;
    }

    .total-price-container {
        flex-direction: column;
    }

    .toaster {
        left: 10px;
        bottom: 20px;
        padding: 12px 20px;
        border-radius: 5px;
        color: white;
        gap: 20px;
        font-size: 12px;
    }

    .dropdown-icon-container {
        width: 35px;
    }

    .popup-modal {
        bottom: 50px;
    }

}


.cart-items-main-container {
    display: flex;
    gap: 20px;
    margin-top: 72px;
}


.cart-items-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.06);
    min-width: 50%;
    max-width: 100%;
}

.cart-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 5px 12px;
}

.cart-items-container hr {
    border: solid rgb(232, 232, 232) 1px;
    margin-bottom: 10px;
}

.cart-item {
    width: 100%;
    display: flex;
    border-radius: 20px;
    filter: none;
    transition: 0.35s ease;
    position: relative;
}

.cart-items-container .cart-item:last-child {
    border-bottom: solid rgba(0, 0, 0, 0.1) 1.5px;
}


.cart-item-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: 0.35s ease;
}

.options-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    transition: 0.35s ease;

}

.options-value-container {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.cart-item-name-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    font-size: 12px;
}

.cart-item-name {
    font-size: 20px;
    color: #373737;
    transition: 0.35s ease;
}

.cart-item-gender {
    margin-top: 7px;
    transition: 0.35s ease;
    color: #333;
}


.availability-price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: #5c5c5c;
}

.cart-item-price {
    color: #5c5c5c;
    transition: 0.35s ease;
}

.availability-price-container hr {
    height: 18px;
    display: inline-block;
    margin: 0;
    padding: 0;
    border: solid rgb(158, 158, 158) 1px;
    transition: 0.35s ease;
}

.total-price-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5px 0px 1.5px 0px;
}

.cart-item-total-price {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transition: 0.35s ease;
}

.favorites-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.favorites-button-container .favorites-button,
.exclude-from-cart-button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: solid rgb(180, 180, 180) 1px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 50px;
    color: rgb(0, 0, 0);
    transition: 0.35s ease;
}

.favorites-button-container .favorites-button img,
.exclude-from-cart-button img {
    height: 14px;
    width: 14px;
    object-fit: contain;
    transition: background-color 0.3s ease, width 0.15s ease;
    filter: invert(0.8);
}

.exclude-from-cart-button img,
.exclude-from-cart-button p {
    filter: invert(35%) sepia(79%) saturate(1000%) hue-rotate(-20deg) brightness(100%) contrast(100%);
}

/* CSS to invert icon color */
.favorites-button-container .favorites-button img.invert-icon {
    filter: invert(72%) sepia(63%) saturate(622%) hue-rotate(329deg) brightness(102%) contrast(102%);
}

.favorites-button-container .favorites-button:hover,
.exclude-from-cart-button:hover {
    background-color: rgb(221, 221, 221);
    border: solid rgb(160, 160, 160) 1px;
}

















/* Popup Modal CSS */
.popup-modal {
    position: absolute;
    left: 0px;
    right: 0px;
    z-index: 190;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

.popup-modal button {
    padding: 8px 15px;
    border-radius: 10px;
    margin: 0px;
    background-color: transparent;
    color: rgb(235, 235, 235);
    border: solid rgba(255, 255, 255, 0.55) 1px;
    cursor: pointer;
    font-size: 12px;
}

.popup-modal button:hover {
    background-color: rgba(255, 255, 255, 0.162);
}

.popup-content {
    width: 100%;
    background: rgb(81, 81, 81);
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: rgb(237, 237, 237);
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}



#success-modal {
    opacity: 0;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
    transition: 0.3s ease;
}

.success-modal-content {
    min-width: 85%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    text-align: left;
    padding: 15px 20px;
    border-radius: 0px 0px 10px 10px;
    background-color: rgba(36, 166, 40, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}


.success-modal-text {
    font-size: 13px;
    text-align: left;
}

.close-button-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-modal {
    padding: 10px 40px;
    background-color: #4caf4f79;
    color: white;
    border: solid rgba(255, 255, 255, 0.82) 1px;
    border-radius: 50px;
    cursor: pointer;
}

#close-modal:hover {
    background-color: #45a049;
}



#success-modal[style*="display: flex;"] {
    opacity: 1;
}


#error-message {
    position: fixed;
    top: 72px;
    left: 0px;
    right: 0px;
    z-index: 100;
    display: none;
    color: white;
    padding: 15px;
    border: 1px solid red;
    background-color: #ff1b2e;
    font-size: 14px;
    flex-direction: column;
    gap: 5px;
}






.custom-options-container {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.custom-dropdown {
    position: relative;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
    border: solid rgba(0, 0, 0, 0.372) 1px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown:hover .dropdown-icon-container {
    background-color: whitesmoke;
}

.custom-dropdown-selected {
    display: block;
    font-size: 13px;
    padding: 9px 9px 9px 15px;
    border-radius: 50px;
    color: #333;
}


.custom-dropdown-options {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 21;
    font-size: 12px;
    flex-direction: column;
    border: solid #979797 1px;
}

.custom-dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
}

.custom-dropdown-option:hover {
    background-color: #f0f0f0;
}

.custom-dropdown .show {
    display: flex;
}

.custom-option {
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.dropdown-icon-container {
    height: 100%;
    border-radius: 0px 50px 50px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: solid rgb(207, 207, 207) 1px;
    transition: 0.2s ease;
}

.dropdown-icon {
    height: 15px;
    width: 15px;
    object-fit: contain;

}





.toaster {
    position: fixed;
    background-color: #333;
    font-size: 13px;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
}

.confirm-button,
.cancel-button {
    background: transparent;
    border: solid rgba(255, 255, 255, 0.495) 1.5px;
    color: rgb(224, 224, 224);
    cursor: pointer;
    padding: 8px 14px;
    margin: 3px;
    font-size: 12px;
    border-radius: 30px;
}

.confirm-button:hover,
.cancel-button:hover {
    background-color: rgb(87, 87, 87);
    color: white;
}


.toaster-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}

#currency-message {
    background-color: rgba(0, 134, 0, 0.904);
    color: white;
    padding: 10px;
    position: fixed;
    top: 70px;
    left: 0px;
    right: 0px;
    z-index: 100;
    font-size: 12px;
    padding: 20px;
}

#currency-message p {
    width: 100%;
    text-align: center;
}


#message-container {
    position: fixed;
    top: 70px;
    left: 0px;
    right: 0px;
    z-index: 100;
    display: none;
    padding: 17px;
    font-size: 14px;
    text-align: center;
    background-color: #ffd7db;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-height: 95vh;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    overflow-y: scroll;
    color: #333;
}

.out-of-stock-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

#outOfStockList {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 30px 10px 20px 10px;
    color: #333;
}

#outOfStockList p {
    padding: 7px 15px;
    border-radius: 30px;
    border: solid rgba(0, 0, 0, 0.6) 1px;
    font-size: 13px;
    color: rgba(51, 51, 51, 0.85);
}

.btn {
    padding: 10px 15px;
    border: none;
    margin: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    opacity: 0.8;
}

.cancel {
    background-color: gray;
    color: white;
}

.btn:not(.cancel) {
    background-color: #d9534f;
    color: white;
}


/* Loading Spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

.place-order-button.loading {
    pointer-events: none;
    /* Disable button clicks */
    opacity: 0.5;
    /* Make the button look disabled */
}


.empty-cart-message {
    padding: 20px;
    padding-top: 60px;
    height: 88vh;
    width: 100vw;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    text-align: center;
}

.empty-cart-message-text {
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.empty-cart-message-image {
    height: 25%;
    width: 25%;
    object-fit: contain;
    opacity: 0.5;
}

.empty-cart-message-image {
    filter: invert(0);
    transition: 0.3s ease;
}


body.dark .empty-cart-message-image {
    filter: invert(1);
}

.empty-cart-message-text {
    color: rgb(95, 95, 95);
    transition: 0.3s ease;
}

body.dark .empty-cart-message-text {
    color: rgb(219, 219, 219);
}