
/* PRODUCT PAGE */
.product .product-filters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
}

.isotope-layout {
    position: relative;
    z-index: 0;

}

.product-item {
    margin-bottom: 30px;

}


.product-overlay,
.floating-cart-btn,
.cart-sidebar,
.product-modal {
    z-index: 10;

}
#payment-modal {
    z-index: 9999;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    /* Changed from 1001 to 9999 */
    justify-content: center;
    align-items: center;
}

/* Ensure modal content also has high z-index */
.modal-content {
    background: white;
    padding: 30px;
    width: 500px;
    max-width: 90%;
    border-radius: 5px;
    position: relative;
    z-index: 10000 !important;
}

/* If your header/navigation has a specific class, lower its z-index */
.navbar,
.header,
.main-header,
.top-header,
nav {
    z-index: 1000 !important;
}



.product .product-filters li {
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px 10px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    font-family: var(--heading-font);
}

.product .product-filters li:hover,
.product .product-filters li.filter-active {
    color: var(--contrast-color);
    background-color: var(--accent-color);
}

/* Product card styling - uniform size and overlay */
.product-item {
    margin-bottom: 30px;
}

.product-item .card {
    height: 250%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.product-item .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item .card-img-top:hover {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
}

.product-overlay .card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-overlay .card-text {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.product-overlay .price {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}
.product-overlay .buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-overlay .btn-details {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-overlay .btn-details:hover {
    background-color: var(--accent-color-hover);
    color: #502b81;
}
.btn-details,
.btn-primary {
    background-color: #006400;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s,transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #502b81;
}
.product{
    margin-top: 100px;
}

/* Product Modal Styles */
.product-modal {
    display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        justify-content: center;
        align-items: center;

    }
.payment-modal.modal{
display: flex;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 10000;
}
 .product-modal-content {
    background-color: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.product-modal-close:hover {
    color: #000;
    background-color: #fff;
    transform: scale(1.1);
}

.product-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.product-modal-body {
    padding: 25px;
}

.product-modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-modal-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color, #007bff);
    margin-bottom: 20px;
}

.product-modal-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-modal-details h6 {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.product-modal-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-details li {
    padding: 5px 0;
    color: #555;
}

.product-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-modal-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.product-modal-btn.btn-primary {
    background-color: var(--accent-color, #007bff);
    color: white;
}

.product-modal-btn.btn-primary:hover {
    background-color: var(--accent-color-hover, #0056b3);
    transform: translateY(-2px);
}

.product-modal-btn.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.product-modal-btn.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        margin: 20px;
    }

    .product-modal-image {
        height: 250px;
    }

    .product-modal-body {
        padding: 20px;
    }

    .product-modal-title {
        font-size: 20px;
    }

    .product-modal-actions {
        flex-direction: column;
    }

    .product-modal-btn {
        min-width: 100%;
    }

    .product-card-image-container {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .product .product-filters li {
        font-size: 14px;
        margin: 0 0 10px 0;
    }
}

/*cart page*/
/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-item {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #888;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background: #f5f5f5;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}

.remove-item {
    color: #ff5252;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Floating Cart Button Styles */
.floating-cart-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.floating-cart-btn i {
    font-size: 24px;
}
.cart-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Add to Cart Button Styles */
.btn-add-to-cart {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #45a049;
}

    /* Payment Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        background: white;
        padding: 30px;
        width: 500px;
        max-width: 90%;
        border-radius: 5px;
        position: relative;
    }

    .close-payment {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .form-row {
        display: flex;
        gap: 15px;
    }

    .form-row .form-group {
        flex: 1;
    }

    .payment-options {
        margin: 20px 0;
    }

    .payment-method {
        margin: 10px 0;
    }

    .btn-pay {
        width: 100%;
        padding: 12px;
        background: #4CAF50;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

    /* Overlay when cart is open */
    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    @media (max-width: 768px) {
        .cart-sidebar {
            width: 100%;
            right: -100%;
        }

        .modal-content {
            width: 90%;
        }
    }

