/* ════════════════════════════════════════════════════════════════
   MODA FINDS — shared customer-facing theme
   Used by: Catalog (live). Built to be reused as-is by Home, Terms &
   Conditions, and Contact once those pages are redesigned — keep new
   tokens/components here rather than duplicating them into page CSS.
════════════════════════════════════════════════════════════════ */

:root {
    /* brand */
    --primary:        #D63B7A;
    --primary-dark:   #B32E63;
    --primary-light:  #FBE4ED;
    --accent:         #B8873B;
    --accent-light:   #F3E6D0;

    /* surfaces */
    --bg-blush:       #FBF1F2;
    --bg-cream:       #FAF7F2;
    --surface:        #FFFFFF;
    --border:         #ECE0DE;

    /* text */
    --text:           #1F1F1F;
    --text-muted:     #6B6B6B;
    --text-on-dark:   #D8D0CE;

    /* footer */
    --footer-bg:      #1C1C1C;

    /* availability */
    --avail-fg:       #2E7D32;
    --avail-bg:       #E8F5E9;
    --avail-border:   #A5D6A7;
    --booked-fg:      #6B6B6B;
    --booked-bg:      #EFEFEF;
    --booked-border:  #DADADA;

    /* misc */
    --shadow:         0 2px 14px rgba(31, 15, 20, .06);
    --shadow-hover:   0 10px 30px rgba(31, 15, 20, .12);
    --radius:         14px;
    --radius-pill:    999px;

    /* type */
    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Montserrat', 'Poppins', sans-serif;
    --font-script:    'Great Vibes', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg-cream);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ── page-width wrapper (shared across every customer page) ── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }

h1, h2, h3, .font-heading {
    font-family: var(--font-heading);
    color: var(--text);
}

.font-script { font-family: var(--font-script); }

a { color: inherit; }

/* ── generic page hero (centered eyebrow/title/subtitle) ───
   For secondary pages (Contact, Terms, …) that don't need the Catalog
   hero's two-column layout. */
.page-hero {
    background: linear-gradient(135deg, var(--bg-blush) 0%, var(--bg-cream) 65%);
    border-bottom: 1px solid var(--border);
    padding: 52px 0 40px;
    text-align: center;
}
.page-hero .eyebrow { text-align: center; }
.page-hero h1 {
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 5.6vw, 4rem);
    font-weight: 400;
    margin-bottom: 14px;
}
.page-hero p {
    font-size: .96rem;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.65;
}
@media (max-width: 767px) {
    .page-hero { padding: 36px 0 28px; }
}

/* ── eyebrow label ──────────────────────────────────────── */
.eyebrow {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ── pill buttons ───────────────────────────────────────── */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    padding: 11px 24px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
    white-space: nowrap;
}
.btn-pill:active { transform: scale(.97); }
.btn-pill-primary {
    background: var(--primary);
    color: #fff;
}
.btn-pill-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-pill-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-pill-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-pill-sm { padding: 7px 16px; font-size: .8rem; }

/* ── header ─────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 300;
}
.site-header .header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1.1;
}
.site-logo-img {
    display: block;
    height: 40px;
    width: auto;
}
@media (max-width: 575px) {
    .site-logo-img { height: 32px; }
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.header-nav a {
    position: relative;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    padding-bottom: 4px;
    transition: color .15s;
}
.header-nav a:hover { color: var(--primary); }
.header-nav a.active { color: var(--primary); }
.header-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: background .15s, color .15s;
}
.header-contact-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.header-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
    background: #4338CA;
    color: #fff;
    transition: background .15s;
}
.header-dashboard-link:hover { background: #3730A3; color: #fff; }

.header-bag-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.header-bag-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.bag-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}
.header-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    padding: 4px;
}

@media (max-width: 991px) {
    .header-nav { display: none; }
    .header-burger { display: inline-flex; }
}
@media (max-width: 767px) {
    .site-header .header-inner { padding: 0 16px; }
}

/* ── footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-on-dark);
    padding: 44px 0 90px;
}
@media (min-width: 768px) {
    .site-footer { padding-bottom: 30px; }
}
.site-footer .footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.footer-brand .logo-tagline {
    font-size: .68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-on-dark);
    margin-top: 2px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.footer-nav a {
    font-size: .85rem;
    text-decoration: none;
    color: var(--text-on-dark);
    transition: color .15s;
}
.footer-nav a:hover { color: #fff; }
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.2);
    color: var(--text-on-dark);
    transition: transform .18s, background .18s, color .18s, border-color .18s;
}
.social-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.social-btn.fb:hover { background: #1877F2; }
.social-btn.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.tt:hover { background: #000; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    font-size: .78rem;
    color: rgba(216,208,206,.75);
}
.footer-script {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--primary-light);
}

/* ── mobile bottom tab bar ──────────────────────────────── */
.bottom-tabbar {
    display: none;
}
@media (max-width: 767px) {
    .bottom-tabbar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 400;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: .64rem;
        font-weight: 600;
        padding: 4px 2px;
    }
    .bottom-tabbar a i { font-size: 1.15rem; }
    .bottom-tabbar a.active { color: var(--primary); }
}

/* ── how it works strip ─────────────────────────────────── */
.how-it-works {
    background: var(--bg-blush);
    padding: 56px 0;
}
.how-it-works .hiw-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}
.how-it-works h2 {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2rem, 4.4vw, 2.8rem);
    margin-bottom: 36px;
}
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hiw-step { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hiw-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
}
.hiw-icon { font-size: 1.4rem; color: var(--accent); }
.hiw-title { font-weight: 700; font-size: .92rem; }
.hiw-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 767px) {
    .hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .how-it-works { padding: 40px 0; }
}

/* ── generic chip ───────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #F3C7DA;
    border-radius: var(--radius-pill);
    padding: 5px 8px 5px 12px;
    font-size: .76rem;
    font-weight: 600;
}
.chip button {
    background: none;
    border: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 2px;
    font-size: .9rem;
    line-height: 1;
}

/* ── "Clear all"-style plain text link ──────────────────── */
.clear-all-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 0;
}
.clear-all-link:hover { color: var(--primary); }
