:root {
  --charcoal: #2a2a2a;
  --charcoal-light: #343434;
  --charcoal-mid: #3d3d3d;
  --charcoal-soft: #454545;
  --charcoal-hover: #4a4a4a;
  --yellow: #FFD400;
  --yellow-deep: #E5BE00;
  --off-white: #F4F1EA;
  --gray: #8a8a8a;
  --success: #4ade80;
  --danger: #ff6b6b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--charcoal);
  color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* ===== Custom Cursor ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s,
              opacity 0.3s,
              margin 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}

.cursor.hover {
  width: 56px;
  height: 56px;
  margin-left: -18px;
  margin-top: -18px;
  background: rgba(255, 212, 0, 0.9);
}

.cursor.click {
  width: 14px;
  height: 14px;
  margin-left: 3px;
  margin-top: 3px;
}

body.on-yellow .cursor { background: var(--charcoal); }
body.on-yellow .cursor.hover { background: rgba(42, 42, 42, 0.9); }

@media (hover: hover) and (pointer: fine) {
  body, a, button, .cat-card, .btn, .product-card, input { cursor: none; }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .cursor { display: none !important; }
  body, a, button, .cat-card, .btn, .product-card { cursor: auto !important; }
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 16px 5%;
  background: rgba(42, 42, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 212, 0, 0.1);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--off-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--charcoal);
  font-weight: 900;
  transform: rotate(-8deg);
  transition: transform 0.4s;
}

.logo:hover .logo-mark { transform: rotate(8deg); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--off-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--off-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  font-family: inherit;
}

.cart-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--yellow);
  color: var(--charcoal);
  min-width: 22px;
  height: 22px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 6px;
  font-family: 'Space Grotesk', sans-serif;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-count.show { transform: scale(1); }

.cart-count.bump { animation: bump 0.4s ease; }

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.nav-cta {
  background: var(--yellow);
  color: var(--charcoal);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--yellow);
}

.nav-cta:hover {
  background: transparent;
  color: var(--yellow);
  transform: translateY(-2px);
}

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

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--yellow);
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--charcoal);
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 1.5rem;
    z-index: 999;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 5% 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: 'STEEL/STONE';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 15vw, 220px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 212, 0, 0.08);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 212, 0, 0.1);
  border: 1px solid rgba(255, 212, 0, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 30px;
  animation: slideUp 0.8s ease-out;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.03em;
  animation: slideUp 0.8s ease-out 0.1s backwards;
}

.hero h1 .highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 100%;
  height: 12px;
  background: rgba(255, 212, 0, 0.2);
  z-index: -1;
  transform: skewX(-12deg);
}

.hero p {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 500px;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.3s backwards;
}

.btn {
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--yellow);
  color: var(--charcoal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 212, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

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

.hero-visual {
  position: relative;
  height: 550px;
  animation: slideUp 0.8s ease-out 0.4s backwards;
  transition: transform 0.3s ease-out;
}

.visual-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  background: var(--charcoal-mid);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-card.main {
  inset: 0;
  background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
  display: grid;
  place-items: center;
}

.visual-card.main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 212, 0, 0.03) 20px, rgba(255, 212, 0, 0.03) 21px),
    radial-gradient(circle at 30% 30%, rgba(255, 212, 0, 0.15), transparent 60%);
}

.visual-card .icon {
  font-size: 8rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(255, 212, 0, 0.3));
}

.floating-stat {
  position: absolute;
  background: var(--yellow);
  color: var(--charcoal);
  padding: 20px 24px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-stat.top { top: -20px; left: -20px; }

.floating-stat.bottom {
  bottom: -20px;
  right: -20px;
  background: var(--off-white);
  animation-delay: 1.5s;
}

.floating-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.floating-stat .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 5% 60px;
    gap: 40px;
  }
  .hero-visual { height: 400px; }
  .floating-stat.top { left: 0; }
  .floating-stat.bottom { right: 0; }
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--yellow);
  color: var(--charcoal);
  padding: 24px 0;
  overflow: hidden;
  border-top: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  transform: rotate(-1deg);
  margin: 60px -20px;
  width: calc(100% + 40px);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 60px;
}

.marquee-item::after {
  content: '◆';
  color: var(--charcoal);
  opacity: 0.4;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
section { padding: 100px 5%; position: relative; }

.section-header {
  margin-bottom: 70px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--yellow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-title .accent {
  color: var(--yellow);
  font-style: italic;
  font-weight: 400;
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  grid-auto-rows: 200px;
}

.cat-card {
  background: var(--charcoal-light);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--off-white);
  cursor: pointer;
}

.cat-card.large { grid-column: span 6; grid-row: span 2; }
.cat-card.medium { grid-column: span 3; grid-row: span 2; }
.cat-card.small { grid-column: span 3; grid-row: span 1; }
.cat-card.wide { grid-column: span 6; grid-row: span 1; }

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 0, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 212, 0, 0.4);
  background: var(--charcoal-hover);
}

.cat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: transform 0.5s;
}

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

.cat-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-card.large .cat-name { font-size: 2rem; }

.cat-count {
  font-size: 0.85rem;
  color: var(--gray);
  font-family: 'Space Grotesk', sans-serif;
}

.cat-arrow {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.1);
  display: grid;
  place-items: center;
  color: var(--yellow);
  transition: all 0.4s;
  font-size: 1.2rem;
}

.cat-card:hover .cat-arrow {
  background: var(--yellow);
  color: var(--charcoal);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
  .cat-card.large, .cat-card.medium, .cat-card.small, .cat-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .cat-card.large { grid-column: span 2; }
}

/* ===== FEATURES ===== */
.features {
  background: var(--charcoal-light);
  border-radius: 40px;
  margin: 0 2%;
  padding: 80px 5%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s;
}

.feature:hover { border-top-color: var(--yellow); }

.feature-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: 600;
  position: absolute;
  top: -10px;
  right: 0;
  background: var(--charcoal-light);
  padding: 0 12px 0 0;
}

.feature h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 80px 5%;
}

.stat-box {
  background: var(--charcoal-light);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: var(--yellow);
  color: var(--charcoal);
}

.stat-box .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--yellow);
  transition: color 0.4s;
}

.stat-box:hover .num { color: var(--charcoal); }

.stat-box .lbl {
  font-size: 0.95rem;
  color: #999;
  font-weight: 500;
  transition: color 0.4s;
}

.stat-box:hover .lbl { color: var(--charcoal); opacity: 0.8; }

/* ===== CTA ===== */
.cta-section { padding: 100px 5%; }

.cta-box {
  background: var(--yellow);
  color: var(--charcoal);
  border-radius: 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-box::before {
  content: '//';
  position: absolute;
  top: -50px;
  left: -20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 400px;
  font-weight: 700;
  color: rgba(42, 42, 42, 0.05);
  line-height: 1;
}

.cta-content { position: relative; z-index: 2; max-width: 600px; }

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.75;
  margin-bottom: 30px;
}

.btn-dark {
  background: var(--charcoal);
  color: var(--yellow);
  padding: 18px 36px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal-light);
  padding: 80px 5% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand p {
  color: #999;
  margin-top: 20px;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
  .cta-box { padding: 50px 30px; }
}

/* ===== MODAL BASE ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
  padding: 40px 5%;
}

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

.modal {
  background: var(--charcoal);
  border-radius: 32px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(40px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--off-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s;
  z-index: 10;
  font-family: inherit;
}

.modal-close:hover {
  background: var(--yellow);
  color: var(--charcoal);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 212, 0, 0.1);
  border: 1px solid rgba(255, 212, 0, 0.2);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.modal-header .modal-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
}

.modal-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

.modal-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  line-height: 1.1;
}

.modal-stat .lbl {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.filter-search input {
  width: 100%;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 14px 48px 14px 20px;
  color: var(--off-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.filter-search input:focus {
  border-color: var(--yellow);
  background: var(--charcoal-mid);
}

.filter-search input::placeholder { color: var(--gray); }

.filter-search .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--off-white);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.chip.active {
  background: var(--yellow);
  color: var(--charcoal);
  border-color: var(--yellow);
  font-weight: 700;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--charcoal-light);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}

.product-card:hover::before { transform: scaleX(1); }

.product-card:hover {
  transform: translateY(-6px);
  background: var(--charcoal-mid);
  border-color: rgba(255, 212, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--yellow);
  color: var(--charcoal);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 2;
}

.product-badge.new { background: var(--success); color: #1a1a1a; }
.product-badge.hot { background: var(--danger); color: #fff; }

.product-visual {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--charcoal-mid), var(--charcoal-light));
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 212, 0, 0.1), transparent 60%);
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.3;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--yellow);
  font-size: 1rem;
  margin-top: 4px;
}

.product-price small {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 400;
}

/* Quantity + Add to Cart */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  height: 40px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--off-white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: grid;
  place-items: center;
  font-family: inherit;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--yellow);
  color: var(--charcoal);
}

.qty-btn:active { transform: scale(0.9); }

.qty-value {
  min-width: 32px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--off-white);
  padding: 0 6px;
  user-select: none;
}

.add-cart-btn {
  flex: 1;
  height: 40px;
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 14px;
}

.add-cart-btn:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 212, 0, 0.3);
}

.add-cart-btn:active { transform: translateY(0); }

.add-cart-btn.added {
  background: var(--success);
  color: #1a1a1a;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.empty-state .icon {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--off-white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--yellow);
  color: var(--yellow);
}

.page-btn.active {
  background: var(--yellow);
  color: var(--charcoal);
  border-color: var(--yellow);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  color: var(--gray);
  font-size: 0.85rem;
  margin-right: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 6000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  max-width: 100%;
  height: 100vh;
  background: var(--charcoal);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 6001;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  padding: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-header h3 .badge {
  background: var(--yellow);
  color: var(--charcoal);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
}

.cart-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--off-white);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.cart-close:hover {
  background: var(--yellow);
  color: var(--charcoal);
  transform: rotate(90deg);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-track { background: transparent; }
.cart-body::-webkit-scrollbar-thumb {
  background: var(--charcoal-hover);
  border-radius: 100px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  text-align: center;
  color: var(--gray);
}

.cart-empty .icon {
  font-size: 5rem;
  opacity: 0.2;
}

.cart-empty h4 {
  font-size: 1.2rem;
  color: var(--off-white);
}

.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  animation: cartItemIn 0.3s ease-out;
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item.removing {
  animation: cartItemOut 0.3s ease-out forwards;
}

@keyframes cartItemOut {
  to { opacity: 0; transform: translateX(-20px); height: 0; padding: 0; margin: 0; border: 0; }
}

.cart-item-visual {
  width: 70px;
  height: 70px;
  background: var(--charcoal-mid);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-info { min-width: 0; }

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 600;
}

.cart-item-price small {
  color: var(--gray);
  font-weight: 400;
  font-size: 0.7rem;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  height: 32px;
}

.cart-item-qty .qty-btn {
  width: 30px;
  font-size: 0.9rem;
}

.cart-item-qty .qty-value {
  min-width: 26px;
  font-size: 0.8rem;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s;
  font-family: inherit;
}

.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--charcoal-light);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-summary-label {
  color: var(--gray);
  font-size: 0.9rem;
}

.cart-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow);
}

.cart-summary-value small {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 400;
}

.cart-checkout {
  width: 100%;
  padding: 16px;
  background: var(--yellow);
  color: var(--charcoal);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-checkout:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 212, 0, 0.3);
}

.cart-checkout:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 4px solid var(--success);
  color: var(--off-white);
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast.removing {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100px); }
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-body { flex: 1; }

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.toast-text {
  font-size: 0.8rem;
  color: var(--gray);
}

@media (max-width: 768px) {
  .modal-overlay { padding: 20px 3%; }
  .modal { padding: 60px 20px 24px; border-radius: 24px; }
  .modal-header { flex-direction: column; }
  .modal-stats { width: 100%; justify-content: flex-start; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card { padding: 14px; }
  .product-visual { font-size: 2rem; margin-bottom: 4px; }
  .modal-close { top: 16px; left: 16px; width: 40px; height: 40px; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 0.85rem; }
  .product-actions { flex-direction: column; gap: 6px; }
  .qty-control { width: 100%; justify-content: space-between; }
  .add-cart-btn { width: 100%; font-size: 0.8rem; }
  .cart-sidebar { width: 100%; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { min-width: 0; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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