@import url("./components/header.css");

/* =========================
   Shared headings
========================= */

.section-heading,
.seasonal-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-heading h2,
.seasonal-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    font-weight: 500;
    color: var(--sf-heading);
}

.section-heading h2 span {
    font-style: italic;
    color: var(--sf-heading-accent);
}

.seasonal-heading p {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
}

.line {
    height: 1px;
    background: var(--sf-divider);
}

/* =========================
   Reusable product blocks
========================= */

.product-card {
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(107, 74, 86, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product image frame:
   Keeps all ptoduct cards consistent.
   Images are cropped to fit this frame.
   Recommended upload: portrait (4:5)
 */
.product-image {
    aspect-ratio: 4 / 5;
    border-bottom: 1px solid var(--sf-card-border);
    overflow: hidden;
    background: var(--sf-card-image-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem 1rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--sf-heading);
}

.product-info p {
    margin: 0 0 1rem;
    color: var(--sf-muted-text);
    font-size: 1rem;
}

.product-card-form {
    margin-top: auto;
}

.product-card-form button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid var(--sf-footer-border);
    padding: 1.5rem 1rem;
    background: var(--sf-footer-bg);
}

.site-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    text-align: center;
}

.site-footer__blurb,
.site-footer__copyright {
    margin: 0;
    opacity: 0.85;
}

.site-footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer__links a {
    color: inherit;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__links {
    justify-content: center;
    align-items: center;
    gap: 0;
}

.site-footer__links a {
    padding: 0 0.75rem;
}

.site-footer__links a + a {
    border-left: 1px solid rgba(128, 77, 101, 0.35);
}
