@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #5B21B6;
    --hover-color: #4C1D95;
    --bg-light: #f7fafc;
    --text-dark: #2d3748;
    --border-color: #d1d5db;
    --dark-border-color: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --hover-shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --dark-card-bg: #1f2937;
    --padding-x: 24px;
    --padding-y: 16px;
    --font-family: "Josefin Sans", sans-serif;
    --font-weight-bold: 700;
    --font-size-lg: 1.125rem;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
    font-weight: var(--font-weight-bold);
    font-size: 20px;
    background-color: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1152px;
    padding: var(--padding-y) var(--padding-x);
}

.link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.fa-icon {
    height: 32px;
    width: 32px;
    margin-right: 8px;
    color: var(--primary-color);
}

.brand-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px var(--hover-shadow-color);
    padding: var(--padding-y) 0;
    z-index: 10;
}

.nav.open {
    display: block;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
    }
}

.nav-link {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--hover-color);
}

.home-container,
.product-listings-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.page-heading-container {
    text-align: center;
    max-width: 576px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-heading-paragraph {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #4b5563;
}

.product-card {
    width: 18rem;
    border-radius: 0.375rem;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 6px var(--hover-shadow-color);
}

.product-card-image-container {
    position: relative;
    width: 100%;
    height: 18rem;
    border-bottom: 1px solid var(--border-color);
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.product-card-image:hover {
    transform: scale(1.1);
}

.product-card-details {
    height: 12rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-card-description {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-price {
    --tw-bg-opacity: 1;
    background-color: rgb(245 243 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(91 33 182 / var(--tw-text-opacity, 1));
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem 0 0 0;
}

.product-listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.5rem;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .product-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-listings-empty {
    text-align: center;
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}