/*
Theme Name: Rubeuns Theme
Author: Austin
Description: Modern dark aesthetic custom theme for Rubeuns.
Version: 3.3
*/

:root {
  --bg-dark: #08080a;
  --bg-card: #111116;
  --bg-card-hover: #17171f;
  --border: #23232e;
  --border-hover: #3b82f6;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --error-red: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-btn-primary {
  background: #ffffff;
  color: #08080a !important;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hide mobile UI elements on Desktop */
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-backdrop {
  display: none;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: calc(85vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(8, 8, 10, 0) 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover:not(.disabled) {
  background: #4f46e5;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #3b3b48;
}

/* --- Scroll Reveal & Grid Section --- */
.explore-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.sub-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0.5rem 0;
}

.section-header p {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-content h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-link-text {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-6px);
}

.feature-card:hover .card-link-text {
  transform: translateX(4px);
}

/* --- Scroll Animation Classes --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .feature-card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .feature-card:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .feature-card:nth-child(4) { transition-delay: 0.26s; }

/* --- Sub-page Wrapper Layout --- */
.page-wrapper {
  padding-top: 4rem;
  padding-bottom: 5rem;
  min-height: 70vh;
}

.page-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-body p {
  margin-bottom: 1.5rem;
}

/* --- MANUAL DONATE PAGE STYLING --- */
.donate-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

/* Stripe Disabled State Overlay */
.stripe-wrapper {
  position: relative;
  border-radius: 12px;
}

.stripe-wrapper.is-disabled .donate-form {
  opacity: 0.25;
  pointer-events: none;
  filter: grayscale(100%);
  user-select: none;
}

.stripe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.stripe-overlay-msg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border-bottom: 2px solid var(--accent);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.preset-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--text-muted);
}

.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.custom-amount-wrapper {
  margin-bottom: 2rem;
}

.custom-amount-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-align: left;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--accent);
}

.currency-symbol {
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 600;
}

#custom-amount {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem;
  outline: none;
}

/* Error States & Animation */
.input-error {
  border-color: var(--error-red) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.error-message {
  display: none;
  color: var(--error-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

.donate-submit-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
}

.donate-submit-btn.disabled {
  background: #2a2a35 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Alternative Donate Methods */
.alt-donate-methods {
  margin-top: 2rem;
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.or-divider::before {
  margin-right: 1rem;
}

.or-divider::after {
  margin-left: 1rem;
}

.alt-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.alt-btn {
  text-align: center;
  padding: 1rem !important;
  font-size: 1rem !important;
}

/* Donators List */
.donators-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.donators-section h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.empty-donators {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
  background: var(--bg-dark);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

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

.donator-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
}

.donator-amount {
  color: var(--accent);
}

/* ========================================================
   WOOCOMMERCE STOREFRONT OVERRIDES
======================================================== */

.empty-category-msg {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  margin: 2rem auto;
}

.empty-category-msg h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.empty-category-msg p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- Category Sorting Pills --- */
.store-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cat-pill {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.cat-pill:hover, 
.cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Store Header Titles & Dropdowns --- */
.woocommerce-products-header__title.page-title {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  text-align: left !important;
  color: var(--text-main) !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  letter-spacing: -1px;
}

.woocommerce .woocommerce-result-count {
  float: left;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.woocommerce .woocommerce-ordering {
  float: right;
  margin-bottom: 2rem;
}

.woocommerce .woocommerce-ordering select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}

/* --- Centered Product Grid --- */
.woocommerce ul.products {
  clear: both;
  padding-top: 1rem;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 2rem !important;
  margin: 0 !important;
}

.woocommerce ul.products::before, 
.woocommerce ul.products::after { 
  display: none !important; 
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* --- Force 1:1 Aspect Ratio on All Product Images --- */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block;
}

/* --- Card Text --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 1.5rem 1rem 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

.woocommerce ul.products li.product .price {
  padding: 0.5rem 1rem;
  color: var(--accent) !important;
  font-weight: 700;
  margin-bottom: 1rem !important;
}

.woocommerce span.onsale {
  background: var(--accent) !important;
  color: #fff !important;
}

/* --- Perfectly Aligned Buttons --- */
.woocommerce ul.products li.product .button {
  margin: auto 1.5rem 1.5rem !important;
  display: block !important;
  width: auto !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 0.85rem 1rem !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
}

.woocommerce ul.products li.product .button:hover {
  background: #4f46e5 !important;
  transform: translateY(-2px);
}

/* Coming Soon Badge */
.woocommerce ul.products li.product .coming-soon-badge {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border: 1px dashed rgba(99, 102, 241, 0.4) !important;
  cursor: default !important;
  pointer-events: none;
}

.coming-soon-single-wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.coming-soon-btn-disabled {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border: 1px dashed rgba(99, 102, 241, 0.5) !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none;
  width: 100%;
  padding: 1.25rem 2rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  display: block;
  text-align: center;
}

/* The Single Product Page Overrides */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 2rem;
}

.woocommerce div.product div.images {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.woocommerce div.product div.summary {
  flex: 1;
  min-width: 320px;
}

.woocommerce div.product .product_title {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text-main) !important;
}

.woocommerce div.product p.price {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  margin-bottom: 2rem;
}

/* --- Homepage Looping Marquee --- */
.recent-products-marquee {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: #060608;
  overflow: hidden;
}

.marquee-header {
  margin-bottom: 2rem;
  text-align: left;
}

.marquee-header h3 {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  display: block; /* This stops the track from shrinking to the screen size */
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 85s linear infinite;
  width: max-content;
  padding: 1rem 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); } 
}

.marquee-product-card {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.marquee-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.product-thumb {
  background: #000;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.marquee-product-card:hover .product-thumb img {
  opacity: 1;
}

.product-info {
  padding: 1.25rem;
}

.product-info h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.marquee-footer {
  margin-top: 3rem;
  text-align: center;
}

/* ========================================================
   CUSTOM BUY NOW CHECKOUT PAGE UI
======================================================== */
.checkout-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 4rem;
}

.checkout-error {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 3rem;
}

.checkout-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.checkout-product-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.checkout-product-thumb {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.checkout-product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.checkout-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* Sleek Payment Stack */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option-wrapper {
  position: relative;
}

.payment-option-wrapper.is-disabled .payment-card {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(100%);
}

.stripe-overlay-small {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

.stripe-overlay-small span {
  background: var(--bg-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

/* The Linktree style button */
.payment-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  transition: all 0.25s ease;
  cursor: pointer;
  outline: none;
}

.payment-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.payment-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-icon svg {
  width: 100%;
  height: 100%;
}

.payment-title {
  font-size: 1.1rem;
  font-weight: 600;
  flex-grow: 1;
  text-align: center;
}

.payment-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
}

/* Hover Accent Colors */
.payment-card.stripe-btn:hover { border-color: #6366f1; }
.payment-card.venmo-btn:hover { border-color: #008CFF; }
.payment-card.cashapp-btn:hover { border-color: #00D632; }
.payment-card.zelle-btn:hover { border-color: #7413dc; }

/* Instruction Cards */
.payment-instruction-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.payment-instruction-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.handle-box {
  background: var(--bg-card);
  border: 2px dashed var(--accent);
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 1.5rem 0;
  user-select: all;
}

.note-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.fulfillment-text {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.back-to-methods {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.back-to-methods:hover {
  background: var(--bg-card-hover);
  border-color: #3b3b48;
}

/* ========================================================
   RESTORED: CONTACT PAGE STYLING
======================================================== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form .input-wrapper {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-align: left;
}

.contact-form textarea,
.contact-form input[type="email"] {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 200px; 
}

.contact-form textarea:focus,
.contact-form input[type="email"]:focus {
  border-color: var(--accent);
}

.contact-form .submit-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========================================================
   RESTORED: FAQ ACCORDION STYLING
======================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  font-weight: 400;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-question {
  color: var(--accent);
}

/* ========================================================
   RESTORED: FOOTER STYLING
======================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #050507;
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ========================================================
   RESTORED: FORCE MOUSE SCROLL INDICATOR
======================================================== */
.scroll-indicator {
  margin-top: 3.5rem !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
  display: block !important;
}

.wheel {
  width: 3px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ========================================================
   CUSTOM LINKS (LINKTREE) PAGE STYLING
======================================================== */
.links-bio-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 3rem;
}

.bio-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bio-avatar {
  width: 90px;
  height: 90px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.bio-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.bio-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.linktree-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-heading {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.5px;
}

.links-footer-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1rem;
}

/* Link Cards */
.link-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s ease;
  cursor: pointer;
  outline: none;
}

.link-card.direct-link:hover,
.dropdown-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.link-icon, .link-icon-spacer {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  flex-grow: 1;
  text-align: center;
}

.link-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  width: 28px;
  text-align: right;
}

/* Link Accordion (For Apple Music) */
.link-card-accordion {
  border-radius: 12px;
}

.link-card-accordion.active .dropdown-toggle {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  transform: none;
  box-shadow: none;
}

.link-card-accordion.active .link-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.dropdown-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.link-card-accordion.active .dropdown-content {
  grid-template-rows: 1fr;
  border-color: var(--accent);
}

.dropdown-inner {
  overflow: hidden;
}

.dropdown-disclaimer {
  padding: 1.5rem 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

.split-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.split-btn {
  padding: 1rem !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
}

/* Minimalist Theme-Matched Sale Badge */
ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin: 0;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none;
    z-index: 10;
}

/* Ensure the card contains positioned elements */
ul.products li.product {
    position: relative !important;
    overflow: hidden; /* Clips anything overflowing card corners */
}

/* Tuck the sale badge neatly inside the top right corner */
ul.products li.product .onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    min-height: unset !important;
    min-width: unset !important;
    border-radius: 9999px !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

/* ========================================================
   MOBILE MENU & RESPONSIVE ADJUSTMENTS
======================================================== */
@media (max-width: 768px) {
  /* Center the Logo in Header */
  .header-inner {
    position: relative;
    justify-content: center;
  }
  
  /* Show Hamburger on Right Side */
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    z-index: 101;
  }
  
  .mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
  }
  
  /* Convert Nav Menu to Sliding Side Panel */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.is-open {
    right: 0;
  }
  
  /* Sidebar Close Button */
  .mobile-menu-close {
    display: flex;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    cursor: pointer;
  }
  
  .mobile-menu-close svg {
    width: 26px;
    height: 26px;
  }
  
  /* Make Nav Items Stack Cleanly */
  .nav-item {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .nav-btn-primary {
    text-align: center;
    margin-top: 1rem;
  }
  
  /* Dimmed Background Overlay */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep existing mobile layout fixes */
  .hero-actions {
    flex-direction: column;
  }
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .woocommerce div.product {
    gap: 2rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   RUBEUNS CUSTOM HEADER STYLES
   ========================================================================== */

.rb-header-wrapper {
  width: 100%;
  background-color: #0b0c10; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.rb-logo span {
  color: #6366f1; /* Accent dot */
}

.rb-btn {
  background: #ffffff !important;
  color: #000000 !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.rb-btn:hover {
  opacity: 0.85;
}

/* --- DESKTOP STYLES --- */
.rb-desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rb-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rb-nav-right a:not(.rb-btn) {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.rb-nav-right a:not(.rb-btn):hover {
  color: #ffffff;
}

/* Hide mobile elements by default */
.rb-mobile-header, .rb-overlay, .rb-drawer {
  display: none;
}

/* --- MOBILE STYLES (Triggers at 768px) --- */
@media (max-width: 768px) {
  
  /* Hide desktop header completely */
  .rb-desktop-header {
    display: none !important;
  }
  
  /* Show & center mobile header */
  .rb-mobile-header {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1.25rem;
    position: relative;
  }

  /* 3 Vertical Lines Button */
  .rb-menu-toggle {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    gap: 5px; 
    padding: 0.5rem;
    align-items: center;
  }

  .rb-vline {
    width: 3px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 3px;
  }

  /* Side Panel Drawer */
  .rb-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px; 
    width: 280px;
    height: 100vh;
    background-color: #0b0c10;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
    padding: 2rem 1.5rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  }
  
  .rb-drawer.active {
    right: 0;
  }

  .rb-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 2rem;
  }

  .rb-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .rb-drawer-links a:not(.rb-btn) {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .rb-drawer-links .rb-btn {
    text-align: center;
    margin-top: 1rem;
  }

  /* Dimmed Overlay */
  .rb-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .rb-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- THE NUCLEAR HORIZONTAL SCROLL FIX --- */
html, body {
  overflow-x: hidden !important;
  position: relative; /* Required for iOS to respect overflow-x */
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Force all elements to include padding in their total width */
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Prevent images or videos from breaking the screen width */
img, video, iframe {
  max-width: 100% !important;
  height: auto;
}

.recent-products-marquee .marquee-track {
  display: flex !important;
  width: max-content !important; /* Allows track to stretch freely */
  gap: 1.5rem;
}

.recent-products-marquee .marquee-product-card {
  flex: 0 0 280px !important; /* Prevents cards from shrinking/slicing */
  width: 280px !important;
  max-width: none !important;
  box-sizing: border-box;
}

.recent-products-marquee .product-thumb img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block;
}