/* Version 9 — Luxury Gallery Visual Identity */

.page-home-v9 {
    --gold-strip-h: 40px;
    --gallery-gold: #D4AF37;
    --gallery-gold-light: #F0E0A0;
    --gallery-gold-deep: #6B5420;
    --gallery-veil: linear-gradient(180deg, rgba(12,10,6,0.55) 0%, rgba(5,4,2,0.88) 55%, #050403 100%);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,175,55,0.08), transparent),
        #050403;
}

.page-home-v9 main { padding-top: calc(var(--header-h) + var(--gold-strip-h)); }

/* Thin gold strip */
.gold-strip {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 950;
    height: var(--gold-strip-h);
    background: linear-gradient(90deg, rgba(18,14,8,0.97), rgba(10,8,5,0.98), rgba(18,14,8,0.97));
    border-bottom: 1px solid rgba(212,175,55,0.2);
    backdrop-filter: blur(16px);
    cursor: pointer;
}
.gold-strip-inner {
    max-width: 1320px; margin: 0 auto;
    height: 100%; padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem 0.75rem; font-size: 0.78rem;
}
.gold-strip-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,0.6);
    animation: stripPulse 2s ease infinite;
}
@keyframes stripPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.gold-strip-label { color: rgba(255,255,255,0.55); }
.gold-strip-price { color: var(--gallery-gold-light); font-weight: 600; font-size: 0.88rem; }
.gold-strip-unit { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
.gold-strip-trend { font-size: 0.72rem; font-weight: 500; }
.gold-strip-trend.up { color: #4ade80; }
.gold-strip-trend.down { color: #f87171; }
.gold-strip-hint { margin-right: auto; color: var(--gallery-gold); font-size: 0.68rem; display: flex; align-items: center; gap: 0.2rem; }

/* Bottom sheet */
.gold-sheet-backdrop {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.55);
    opacity: 0; transition: opacity 0.35s;
}
.gold-sheet-backdrop.show { opacity: 1; }
.gold-market-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2001;
    background: linear-gradient(180deg, #16120a 0%, #0a0906 100%);
    border-top: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px 20px 0 0;
    max-height: 75vh;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
    padding-bottom: env(safe-area-inset-bottom);
}
.gold-market-sheet.open { transform: translateY(0); }
.gold-sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(212,175,55,0.35); margin: 0.65rem auto 0; }
.gold-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gold-sheet-head h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.gold-sheet-close { width: 44px; height: 44px; border: none; background: transparent; color: rgba(255,255,255,0.6); cursor: pointer; }
.gold-sheet-body { padding: 1rem 1.25rem 1.5rem; overflow-y: auto; max-height: calc(75vh - 80px); }
.gold-sheet-grid { display: grid; gap: 0.65rem; margin-bottom: 1rem; }
.gold-sheet-item { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; background: rgba(212,175,55,0.04); border: 1px solid rgba(212,175,55,0.12); border-radius: 12px; }
.gsi-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.gsi-price { font-weight: 600; color: var(--gallery-gold-light); font-size: 0.9rem; }
.gsi-change.up { color: #4ade80; }
.gsi-change.down { color: #f87171; }
.gold-sheet-meta { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-bottom: 1rem; text-align: center; }

/* Hero */
.gallery-hero {
    position: relative;
    min-height: clamp(480px, 88vh, 920px);
    margin-top: calc(-1 * (var(--header-h) + var(--gold-strip-h)));
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.gallery-hero-media { position: absolute; inset: 0; }
.gallery-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.gallery-hero-slide.active { opacity: 1; }
.gallery-hero-veil { position: absolute; inset: 0; background: var(--gallery-veil); }
.gallery-hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 30% 80%, rgba(212,175,55,0.15), transparent 60%); pointer-events: none; }
.gallery-hero-content { position: relative; z-index: 3; padding: calc(var(--header-h) + var(--gold-strip-h) + 2rem) 1.25rem 4rem; max-width: 720px; }
.gallery-hero-brand { font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gallery-gold); margin-bottom: 1rem; }
.gallery-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400; line-height: 1.08; margin: 0 0 0.65rem;
    background: linear-gradient(135deg, #FFF 0%, var(--gallery-gold-light) 50%, var(--gallery-gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gallery-hero-tagline { font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.gallery-hero-actions { display: flex; gap: 0.75rem; align-items: center; }
.btn-hero-primary { padding: 1rem 2.25rem !important; box-shadow: 0 8px 32px rgba(212,175,55,0.25); }
.btn-hero-whatsapp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(212,175,55,0.4); color: var(--gallery-gold) !important; background: rgba(212,175,55,0.08); font-size: 1.25rem; }
.btn-hero-outline { border: 1px solid rgba(212,175,55,0.45) !important; color: var(--gallery-gold-light) !important; background: transparent !important; }

/* Sections */
.gallery-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.gallery-head { margin-bottom: 2rem; }
.gallery-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.gallery-head-compact { text-align: center; }
.gallery-eyebrow { display: block; font-size: 0.65rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gallery-gold); margin-bottom: 0.4rem; }
.gallery-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 400; margin: 0; }
.gallery-heading-sm { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.gallery-link { color: var(--gallery-gold) !important; font-size: 0.85rem; }
.gallery-chart-note { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0.5rem 0 0; }

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.collection-card { position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; display: block; color: #fff !important; border: 1px solid rgba(212,175,55,0.15); transition: transform 0.45s var(--ease); }
.collection-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.45); }
.collection-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s; }
.collection-card:hover .collection-card-bg { transform: scale(1.06); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,4,2,0.92) 100%); }
.collection-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; z-index: 2; }
.collection-icon { color: var(--gallery-gold); margin-bottom: 0.65rem; display: block; }
.collection-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.25rem; }
.collection-count { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* Tracks */
.gallery-track { display: flex; gap: 1.15rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; }
.gallery-track-item { flex: 0 0 clamp(200px, 44vw, 280px); scroll-snap-align: start; }

/* Image-first product cards on homepage */
.page-gallery .luxury-product-card { background: transparent; border: none; }
.page-gallery .lpc-media { border-radius: 12px; overflow: hidden; border: 1px solid rgba(212,175,55,0.12); }
.page-gallery .lpc-body { padding: 0.85rem 0.15rem 0; }
.page-gallery .lpc-price-row, .page-gallery .lpc-live { display: none; }

/* Budget */
.gallery-budget { padding: 2rem 0; }
.budget-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.budget-pill { padding: 0.65rem 1.15rem; border: 1px solid rgba(212,175,55,0.2); border-radius: 99px; font-size: 0.82rem; color: rgba(255,255,255,0.7) !important; min-height: 44px; display: inline-flex; align-items: center; }
.budget-pill:hover { border-color: var(--gallery-gold); color: var(--gallery-gold-light) !important; }

/* Club */
.gallery-club { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; }
.gallery-club-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,175,55,0.18), transparent), linear-gradient(135deg, #141008, #050403); border-top: 1px solid rgba(212,175,55,0.2); border-bottom: 1px solid rgba(212,175,55,0.2); }
.gallery-club-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.gallery-club-title { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 3rem); margin: 0 0 1rem; max-width: 16ch; }
.gallery-club-desc { color: rgba(255,255,255,0.55); max-width: 42ch; margin-bottom: 1.5rem; }
.gallery-club-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery-club-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.gallery-club-list i { color: var(--gallery-gold); }
.gallery-club-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gallery-club-visual { width: 200px; height: 200px; display: grid; place-items: center; position: relative; }
.gallery-club-visual i { font-size: 3.5rem; color: var(--gallery-gold); z-index: 2; filter: drop-shadow(0 0 24px rgba(212,175,55,0.4)); }
.club-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(212,175,55,0.25); inset: 0; }
.club-orb-2 { inset: 20px; opacity: 0.6; }

/* Chart demoted */
.gallery-chart-wrap { padding-top: 2rem; }
.gallery-chart-panel { background: rgba(255,255,255,0.02); border: 1px solid rgba(212,175,55,0.1); border-radius: 16px; padding: 1.25rem; }
.chart-wrap-compact { height: 200px; }

/* Social */
.social-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.social-mosaic-item { aspect-ratio: 1; overflow: hidden; border-radius: 8px; display: block; }
.social-mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.social-mosaic-item:hover img { transform: scale(1.05); }

@media (min-width: 768px) {
    .social-mosaic { grid-template-columns: repeat(6, 1fr); }
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .gallery-club-inner { grid-template-columns: 1fr; text-align: center; }
    .gallery-club-list { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
    .gallery-club-actions { justify-content: center; }
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .gold-strip-hint { display: none; }
}
