@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Noto+Serif+Kannada:wght@100..900&family=Poppins:wght@300;400;500;700;800&display=swap');

:root{
    --main-color: #313186;
    --second-color: #C11C43;
    --light-red: #C11C4359;
    --light-pink: #FFC2D0;
    --text-color: #000;
    --white-color: #fff;
    --body-color: #fff6f6;
}

*{
    font-family: "Jost", sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Jost", sans-serif;
}
.all-products-section{
    width: 90%;
    margin: 0 auto;
}

.section-title{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: var(--main-color);
}
.short-line{
    width: 5px;
    height: 30px;
    background-color: var(--main-color);
}
.product-name{
    width: 100%;
    height: 50px;
    overflow: hidden;
    margin-top: 10px;
}

.product-name p{
    margin: 0;
    padding: 0;
}
.product-img{
    width: 100%;
    height: 150px;
    background-color: rgba(215, 220, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
}
.product-img img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.product-items{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card{
    padding: 10px;
    display: block;
    margin-bottom: 40px;
}
.product-card .ratings{
    color: goldenrod;
    font-size: 0.8rem;
}
.cart-button a{
    border: 1px solid var(--main-color);
    padding: 5px 10px;
    background-color: transparent;
    color: var(--main-color);
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
}

.cart-button a:hover{
    background-color: var(--main-color);
    color: var(--white-color);
}
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: left;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

input, textarea {
    width: 95%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

button {
    background: #000080;
    color: #fff;
    padding: 10px 15px;
    font-weight: 500;
    letter-spacing: 1.2px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
    border: 1px solid #000080;
    border-radius: 10px;
}

button:hover {
    background-color: transparent;
    color: #000080;
}

@media (max-width: 1200px) {
    .product-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px){
    .product-items{
        grid-template-columns: repeat(2, 1fr);
    }
    .product-name{
        font-size: 0.8rem;
    }
    .cart-button{
        gap: 20px;
    }
    .cart-button a {
        width: 100%;
        font-size: 1rem;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 500px) {
    .product-items {
        grid-template-columns: repeat(1, 1fr);
    }
    .product-img {
        width: unset;
    }
    .product-container {
        width: 90%;
    }
}