/* ===== Variables ===== */
:root {
  --bg-dark: #0a0e17;
  --bg-card: #12182a;
  --bg-card-hover: #1a2238;
  --accent: #00d4aa;
  --accent-dark: #00b894;
  --accent-glow: rgba(0, 212, 170, 0.25);
  --text: #e8ecf4;
  --text-muted: #8892a8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-height: 72px;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes jerseyFloat {
  0%, 100% { transform: rotateY(-8deg) translateY(0); }
  50% { transform: rotateY(-8deg) translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero-tag { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-desc { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.65s; }

.hero-stats .stat {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) forwards;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.75s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.85s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.95s; }

.hero-bg::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}


.header {
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.category-icon {
  transition: transform 0.4s var(--ease-spring);
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(-8deg);
}

.filter-btn {
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.filter-btn:active {
  transform: scale(0.95);
}

.jersey-shirt {
  animation: jerseyFloat 4s ease-in-out infinite;
}

.about-card {
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
}

.about-card-icon {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}

.about-card:hover .about-card-icon {
  transform: scale(1.2);
}

.contact-item {
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.contact-item:hover {
  transform: translateX(6px);
  border-color: rgba(0, 212, 170, 0.25);
}

.cart-count.pop {
  animation: pop 0.45s var(--ease-spring);
}

.cart-sidebar {
  transition: transform 0.4s var(--ease-out);
}

.cart-overlay {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.2s ease;
}

.toast.show {
  animation: slideDown 0.4s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

.section {
  padding: 5rem 0;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 170, 0.5);
  flex-shrink: 0;
  display: block;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.cart-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 130, 246, 0.12), transparent),
    linear-gradient(180deg, var(--bg-dark) 0%, #0d1220 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Categories ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 212, 170, 0.12);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

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

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.35s ease;
  cursor: pointer;
  animation: fadeUp 0.5s var(--ease-out) backwards;
}

.product-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.product-card .product-photo {
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-photo {
  transform: scale(1.08);
}

.product-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.product-photo,
.modal-photo,
.cart-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
}

.modal-image {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-dark);
}

.modal-image .modal-photo {
  max-height: 320px;
}

.product-image.football { background: linear-gradient(135deg, #1a3a2a 0%, #0d2818 100%); }
.product-image.basketball { background: linear-gradient(135deg, #3a1a1a 0%, #28100d 100%); }
.product-image.cricket { background: linear-gradient(135deg, #1a2a3a 0%, #0d1828 100%); }
.product-image.kids { background: linear-gradient(135deg, #3a2a1a 0%, #281a0d 100%); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.product-info {
  padding: 1.25rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

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

.add-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ===== Custom Section ===== */
.custom {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 170, 0.04), transparent);
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.custom-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.custom-content > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.custom-features {
  margin-bottom: 2rem;
}

.custom-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.custom-features svg {
  color: var(--accent);
  flex-shrink: 0;
}

.custom-visual {
  display: flex;
  justify-content: center;
}

.jersey-preview {
  perspective: 800px;
}

.jersey-shirt {
  width: 220px;
  height: 280px;
  background: linear-gradient(160deg, #1e3a5f 0%, #0f2744 50%, #1e3a5f 100%);
  border-radius: 20px 20px 8px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: rotateY(-8deg);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.jersey-shirt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: var(--bg-dark);
  border-radius: 0 0 30px 30px;
}

.jersey-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: white;
  letter-spacing: 0.05em;
}

.jersey-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

.about-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-item-icon {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item a {
  color: var(--accent);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Cart Sidebar ===== */
.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active,
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.25rem;
}

.cart-close,
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.cart-close:hover,
.modal-close:hover {
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cart-item-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  border-color: var(--accent);
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.94);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 2001;
  max-width: 500px;
  width: calc(100% - 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.4s var(--ease-out);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.modal-body {
  padding: 2rem;
}

.modal-product {
  text-align: center;
}

.modal-product h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-product .modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal-product p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.size-selector {
  margin-bottom: 1.5rem;
}

.size-selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.size-option {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.size-option:hover,
.size-option.selected {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  z-index: 3000;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .categories {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2rem;
  }

  .custom-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .categories {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ===================================================================
   Cinematic enhancements (kept on-brand: same palette, fonts, mood)
   =================================================================== */

/* Intro curtain — a brief cinematic reveal on first paint */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}

.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: introReveal 1s var(--ease-out) forwards;
  text-shadow: 0 8px 40px var(--accent-glow);
}

@keyframes introReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.loaded .intro-curtain {
  opacity: 0;
  visibility: hidden;
}

/* Skip the curtain entirely for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .intro-curtain { display: none; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  z-index: 4000;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Animated shimmer on the hero accent word */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent) 30%, #7af6e0 50%, var(--accent) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent {
    animation: none;
    -webkit-text-fill-color: var(--accent);
  }
}

/* Smoother card transitions for JS-driven tilt */
.product-card,
.category-card {
  will-change: transform;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-spring), visibility 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px var(--accent-glow);
  z-index: 1500;
}

.back-to-top:hover {
  box-shadow: 0 12px 32px var(--accent-glow);
  transform: translateY(0) scale(1.08);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ===== Pricing & stock states ===== */
.product-footer {
  justify-content: space-between;
}

.soldout-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.soldout-overlay span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 0.35rem 1rem;
  border-radius: 6px;
  transform: rotate(-8deg);
}

.product-card.sold-out .product-photo {
  filter: grayscale(0.7) brightness(0.7);
}

.add-btn:disabled {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  background: transparent;
}

.add-btn:disabled:hover {
  background: transparent;
  color: var(--text-muted);
}

.btn-primary:disabled {
  background: var(--bg-card-hover);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* ===================================================================
   Admin panel
   =================================================================== */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.admin-body {
  min-height: 100vh;
}

/* Login gate */
.admin-gate[hidden],
.admin-dashboard[hidden] {
  display: none;
}

.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 212, 170, 0.12), transparent),
    var(--bg-dark);
}

.admin-login {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: scaleIn 0.5s var(--ease-out);
}

.admin-login-logo {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.admin-login h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.admin-login > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.admin-login .form-group {
  text-align: left;
}

.admin-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.admin-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.admin-back-link:hover {
  color: var(--accent);
}

/* Dashboard */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.admin-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
}

.admin-header-actions {
  display: flex;
  gap: 0.6rem;
}

.admin-main {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.5s var(--ease-out) backwards;
}

.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.admin-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.admin-form .form-group input[type="file"] {
  padding: 0.55rem;
  cursor: pointer;
}

.photo-preview {
  margin-top: 0.75rem;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-dark);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product management list */
.admin-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.admin-product:hover {
  border-color: rgba(0, 212, 170, 0.3);
}

.admin-product.is-unavailable {
  opacity: 0.62;
}

.admin-product-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
}

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

.admin-product-info {
  flex: 1;
  min-width: 0;
}

.admin-product-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-product-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.admin-product-price {
  color: var(--accent);
  font-weight: 600;
}

.admin-status {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.5rem;
  border-radius: 50px;
}

.admin-status.in {
  color: var(--accent);
  background: rgba(0, 212, 170, 0.12);
}

.admin-status.out {
  color: #ff8b8b;
  background: rgba(255, 107, 107, 0.12);
}

.admin-product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.admin-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}

.slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.switch input:checked + .slider {
  background: rgba(0, 212, 170, 0.25);
  border-color: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translate(22px, -50%);
  background: var(--accent);
}

@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-product {
    flex-wrap: wrap;
  }

  .admin-product-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
