/* fonts */ 
@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');

/* margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* background color */
body {
    background-color: #fdf6e4cc;
}

/* header background and font */
header {
    background: #e09ca3;
    width: 100%;
    line-height: 70px;
    text-align: center;
    padding-top: 35px;
    padding-bottom: 15px;
    font-size: 30px;
    font-family: "Henny Penny", serif;
    color: #db5252;
}

nav {
    background: #f3b8be;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    font-family: "Goudy Bookletter 1911", serif;
}

a {
    color: #db5252;
    text-decoration: none;
    transition-property: all;
    transition-duration: .2s;
}

a:hover {
    font-size: 21px;
    font-weight: bold;
}

/* text styling */
h2 {
    color: #db5252;;
    font-size: 30px;
    margin-bottom: 5px;
    margin-top: 8px;
}

p {
    background-color: rgba(252, 246, 230, 0.8);
    border-radius: 10px;
    padding: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    color: #54524fcc;
    font-family: "Goudy Bookletter 1911", serif;
}

.price {
    background-color: transparent;
    font-weight: bold;
    font-size: 22px;
    color: #373533cc;
}

/* image styling */
img {
    width: 350px;
    border-radius: 10px;
}

/* product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px;
    max-width: 1300px;
    margin: auto;
}

/* product cards */
.product-card {
    background: url(images/download\ \(4\).jpg);
    background-size: cover;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(1, 1, 1, 0.2) 2px 2px 10px 0px;
    text-align: center;
    transition-property: all;
    transition-duration: .2s;
}

/* hovering */
.product-card:hover {
    transform: scale(1.02);
    box-shadow: rgba(1, 1, 1, 0.2) 4px 4px 15px 0px;
}

/* button */
button {
    background: #f3b8be;
    color: #fcf9efcc;
    font-family: "Goudy Bookletter 1911", serif;
    font-weight: bolder;
    font-size: 18px;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    cursor:pointer;
}

button:hover {
    background: #eb9da5;
}

/* footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 15px;
    color: #db5252;
}

/* responsive design */
@media (min-width: 481px) and (max-width: 1024px) {
    header {
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 1100px;
    }
    .product-card {
        width: 350px;
    }
    img {
        width: 310px;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    header {
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        max-width: 1000px;
    }
    .product-card {
        width: 290px;
    }
    img {
        width: 250px;
    }
}


