/* ===== FONTS ===== */
@font-face {
  font-family: 'Delta';
  src: url('fonts/delta.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Delta2';
  src: url('fonts/delta2.ttf') format('truetype');
  font-display: swap;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Delta2', sans-serif;
  min-height: 100vh;
}




/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  padding: 0.7rem 0;
}


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: default;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}


.logo-community {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: #443b1e;
}

.logo-delta {
  font-size: 1rem;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-cta {
  margin-left: 0.6rem;
  background: #d4af37;
  color: #0a0a0a !important;
  padding: 0.48rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.nav-cta:hover {
  color: #0a0a0a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 127, 251, 0.4);
  filter: brightness(1.15);
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.4rem;
    transition: right 0.35s ease;
    border-left: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
  }
}

.nav-logo-link {
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

.nav-logo-link:active {
  transform: scale(0.97);
}




/* ===== STORE HERO ===== */
.store-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  overflow: hidden;
  padding-top: 80px;
}
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(212,175,55,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(180,0,0,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.store-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.store-hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}
.store-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: heroFadeUp 0.9s ease both;
}
.store-hero-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.4);
  padding: 0.28rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  animation: heroFadeUp 0.9s 0.1s ease both;
}
.store-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 40px rgba(212,175,55,0.25);
  animation: heroFadeUp 0.9s 0.2s ease both;
}
.store-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  margin-top: 0.8rem;
  animation: heroFadeUp 0.9s 0.35s ease both;
}

/* ===== LAYOUT ===== */
.store-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.store-tabs-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  scrollbar-width: none;
}
.store-tabs-wrap::-webkit-scrollbar { display: none; }
.store-tabs {
  display: flex;
  gap: 0.6rem;
  min-width: max-content;
}
.tab-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 1.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.tab-btn:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.4);
  color: #d4af37;
  transform: translateY(-1px);
}
.tab-btn.active {
  background: rgba(212,175,55,0.12);
  border-color: #d4af37;
  color: #d4af37;
}

.store-main {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ===== FLIP CARD ===== */
.flip-card {
  height: 300px;
  perspective: 1000px;
  animation: cardReveal 0.5s ease both;
}
.flip-card:nth-child(1)  { animation-delay: 0.05s; }
.flip-card:nth-child(2)  { animation-delay: 0.10s; }
.flip-card:nth-child(3)  { animation-delay: 0.15s; }
.flip-card:nth-child(4)  { animation-delay: 0.20s; }
.flip-card:nth-child(5)  { animation-delay: 0.25s; }
.flip-card:nth-child(6)  { animation-delay: 0.30s; }
.flip-card:nth-child(7)  { animation-delay: 0.35s; }
.flip-card:nth-child(8)  { animation-delay: 0.40s; }
.flip-card:nth-child(9)  { animation-delay: 0.45s; }

.flip-card.hidden { display: none; }

.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.flip-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.flip-back { transform: rotateY(180deg); }

/* Tier colors */
.tier-bronze { background: linear-gradient(145deg, #1a1208, #2a1e0a); border-color: rgba(205,127,50,0.3); }
.tier-bronze .card-icon, .tier-bronze h3 { color: #cd7f32; }
.tier-bronze .card-price { color: #cd7f32; }

.tier-silver { background: linear-gradient(145deg, #111318, #1a1e24); border-color: rgba(192,192,192,0.3); }
.tier-silver .card-icon, .tier-silver h3 { color: #c0c0c0; }
.tier-silver .card-price { color: #c0c0c0; }

.tier-gold { background: linear-gradient(145deg, #1a1508, #26200a); border-color: rgba(212,175,55,0.4); }
.tier-gold .card-icon, .tier-gold h3 { color: #d4af37; }
.tier-gold .card-price { color: #d4af37; }

.tier-red { background: linear-gradient(145deg, #180808, #220e0e); border-color: rgba(200,50,50,0.3); }
.tier-red .card-icon, .tier-red h3 { color: #e05555; }
.tier-red .card-price { color: #e05555; }

.tier-blue { background: linear-gradient(145deg, #080e18, #0e1622); border-color: rgba(50,120,200,0.3); }
.tier-blue .card-icon, .tier-blue h3 { color: #5599e0; }
.tier-blue .card-price { color: #5599e0; }

.tier-green { background: linear-gradient(145deg, #081208, #0e1e0e); border-color: rgba(50,180,80,0.3); }
.tier-green .card-icon, .tier-green h3 { color: #50c864; }
.tier-green .card-price { color: #50c864; }

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  transition: transform 0.3s;
}
.flip-card:hover .card-icon { transform: scale(1.1); }

.flip-front h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.card-price { font-size: 1.5rem; font-weight: 900; margin: 0.3rem 0; }
.flip-hint { font-size: 0.7rem; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; margin-top: 0.6rem; }

.card-badge {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-weight: 700;
  background: rgba(212,175,55,0.15);
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.35);
}

/* Flip back content */
.flip-back h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; }
.flip-back ul { list-style: none; text-align: left; width: 100%; margin-bottom: 1rem; }
.flip-back ul li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}
.flip-back ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: inherit;
  opacity: 0.7;
}

.add-to-cart {
  width: 100%;
  padding: 0.55rem;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0a0a0a;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  margin-top: auto;
}
.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
  filter: brightness(1.1);
}
.add-to-cart:active { transform: scale(0.97); }

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: rgba(15,15,15,0.95);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  position: sticky;
  top: 90px;
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
.cart-sidebar.visible {
  transform: translateX(0);
  opacity: 1;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-header h3 { font-size: 0.95rem; color: #d4af37; letter-spacing: 0.06em; }
.cart-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.cart-close:hover { color: #fff; transform: rotate(90deg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.2) transparent;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}
.cart-empty i { font-size: 2rem; }

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: cartItemIn 0.3s ease both;
}
.cart-item-name { font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.cart-item-price { font-size: 0.82rem; color: #d4af37; font-weight: 700; }
.cart-item-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: #e05555; }

.cart-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.cart-total span:last-child { color: #d4af37; font-weight: 700; font-size: 1rem; }

.btn-clear {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-clear:hover { background: rgba(200,50,50,0.12); color: #e05555; border-color: rgba(200,50,50,0.3); }

.btn-checkout {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  border: none;
  color: #0a0a0a;
  padding: 0.65rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
  filter: brightness(1.1);
}

/* ===== CART FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  border: none;
  color: #0a0a0a;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.5);
}
.cart-fab:active { transform: scale(0.95); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #e05555;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0a;
  transition: transform 0.2s;
}
.cart-count.bump { animation: countBump 0.3s ease; }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: #080808;
  border-top: 1px solid rgba(212,175,55,0.1);
  padding: 4rem 0 2rem;
  overflow: hidden;
  font-family: 'Delta2', sans-serif;
}
.footer-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
  box-shadow: 0 0 40px 10px rgba(212,175,55,0.08);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
   font-family: 'Delta2', sans-serif;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin: 1rem 0 1.4rem;
  max-width: 280px;
   font-family: 'Delta2', sans-serif;
}
.footer-logo { margin-bottom: 0.5rem; }


.socials { display: flex; gap: 0.8rem; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
   font-family: 'Delta2', sans-serif;
}
.socials a:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.4);
  color: #d4af37;
  transform: translateY(-3px);
   font-family: 'Delta2', sans-serif;
}

.footer-links h4 {
  letter-spacing: 0.14em;
  color: #d4af37;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-family: 'Delta2', sans-serif;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: color 0.2s, padding-left 0.2s;
   font-family: 'Delta2', sans-serif;
}
.footer-links a:hover { color: #d4af37; padding-left: 4px; }

.footer-discord h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #d4af37;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
    font-family: 'Delta2', sans-serif;
}
.footer-discord p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 1rem;
   font-family: 'Delta2', sans-serif;
}
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.35);
  color: #7289da;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
   font-family: 'Delta2', sans-serif;
}
.btn-discord:hover {
  background: rgba(88,101,242,0.25);
  border-color: #7289da;
  transform: translateY(-2px);
   font-family: 'Delta2', sans-serif;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 1rem;
   font-family: 'Delta2', sans-serif;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
   font-family: 'Delta2', sans-serif;
}
.footer-bottom-links a:hover { color: #d4af37; }

/* ===== ANIMATIONS
/* ===== ANIMATIONS ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes countBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ===== FLIPPED STATE (mobile touch) ===== */
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .store-main { flex-direction: column; }
  .cart-sidebar {
    width: 100%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    max-height: 60vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    opacity: 1;
    z-index: 400;
  }
  .cart-sidebar.visible { transform: translateY(0); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .flip-card { height: 260px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 200, 50, 0.7);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 200, 50, 1);
}


.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d4af37;
  color: white;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, background 0.2s;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: #b8972e;
  transform: scale(1.1);
}



.maintenance-main {
  min-height: calc(100vh - 140px); /* adjust 140px to navbar+footer height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  padding: 40px 20px;
}

.maintenance-container {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

/* Fix: body.fa * { max-width:100% } in style.css has higher specificity
   than .maintenance-container above, so on the Persian language it was
   overriding the 520px limit and stretching the box to full width. */
body.fa .maintenance-container {
  max-width: 520px;
}

/* Fix: on Persian, something upstream (likely script.js) narrows the
   page's content column, which pushed .maintenance-main off-center and
   made it look smaller/shifted left. This forces it to always span the
   full viewport width and stay centered, no matter what its parent does. */
body.fa .maintenance-main {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: auto !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body.fa .maintenance-container {
  margin-left: auto !important;
  margin-right: auto !important;
}

.maintenance-icon {
  font-size: 48px;
  display: inline-block;
  animation: spin 4s linear infinite;
  margin-bottom: 24px;
  opacity: 0.7;
}

.maintenance-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 2px;
}

.maintenance-subtitle {
  font-size: 1rem;
  color: #d4af37;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

.dots span {
  animation: blink 1.2s step-start infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

.maintenance-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  margin: 0 0 32px;
}

.progress-track {
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #d4af37;
  width: 0%;
  animation: progress-loop 3s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes progress-loop {
  0%   { width: 0%;   opacity: 1; }
  75%  { width: 100%; opacity: 1; }
  85%  { width: 100%; opacity: 0; }
  86%  { width: 0%;   opacity: 0; }
  100% { width: 0%;   opacity: 1; }
}

.maintenance-main {
  animation: fadeIn 0.6s ease forwards;
}

.maintenance-container {
  animation: slideUp 0.7s ease forwards;
  opacity: 0;
}

.maintenance-icon {
  animation: spin 4s linear infinite, fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.maintenance-title {
  animation: fadeIn 0.8s ease 0.5s forwards;
  opacity: 0;
}

.maintenance-subtitle {
  animation: fadeIn 0.8s ease 0.7s forwards;
  opacity: 0;
}

.maintenance-desc {
  animation: fadeIn 0.8s ease 0.9s forwards;
  opacity: 0;
}

.progress-track {
  animation: fadeIn 0.8s ease 1.1s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
