/* ============================================================
   Featured Designs - Arthur's Jewelers
   Brand: Navy #122A4D | Gold #C7A24C | Background #F7F3EE
   Mobile-first. Scoped under .fd-page so it never bleeds into
   the rest of the nopCommerce theme.
   ============================================================ */

.fd-page {
    --fd-navy: #122A4D;
    --fd-gold: #C7A24C;
    --fd-bg: #F7F3EE;
    --fd-ink: #1c2230;
    --fd-muted: #6c7280;
    --fd-white: #ffffff;
    --fd-radius: 4px;
    --fd-shadow: 0 10px 30px rgba(18, 42, 77, .12);
    --fd-shadow-hover: 0 18px 44px rgba(18, 42, 77, .20);
    --fd-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    --fd-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

    background: var(--fd-bg);
    color: var(--fd-ink);
    font-family: var(--fd-sans);
    /* Break out of the theme's centered container for full-bleed sections. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

.fd-page * { box-sizing: border-box; }

/* ---------------- Buttons ---------------- */
.fd-btn {
    display: inline-block;
    font-family: var(--fd-sans);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--fd-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    border: 1px solid transparent;
}
.fd-btn--gold {
    background: var(--fd-gold);
    color: var(--fd-navy);
    border-color: var(--fd-gold);
}
.fd-btn--gold:hover { background: #b9923f; border-color: #b9923f; color: #fff; transform: translateY(-2px); }
.fd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fd-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.75);
}
.fd-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.fd-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 88px 20px;
    display: flex;
    justify-content: center;
}
.fd-hero__inner { max-width: 760px; }
.fd-hero__title {
    font-family: var(--fd-serif);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.12;
    margin: 0 0 16px;
    color: #fff;
    letter-spacing: .01em;
}
.fd-hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .92);
}

/* ---------------- Toolbar (filters + search) ---------------- */
.fd-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 6px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}
.fd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.fd-filter {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fd-navy);
    padding: 9px 16px;
    border: 1px solid rgba(18, 42, 77, .18);
    border-radius: 40px;
    transition: all .2s ease;
    white-space: nowrap;
}
.fd-filter:hover { border-color: var(--fd-gold); color: var(--fd-gold); }
.fd-filter.is-active { background: var(--fd-navy); color: #fff; border-color: var(--fd-navy); }

.fd-search { display: flex; justify-content: center; gap: 0; }
.fd-search input[type="search"] {
    width: 100%;
    max-width: 360px;
    padding: 11px 16px;
    border: 1px solid rgba(18, 42, 77, .22);
    border-right: 0;
    border-radius: var(--fd-radius) 0 0 var(--fd-radius);
    font-size: 14px;
    outline: none;
    background: #fff;
}
.fd-search input[type="search"]:focus { border-color: var(--fd-gold); }
.fd-search__btn {
    border: 1px solid var(--fd-navy);
    background: var(--fd-navy);
    color: #fff;
    padding: 11px 20px;
    border-radius: 0 var(--fd-radius) var(--fd-radius) 0;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    cursor: pointer;
}
.fd-search__btn:hover { background: var(--fd-gold); border-color: var(--fd-gold); color: var(--fd-navy); }

/* ---------------- Grid (mobile-first: 1 col) ---------------- */
.fd-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 10px;
    display: grid;
    grid-template-columns: 1fr;          /* mobile: 1 */
    gap: 28px;
}
@media (min-width: 600px) {
    .fd-grid { grid-template-columns: repeat(2, 1fr); }   /* tablet: 2 */
}
@media (min-width: 992px) {
    .fd-grid { grid-template-columns: repeat(3, 1fr); }   /* desktop: 3 */
}

/* ---------------- Card ---------------- */
.fd-card {
    background: var(--fd-white);
    border-radius: var(--fd-radius);
    overflow: hidden;
    box-shadow: var(--fd-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.fd-card:hover, .fd-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--fd-shadow-hover);
}
.fd-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;           /* large, consistent imagery */
    overflow: hidden;
    background: #ece5db;
}
/* aspect-ratio fallback for very old browsers */
@supports not (aspect-ratio: 4 / 5) {
    .fd-card__media { height: 0; padding-bottom: 125%; }
    .fd-card__media .fd-card__img { position: absolute; inset: 0; }
}
.fd-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.fd-card:hover .fd-card__img { transform: scale(1.07); }   /* hover zoom */

.fd-card__body {
    padding: 22px 22px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}
.fd-card__cat {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fd-gold);
    font-weight: 600;
}
.fd-card__title {
    font-family: var(--fd-serif);
    font-size: 23px;
    font-weight: 600;
    color: var(--fd-navy);
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}
.fd-card__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 2px;
    background: var(--fd-gold);
}
.fd-card__desc {
    color: var(--fd-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---------------- Empty state ---------------- */
.fd-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: var(--fd-muted);
    font-size: 16px;
}
.fd-empty a { color: var(--fd-gold); }

/* ---------------- Pagination ---------------- */
.fd-pager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.fd-pager__link {
    min-width: 42px;
    text-align: center;
    padding: 10px 14px;
    border: 1px solid rgba(18, 42, 77, .18);
    border-radius: var(--fd-radius);
    text-decoration: none;
    color: var(--fd-navy);
    font-size: 14px;
    transition: all .2s ease;
}
.fd-pager__link:hover { border-color: var(--fd-gold); color: var(--fd-gold); }
.fd-pager__link.is-active {
    background: var(--fd-navy);
    color: #fff;
    border-color: var(--fd-navy);
    cursor: default;
}

/* ---------------- Fade-in on scroll ---------------- */
.fd-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.fd-reveal.fd-in { opacity: 1; transform: none; }

/* ---------------- Larger screens: roomier hero ---------------- */
@media (min-width: 768px) {
    .fd-hero { padding: 140px 20px; }
    .fd-hero__title { font-size: 52px; }
    .fd-hero__subtitle { font-size: 19px; }
    .fd-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 44px;
    }
    .fd-filters { justify-content: flex-start; }
    .fd-search { justify-content: flex-end; }
}

/* ---------------- Respect reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    .fd-card, .fd-card__img, .fd-reveal, .fd-btn {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
