body {
    font-family: sans-serif;
    background: #fff;
    color: #1d1d1f;
}

header {
    font-weight: bold;
    font-size: 2rem;
    padding-top: 1rem;
    text-align: center;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.link-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.link-container a {
    font-size: 2rem;
    color: #0071e3;
    text-decoration: none;
}

.link-container a:hover {
    text-decoration: underline;
}

.product-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    width: 100%;
    gap: 0.75rem;
    margin: 2rem 0;
}

.featured {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    main {
        padding: 0.25rem;
    }

    .link-container a{
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .product-2 {
        grid-column: span 2;
        grid-row: 1;
    }

    .product-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .product-3 {
        grid-column: 2;
        grid-row: 2;
    }

    .product-4 {
        grid-column: 1;
        grid-row: 3;
    }

    .product-5 {
        grid-column: 2;
        grid-row: 3;
    }

    .featured {
        grid-column: span 2;
    }

    .product-name {
        font-size: 0.5rem;
        min-height: 2.4rem;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    width: 100%;
    height: auto;
    border-radius: 16px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #F5F5F7;
    align-items: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-info {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem
}

.product-name {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    min-height: 3.2rem;
    max-height: calc(1.4em * 2);
    display: -webkit-box;
    align-items: flex-start;
    justify-content: center;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-name:hover {
    color: #0071e3;
    text-decoration: underline;
}

.product-price {
    color: #555;
    text-align: center;
    margin-top: auto;
    font-size: 1.2rem;
}

.color-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.periwinkle { background: #7986C1; }
.peony { background: #FC89C2; }
.aquamarine { background: #D3E5D7; }
.tangerine { background: #FD7867; }
.starfruit { background: #EFDF58; }
.ultramarine { background: #434D92; }
.lakegreen { background: #4B615F; }
.fuschia { background: #B6407C; }
.winterblue { background: #7897B6; }
.white { background: #F7F7F7; }
.black { background: #323433; }