body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #fff;
}

h1,
h2,
h3 {
    font-family: 'Gayathri', sans-serif;
    font-weight: 400;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.navbar-logo img {
    max-height: 50px;
    object-fit: contain;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.product-grid {
    padding: 0 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.5s ease;
}

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

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-card h2 {
    padding: 0 10px;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 18px 0 10px;

}

.product-card p {
    padding: 0 10px;
    font-size: 1rem;
    font-family: 'Mundial', sans-serif;
    font-weight: 300;
    margin: 10px 0;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .product-grid {
        padding: 0 40px;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
    .product-grid {
        padding: 0 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card h2 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    z-index: 10;
}

.modal-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
    user-select: none;
}

.carousel-track img {
    min-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 50%;
}

.carousel-nav.prev {
    left: 8px;
}

.carousel-nav.next {
    right: 8px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots .dot {
    display: inline-block;
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: #333;
}



.modal-button-wrapper {
    text-align: center;
    margin: 6px;
}

.modal-button {
    display: inline-block;
    padding: 5px 24px;
    margin-top: 8px;
    background: transparent;
    color: #944B48;
    text-decoration: none;
    border: 1px solid #944B48;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-button:hover {
    background: #944B48;
    color: white;
}

.modal-content h2 {
    margin: 10px 10px;
    line-height: 1.3;
}

#modalTitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 6px 6px;
}

#modalType {
    font-size: 0.8rem;
    font-weight: 100;
    color: #555;
    margin: 6px 6px;
}

#modalDescription {
    font-size: 0.85rem;
    font-weight: 200;
    color: #444;
    margin: 6px 6px;
    line-height: 1.4;
}

#modalPrice {
    font-size: 1rem;
    font-weight: 400;
    margin: 6px 6px;
}

@media (max-width: 760px) {
    .modal-content {
        left: -20px;
        max-width: 90vw;
        padding: 12px;
        border-radius: 10px;
    }

    .modal-close {
        top: 12px;
        right: 16px;
        font-size: 1.3rem;
    }

    #modalTitle {
        font-size: 1.1rem;
        margin: 5px 5px;
    }

    #modalType,
    #modalDescription,
    #modalPrice {
        font-size: 0.8rem;
        margin: 5px 5px;
    }

    .modal-button {
        padding: 6px 20px;
        font-size: 1rem;
        margin-top: 7px;
    }

    .carousel-nav {
        font-size: 20px;
        padding: 4px 10px;
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        color: #000;
    }
}