/* ============================================
   SOLE — Premium Shoe Shop
   Dark Luxury Theme with Neon Accents
   ============================================ */

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-3:      #161616;
  --bg-card:   #111111;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #f0ede8;
  --text-muted:#888;
  --text-dim:  #555;
  --accent:    #c8ff00;
  --accent-2:  #ff3b3b;
  --accent-3:  #3b8bff;
  --gold:      #c9a84c;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: #d4ff1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,255,0,0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav__logo-mark {
  color: var(--accent);
  font-size: 26px;
}
.nav__logo-text { color: var(--text); }

.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.nav__cart-btn {
  position: relative;
  color: var(--text);
  padding: 8px;
  transition: color var(--transition);
}
.nav__cart-btn:hover { color: var(--accent); }
.nav__cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.nav__cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,255,0,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__title--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.hero__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-2);
}

.hero__canvas-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#heroCanvas {
  width: 100%;
  max-width: 600px;
  height: 500px;
  cursor: grab;
}
#heroCanvas:active { cursor: grabbing; }

.hero__canvas-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { width: 40px; opacity: 1; }
  50% { width: 70px; opacity: 0.5; }
  100% { width: 40px; opacity: 1; }
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 16px 0;
}
.marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-dot { color: var(--accent) !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SHOWCASE ── */
.showcase {
  padding: 100px 48px;
  background: var(--bg-2);
}
.showcase__header {
  text-align: center;
  margin-bottom: 60px;
}
.showcase__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.showcase__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.showcase__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
#showcaseCanvas {
  width: 100%;
  max-width: 700px;
  height: 480px;
  cursor: grab;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #080808 100%);
  border: 1px solid var(--border);
}
#showcaseCanvas:active { cursor: grabbing; }

.showcase__controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ctrl-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: var(--bg-3);
}
.ctrl-btn:hover, .ctrl-btn.active {
  border-color: var(--accent);
  transform: scale(1.1);
}
.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: block;
}

.showcase__info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.showcase__model-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.showcase__model-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* ── COLLECTION ── */
.collection {
  padding: 100px 48px;
  background: var(--bg);
}
.collection__header {
  margin-bottom: 40px;
}
.collection__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.collection__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.collection__filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.product-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.badge-new { background: var(--accent); color: #000; }
.badge-limited { background: var(--accent-2); color: #fff; }
.badge-sale { background: var(--accent-3); color: #fff; }

.product-card__canvas-wrap {
  height: 220px;
  background: radial-gradient(ellipse at center, #1c1c1c 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__canvas {
  width: 100%;
  height: 220px;
}

.product-card__body {
  padding: 20px;
}
.product-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.product-card__price-old {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 6px;
}
.product-card__add {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  transition: var(--transition);
  flex-shrink: 0;
}
.product-card__add:hover {
  background: #d4ff1a;
  transform: scale(1.1) rotate(90deg);
}

/* ── ABOUT ── */
.about {
  padding: 100px 48px;
  background: var(--bg-2);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.about__title--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.about__text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__text .btn { margin-top: 16px; }
.about__canvas-wrap {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #080808 100%);
}
#aboutCanvas { width: 100%; height: 100%; }

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 48px 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 240px;
  line-height: 1.7;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.cart-drawer__close {
  color: var(--text-muted);
  font-size: 18px;
  transition: color var(--transition);
}
.cart-drawer__close:hover { color: var(--accent); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  font-size: 15px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: var(--bg-3);
}
.cart-item__color {
  width: 40px; height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item__info { flex: 1; }
.cart-item__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cart-item__price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.cart-item__remove {
  color: var(--text-dim);
  font-size: 16px;
  transition: color var(--transition);
}
.cart-item__remove:hover { color: var(--accent-2); }

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
#cartTotal { color: var(--accent); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 32px 80px;
  }
  .hero__content { max-width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__canvas-wrap { margin-top: 40px; }
  .hero__scroll-hint { left: 32px; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__canvas-wrap { height: 300px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .hero__scroll-hint { left: 24px; }
  .showcase { padding: 60px 24px; }
  .collection { padding: 60px 24px; }
  .about { padding: 60px 24px; }
  .footer { padding: 40px 24px 24px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cart-drawer { width: 100%; }
  #heroCanvas { height: 360px; }
  #showcaseCanvas { height: 360px; }
}

@media (max-width: 480px) {
  .collection__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 42px; }
  .footer__links { grid-template-columns: 1fr; }
}