/* ============================================================
   ARTEMIS TCG — Premium Dark Design System v2
   Deep dark theme with violet/blue accent for Pokemon TCG
   ============================================================ */

/* --- Google Fonts --- */


/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #08080c;
  --bg-secondary: #0f0f14;
  --bg-card: #12121a;
  --bg-hover: #1a1a24;
  --bg-input: #0c0c12;

  --text-primary: #eaeaf0;
  --text-secondary: #9898a8;
  --text-muted: #7a7a8e;

  --border: #1e1e2a;
  --border-hover: #2e2e40;
  --border-focus: #4a4a6a;

  --accent: #7c6ff7;
  --accent-bright: #9588ff;
  --accent-dim: #5e52d4;
  --accent-glow: rgba(124, 111, 247, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 40px rgba(124, 111, 247, 0.06);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(124, 111, 247, 0.05);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --nav-height: 64px;
  --container-max: 1400px;

  --accent-rgb: 124, 111, 247;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-whatsapp: #25d366;
  --color-gold: #ffd700;
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(124, 111, 247, 0.04) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='40' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.015'/%3E%3Cline x1='20' y1='60' x2='100' y2='60' stroke='%23ffffff' stroke-width='1' opacity='0.015'/%3E%3Ccircle cx='60' cy='60' r='10' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.015'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(124, 111, 247, 0.08);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 8, 12, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(124, 111, 247, 0.12);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(124, 111, 247, 0.3));
}

.navbar-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(124, 111, 247, 0.2);
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-links a:hover {
  color: #fff;
  opacity: 1;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* --- Mobile Menu Overlay (separate from navbar) --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #08080c;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 22px 32px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: #fff;
  background: rgba(124, 111, 247, 0.08);
  padding-left: 40px;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124, 111, 247, 0.12) 0%, rgba(124, 111, 247, 0.04) 30%, rgba(94, 82, 212, 0.02) 50%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 111, 247, 0.2) 50%, transparent 100%);
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(124, 111, 247, 0.25));
  animation: fadeSlideUp 0.6s ease both, gentleFloat 4s ease-in-out 1s infinite;
  object-fit: cover;
  background: var(--bg-primary);
  border: 2px solid rgba(124, 111, 247, 0.2);
  transition: all 0.4s ease;
}

.hero-logo:hover {
  filter: drop-shadow(0 8px 40px rgba(124, 111, 247, 0.4));
  border-color: rgba(124, 111, 247, 0.4);
  transform: scale(1.05);
}

.hero h1 {
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
  color: #ffffff;
}

.hero .subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.2px;
  animation: fadeSlideUp 0.6s ease 0.15s both;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.6s ease 0.3s both;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  border-color: rgba(124, 111, 247, 0.2);
  background: rgba(124, 111, 247, 0.05);
  color: var(--text-primary);
}

.hero-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hero-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* --- Filters Bar --- */
.filters-bar {
  padding: 16px 0;
  margin-bottom: 12px;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeSlideUp 0.4s ease 0.1s both;
}

/* Top row: search + toggle + clear */
.filters-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Dropdowns row */
.filters-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.filter-input,
.filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  min-width: 0;
}

.filter-input {
  flex: 1;
  min-width: 120px;
}

.filter-select {
  min-width: 130px;
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(124, 111, 247, 0.04);
}

.filter-input::placeholder {
  color: var(--text-muted);
}

.results-info {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.filters-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}

.filters-toggle-btn:hover,
.filters-toggle-btn.active {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Mobile: show toggle, hide dropdowns */
@media (max-width: 768px) {
  .filters-toggle-btn {
    display: inline-flex;
  }

  .filters-dropdowns {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }

  .filters-dropdowns.open {
    display: flex;
  }

  .filter-select {
    width: 100%;
    min-width: unset;
  }

  .filters-bar {
    padding: 10px 0;
  }
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0 60px;
  min-height: 300px;
}

/* --- Store Tabs (Singles / Sellados) --- */
.store-tabs {
  padding: 16px 0 8px;
  animation: fadeSlideUp 0.4s ease 0.05s both;
}

.store-tabs .container {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  max-width: 300px;
  margin: 0 auto;
}

.store-tab {
  flex: 1;
  padding: 10px 28px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.3px;
}

.store-tab:hover {
  color: var(--text-primary);
}

.store-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 111, 247, 0.3);
}

/* --- Sealed Products Grid --- */
.sealed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.sealed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-spring), box-shadow 0.4s ease, border-color 0.3s ease;
  animation: fadeSlideUp 0.5s ease both;
}

.sealed-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(124, 111, 247, 0.15);
}

.sealed-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sealed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-spring);
}

.sealed-card:hover .sealed-card-image img {
  transform: scale(1.06);
}

.sealed-card-info {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.sealed-card-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sealed-card-set {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sealed-card-type {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(124, 111, 247, 0.08);
  border: 1px solid rgba(124, 111, 247, 0.15);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.sealed-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sealed-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.sealed-card-stock {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.sealed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* --- Sealed Search Bar --- */
.sealed-search-bar {
  margin-bottom: 16px;
}

.sealed-search-bar .filter-input {
  max-width: 400px;
}

/* --- Mobile Cart Link --- */
.mobile-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-cart-link .cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0 5px;
}

/* --- Improved Empty States --- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state h3 {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin: 0;
}

.empty-state p {
  margin: 0;
  font-size: var(--text-sm);
}

/* --- Cart Empty State --- */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty-state p {
  margin: 0;
  font-size: var(--text-sm);
}

/* --- Sealed Modal --- */
.sealed-modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  transform: scale(1.2);
  z-index: 0;
}

.sealed-modal-content {
  position: relative;
  z-index: 1;
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sealed-modal-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.sealed-modal-image {
  flex-shrink: 0;
  width: 220px;
}

.sealed-modal-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.sealed-modal-info {
  flex: 1;
  min-width: 0;
}

.sealed-modal-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.sealed-modal-set {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.sealed-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.sealed-badge {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(124, 111, 247, 0.08);
  border: 1px solid rgba(124, 111, 247, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  text-transform: capitalize;
}

.sealed-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
  white-space: pre-line;
}

.sealed-modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sealed-modal-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.sealed-modal-stock {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .sealed-modal-layout {
    flex-direction: column;
    align-items: center;
  }
  .sealed-modal-image {
    width: 160px;
  }
  .sealed-modal-content {
    padding: 20px;
  }
}

/* --- Card Component --- */
.card {
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.95) 0%, rgba(15, 15, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-spring), 
              box-shadow 0.4s ease, 
              border-color 0.3s ease;
  animation: fadeSlideUp 0.5s ease both;
  position: relative;
  backdrop-filter: blur(4px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: linear-gradient(135deg, rgba(124, 111, 247, 0.04) 0%, transparent 60%);
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(124, 111, 247, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-2px) scale(0.98);
  transition: transform 0.1s ease;
}

.card[data-rarity="holo"] { border-color: rgba(96, 165, 250, 0.15); }
.card[data-rarity="holo"]:hover { border-color: rgba(96, 165, 250, 0.35); box-shadow: 0 0 20px rgba(96, 165, 250, 0.1), var(--shadow-card-hover); }
.card[data-rarity="rare"] { border-color: rgba(96, 165, 250, 0.1); }
.card[data-rarity="rare"]:hover { border-color: rgba(96, 165, 250, 0.25); }
.card[data-rarity="ultra"] { border-color: rgba(var(--accent-rgb), 0.2); }
.card[data-rarity="ultra"]:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.15), var(--shadow-card-hover); }
.card[data-rarity="illustration-rare"],
.card[data-rarity="special-illustration-rare"] { border-color: rgba(236, 72, 153, 0.15); }
.card[data-rarity="illustration-rare"]:hover,
.card[data-rarity="special-illustration-rare"]:hover { border-color: rgba(236, 72, 153, 0.35); box-shadow: 0 0 25px rgba(236, 72, 153, 0.12), var(--shadow-card-hover); }
.card[data-rarity="secret"] { border-color: rgba(255, 215, 0, 0.15); }
.card[data-rarity="secret"]:hover { border-color: rgba(255, 215, 0, 0.35); box-shadow: 0 0 25px rgba(255, 215, 0, 0.1), var(--shadow-card-hover); }

.card-image-container {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(124, 111, 247, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image-container img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform var(--transition-spring), filter 0.4s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

.card:hover .card-image-container img {
  transform: scale(1.08) rotate(0.5deg);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.7)) brightness(1.06);
}

/* Quick Add to Cart Button */
.card-quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(124, 111, 247, 0.4);
}

.card:hover .card-quick-add {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-quick-add:hover {
  background: var(--accent-bright);
  transform: translateY(0) scale(1.12);
  box-shadow: 0 6px 24px rgba(124, 111, 247, 0.5);
}

.card-quick-add:active {
  transform: translateY(0) scale(0.92);
}

.card-quick-add.added {
  background: var(--color-success) !important;
  transform: translateY(0) scale(1.2);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* Mobile: always show the button */
@media (max-width: 768px) {
  .card-quick-add {
    opacity: 1;
    transform: translateY(0) scale(1);
    width: 32px;
    height: 32px;
  }
}

.card-info {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.card-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-set {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.card-stock {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.card-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* --- Rarity Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  white-space: nowrap;
}

.badge-rarity {
  color: var(--text-secondary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.badge-rarity.common {
  opacity: 0.5;
}

.badge-rarity.uncommon {
  opacity: 0.65;
  border-color: #444;
}

.badge-rarity.rare {
  opacity: 0.8;
  border-color: #555;
  color: var(--accent-dim);
}

.badge-rarity.holo,
.badge-rarity.rare-holo {
  opacity: 0.9;
  border-color: #666;
  color: #e0e0e0;
  background: rgba(255,255,255,0.06);
}

.badge-rarity.ultra,
.badge-rarity.rare-ultra,
.badge-rarity.illustration-rare,
.badge-rarity.special-illustration-rare {
  opacity: 1;
  border-color: #777;
  color: #fff;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.badge-rarity.secret,
.badge-rarity.hyper-rare,
.badge-rarity.rare-secret {
  opacity: 1;
  border-color: #b8860b;
  color: #ffd700;
  background: linear-gradient(90deg, rgba(255,215,0,0.06) 0%, rgba(255,215,0,0.15) 50%, rgba(255,215,0,0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.badge-condition {
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 0.6rem;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-bg-blur {
  position: fixed;
  inset: -60px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(70px) saturate(1.6) brightness(0.35);
  transform: scale(1.3);
  pointer-events: none;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-image {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 400px;
  cursor: grab;
}

.modal-image img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7));
  border-radius: var(--radius-md);
  will-change: transform;
  --shine: 50%;
}

/* Holographic shine overlay on tilt */
.modal-image img.tilting::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 70%
  );
  background-position-x: var(--shine);
  pointer-events: none;
}

/* Shine via pseudo-element on the container instead (img can't have ::after) */
.modal-image {
  position: relative;
}
.modal-image::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: var(--radius-md);
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 42%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 58%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-image:hover::after {
  opacity: 1;
}

.modal-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.modal-set {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
}

.modal-field-label {
  color: var(--text-muted);
  font-weight: 500;
}

.modal-field-value {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  padding: 12px 0;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.modal-stock {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-stock.in-stock {
  color: var(--accent-dim);
}

.modal-stock.out-of-stock {
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  border: none;
}

.btn-solid:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 111, 247, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(124, 111, 247, 0.06);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  border-color: #555;
  color: #ccc;
}

.btn-danger:hover {
  background: rgba(255,100,100,0.08);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 14px 28px;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-whatsapp:hover::before {
  transform: translateX(100%);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 111, 247, 0.3);
}

/* --- Form Inputs --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* --- Admin Login --- */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card h2 {
  margin-bottom: 8px;
}

.login-card p {
  margin-bottom: 28px;
  font-size: 0.85rem;
}

.login-card .form-group {
  margin-bottom: 20px;
}

/* --- Admin Dashboard --- */
.dashboard-section {
  padding-top: calc(var(--nav-height) + 24px);
  min-height: 100vh;
}

.dashboard-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Admin Search Results --- */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  animation: fadeIn 0.3s ease both;
}

.search-result-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-result-card.selected {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 12px;
}

.search-result-info {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.search-result-info .name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info .set {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Add Card Form --- */
.add-card-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  animation: slideUp 0.3s ease;
}

.add-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.add-card-preview img {
  width: 180px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.add-card-preview .name {
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
}

.add-card-preview .set {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.add-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.add-card-fields .form-group.full-width {
  grid-column: 1 / -1;
}

/* --- Inventory Table --- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.inventory-table thead {
  background: rgba(255,255,255,0.03);
}

.inventory-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.inventory-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.inventory-table tbody tr {
  transition: background var(--transition-fast);
}

.inventory-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.inventory-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

.inventory-table .thumb {
  width: 40px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}

.inventory-table .inline-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 80px;
  transition: border-color var(--transition-fast);
}

.inventory-table .inline-input:focus {
  border-color: var(--border-focus);
}

.inventory-table .inline-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 70px;
  appearance: none;
}

.inventory-table .actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.inventory-table .btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.inventory-table .btn-icon:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.06);
}

/* --- Data Section --- */
.data-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}

.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-card h4 {
  margin-bottom: 4px;
}

.data-card p {
  font-size: 0.82rem;
}

/* --- Skeleton Loading --- */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-image {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-info {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
  width: 60%;
}

.skeleton-line.short {
  width: 40%;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease, fadeIn 0.3s ease;
  pointer-events: auto;
  max-width: 360px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-left: 3px solid #ccc;
}

.toast.error {
  border-left: 3px solid #888;
}

.toast.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

.toast-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-danger); }
.toast.info .toast-icon { color: var(--accent-bright); }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* (orphaned .footer block removed — using .site-footer instead) */

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Staggered card animations --- */
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.10s; }
.card:nth-child(6) { animation-delay: 0.12s; }
.card:nth-child(7) { animation-delay: 0.14s; }
.card:nth-child(8) { animation-delay: 0.16s; }
.card:nth-child(9) { animation-delay: 0.18s; }
.card:nth-child(10) { animation-delay: 0.20s; }

/* --- Utility Classes --- */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }

/* --- Responsive Breakpoints --- */

/* Mobile: up to 768px */
@media (max-width: 768px) {
  .qty-btn { min-width: 40px; min-height: 40px; }
  .container {
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }

  /* Hide the desktop nav links on mobile */
  .navbar-links--desktop {
    display: none !important;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 36px);
    padding-bottom: 24px;
  }

  .hero .subtitle {
    font-size: 0.8rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-info {
    padding: 10px 12px 12px;
  }

  .card-name {
    font-size: 0.82rem;
  }

  .card-price {
    font-size: 0.95rem;
  }

  .card-badges {
    display: none;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 0;
  }

  .modal-content {
    grid-template-columns: 1fr;
    max-height: none;
    border-radius: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(10, 10, 10, 0.85);
  }

  .modal-bg-blur {
    inset: -40px;
    filter: blur(50px) saturate(1.4) brightness(0.3);
  }

  .modal-image {
    min-height: 180px;
    max-height: 45vh;
    padding: 20px;
    overflow: visible;
  }

  .modal-image::after {
    inset: 20px;
  }

  .modal-image img {
    max-height: 40vh;
    filter: drop-shadow(0 16px 50px rgba(0, 0, 0, 0.8));
  }

  .modal-details {
    padding: 20px 16px 32px;
  }

  .modal-price {
    font-size: 1.5rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
  }

  .add-card-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .add-card-fields {
    grid-template-columns: 1fr;
  }

  .add-card-preview {
    margin-bottom: 12px;
  }

  .add-card-preview img {
    max-height: 180px;
  }

  /* Admin modal: full-screen scrollable on mobile */
  #admin-modal .modal-content,
  #manual-add-modal .modal-content {
    max-width: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Search results grid: 2 columns on mobile */
  .search-results {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .search-result-card img {
    max-height: 140px;
  }

  /* Form inputs tighter on mobile */
  .form-group.full-width {
    grid-column: 1 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .cart-sidebar {
    width: 100vw;
  }

  .floating-cart-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .floating-cart-btn svg {
    width: 20px;
    height: 20px;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    right: auto;
    width: 44px;
    height: 44px;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Small phones — override to 2 cols */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .store-tab { padding: 8px 18px; font-size: 0.8rem; }
}

/* Small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium screens */
@media (min-width: 1025px) and (max-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large screens */
@media (min-width: 1281px) {
  .cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Ultra-wide */
@media (min-width: 1600px) {
  .cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- Print Styles --- */
@media print {
  .navbar,
  .filters-bar,
  .modal-overlay,
  .toast-container,
  .site-footer,
  .floating-cart-btn,
  .back-to-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}


/* ============================================================
   LANGUAGE TAG
   ============================================================ */
.lang-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  margin-right: 4px;
}

.variant-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  vertical-align: middle;
  margin-right: 4px;
}

/* ============================================================
   FLOATING CART BUTTON
   ============================================================ */
.floating-cart-btn {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  z-index: 1000;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-cart-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.floating-cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   NAV CART BUTTON
   ============================================================ */
.cart-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.cart-nav-btn:hover {
  color: var(--text-primary);
}

.cart-nav-btn svg {
  width: 18px;
  height: 18px;
}

.cart-badge {
  min-width: 18px;
  height: 18px;
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.hidden {
  display: none;
}

.cart-sidebar.visible {
  display: flex;
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-msg {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast);
  position: relative;
}

.cart-item:hover {
  border-color: var(--border-hover);
}

.cart-item img {
  width: 44px;
  height: 62px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.qty-btn:hover {
  background: var(--border);
  border-color: var(--border-hover);
}

.cart-item-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
}

.cart-item-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
  opacity: 0;
  transform: scale(0.8);
}
.cart-item:hover .cart-item-remove {
  opacity: 1;
  transform: scale(1);
}
.cart-item-remove:hover {
  background: #dc2626;
  transform: scale(1.15);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.cart-subtotal,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cart-shipping {
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cart-shipping label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.shipping-input-row {
  display: flex;
  gap: 8px;
}

.shipping-input-row .filter-input {
  flex: 1;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.shipping-result-text {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(12, 12, 18, 1) 100%);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 111, 247, 0.2) 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

/* ============================================================
   RESPONSIVE - CART
   ============================================================ */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100vw;
  }
  .floating-cart-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .floating-cart-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Shipping rate options */
.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.shipping-option:hover {
  border-color: var(--border-hover);
}
.shipping-option input[type=radio] {
  accent-color: var(--text-primary);
}
.shipping-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
}
.shipping-option-info strong {
  color: var(--text-primary);
}
.shipping-option-info span {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.shipping-est-note {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
}


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top.hidden {
  display: flex !important;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ============================================================
   CART OVERLAY (BACKDROP)
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   CLEAR FILTERS BUTTON
   ============================================================ */
.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-clear-filters:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* ============================================================
   FILTERS INFO (CARD COUNT)
   ============================================================ */
.filters-info,
.results-info {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ============================================================
   FOOTER SOCIAL LINKS
   ============================================================ */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(124, 111, 247, 0.08);
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 4px 16px rgba(124, 111, 247, 0.15);
}

/* ============================================================
   ADDITIONAL ANIMATIONS
   ============================================================ */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* Smooth card image loading */
.card-image-container img {
  opacity: 0;
  transition: opacity 0.4s ease, transform var(--transition-slow);
}

.card-image-container img.loaded {
  opacity: 1;
}

/* Add to cart button on card hover */
.card-add-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.card:hover .card-add-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MISSING BUTTON VARIANTS
   ============================================================ */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.05);
}

.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.btn-primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}

/* ============================================================
   CLOSE MODAL BUTTON (SHARED)
   ============================================================ */
.close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}


/* ============================================================
   CHECKOUT PAGE STYLES
   ============================================================ */

.checkout-section {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  min-height: 100vh;
}

.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}

.checkout-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.checkout-header .subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-empty {
  text-align: center;
  padding: 80px 20px;
}

.checkout-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.checkout-empty p {
  color: var(--text-muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.checkout-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Order Items --- */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 56px;
  height: 78px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.order-item-info {
  min-width: 0;
}

.order-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-set {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.order-item-qty {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.order-item-price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.order-item-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

/* --- Order Totals --- */
.order-totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.order-total-row.total-final {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

/* --- Checkout Form --- */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-input,
.form-select {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.form-input.error,
.form-select.error {
  border-color: #e74c3c;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- Payment Card --- */
.checkout-payment-card {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.payment-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.payment-field {
  margin-bottom: 16px;
}

.payment-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.payment-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.payment-value.mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.payment-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copy:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  color: #fff;
}

.btn-copy.copied {
  background: rgba(255,255,255,0.12);
  border-color: #4ade80;
  color: #4ade80;
}

.copy-label {
  font-size: 0.72rem;
}

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin: 20px 0 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.payment-notice {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.payment-notice p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-whatsapp:hover {
  background: #1fb855;
}

.btn-block {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.checkout-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.checkout-back-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* --- Checkout Responsive --- */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-payment-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-card {
    padding: 20px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-header h1 {
    font-size: 1.4rem;
  }

  .order-item {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .order-item-img {
    width: 48px;
    height: 67px;
  }
}


/* ============================================================
   CHECKOUT ITEMS (from checkout.js render)
   ============================================================ */
.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item__image img {
  width: 56px;
  height: 78px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.checkout-item__details {
  min-width: 0;
}

.checkout-item__name {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item__set {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.checkout-item__meta {
  display: flex;
  gap: 6px;
}

.checkout-item__lang,
.checkout-item__condition {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.checkout-item__qty {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  min-width: 32px;
}

.checkout-item__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 80px;
}

.checkout-item__unit-price {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.checkout-item__line-total {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

@media (max-width: 600px) {
  .checkout-item {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .checkout-item__image img {
    width: 48px;
    height: 67px;
  }

  .checkout-item__qty {
    display: none;
  }
}

/* ============================================================
   Pagination
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 20px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.page-btn:hover:not([disabled]):not(.active) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.page-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

.page-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-btn.page-prev,
.page-btn.page-next {
  min-width: 40px;
  padding: 0;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  user-select: none;
}

@media (max-width: 480px) {
  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .pagination {
    gap: 4px;
    padding: 30px 0 16px;
  }
}

/* ============================================================
   Orders Management
   ============================================================ */

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.order-card.order-pending {
  border-left: 3px solid #f59e0b;
}

.order-card.order-approved {
  border-left: 3px solid #22c55e;
  opacity: 0.7;
}

.order-card.order-rejected {
  border-left: 3px solid #ef4444;
  opacity: 0.6;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-id {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-right: 10px;
}

.order-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.order-pending-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.order-customer strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.order-address {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.order-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.order-item-thumb {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.order-item-thumb img {
  width: 28px;
  height: 40px;
  object-fit: contain;
  border-radius: 3px;
}

.order-more-items {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
}

.order-totals {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.order-totals strong {
  color: var(--text-primary);
}

.order-actions {
  display: flex;
  gap: 10px;
}

.btn-approve {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
}

.btn-reject {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.order-status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status-badge.order-approved {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  opacity: 1;
}

.order-status-badge.order-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  opacity: 1;
}

.order-filter-btn.active {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
}

@media (max-width: 768px) {
  .order-card {
    padding: 14px;
  }

  .order-totals {
    flex-direction: column;
    gap: 4px;
  }

  .order-actions {
    flex-direction: column;
  }

  .btn-approve,
  .btn-reject {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
