/* === FOCUS STYLES === */
*:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus {
    top: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === CUSTOMER PAGE BACKGROUND === */
body.customer-page {
    background-color: var(--color-bg-warm);
}

/* === BRAND TITLE (Cinzel font for "The Daily Starter") === */
.brand-title {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

/* === SECTION HEADINGS (Cinzel for all customer h2s) === */
.section-heading {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

/* === CUSTOMER HEADER === */
header {
    background-color: var(--color-primary);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Sub-page header layout (order + products pages) */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* ===================================================
   SHARED PRODUCT GRID  (product library + order page)
   =================================================== */

/* Always 3 columns; collapses to 2 on small screens */
.lib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

@media (max-width: 600px) {
    .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* Individual card */
.lib-card {
    background: var(--color-warm-bg);
    border: 1px solid var(--color-warm-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.lib-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lib-card--sold-out { opacity: 0.6; }
.lib-card--sold-out:hover { transform: none; box-shadow: var(--shadow-md); }

/* Image container — always square, contain so full image is visible */
.lib-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f2ec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lib-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-card__emoji {
    font-size: 2.5rem;
}

/* Price badge overlaid on image */
.lib-card__price {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    background: white;
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* Product name row below image */
.lib-card__name {
    padding: 0.45rem 0.6rem 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-green);
    line-height: 1.3;
}

/* ======================================================
   Legacy .product-card / .product-image classes
   (kept for any remaining references)
   ====================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card.sold-out { opacity: 0.6; }
.product-card.sold-out:hover { transform: none; box-shadow: var(--shadow-md); }

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    overflow: hidden;
}

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

.product-image--md { font-size: 3rem; }
.product-image--lg { font-size: 3rem; }

.product-info { padding: 1.2rem; }

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-green);
    margin-bottom: 0.3rem;
}

.product-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-green);
}

/* === ANNOUNCEMENT BANNER === */
.announcement-banner {
    background-color: var(--color-primary);
    color: var(--color-text);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* === FOOTER === */
footer {
    background-color: var(--color-primary);
    color: var(--color-text);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
.footer-social { margin-bottom: 0.75rem; }
.footer-social a {
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--color-text);
    transition: color 0.2s;
}
.footer-social a:hover { color: #000; }
.footer-social svg { vertical-align: middle; }
.footer-links { margin-top: 0.5rem; font-size: 0.8rem; }
.footer-links a {
    color: var(--color-text);
    text-decoration: underline;
}
.footer-links a:hover { color: #000; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
