/* Sunset Jams - Mobile-first, colorful theme */

/* Cross-device consistency: same look on iOS/Safari and desktop */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  -webkit-tap-highlight-color: transparent;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force same look on mobile and desktop (no auto dark/contrast) */
:root {
  color-scheme: light only;
  --sunset-dark: #1a1625;
  --sunset-mid: #2d2640;
  --sunset-warm: #e85d2b;
  --sunset-gold: #f4a261;
  --sunset-cream: #fef9f3;
  --sunset-mauve: #9b7e9e;
  --sunset-teal: #2a9d8f;
  --sunset-text: #2d2640;
  --sunset-text-muted: #5c5468;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26, 22, 37, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 22, 37, 0.18);
  /* Header: single source of truth — height = vertical padding + logo height */
  --header-padding-y: 0.75rem;
  --header-logo-height: 56px;
  --header-height: calc(2 * var(--header-padding-y) + var(--header-logo-height));
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fef9f3;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d2640;
  background: #fef9f3;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e85d2b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header — logo centered, nav/button on right */
.site-header {
  --header-height: calc(2 * var(--header-padding-y) + var(--header-logo-height));
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-padding-y) 1rem;
  background: #1a1625 !important;
  background-color: #1a1625 !important;
  box-shadow: 0 4px 12px rgba(26, 22, 37, 0.1), 0 8px 24px rgba(26, 22, 37, 0.14);
}

.logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-right-mobile {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cart-badge {
  /* Same look as .cart-nav-link .cart-count (orange ellipse, white number) but smaller */
  display: none;
  position: absolute;
  right: 4px;
  bottom: 4px;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  height: 1.2em;
  padding: 0 0.25em;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  background: #e85d2b !important;
  background-color: #e85d2b !important;
  border-radius: 999px;
  pointer-events: none;
}
@media (max-width: 767px) {
  .header-cart-badge.header-cart-badge-visible {
    display: flex;
  }
}

.nav-toggle {
  position: relative;
  z-index: 101;
  justify-self: end;
}

/* Mobile: explicit height for dropdown positioning */
@media (max-width: 767px) {
  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    padding-right: 0.5rem;
  }
  .logo-link { min-width: 0; }
  .header-nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 99;
    overflow: hidden;
    pointer-events: none;
  }
  .header-nav-wrap .main-nav { pointer-events: auto; }
  .main-nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-top: none;
  }
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Header logo: readable "Make good music." tagline - do not reduce below 48px */
.logo-img {
  height: var(--header-logo-height);
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle::before {
  content: '☰';
}

.site-header.nav-open .nav-toggle::before {
  content: '✕';
}

.header-nav-wrap {
  display: contents;
}

.main-nav {
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  margin: 0;
  background: #2d2640 !important;
  background-color: #2d2640 !important;
  padding: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  box-shadow: 0 8px 24px rgba(26, 22, 37, 0.22), 0 16px 48px rgba(26, 22, 37, 0.28);
}

.site-header.nav-open .main-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  margin-top: 0; /* flush against site-header, no gap */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Footer social icons - bottom right, white */
.footer-social {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  right: 0;
  bottom: 0;
}
.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  color: #ffffff;
  opacity: 0.95;
  line-height: 0;
}
.footer-social .social-icon:hover {
  opacity: 1;
  text-decoration: none;
  color: #ffffff;
}
.footer-social .social-icon svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: block;
  fill: #ffffff !important;
}
.footer-social .social-icon svg path {
  fill: #ffffff !important;
}

.cart-nav-link .cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0.15em 0.4em;
  background: #e85d2b !important;
  background-color: #e85d2b !important;
  color: #fff;
  font-size: 0.85em;
  border-radius: 999px;
  margin-left: 0.25em;
}

/* Quick cart bar: below header when cart has items */
.cart-quick-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height, 80px);
  z-index: 98;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #e85d2b, #f4a261) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(26, 22, 37, 0.2);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.cart-quick-bar > * {
  position: relative;
  z-index: 1;
}
/* Purplish gradient overlay when "product × qty" is showing */
.cart-quick-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #9b7e9e, #5c3d5e);
  opacity: 0;
  transition: opacity 0.45s ease-out;
  pointer-events: none;
}
.cart-quick-bar.cart-quick-bar-added-bg::after {
  opacity: 1;
}

.cart-quick-bar.cart-quick-bar-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-quick-bar-spacer {
  flex: 1;
  min-width: 0;
}

.cart-quick-bar-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff !important;
  text-decoration: none;
  z-index: 1;
  display: block;
  text-align: center;
  width: 224px;
  max-width: 72vw;
}
.cart-quick-bar-label:hover,
.cart-quick-bar-label:focus {
  color: #fff !important;
  text-decoration: none;
  opacity: 0.95;
}
/* Single visible slot: viewport clips so only one pane shows at a time */
.cart-quick-bar-roll-viewport {
  display: block;
  width: 100%;
  max-width: 72vw;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}
.cart-quick-bar-roll-wrap {
  display: flex;
  width: 200%;
  min-width: 200%;
  transition: transform 0.4s ease-out;
  will-change: transform;
}
/* Roll: move left by one pane width so "Cart (n)" slides out and "Product × qty" slides in */
.cart-quick-bar-roll-wrap.cart-quick-bar-rolled {
  transform: translateX(-50%);
}
.cart-quick-bar-pane {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  max-width: 50%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
  text-align: center;
}
.cart-quick-bar-pane-added {
  padding: 0 0.15rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  max-width: 100%;
}

.cart-quick-bar-checkout {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.cart-quick-bar-checkout:hover,
.cart-quick-bar-checkout:focus {
  color: #fff !important;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
}
.cart-quick-bar-checkout svg {
  display: block;
}

.cart-quick-bar.cart-quick-bar-hide-on-page {
  display: none !important;
}

@media (min-width: 768px) {
  .cart-quick-bar {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .header-right-mobile { display: none; }
  .nav-toggle { display: none; }
  .header-nav-wrap {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .main-nav ul {
    display: flex;
    gap: 0.5rem;
  }

  .main-nav ul li a {
    padding: 0.5rem 1rem;
  }

}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #e85d2b, #f4a261) !important;
  color: #fff !important;
}

/* Add to cart click feedback: brief purple flash */
@keyframes add-to-cart-flash {
  0% { box-shadow: inset 0 0 0 0 rgba(155, 126, 158, 0); }
  20% { box-shadow: inset 0 0 0 999px rgba(155, 126, 158, 0.95); }
  70% { box-shadow: inset 0 0 0 999px rgba(155, 126, 158, 0.95); }
  100% { box-shadow: inset 0 0 0 0 rgba(155, 126, 158, 0); }
}
.btn-primary.add-to-cart-flash {
  animation: add-to-cart-flash 0.55s ease;
}

.btn-secondary {
  background: #9b7e9e !important;
  color: #fff !important;
}

.btn-add {
  background: #2a9d8f !important;
  color: #fff !important;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 2rem 1rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero - gradient background */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1625 0%, #2d2640 40%, #5c3d5e 70%, #e85d2b 100%) !important;
}

/* Blend hero into intro section – fades into cream #FEF9F3 (same as body/intro), not white */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  min-height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(254, 249, 243, 0) 20%,
    rgba(254, 249, 243, 0) 44%,
    rgba(254, 249, 243, 0.06) 57%,
    rgba(254, 249, 243, 0.14) 67%,
    rgba(254, 249, 243, 0.28) 76%,
    rgba(254, 249, 243, 0.5) 84%,
    rgba(254, 249, 243, 0.75) 93%,
    #FEF9F3 100%
  );
  pointer-events: none;
  z-index: 0.5;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1625 0%, #2d2640 40%, #5c3d5e 70%, #e85d2b 100%);
  opacity: 1;
  transition: background 0.8s ease;
}

/* "Make good music" slide: ROYGBIV rainbow – Sunset Jams = color from the rainbow */
.hero.hero-roygbiv-active .hero-bg,
.hero.hero-roygbiv-active {
  background: linear-gradient(
    135deg,
    #e63946 0%,
    #f4a261 16%,
    #ffd166 32%,
    #2a9d8f 48%,
    #4361ee 64%,
    #5e60ce 80%,
    #7b2cbf 100%
  ) !important;
}
.hero.hero-roygbiv-active .hero-bg-face.hero-bg-face-active {
  opacity: 0.5;
  transition: opacity 0.6s ease 0s;
}

/* Translucent hero images behind text; fade at edges into gradient; fade out fully, then next fades in */
.hero-bg-face {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease 0s;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 15%, transparent 72%);
  mask-mode: alpha;
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
}

.hero-bg-face.hero-bg-face-active {
  opacity: 0.4;
  transition: opacity 0.6s ease 0s;
}

.hero-bg-face-donate.hero-bg-face-active {
  opacity: 0.3;
  transition: opacity 0.6s ease 0s;
}

.hero-slides {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  opacity: 0;
  transition: opacity 0.6s ease 0s;
  pointer-events: none;
}

.hero-slide.hero-slide-active {
  opacity: 1;
  transition: opacity 0.6s ease 0.6s;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.btn-hero-donate {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, #e85d2b, #f4a261);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-hero-donate:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-style: italic;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

/* Hero slide indicators (dots) – bottom of hero, orange for active */
.hero-indicators {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-indicator:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

.hero-indicator-active {
  background: var(--sunset-warm, #e85d2b);
  border-color: var(--sunset-warm, #e85d2b);
}

.hero-indicator-active:hover {
  border-color: var(--sunset-gold, #f4a261);
  background: var(--sunset-gold, #f4a261);
}

/* Intro & CTA */
.intro .lead,
.cta .lead {
  font-size: 1.1rem;
  color: #5c5468;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.intro h2,
.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #2d2640;
  margin: 0 0 1rem;
}

.cta {
  background: linear-gradient(135deg, #9b7e9e, #7b6b7e) !important;
  color: #fff !important;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* Shop */
.shop-header h1 {
  margin: 0 0 0.25rem;
  color: #2d2640;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.shop-header .lead {
  color: #5c5468;
  margin: 0 0 1rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-bar label {
  font-weight: 600;
  color: #5c5468;
}

.filter-bar select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e0dce5;
  border-radius: var(--radius);
  background: #fff;
  color: #2d2640;
}

/* Shop grid: desktop = grid, mobile = flex so 2 cards per row are guaranteed */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Mobile: flexbox with 50% width per card = always 2 columns */
@media (max-width: 767px) {
  .products .products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
  }
  .products .products-grid .product-card {
    flex: 0 0 calc(50% - 0.375rem) !important; /* half width minus half of gap */
    max-width: calc(50% - 0.375rem) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .products .products-grid .loading,
  .products .products-grid .no-products {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  aspect-ratio: 1;
  background: #2d2640;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Coloring book thumbnail: between center and top so words at top show */
.products-grid .product-card[data-slug="coloring-book"] .product-thumb img {
  object-position: 50% 25%;
}

/* Music Theory Workbook: keep top of cover in frame */
.products-grid .product-card[data-product-id="3"] .product-thumb img {
  object-position: 50% 0%;
}

.product-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #2d2640;
  line-height: 1.3;
}

/* Truncate description only on shop cards; product page shows full description */
.product-card .product-desc {
  font-size: 0.9rem;
  color: #5c5468;
  margin: 0 0 0.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-detail .product-meta .product-desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #e85d2b;
  margin: 0 0 0.75rem;
}

@media (max-width: 767px) {
  .shop-header.section { padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .shop-header h1 { font-size: 1.5rem; }
  .shop-header .lead { margin-bottom: 0.5rem; }
  .filter-bar { margin-bottom: 0; }
  .filter-bar select { font-size: 0.9rem; padding: 0.4rem 1.75rem 0.4rem 0.6rem; }
}

/* Shop mobile: compact cards */
@media (max-width: 767px) {
  .product-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(26, 22, 37, 0.1);
  }
  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 22, 37, 0.14);
  }
  .product-info { padding: 0.5rem 0.5rem 0.6rem; }
  .product-info h3 { font-size: 0.85rem; margin: 0 0 0.2rem; line-height: 1.25; }
  .product-info h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card .product-desc {
    font-size: 0.75rem;
    margin: 0 0 0.25rem;
    -webkit-line-clamp: 1;
    line-height: 1.3;
  }
  .product-price { font-size: 0.9rem; margin: 0 0 0.4rem; }
  .product-card .btn-add { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
}

.loading,
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  color: #5c5468;
  padding: 2rem;
}

/* Cart */
.cart-page h1 {
  margin: 0 0 1rem;
  color: #2d2640;
}

.cart-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cart-empty {
  color: #5c5468;
  padding: 2rem;
  text-align: center;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-item-name {
  font-weight: 600;
  color: #2d2640;
}

.cart-item-qty input {
  width: 3.5rem;
  padding: 0.35rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e0dce5;
  border-radius: 6px;
  text-align: center;
}

.cart-item-price {
  font-weight: 700;
  color: #e85d2b;
}

.cart-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: #f5f0f5;
  color: #5c5468;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.cart-remove:hover {
  background: #ffe0e0;
  color: #c00;
}

.cart-summary {
  background: #2d2640 !important;
  background-color: #2d2640 !important;
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
}

.cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.summary-line.total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.3);
}

#checkout-btn {
  margin-top: 1rem;
  background: #f4a261 !important;
  background-color: #f4a261 !important;
  color: #1a1625 !important;
}

#checkout-btn:hover {
  background: #fff !important;
  color: #1a1625 !important;
  text-decoration: none;
}

@media (min-width: 640px) {
  .cart-wrap {
    flex-direction: row;
    align-items: flex-start;
  }

  .cart-items {
    flex: 1;
  }

  .cart-summary {
    width: 280px;
    flex-shrink: 0;
  }
}

/* Checkout */
.checkout-page h1 {
  margin: 0 0 1rem;
  color: #2d2640;
}

.checkout-layout {
  display: grid;
  gap: 2rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  color: #2d2640;
}

.form-group input,
.form-group textarea {
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e0dce5;
  border-radius: var(--radius);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9b7e9e;
}

.checkout-summary {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #2d2640;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

/* Bar above subtotal separates it from cart items; subtotal in orange; space below before shipping */
.checkout-summary .summary-subtotal {
  margin: 0;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid #e0dce5;
  font-size: 1rem;
  font-weight: 600;
  color: #e85d2b;
  margin-bottom: 1.25rem;
}

.checkout-summary .summary-subtotal span:last-child {
  color: #e85d2b;
}

.checkout-summary .summary-shipping {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.summary-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e85d2b;
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 2px solid #e0dce5;
  margin: 0;
}

.order-success {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: var(--radius);
}

.order-success h2 {
  color: #2a9d8f;
  margin: 0 0 0.5rem;
}

.order-success p {
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }
}

/* Charity page – hero image and donate section */
.charity-hero-img-wrap {
  margin: 0 0 1.5rem;
  line-height: 0;
}
.charity-hero-img {
  width: 100%;
  height: auto;
  max-height: 40vh;
  object-fit: cover;
  border-radius: var(--radius, 8px);
  display: block;
}
.charity-donate {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e0dce5;
}
.charity-donate h2 {
  margin: 0 0 0.5rem;
  color: #2d2640;
  font-size: 1.5rem;
}
.charity-donate > p {
  color: #5c5468;
  margin: 0 0 1.25rem;
}
.charity-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.btn-venmo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: #008CFF !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  overflow: visible;
}
.btn-venmo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}
.btn-venmo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-venmo-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.btn-venmo-logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.2rem;
  overflow: visible;
}
.btn-venmo-logo svg {
  height: 22px;
  width: auto;
  display: block;
  overflow: visible;
}
.btn-stripe-logo {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.charity-stripe {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.charity-stripe-label {
  font-weight: 600;
  color: #2d2640;
}
.btn-donate-stripe {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e85d2b, #f4a261) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-donate-stripe:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff !important;
}
.charity-stripe-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.charity-stripe-custom {
  margin-top: 1rem;
}
.charity-custom-label {
  display: block;
  font-weight: 600;
  color: #2d2640;
  margin-bottom: 0.35rem;
}
.charity-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.charity-custom-input {
  width: 6rem;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  border: 2px solid #e0dce5;
  border-radius: var(--radius);
  font-family: inherit;
}
.charity-custom-input:focus {
  outline: none;
  border-color: #9b7e9e;
}
.btn-donate-custom {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #e85d2b, #f4a261) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-donate-custom:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-donate-custom:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-donate-amount {
  padding: 0.65rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e85d2b, #f4a261) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-donate-amount:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-donate-amount:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.charity-stripe-note {
  font-size: 0.9rem;
  color: #5c5468;
  margin: 0;
}
.charity-thank-you {
  padding: 0.75rem 1rem;
  background: rgba(42, 157, 143, 0.12);
  border-radius: var(--radius);
  color: #2a9d8f;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* About page: animated tagline "make good music" */
.tagline-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.tagline-words {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.02em;
  background: linear-gradient(
    110deg,
    #e85d2b 0%,
    #f4a261 22%,
    #9b7e9e 45%,
    #5c3d5e 70%,
    #e85d2b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: tagline-gradient 4s ease-in-out infinite;
  position: relative;
}
.tagline-notes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -3em;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.tagline-notes .note {
  position: absolute;
  bottom: 0.6em;
  font-size: 0.75em;
  line-height: 1;
  opacity: 0;
}
.tagline-notes .note-1 { left: 5%;   color: #e85d2b; animation: note-wind-1 7s linear infinite; animation-delay: 0s; }
.tagline-notes .note-2 { left: 22%;  color: #f4a261; animation: note-wind-2 7s linear infinite; animation-delay: 0.5s; }
.tagline-notes .note-3 { left: 38%;  color: #9b7e9e; animation: note-wind-3 7s linear infinite; animation-delay: 1s; }
.tagline-notes .note-4 { left: 55%;  color: #5c3d5e; animation: note-wind-4 7s linear infinite; animation-delay: 1.5s; }
.tagline-notes .note-5 { left: 72%;  color: #e85d2b; animation: note-wind-5 7s linear infinite; animation-delay: 2s; }
.tagline-notes .note-6 { left: 88%;  color: #f4a261; animation: note-wind-6 7s linear infinite; animation-delay: 2.5s; }
.tagline-notes .note-7 { left: 15%;  color: #9b7e9e; animation: note-wind-7 7s linear infinite; animation-delay: 3s; }
.tagline-notes .note-8 { left: 65%;  color: #5c3d5e; animation: note-wind-8 7s linear infinite; animation-delay: 3.5s; }
/* Parabolic wind paths: many keyframe steps for smooth curves; fade completes by 85% */
@keyframes note-wind-1 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  25%  { transform: translate(-0.08em, -0.5em); opacity: 0.85; }
  50%  { transform: translate(-0.22em, -1.1em); opacity: 0.7; }
  75%  { transform: translate(-0.32em, -1.75em); opacity: 0.3; }
  85%  { opacity: 0; }
  100% { transform: translate(-0.4em, -2.5em); opacity: 0; }
}
@keyframes note-wind-2 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  25%  { transform: translate(0.12em, -0.45em); opacity: 0.85; }
  50%  { transform: translate(0.28em, -1em); opacity: 0.7; }
  75%  { transform: translate(0.42em, -1.6em); opacity: 0.3; }
  85%  { opacity: 0; }
  100% { transform: translate(0.5em, -2.4em); opacity: 0; }
}
@keyframes note-wind-3 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  20%  { transform: translate(0.18em, -0.4em); opacity: 0.85; }
  40%  { transform: translate(0.28em, -0.85em); opacity: 0.75; }
  60%  { transform: translate(0.12em, -1.35em); opacity: 0.5; }
  80%  { transform: translate(-0.05em, -1.9em); opacity: 0.2; }
  85%  { opacity: 0; }
  100% { transform: translate(0.1em, -2.5em); opacity: 0; }
}
@keyframes note-wind-4 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  20%  { transform: translate(-0.2em, -0.42em); opacity: 0.85; }
  40%  { transform: translate(-0.32em, -0.9em); opacity: 0.75; }
  60%  { transform: translate(-0.22em, -1.38em); opacity: 0.5; }
  80%  { transform: translate(-0.42em, -1.88em); opacity: 0.2; }
  85%  { opacity: 0; }
  100% { transform: translate(-0.5em, -2.5em); opacity: 0; }
}
@keyframes note-wind-5 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  25%  { transform: translate(0.1em, -0.48em); opacity: 0.85; }
  50%  { transform: translate(0.32em, -1.05em); opacity: 0.7; }
  75%  { transform: translate(0.38em, -1.68em); opacity: 0.3; }
  85%  { opacity: 0; }
  100% { transform: translate(0.45em, -2.45em); opacity: 0; }
}
@keyframes note-wind-6 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  20%  { transform: translate(-0.06em, -0.38em); opacity: 0.85; }
  40%  { transform: translate(0.22em, -0.88em); opacity: 0.75; }
  60%  { transform: translate(0.32em, -1.4em); opacity: 0.5; }
  80%  { transform: translate(0.08em, -1.92em); opacity: 0.2; }
  85%  { opacity: 0; }
  100% { transform: translate(-0.1em, -2.5em); opacity: 0; }
}
@keyframes note-wind-7 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  25%  { transform: translate(-0.15em, -0.5em); opacity: 0.85; }
  50%  { transform: translate(-0.35em, -1.05em); opacity: 0.7; }
  75%  { transform: translate(-0.48em, -1.65em); opacity: 0.3; }
  85%  { opacity: 0; }
  100% { transform: translate(-0.55em, -2.45em); opacity: 0; }
}
@keyframes note-wind-8 {
  0%   { transform: translate(0, 0); opacity: 0.9; }
  20%  { transform: translate(0.2em, -0.4em); opacity: 0.85; }
  40%  { transform: translate(0.15em, -0.88em); opacity: 0.75; }
  60%  { transform: translate(-0.12em, -1.38em); opacity: 0.5; }
  80%  { transform: translate(-0.08em, -1.9em); opacity: 0.2; }
  85%  { opacity: 0; }
  100% { transform: translate(0.15em, -2.5em); opacity: 0; }
}
@keyframes tagline-gradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 1rem;
  background: #1a1625 !important;
  background-color: #1a1625 !important;
  color: rgba(255,255,255,0.8) !important;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 2.5rem;
}

.site-footer .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.site-footer .copyright {
  font-size: 0.9rem;
  margin: 0;
}

.site-footer a {
  color: #f4a261;
}
