/* ===== POKEVAULT TCG — PREMIUM DESIGN SYSTEM (POKECLOVER INSPIRED) ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-card: #ffffff;
  --bg-glass: #ffffff;
  --border-glass: #e5e7eb;
  
  /* Modern clean monochrome palette with subtle accents */
  --blue: #000000; /* Primary brand color */
  --blue-light: #374151; /* Hover states */
  --gold: #d4af37; /* Premium Gold Accents */
  --gold-light: #fcd34d;
  --red: #ef4444;
  --green: #10b981;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --glow-blue: none;
  --glow-gold: none;
  
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 5%;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo, .auth-logo, .sidebar-logo {
  font-size: 1.55rem; font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 0.8rem;
  transition: transform 0.3s ease;
}

.premium-logo-img {
  height: 46px;
  width: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.55);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.2),
    0 4px 18px rgba(0,0,0,0.25),
    0 0 20px rgba(212,175,55,0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover .premium-logo-img,
.auth-logo:hover .premium-logo-img,
.sidebar-logo:hover .premium-logo-img {
  transform: scale(1.07) rotate(-3deg);
  border-color: rgba(212,175,55,0.9);
  box-shadow:
    0 0 0 3px rgba(212,175,55,0.3),
    0 8px 24px rgba(0,0,0,0.3),
    0 0 30px rgba(212,175,55,0.45);
}

.premium-logo-text {
  /* Gold gradient readable on both light & dark navbars */
  background: linear-gradient(135deg, #D4AF37 0%, #f0c040 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 1.45rem;
  filter: drop-shadow(0 1px 6px rgba(212,175,55,0.35));
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}

.nav-links a, .nav-dropdown-btn {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform 0.3s ease;
  transform-origin: right;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-width: 200px; padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.nav-dropdown:hover .nav-dropdown-menu { display: flex; flex-direction: column; gap: 2px; }

.nav-dropdown-menu a {
  display: block; padding: 0.75rem 1rem;
  color: var(--text-secondary); text-decoration: none;
  border-radius: var(--radius-sm); font-size: 0.9rem;
  transition: var(--transition);
}

.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { color: var(--text-primary); background: var(--bg-secondary); }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.cart-icon {
  position: relative; color: var(--text-primary);
  text-decoration: none; font-size: 1.4rem;
  transition: var(--transition); display: flex; align-items: center;
}

.cart-icon:hover { transform: translateY(-2px); }

.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(220,38,38,0.3);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem; border-radius: 0px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition);
  border: none; text-decoration: none;
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--text-secondary);
}

.btn-gold {
  background: var(--gold);
  color: #fff; font-weight: 700;
}

.btn-gold:hover { 
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-outline:hover { 
  background: var(--bg-secondary); 
  border-color: var(--text-primary); 
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ===== HERO ===== */
/* ===== HERO - CINEMATIC EDITION ===== */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgePop {
  0%   { opacity: 0; transform: scale(0.7) translateY(-20px); }
  60%  { transform: scale(1.08) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes titleShimmer {
  0%, 100% { background-position: -200% center; }
  50%       { background-position: 200% center; }
}
@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(212,175,55,0.4), 0 4px 20px rgba(0,0,0,0.6); }
  50%       { text-shadow: 0 0 50px rgba(212,175,55,0.9), 0 0 100px rgba(212,175,55,0.4), 0 4px 20px rgba(0,0,0,0.6); }
}
@keyframes heroPanBg {
  0%   { background-position: center center; }
  50%  { background-position: center 55%; }
  100% { background-position: center center; }
}
@keyframes heroDividerGrow {
  from { width: 0; opacity: 0; }
  to   { width: 80px; opacity: 1; }
}
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.5), 0 8px 32px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(212,175,55,0), 0 12px 40px rgba(212,175,55,0.3); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes overlayShimmer {
  0%   { opacity: 0; transform: skewX(-15deg) translateX(-100%); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: skewX(-15deg) translateX(100vw); }
}

.hero {
  min-height: 92vh;
  background-image: url('../image%202.webp');
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  text-align: center;
  margin-top: 80px;
  overflow: hidden;
  animation: heroPanBg 20s ease-in-out infinite;
}

/* Deep cinematic gradient overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212,175,55,0.12) 0%, transparent 70%),
    linear-gradient(to top, rgba(5,5,15,0.97) 0%, rgba(10,10,25,0.75) 50%, rgba(10,10,25,0.45) 100%);
  z-index: 0;
}

/* Sweeping light flash */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(212,175,55,0.08) 50%, transparent 70%);
  animation: overlayShimmer 8s ease-in-out infinite;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 820px; padding: 2rem 1.5rem;
  color: #fff;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(212,175,55,0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.4);
  color: #D4AF37; padding: 0.55rem 1.4rem;
  border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  margin-bottom: 1.75rem; text-transform: uppercase; letter-spacing: 2px;
  animation: heroBadgePop 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
.hero-badge i { color: #D4AF37; font-size: 0.85rem; }

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 900; line-height: 1.0;
  margin-bottom: 0.5rem; letter-spacing: -0.03em;
  animation: heroReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #D4AF37 0%, #fff8dc 30%, #F5C842 55%, #D4AF37 80%, #fff8dc 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4s linear infinite, goldGlow 3s ease-in-out infinite;
  animation-delay: 1.2s, 1.2s;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.5));
}

/* Gold divider line */
.hero-divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  margin: 1.25rem auto 1.75rem;
  animation: heroDividerGrow 1s ease 0.9s both;
}

.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem; max-width: 620px;
  margin-left: auto; margin-right: auto;
  line-height: 1.75; font-weight: 400;
  animation: heroReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.55s both;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: heroReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.75s both;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #D4AF37, #F5C842);
  color: #0a0a0a;
  border: none;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  border-radius: 4px;
  font-size: 0.9rem;
  position: relative; overflow: hidden;
  animation: ctaBreath 3s ease-in-out 1.5s infinite;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-actions .btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}
.hero-actions .btn-primary:hover::before { left: 140%; }
.hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 48px rgba(212,175,55,0.5);
}

.hero-actions .btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  padding: 1.1rem 2.5rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 0.85rem;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute; bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.4); font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase;
  animation: heroReveal 1s ease 1.5s both, scrollBounce 2s ease-in-out 2.5s infinite;
  z-index: 2;
}
.hero-scroll-hint i { font-size: 1.2rem; }

.hero-stats {
  display: flex; gap: 3rem; justify-content: center; margin-top: 3rem;
  animation: heroReveal 0.9s cubic-bezier(0.22,1,0.36,1) 0.9s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem; font-weight: 900; color: #D4AF37;
  text-shadow: 0 0 20px rgba(212,175,55,0.5);
}
.hero-stat .label {
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
  margin-top: 0.2rem;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 5%; }
.section-sm { padding: 4rem 5%; }
.bg-light { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .tag {
  display: inline-block; color: var(--gold);
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.5px;
}
.section-header p { color: var(--text-secondary); margin-top: 1rem; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

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

/* ===== CATEGORY CARDS ===== */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* --- Entrance animation keyframes --- */
@keyframes cardRiseIn {
  0%   { opacity: 0; transform: translateY(60px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-8px) scale(1.02); }
  80%  { transform: translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmerSweep {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes imgFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes headerReveal {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes tagPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shopLinkDraw {
  0%   { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Section header entrance */
.categories-section-header.cat-header-animated .tag {
  animation: tagPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.categories-section-header.cat-header-animated h2 {
  animation: headerReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}
.categories-section-header.cat-header-animated p {
  animation: headerReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

/* Card entrance states */
.category-card {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
}
.category-card.cat-animated {
  animation: cardRiseIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  opacity: 1;
  transform: none;
}

/* Stagger each card */
.category-card.cat-animated:nth-child(1) { animation-delay: 0.05s; }
.category-card.cat-animated:nth-child(2) { animation-delay: 0.15s; }
.category-card.cat-animated:nth-child(3) { animation-delay: 0.25s; }
.category-card.cat-animated:nth-child(4) { animation-delay: 0.35s; }
.category-card.cat-animated:nth-child(5) { animation-delay: 0.45s; }
.category-card.cat-animated:nth-child(6) { animation-delay: 0.55s; }

/* Gold shimmer sweep on entry */
.category-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.18), transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
.category-card.cat-animated::after {
  opacity: 1;
  animation: shimmerSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Image float — continuous once animated */
.category-card.cat-animated .category-img-wrap img {
  animation: imgFloat 3.5s ease-in-out infinite;
}
.category-card.cat-animated:nth-child(2) .category-img-wrap img { animation-delay: 0.4s; }
.category-card.cat-animated:nth-child(3) .category-img-wrap img { animation-delay: 0.8s; }
.category-card.cat-animated:nth-child(4) .category-img-wrap img { animation-delay: 0.2s; }
.category-card.cat-animated:nth-child(5) .category-img-wrap img { animation-delay: 0.6s; }
.category-card.cat-animated:nth-child(6) .category-img-wrap img { animation-delay: 1s; }

/* Shop Now underline draws in after card rises */
.category-card.cat-animated .shop-link::after {
  transform-origin: left;
  animation: shopLinkDraw 0.5s ease 0.9s both;
}

@media (max-width: 768px) {
  .categories-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .categories-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .category-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  /* On mobile, run cards in tighter succession */
  .category-card.cat-animated:nth-child(1) { animation-delay: 0.1s; }
  .category-card.cat-animated:nth-child(2) { animation-delay: 0.2s; }
  .category-card.cat-animated:nth-child(3) { animation-delay: 0.3s; }
  .category-card.cat-animated:nth-child(4) { animation-delay: 0.4s; }
  .category-card.cat-animated:nth-child(5) { animation-delay: 0.5s; }
  .category-card.cat-animated:nth-child(6) { animation-delay: 0.6s; }
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 3rem 2rem; text-align: center;
  text-decoration: none; color: var(--text-primary);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative; overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex; flex-direction: column; align-items: center;
  z-index: 1;
}

.category-card::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
  opacity: 0;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px rgba(212,175,55,0.15);
}

.category-card:hover::before {
  opacity: 1;
  border-color: var(--gold);
}

.category-img-wrap {
  width: 160px; height: 160px;
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.category-img-wrap img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.1) translateY(-8px);
  filter: drop-shadow(0 20px 30px rgba(212,175,55,0.25));
}

.category-card h3 { 
  font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px; 
}
.category-card p { 
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1.5rem; flex-grow: 1;
}

.shop-link {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.shop-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: right;
}
.category-card:hover .shop-link::after { transform: scaleX(1); transform-origin: left; }

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  position: relative; cursor: pointer;
  text-decoration: none; color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
}

.product-img-wrap {
  aspect-ratio: 1; overflow: hidden;
  background: transparent;
  position: relative;
  border-radius: var(--radius-lg);
}

.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.stock-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 0.35rem 0.75rem; border-radius: 50px;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; z-index: 2;
}

.stock-in { background: #fff; color: var(--text-primary); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.stock-out { background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border-glass); }

.product-info { padding: 1.25rem 0.5rem 0.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-info .cat-tag {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600; margin-bottom: 0.5rem;
}
.product-info h3 {
  font-size: 1.05rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--gold); }

.add-to-cart-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border-glass);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1.1rem; cursor: pointer;
}

.add-to-cart-btn:hover {
  background: var(--text-primary); color: #fff;
  border-color: var(--text-primary);
}

/* ===== GLASS CARD / CONTAINERS ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 0px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.6rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 1rem;
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1);
}

/* ===== TOAST ===== */
#toast {
  position: fixed; bottom: 2rem; right: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: calc(100vw - 2rem);
}

.toast-msg {
  background: #fff; border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: min(300px, calc(100vw - 2rem)); max-width: min(400px, calc(100vw - 2rem));
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid var(--red); }

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 10rem 5% 5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  text-align: center;
}

.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -1px; }
.page-header p { color: var(--text-secondary); margin-top: 1rem; font-size: 1.15rem; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 3rem; align-items: center; justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.5rem; border-radius: 0px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card); color: var(--text-secondary);
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}

.filter-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.filter-btn.active {
  background: var(--text-primary); border-color: var(--text-primary);
  color: #fff;
}

/* ===== CART PAGE ===== */
.cart-item {
  display: flex; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border-glass);
}

.cart-item img {
  width: 90px; height: 90px; object-fit: contain;
  border-radius: var(--radius-md); flex-shrink: 0;
  background: transparent;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary); }
.cart-item-info .price { color: var(--gold); font-weight: 800; font-size: 1.1rem; }

.cart-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); font-size: 1.25rem; padding: 0.5rem;
}
.cart-remove:hover { color: var(--red); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 5rem 5% 2rem;
}

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem; margin-bottom: 4rem; max-width: 1400px; margin-left: auto; margin-right: auto;
}

.footer-logo {
  font-size: 1.75rem; font-weight: 900;
  color: #fff; text-decoration: none;
  margin-bottom: 1rem; display: block;
}

.footer p { color: #9ca3af; font-size: 0.95rem; line-height: 1.6; }

.footer h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 1.5rem; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer ul a { color: #9ca3af; text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 1rem; max-width: 1400px; margin-left: auto; margin-right: auto;
  color: #6b7280; font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: 70px; overflow: visible; }
  .nav-logo { font-size: 1.1rem; gap: 0.5rem; }
  .premium-logo-img { height: 32px; }
  .premium-logo-text { font-size: 1.1rem; }
  .mobile-menu-btn { display: block; }
  .nav-links { 
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 1rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border-glass); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a, .nav-dropdown-btn {
    display: block; width: 100%; padding: 1rem 0; text-align: left;
  }
  .nav-dropdown-menu {
    position: static; transform: none; box-shadow: none; border: none;
    border-left: 2px solid var(--border-glass); border-radius: 0;
    margin: 0 0 1rem 1rem; padding: 0;
  }
  .nav-dropdown-menu a { padding: 0.75rem 1rem; }
  .nav-actions { gap: 0.5rem; }
  /* Compress language selector on mobile */
  .custom-lang-selector { margin-right: 8px; }
  .lang-selector-btn { padding: 6px 10px; font-size: 0.8rem; gap: 4px; }
  .lang-selector-btn .arrow { display: none; }
  .hero { margin-top: 70px; min-height: 88vh; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; max-width: 100%; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); margin-bottom: 0.25rem; }
  .hero-scroll-hint { display: none; }
  .hero-divider { margin: 1rem auto 1.25rem; }
  .hero-actions .btn-primary { padding: 1rem 2rem; font-size: 0.85rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .section, .section-sm { padding: 4rem 1rem; }
  .page-header { padding: 8rem 1rem 3rem; }
  .footer { padding: 4rem 1rem 1.5rem; }
}

/* ===== AUTH PAGE ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg-secondary);
}
.auth-card {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.auth-tabs { display: flex; margin-bottom: 2.5rem; background: var(--bg-secondary); border-radius: 50px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 0.75rem; border: none; border-radius: 50px;
  background: none; color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition);
}
.auth-tab.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg-secondary); }
.admin-sidebar {
  background: #fff; border-right: 1px solid var(--border-glass);
  padding: 2.5rem 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-nav { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2.5rem; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem; border-radius: var(--radius-md);
  background: none; border: none; width: 100%; text-align: left;
  color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.admin-nav-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }
.admin-nav-btn.active { background: var(--text-primary); color: #fff; }
.admin-main { padding: 3rem; overflow-y: auto; }
/* ===== CUSTOM PREMIUM LANGUAGE SWITCHER ===== */
/* Hide Google's native elements */
.goog-te-banner-frame { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
/* Only reset top offset from Google Translate, do NOT change position property */
body { top: 0px !important; }
html { top: 0px !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Custom Selector Container */
.custom-lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
}

/* Luxury Button */
.lang-selector-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
}

.lang-selector-btn .fa-globe {
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.lang-selector-btn .arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.custom-lang-selector:hover .lang-selector-btn {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15), inset 0 0 0 1px rgba(212,175,55,0.2);
  transform: translateY(-1px);
}

.custom-lang-selector:hover .fa-globe {
  transform: rotate(15deg);
}

.custom-lang-selector:hover .arrow {
  color: var(--gold);
  transform: rotate(180deg);
}

/* Premium Dropdown Menu */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  min-width: 160px;
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 1px rgba(212,175,55,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--gold);
  transform: translateX(3px);
}

.lang-flag {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #1a1a2e;
  font-size: 0.58rem; font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  min-width: 22px;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Hide Google Translate Top Bar & Popups */
html {
  top: 0 !important;
}

body {
  top: 0 !important;
}

.skiptranslate iframe,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}

.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

 
 
/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 1px rgba(212,175,55,0.2);
  background: rgba(255,255,255,0.03);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(59,130,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.2);
  transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(59,130,246,0.15));
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature-card {
    padding: 1.5rem;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .feature-card h3 {
    margin-bottom: 0.4rem;
  }
}

/* Status Badges */
.status-badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-pending { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.status-confirmed { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.status-payment-done { background: rgba(59,130,246,0.15); color: var(--blue-light); border: 1px solid rgba(59,130,246,0.3); }
.status-shipping-now { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
