/* -----Image Section-----  */
.product-overview-area .image-section .main-image {
    max-width: 500px;
}

.product-overview-area .image-section .main-image img {
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.product-overview-area .image-section .gallery-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.product-overview-area .image-section .gallery-images img {
    border: 1px solid #eeeeee;
    cursor: pointer;
    width: 70px;
    height: 70px;
    object-fit: contain;
    object-position: center;
}

.product-overview-area .image-section .banner {
    width: 100%;
    height: 100px;
}

.product-overview-area .image-section .banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* -------Spec section-------  */

.product-overview-area .product-info-short .short-description .list {
    margin-top: 10px;
    font-size: 14px;
    margin-left: 15px;
    color: #334155;
    line-height: 22px;
}

.product-overview-area .product-info-short .payment .methods .box .price {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 5px;
}

.product-overview-area .product-info-short .payment .actions {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-overview-area .product-info-short .payment .actions .quantity {
    height:52px;
    display: inline-block;
    border: 1px solid #000;
}

.product-overview-area .product-info-short .payment .actions .quantity span {
    padding: 6px 12px !important;
    display: inline-block;
    padding: 10px;
    cursor: pointer;
}

.product-overview-area .product-info-short .payment .actions .quantity input {
    padding: 0;
    border: none;
    text-align: center;
    font-weight: bold;
}

.product-overview-area .product-info-short .payment .actions button#button-cart {
    border: 0;
    font-weight: 700;
    background-color: black;
    line-height: 16px;
    color: white;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overview-area .product-info-short .payment .actions button#buy-now {
    border: 0;
    font-weight: 700;
    background-color: var(--maingreen)!important;
    line-height: 16px;
    color: var(--secondarycolor) !important;
    padding: 10px 30px;
    height:52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overview-area .product-info-short .payment .actions button.compare-button {
    border: 0;
    font-weight: 700;
    background-color: transparent;
    color: black;
    padding: 10px 10px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-oprions{
    display: flex;
    gap: 15px;
    align-items: center;
}

.magnify-gallery {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.magnify-main {
    position: relative;
    flex: 1 1 400px;
}

.magnify-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.magnify-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.magnify-zoom-box {
    display: none;
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #aaa;
    pointer-events: none;
}

.magnify-zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: 500px;
    height: 500px;
    background-repeat: no-repeat;
    background-size: 200%;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: none;
    z-index: 9999;
}

.magnify-thumbs {
    display: inline-flex;
    gap: 12px;
}

.magnify-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
}

.magnify-thumbs img:hover,
.magnify-thumbs img.active {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Modal base */

.magnify-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
}

.magnify-modal.active {
    display: flex;
}

.magnify-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 9999;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    user-select: none;
}

.modal-arrow.left {
    left: 30px;
}

.modal-arrow.right {
    right: 30px;
}

/* Clearer magnifier zoom */
.magnify-zoom-result {
    background-size: 300%; /* was 200% */
    background-repeat: no-repeat;
    background-position: center;
}
  
@media (max-width: 991px) {
    .product-overview-area .image-section {
        min-width: 25%;
    }
}

@media (max-width: 768px) {
    .magnify-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .magnify-zoom-result {
      position: relative;
      width: 100%;
      margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .product-overview-area {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    
    .product-overview-area .image-section {
        width: 100%;
    }
    
    .product-overview-area .image-section .main-image {
        max-width: 350px;
    }
    
    .product-overview-area .image-section .gallery-images img {
        width: 60px;
        height: 60px;
    }
    
    .product-overview-area .image-section .banner {
        max-height: 70px;
    }
    
    .product-overview-area .product-info-short .payment .actions button#button-cart,
    .product-overview-area .product-info-short .payment .actions button#buy-now{
        padding: 20px;
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .product-overview-area {
        padding: 15px;
    }
    
    .product-overview-area .product-info-short .short-info-badge .badge {
        font-size: 12px;
    }
    
    .product-overview-area .product-info-short .payment .methods {
        flex-direction: column;
    }
    
    .product-overview-area .product-info-short .payment .methods .box {
        max-width: 100%;
    }
    
    .product-overview-area .product-info-short .payment .actions {
        gap: 10px;
    }
    
    .product-overview-area .product-info-short .payment .actions button#button-cart, .product-overview-area .product-info-short .payment .actions button#buy-now {
        padding: 10px;
        height: 45px;
        font-size: 12px;
    }
    
    .product-overview-area .product-info-short .payment .actions button.compare-button {
        display: none;
    }
}

@media (max-width: 400px) {
    .product-overview-area .product-info-short .payment .actions button#button-cart, .product-overview-area .product-info-short .payment .actions button#buy-now {
        font-size: 10px;
    }
}