/* File: shopify-products-styles.css */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.product .capsule {
    background: rgba(211, 47, 47, 0.75);
    font-size: 12px;
    height: 20px;
    border-radius: 20px;
    padding: 0.5px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 40;
    color: white;
    box-shadow: 0 0 4px rgba(211, 47, 47, 0.3);
    transition: all 0.25s ease-in-out;
}

.product:hover .capsule {
    background: rgba(211, 47, 47, 1);
}

.product .capsule.green {
    background: rgba(181, 117, 51, 0.9);
}

.product:hover .capsule.green {
    background: rgba(181, 117, 51, 1);
}


.product:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-image img {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
}

.product h4 {
    margin: 10px 0;
    font-size: 18px;
}

.product .price {
    font-weight: bold;
    color: #4caf50;
}

.product .details {
    text-decoration: underline;
    cursor: pointer;
    color: #007bff;
}

.product .description {
    display: none;
}

.add-to-cart,
.add-to-cart-modal {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover,
.add-to-cart-modal:hover {
    background-color: #45a049;
}

.add-to-cart.added,
.add-to-cart-modal.added {
    background-color: #888;
    cursor: not-allowed;
}

#cart-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
}

@media screen and (max-width: 768px) {
    #cart-container {
        bottom: 20px !important;
    }
}

#cart-icon {
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
}

#cart-icon svg {
    width: 24px;
    height: 24px;
}

#cart-count {
    background-color: #114a2f;
    color: white;
    width: 20px !important;
    height: 20px !important;
    padding: 0px !important;
    border-radius: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -5px;
    right: 0px;
    text-align: center;
    line-height: 1 !important;
    font-size: 14px;
    box-sizing: border-box !important;
}

#mini-cart {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#mini-cart .shopping {
    text-align: center;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    margin-bottom: -5px;
}

#mini-cart h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

#mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #4caf50;
    position: relative;
}

.cart-item .remove-item svg {
    stroke: white;
    height: 16px;
}

.cart-item .remove-item {
    position: absolute;
    transition: all 0.25s ease-in-out;
    right: 3px;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    width: 24px;
    border-radius: 24px;
    padding: 0px;
    box-sizing: border-box;
}

.cart-item .remove-item:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cart-item span {
    font-size: 16px;
    font-weight: 500;
}

.quantity-btn {
    cursor: pointer;
    padding: 3px 8px;
    background-color: #4dae51;
    border: 1px solid #4dae51;
    border-radius: 3px;
    font-size: 20px;
}

#checkout-button {
    width: 100%;
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#checkout-button:hover {
    background-color: #45a049;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#mini-cart-total {
    margin-top: 10px;
    font-weight: bold;
}

.toast {
    background-color: #333;
    color: white;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
    min-width: 250px;
}

.toast.show {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    margin: 150px auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.loading-dots:after {
    content: "...";
    animation: loading 1.5s infinite;
    display: inline-block;
    width: 20px;
    text-align: left;
}

@keyframes loading {
    0% {
        content: ".";
    }

    33% {
        content: "..";
    }

    66% {
        content: "...";
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-grid {
    grid-template-columns: repeat(1, 1fr);
}

#scroll-to-top {
    display: none !important;
}

.vamtam-button.accent1.button-solid.added {
    background: gray;
    opacity: 0.8;
}

.shopifyImagesContainer {
    /*  width: 300px; */
    height: 300px;
    text-align: center;
    margin: auto;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .shopifyImagesContainer {
        height: 270px;
    }
}

.shopifyImagesContainer div {
    background: #ffffff;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
}

.shopifyImagesContainer>.lastImage {
    transition: all 0.4s ease-in-out !important;
}

.shopifyImagesContainer>.lastImage {
    opacity: 0;
}

.shopifyImagesContainer:hover>.lastImage {
    opacity: 1;
}

.shopifyImagesContainer img {
    margin: 0 auto;
    width: auto;
    min-height: 300px;
    max-height: 300px;
    object-fit: contain;
}

/* Add these styles to your existing CSS file */

#mini-cart .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
    gap: 10px;
}

#mini-cart .cart-item img {
    margin-right: 0px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.cart-item .name {
    font-size: 16px;
    font-weight: 500;
}

.modal-description>div {
    display: flex;
    gap: 30px;
}

.modal-description>div>.images {
    width: 40%;
    position: relative;
}

.modal-description .images .bx-wrapper {
    position: relative;
}

@media screen and (max-width: 768px) {
    .modal-description>div {
        flex-direction: column;
    }

    .modal-description>div>.images {
        width: 100%;
    }
}

.modal-description>div .bx-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 100;
}

.modal-description>div .bx-controls .bx-controls-direction {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

.modal-description>div .bx-controls .bx-controls-direction a {
    display: flex;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease-in-out;
    font-size: 20px;
}

.modal-description>div .bx-controls .bx-controls-direction a:hover {
    background: rgba(0, 0, 0, 0.75);
}

.modal-description .details {
    width: 60%;
}

.modal-description .details,
.modal-description .details>div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media screen and (max-width: 768px) {
    .modal-description .image-slider {
        width: 100%;
    }

    .modal-description .details {
        width: 100%;
    }
}

#modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.23);
    display: none;
}

.modal-content {
    background: #ffffff;
    border-radius: 14px;
    position: relative;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
    width: 640px;
    max-width: 92%;
    max-height: 500px;
    overflow: scroll;
}

.modal-content .product-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    row-gap: 40px;
}

#modal .close {
    font-size: 40px;
    position: absolute;
    right: 20px;
    top: 0px;
    cursor: pointer;
}

.product-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.images>.image-slider>.slide:not(:first-child) {
    display: none;
}

.modal-description .images img {
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .modal-description .images img {
        min-width: 300px;
        min-height: 300px;
    }
}

p:empty,
p:only-child:empty,
p:only-child:has(br),
p:has(span:only-child:empty),
p:has(span:only-child:has(br)) {
    display: none;
}

.modal-description>div>.images {
    min-height: 300px;
}

/* General styling for the container div */
/* Mobile: 2 columns */
@media (max-width: 767px) {
    div[data-node="abwspj8ytlne"] {
        display: grid;
        gap: 0px;
        /* Adjust the space between columns/rows */
    }

    div[data-node="abwspj8ytlne"]::before {
        display: none;
    }

    div[data-node="abwspj8ytlne"] {
        grid-template-columns: repeat(2, 1fr);
        /* 2 equal-width columns */
    }
}

div[data-node="abwspj8ytlne"] img {
    transition: all 0.4s ease-in-out;
}

div[data-node="abwspj8ytlne"] img:hover {
    opacity: 0.84;
}

.image-slider img {
    max-width: 200px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

#shopify-products {
    max-width: 1200px;
    margin: 0 auto;
}

.modal-description .slide {
    text-align: center;
}

#shopify-products .bx-viewport,
#shopify-products .bx-wrapper .image-slider,
#shopify-products .bx-wrapper .slide {
    min-height: 206px !important;
}

#shopify-products-search-container {
    max-width: 1200px !important;
    margin: 0 auto;
    outline: none !important;
    box-shadow: none !important;
}

.product-grid .product {
    transition: opacity 0.18s cubic-bezier(.4, 0, .2, 1), transform 0.18s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
}