/* ════════════════════════════════════════════════════════════════
   BOLO'S HOMEPAGE
   Dark luxury, Cardo/Cormorant serif, gold accent #c9a84c
   Matches bolos-theme/product-page.css tokens for consistency
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
    --bh-bg:        #0a0a0a;
    --bh-card:      #111111;
    --bh-card-hi:   #161616;
    --bh-border:    #1a1a1a;
    --bh-border-hi: #2a2a2a;
    --bh-gold:      #c9a84c;
    --bh-gold-dim:  #a08235;
    --bh-cream:     #f5f0e8;
    --bh-text:      #999999;
    --bh-text-dim:  #555555;
    --bh-serif:     'Cormorant Garamond', 'Cardo', Georgia, serif;
    --bh-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset within homepage scope to avoid theme conflicts */
body.bolos-homepage-page,
body.bolos-homepage-page * {
    box-sizing: border-box;
}
body.bolos-homepage-page {
    margin: 0;
    padding: 0;
    background: var(--bh-bg);
    color: var(--bh-text);
    font-family: var(--bh-sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.bolos-homepage-page a {
    color: var(--bh-cream);
    text-decoration: none;
}

/* ════════════════════ HEADER ════════════════════ */
.bh-header {
    background: var(--bh-bg);
    border-bottom: 1px solid var(--bh-border);
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bh-header-logo img {
    height: 36px;
    width: auto;
    opacity: 0.95;
    display: block;
}
.bh-header-nav {
    display: flex;
    gap: 32px;
}
.bh-header-nav a {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--bh-text-dim);
    transition: color 0.2s;
}
.bh-header-nav a:hover { color: var(--bh-cream); }
.bh-header-nav a.gold { color: var(--bh-gold); }
.bh-header-nav a.gold:hover { color: var(--bh-gold-dim); }

/* ════════════════════ HERO ════════════════════ */
.bh-hero {
    text-align: center;
    padding: 64px 48px 40px;
    border-bottom: 1px solid var(--bh-border);
}
.bh-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--bh-gold);
    margin-bottom: 20px;
    font-weight: 500;
}
.bh-hero-tagline {
    font-family: var(--bh-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--bh-cream);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.35;
    font-style: italic;
}

/* ════════════════════ GRID SECTION ════════════════════ */
.bh-grid-section {
    padding: 32px 48px 64px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Sort bar ── */
.bh-sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bh-border);
}
.bh-sort-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--bh-text-dim);
}
.bh-sort-options {
    display: flex;
    gap: 4px;
}
.bh-sort-option {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--bh-text-dim);
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.2s;
    text-transform: uppercase;
}
.bh-sort-option:hover {
    color: var(--bh-cream);
    border-color: var(--bh-border-hi);
}
.bh-sort-option.is-selected {
    color: var(--bh-gold);
    border-color: var(--bh-gold);
}

/* ── Product grid ── */
.bh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bh-card {
    background: var(--bh-card);
    border: 1px solid var(--bh-border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
    display: block;
}
.bh-card:hover {
    border-color: var(--bh-gold);
    transform: translateY(-2px);
}
.bh-card-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bh-card-hi);
    overflow: hidden;
}
.bh-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bh-card-body {
    padding: 20px;
}
.bh-card-category {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--bh-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.bh-card-title {
    font-family: var(--bh-serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--bh-cream);
    line-height: 1.3;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}
.bh-card-price {
    font-family: var(--bh-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--bh-cream);
}

/* ── Empty state ── */
.bh-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--bh-text-dim);
    font-family: var(--bh-serif);
    font-size: 20px;
}

/* ── CTA row ── */
.bh-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--bh-border);
}
.bh-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--bh-gold);
    padding: 14px 32px;
    border: 1px solid var(--bh-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s;
}
.bh-cta-button:hover {
    background: var(--bh-gold);
    color: var(--bh-bg);
}
.bh-cta-arrow {
    font-size: 16px;
    line-height: 1;
}
.bh-cta-meta {
    font-size: 11px;
    color: var(--bh-text-dim);
    letter-spacing: 0.1em;
}

/* ════════════════════ CATEGORIES ════════════════════ */
.bh-categories-section {
    padding: 64px 48px;
    border-top: 1px solid var(--bh-border);
    max-width: 1400px;
    margin: 0 auto;
}
.bh-section-title {
    font-family: var(--bh-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--bh-gold);
    text-align: center;
    margin: 0 0 32px;
    text-transform: uppercase;
}
.bh-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.bh-cat-card {
    background: var(--bh-card);
    border: 1px solid var(--bh-border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
    display: block;
    color: var(--bh-cream);
}
.bh-cat-card:hover {
    border-color: var(--bh-gold);
    transform: translateY(-2px);
}
.bh-cat-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bh-card-hi);
    overflow: hidden;
}
.bh-cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}
.bh-cat-card:hover .bh-cat-image {
    filter: brightness(1);
}
.bh-cat-body {
    padding: 18px 20px;
    text-align: center;
}
.bh-cat-name {
    font-family: var(--bh-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--bh-cream);
    margin-bottom: 6px;
}
.bh-cat-count {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--bh-gold);
    text-transform: uppercase;
}

/* ════════════════════ FOOTER ════════════════════ */
.bh-footer {
    background: var(--bh-bg);
    border-top: 1px solid var(--bh-border);
    padding: 48px 24px;
    text-align: center;
}
.bh-footer-logo {
    height: 28px;
    opacity: 0.4;
    margin-bottom: 16px;
}
.bh-footer-tagline {
    font-size: 12px;
    color: var(--bh-text);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 16px;
}
.bh-footer-copy {
    font-size: 11px;
    color: var(--bh-text-dim);
    letter-spacing: 0.1em;
    margin: 0;
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 960px) {
    .bh-header { padding: 16px 24px; }
    .bh-header-nav { gap: 16px; }
    .bh-hero { padding: 48px 24px 32px; }
    .bh-hero-tagline { font-size: 22px; }
    .bh-grid-section { padding: 24px 24px 48px; }
    .bh-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .bh-categories-section { padding: 48px 24px; }
    .bh-categories { grid-template-columns: repeat(2, 1fr); }
    .bh-card-body { padding: 16px; }
    .bh-card-title { font-size: 17px; min-height: 44px; }
    .bh-card-price { font-size: 20px; }
}

@media (max-width: 600px) {
    .bh-header { padding: 12px 16px; }
    .bh-header-logo img { height: 28px; }
    .bh-header-nav { display: none; } /* hide nav on small mobile — keep header simple */
    .bh-hero { padding: 36px 20px 24px; }
    .bh-hero-eyebrow { font-size: 10px; }
    .bh-hero-tagline { font-size: 18px; }
    .bh-grid-section { padding: 20px 16px 36px; }
    .bh-sort-bar { justify-content: center; padding-bottom: 12px; }
    .bh-grid { grid-template-columns: 1fr; gap: 16px; }
    .bh-categories-section { padding: 36px 16px; }
    .bh-categories { grid-template-columns: 1fr; }
    .bh-cta-button { padding: 12px 24px; font-size: 11px; }
}

/* ════════════════════ PREVIEW BANNER OFFSET ════════════════════ */
/* When mode=preview and the banner is showing, the body needs to start
   below the banner. This is handled by inline CSS from the banner code. */
