@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,900;1,400;1,900&display=swap');

:root {
    --primary-color: #f5f5f5; /* Light gray background */
    --secondary-color: #333333; /* Dark gray for titles and text */
    --accent-color: #888888; /* Medium gray for highlights */
    --text-color: #2d2d2d; /* Dark text color */
    --subtext-color: #7a7a7a; /* Light gray for subtext */
    --card-hover-bg: #e0e0e0; /* Light gray background on hover */
    --card-shadow: rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    --card-hover-shadow: rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
    --price-bg: #4d4d4d; /* Dark gray for price tag */
    --price-text: #ffffff; /* White text for price tag */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Styling */
#header {
    margin: 20px;
}

#header > h1 {
    text-align: center;
    font-size: 2rem;
    color:gray;
}

#header > p {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: var(--subtext-color);
}

/* Grid Layout for Cards */
.one {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding:20px;
}

/* Card Styling */
.card {
    font-family:'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: fit-content;
    border-radius: 10px; /* Rounded corners for card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff; /* White background for cards */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.card:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.card > div {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 2px solid #ddd; /* Soft border for separation */
}

.card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: transform 1s ease;
}

.card:hover .card-image > img {
    transform: scale(1.1); /* Zoom-in effect on hover */
}


/* Card Text Styling */
.card-text {
    margin: -20px auto;
    height: 250px;
    width: 90%;
    background-color: var(--primary-color); 
    color: var(--accent-color);
    padding: 20px;
    border-radius: 0 0 10px 10px; /* Rounded corners at the bottom */
}

.card-price {
    width: 70px;
    height: 70px;
    background-color: #970C0A; /* Deep red for price tag */
    color: #fff;
    margin-left: auto;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.card a{
    text-decoration: none;
}

.more{
    color: var(--accent-color); 
}

/* Responsive layout adjustments */
@media (min-width: 768px) {
    .one {
        grid-template-columns: 1fr 1fr; /* 2 columns on medium screens */
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .one {
        grid-template-columns: 1fr 1fr 1fr; /* 3 columns on large screens */
        gap: 50px;
    }
}
