*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#121212;--bg2:#181818;--card:#1e1e1e;--text:#fff;--text2:#b3b3b3;--gold:#D4AF37;--gold2:#C5A028;--border:#333}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}
a{color:var(--gold);text-decoration:none}a:hover{color:var(--gold2)}
.site-header{background:#000;border-bottom:1px solid var(--border);padding:0 24px;height:64px;display:flex;align-items:center;position:sticky;top:0;z-index:100}
.site-header .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1200px;margin:0 auto}
.logo-img{height:36px}
.nav{display:flex;gap:8px}
.nav a{color:var(--text2);font-weight:600;font-size:.9rem;padding:8px 16px;border-radius:20px;transition:all .2s}
.nav a:hover,.nav a.active{color:#fff;background:#333}
.container{max-width:1200px;margin:0 auto;padding:24px}
.card{background:var(--card);border-radius:8px;padding:24px;margin-bottom:20px;border:1px solid var(--border)}
.btn{background:var(--gold);color:#000;border:none;padding:10px 24px;border-radius:24px;font-weight:700;font-size:.9rem;cursor:pointer;transition:all .2s;display:inline-block}
.btn:hover{background:var(--gold2);transform:scale(1.04)}
.site-footer{background:#000;border-top:1px solid var(--border);padding:24px;text-align:center;margin-top:40px}
.footer-nav{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;margin-bottom:16px}
.footer-nav a{color:var(--text2);font-size:.85rem}
.footer-nav a:hover{color:var(--gold)}
.site-footer small{color:var(--text2);font-size:.8rem}
h1,h2,h3{color:var(--text)}p,li{color:var(--text2)}
@media(max-width:768px){.site-header{height:auto;padding:12px;flex-wrap:wrap}.nav{flex-wrap:wrap;justify-content:center}.container{padding:12px}.footer-nav{gap:12px}}

                                                                                                                                .articles-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Shop badge colour variations */
.product-card .badge.popular { background: #FF6B6B; color: #fff; }
.product-card .badge.new { background: #4ECDC4; color: #000; }
.product-card .badge.custom { background: #FFD93D; color: #000; }
.product-card .badge.exclusive { background: #6C5CE7; color: #fff; }
.product-card .badge.gold { background: #D4AF37; color: #000; }
.product-card .badge.flstudio { background: #FF8C42; color: #000; }
.product-card .badge.ableton { background: #45B7D1; color: #000; }
.product-card .badge.basic { background: #95A5A6; color: #fff; }

/* Fix product card title alignment */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.product-card .badge {
  align-self: flex-start;
  min-height: 26px;
  margin-bottom: 8px;
}
.product-card h3 {
  flex: 1;
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  margin-top: 0;
}
.product-card p {
  flex: 1;
  min-height: 60px;
}
.product-card .price {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #333;
  width: 100%;
}

/* Light mode improvements */
html[data-theme="light"] .logo-img { height: 48px; }
html[data-theme="light"] .site-header { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
html[data-theme="light"] .site-footer { box-shadow: 0 -1px 3px rgba(0,0,0,0.05); }
html[data-theme="light"] .carousel-btn { background: rgba(0,0,0,0.05); color: #333; }
html[data-theme="light"] .carousel-btn:hover { background: rgba(0,0,0,0.1); }

/* Flip card for album cover */
.flip-card {
  background: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flip-card-back {
  background: #1a1a2e;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.flip-card-back h3 {
  color: #D4AF37;
  margin-bottom: 8px;
}
.flip-card-back p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.flip-card-back .buy-btn {
  background: #D4AF37;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  margin: 4px 0;
  text-decoration: none;
  display: inline-block;
  width: 80%;
}
.flip-card-back .buy-btn.paynow {
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
}
.flip-card-back .tap-hint {
  color: #888;
  font-size: 0.7rem;
  margin-top: 8px;
}

/* Flip Card Styles */
.card-flip {
 perspective: 1000px;
 cursor: pointer;
}
.card-flip .flip-inner {
 transition: transform 0.6s;
 transform-style: preserve-3d;
 position: relative;
}
.card-flip.flipped .flip-inner {
 transform: rotateY(180deg);
}
.card-flip .front,
.card-flip .back {
 backface-visibility: hidden;
 position: relative;
}
.card-flip .back {
 transform: rotateY(180deg);
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
}
