/* ============================================================
   Stellar Merch — Custom Homepage
   Upload as asset: stellar-homepage.css
   Palette (brand PMS): slate #4B5563 (PMS7540C) / champagne #DCC9A3 (PMS726C) / dark gold #8a7245 / cream #F7F4EF (PMS7527C) / sage #A8B7A1 (PMS4218C) / blue #8CA8B8 (PMS2162C)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

#sm-home { font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #4B5563; background: #F7F4EF; }
#sm-home * { box-sizing: border-box; }
#sm-home a { text-decoration: none; }
#sm-home h1, #sm-home h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; margin: 0; }

/* Break out of the theme's .container-fluid to full viewport width */
#sm-home { width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-top: -1rem; }

/* Eyebrow */
#sm-home .sm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #8a7245; margin-bottom: 12px; }

/* Buttons */
#sm-home .sm-btn { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 17px 36px; transition: background .2s, color .2s, border-color .2s; }
#sm-home .sm-btn-gold { background: #DCC9A3; color: #4B5563; }
#sm-home .sm-btn-gold:hover { background: #ffffff; color: #4B5563; }
#sm-home .sm-btn-ghost { border: 1px solid rgba(255,255,255,0.7); color: #ffffff; padding: 16px 36px; }
#sm-home .sm-btn-ghost:hover { background: #ffffff; color: #4B5563; border-color: #ffffff; }

/* ── Hero ── */
#sm-home .sm-hero { position: relative; height: 760px; background: #4B5563; overflow: hidden; }
#sm-home .sm-hero img.sm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#sm-home .sm-hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(75,85,99,0.82) 0%, rgba(75,85,99,0.45) 45%, rgba(217,188,147,0.12) 100%); }
#sm-home .sm-hero-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 72px; color: #ffffff; }
#sm-home .sm-hero-copy .sm-eyebrow { color: #DCC9A3; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
#sm-home .sm-hero-copy h1 { font-size: 64px; line-height: 1.08; max-width: 680px; margin-bottom: 20px; color: #ffffff; }
#sm-home .sm-hero-copy p { font-size: 18px; line-height: 1.6; max-width: 520px; color: rgba(255,255,255,0.85); margin: 0 0 36px; }
#sm-home .sm-hero-ctas { display: flex; gap: 16px; }

/* ── Section headers ── */
#sm-home .sm-section-head { text-align: center; margin-bottom: 48px; }
#sm-home .sm-section-head h2 { font-size: 42px; }

/* ── Category grid ── */
#sm-home .sm-cats { padding: 96px 0 40px; }
#sm-home .sm-cat-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
#sm-home .sm-cat-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#sm-home .sm-cat-tile { position: relative; display: block; overflow: hidden; background: #e9e4da; }
#sm-home .sm-cat-row-2 .sm-cat-tile { height: 82vh; min-height: 560px; }
#sm-home .sm-cat-row-4 .sm-cat-tile { height: 340px; }
#sm-home .sm-cat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Tiles are display-only, so the label is a caption, not a button: no filled
   chip, no hover state. A bottom scrim keeps it legible over any photo. */
#sm-home .sm-cat-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(31,41,55,0.62), rgba(31,41,55,0)); pointer-events: none; }
#sm-home .sm-cat-label { position: absolute; z-index: 1; left: 32px; bottom: 28px; color: #F7F4EF; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(31,41,55,0.45); }
#sm-home .sm-cat-row-4 .sm-cat-label { left: 20px; bottom: 20px; font-size: 13px; }

/* ── Featured carousel ── */
#sm-home .sm-featured { padding: 88px 0 96px; }
#sm-home .sm-featured-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 72px; margin-bottom: 36px; }
#sm-home .sm-featured-head h2 { font-size: 42px; }
#sm-home .sm-arrows { display: flex; gap: 12px; }
#sm-home .sm-arrow { width: 48px; height: 48px; border: 1px solid #4B5563; background: transparent; color: #4B5563; font-size: 18px; cursor: pointer; font-family: inherit; }
#sm-home .sm-arrow-solid { background: #4B5563; color: #ffffff; }
#sm-home .sm-rail { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0 72px; }
#sm-home .sm-rail::-webkit-scrollbar { display: none; }
#sm-home .sm-card { flex: 0 0 300px; color: #4B5563; }
#sm-home .sm-card-img { height: 340px; background: #efebe3; margin-bottom: 10px; }
#sm-home .sm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#sm-home .sm-card-name { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
#sm-home .sm-card-price { display: block; font-size: 14px; font-weight: 500; color: #8a8578; }

/* ── FAQ ── */
#sm-home .sm-faq { background: #4B5563; color: #F7F4EF; padding: 96px 72px; }
#sm-home .sm-faq-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.4fr); gap: 80px; align-items: start; }
/* Eyebrow sits on the dark slate panel, so it uses champagne rather than the
   dark-gold default — same treatment as the hero eyebrow. */
#sm-home .sm-faq .sm-eyebrow { color: #DCC9A3; }
#sm-home .sm-faq h2 { font-size: 42px; color: #F7F4EF; margin-bottom: 20px; }
#sm-home .sm-faq-intro { font-size: 16px; line-height: 1.6; color: rgba(247,244,239,0.7); max-width: 380px; margin: 0 0 28px; }
#sm-home .sm-faq .sm-btn-outline-gold { border: 1px solid #DCC9A3; color: #DCC9A3; padding: 15px 32px; }
#sm-home .sm-faq .sm-btn-outline-gold:hover { background: #DCC9A3; color: #4B5563; }
#sm-home .sm-faq-item { border-bottom: 1px solid rgba(247,244,239,0.18); }
#sm-home .sm-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: transparent; border: none; color: #F7F4EF; font-family: inherit; font-size: 17px; font-weight: 600; text-align: left; padding: 24px 0; cursor: pointer; }
#sm-home .sm-faq-q .sm-mark { color: #DCC9A3; font-size: 20px; flex: 0 0 auto; }
#sm-home .sm-faq-a { display: none; margin: 0; padding: 0 48px 24px 0; font-size: 15px; line-height: 1.65; color: rgba(247,244,239,0.75); }
#sm-home .sm-faq-item.open .sm-faq-a { display: block; }

/* ── Responsive ── */
@media (max-width: 991px) {
  #sm-home .sm-hero { height: 560px; }
  #sm-home .sm-hero-copy { padding: 0 32px; }
  #sm-home .sm-hero-copy h1 { font-size: 42px; }
  #sm-home .sm-cat-row-2 .sm-cat-tile { height: 420px; min-height: 0; }
  #sm-home .sm-cat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sm-home .sm-featured-head, #sm-home .sm-rail { padding: 0 32px; }
  #sm-home .sm-faq { padding: 72px 32px; }
  #sm-home .sm-faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 575px) {
  #sm-home .sm-hero { height: 480px; }
  #sm-home .sm-hero-copy h1 { font-size: 34px; }
  #sm-home .sm-hero-copy p { font-size: 16px; }
  #sm-home .sm-hero-ctas { flex-direction: column; align-items: flex-start; }
  #sm-home .sm-btn { padding: 15px 28px; }
  #sm-home .sm-cat-row-2 { grid-template-columns: 1fr; }
  #sm-home .sm-cat-row-2 .sm-cat-tile { height: 340px; }
  #sm-home .sm-cat-row-4 { grid-template-columns: 1fr; }
  #sm-home .sm-cat-row-4 .sm-cat-tile { height: 300px; }
  #sm-home .sm-section-head h2, #sm-home .sm-featured-head h2, #sm-home .sm-faq h2 { font-size: 30px; }
  #sm-home .sm-card { flex-basis: 240px; }
  #sm-home .sm-card-img { height: 280px; }
  #sm-home .sm-featured-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  #sm-home .sm-faq { padding: 56px 20px; }
  #sm-home .sm-featured-head, #sm-home .sm-rail { padding: 0 20px; }
  #sm-home .sm-hero-copy { padding: 0 20px; }
}
