/* === 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: 480px; /* card height (reduced from 620px to remove void) */
    --fo2-img-h: 340px; /* image area height */
}

.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);
}

/* Content fills remaining space; CTA pinned to bottom */
.fo2-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 22px;
    position: relative;
    z-index: 2; /* keep text/links above image overlay */
}

.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 16px 0;
    color: var(--cozzicotton-gold);
}

.fo2-card .art-card__link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--fo2-img-h); /* only over the image */
    z-index: 1; /* sits above the image */
    display: block;
}

.fo2-btn {
    /* mirror .btn-flare from in_demand.css */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
    background: var(--cozzicotton-primary);
    border: 1px solid var(--cozzicotton-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(233, 132, 26, .30);
    transition: background .2s ease, box-shadow .2s ease, transform .06s ease;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.fo2-btn:hover,
.fo2-btn:focus {
    background: var(--cozzicotton-primary-hover);
    border-color: var(--cozzicotton-primary-hover);
    box-shadow: 0 14px 30px rgba(233, 132, 26, .38);
}

.fo2-btn:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(233, 132, 26, .28);
}

/* 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;
    }
}

/* Keep CTA label white with no underline across all link states */
.fo2-btn,
.fo2-btn:link,
.fo2-btn:visited,
.fo2-btn:hover,
.fo2-btn:focus,
.fo2-btn:active {
  color: #fff !important;
  text-decoration: none !important;
  outline: none;
}
