/* === Featured Originals — Product Card Layout (fixed-size desktop) ======= */
:root {
    /* Brand palette */
    --cozzicotton-primary: #B89658;
    --cozzicotton-primary-hover: #947844;
    --cozzicotton-gold: #d4af37;

    --fo2-bg: #f6f6f6;
    --fo2-card: #ffffff;
    --fo2-text: #171717;
    --fo2-muted: #6b7280;
    --fo2-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --fo2-radius: 14px;
    --fo2-gap: 24px;
    --fo2-accent: #df7a00;
    --fo2-accent-press: #c96b00;

    /* Fixed sizes (desktop). Adjust if your comp differs */
    --fo2-card-w: 480px; /* card width */
    --fo2-card-h: 460px; /* card height (CTA removed; tighter) */
    --fo2-img-h: 330px; /* a bit more image, still enough room for price + pills */
}

.fo2-section {
    background: var(--fo2-bg);
    color: var(--fo2-text);
    padding: clamp(48px, 7vw, 96px) 16px;
}

/* Container fits exactly 3 cards + 2 gaps, but never exceeds viewport */
.fo2-container {
    max-width: min(100%, calc(var(--fo2-card-w) * 3 + var(--fo2-gap) * 2));
    margin-inline: auto;
}

.fo2-header {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.fo2-title {
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(34px, 4.6vw, 56px);
}

.fo2-subtitle {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: var(--fo2-muted);
    font-size: clamp(15px, 1.5vw, 18px);
    margin-top: 10px;
}

/* =================== GRID =================== */
/* Start: single column centered */
.fo2-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--fo2-gap);
}

/* ≥1024px: 2 fixed columns */
@media (min-width: 1024px) {
    .fo2-grid {
        grid-template-columns: repeat(2, var(--fo2-card-w));
        justify-content: center;
        justify-items: stretch;
    }
}

/* ≥1500px: 3 fixed columns (fits container) */
@media (min-width: 1500px) {
    .fo2-grid {
        grid-template-columns: repeat(3, var(--fo2-card-w));
    }
}

/* =================== CARD =================== */
.fo2-card {
    background: var(--fo2-card);
    border-radius: var(--fo2-radius);
    box-shadow: var(--fo2-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* fixed desktop size */
    width: var(--fo2-card-w);
    height: var(--fo2-card-h);
    position: relative;
}

/* Fixed-height image area; image never grows the card */
.fo2-media {
    width: 100%;
    height: var(--fo2-img-h);
    background: #eaeaea;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.fo2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform .6s ease;
}

/* zoom on hover like in_demand */
.fo2-card:hover .fo2-img {
    transform: scale(1.08);
}

.fo2-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 16px;
    position: relative;
    z-index: 2; /* keep text/links above image overlay */
    pointer-events: none; /* allow overlay link to catch clicks in empty areas */
}

/* re-enable clicks on actual links (title + size pills) */
.fo2-body a {
    pointer-events: auto;
}

.fo2-name {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    font-weight: 700;
    font-size: clamp(18px, 1.7vw, 20px);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo2-name,
.fo2-name a {
    color: var(--fo2-text) !important; /* force dark text */
    text-decoration: none; /* remove underline */
}

/* same hover as in_demand: orange + underline */
.fo2-name a:hover,
.fo2-card:hover .fo2-name a {
    color: var(--cozzicotton-primary-hover) !important; /* your signature orange */
    text-decoration: none; /* no underline on hover */
}

.fo2-byline {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: var(--fo2-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo2-byline .fo2-author {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

/* Author link states */
.fo2-byline .fo2-author {
    transition: color .15s ease, text-decoration-color .15s ease;
}

.fo2-byline .fo2-author:hover,
.fo2-byline .fo2-author:focus {
    color: #B89658; /* your signature orange */
    text-decoration: underline; /* gives a clear link affordance */
    text-underline-offset: 2px;
}

.fo2-byline .fo2-author:active {
    color: #D98C1B; /* slightly darker on press */
}

.fo2-price {
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    margin: 0 0 10px 0;
    color: var(--cozzicotton-gold);
}

/* Size pills inside Best Sellers: slightly tighter so CTA never clips */
.fo2-body .cc-size-row--card {
    margin-top: 6px; /* was 8px (from catalogue-grid.css) */
    margin-bottom: 6px;
    gap: 5px;
}

.fo2-body .cc-size-pill {
    padding: 4px 8px; /* slightly smaller than global */
    font-size: 11px;
}

.fo2-card .art-card__link-overlay {
    position: absolute;
    inset: 0; /* full-card click target */
    z-index: 1; /* sits above the image */
    display: block;
}

/* visible keyboard focus for accessibility */
.fo2-card:focus-within {
    outline: 2px solid var(--cozzicotton-primary-hover);
    outline-offset: 4px;
}

/* Hover lift */
@media (hover: hover) and (pointer: fine) {
    .fo2-card {
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .fo2-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
    }
}

/* =================== RESPONSIVE =================== */
/* On narrow screens, let the card height be natural to avoid big white bands */
@media (max-width: 1023px) {
    .fo2-card {
        width: min(100%, 520px);
        height: auto;
    }

    .fo2-media {
        height: clamp(220px, 45vw, var(--fo2-img-h));
    }

    .fo2-container {
        padding-inline: 8px;
    }
}
