:root {
  --bg: #000;
  --surface: #111;
  --text: #fff;
  --primary: #a855f7;
  --secondary: #9333ea;
  --muted: #888;
  --muted2: #777;
  --border: #1f1f1f;

  --nav-h: 86px;
  --container: 1200px;
  --px: 32px;
  --px-sm: 16px;

  --section-y: 110px;
  --section-y-sm: 78px;

  --h1: clamp(2.2rem, 6vw, 3.8rem);
  --h2: clamp(1.7rem, 4.4vw, 2.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
}
body.lock-scroll {
  overflow: hidden;
}
body.nav-hidden #navbar {
  transform: translateY(-110%);
  pointer-events: none;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 1s forwards; }
.delay-1 { animation-delay: 0.3s; opacity: 0; }
.delay-2 { animation-delay: 0.6s; opacity: 0; }
.delay-3 { animation-delay: 0.9s; opacity: 0; }

/* NAV */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar.shrink {
  height: 72px;
  background: rgba(0, 0, 0, 0.98);
  border-bottom-color: #2a2a2a;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.faide-wordmark-img {
  height: 32px;
  width: auto;
  display: block;
  user-select: none;
  transition: transform 0.25s ease;
}
.navbar.shrink .faide-wordmark-img {
  transform: scale(0.93);
  transform-origin: left center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.16s ease;
  white-space: nowrap;
  padding: 12px 0;
  line-height: 1;
  font-weight: 800;
}
.nav-links a:hover { color: var(--secondary); }
.nav-links a.active { color: var(--primary); }
.nav-links a:active { transform: translateY(-2px); }

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 14px;
}
.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.nav-icon-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}
.nav-icon-btn:active { transform: translateY(-2px); }
.hamburger { display: inline-flex; flex-direction: column; gap: 5px; }
.hamburger span { width: 18px; height: 2px; background:#fff; border-radius:999px; display:block; }

@media (max-width: 768px) {
  .navbar { padding: 0 var(--px-sm); }
  .faide-wordmark-img { height: 22px; }
  .nav-links { display: none; }
  .nav-mobile-actions { display: inline-flex; }

  .nav-icon-btn {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
  }
  .nav-icon-btn:hover { background: transparent; transform: none; }
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.active { opacity:1; pointer-events:auto; }

.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: #0a0a0a;
  z-index: 1300;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 30px rgba(0,0,0,0.7);
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { right:0; }
.drawer-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.drawer-title {
  font-weight: 950;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.drawer-close {
  border:none;
  background:transparent;
  color:#bbb;
  cursor:pointer;
  padding:8px;
  border-radius:10px;
}
.drawer-close:hover { background: rgba(255,255,255,0.06); color:#fff; }
.drawer-links {
  display:flex;
  flex-direction:column;
  padding:18px;
  gap:16px;
}
.drawer-links a {
  color:#d0d0d0;
  text-decoration:none;
  font-weight:900;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:12px 10px;
  border-radius:14px;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
}
.drawer-links a:hover { border-color: rgba(168,85,247,0.35); color:#fff; }

/* Sections */
.hero, .lookbook, .shop, .about { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.hero {
  padding-top: calc(var(--nav-h) + 120px);
  padding-bottom: 140px;
  min-height: 76vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  padding-left: var(--px);
  padding-right: var(--px);
}
@media (max-width: 768px) {
  .hero, .lookbook, .shop, .about { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
  .hero {
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 70px;
    padding-left: var(--px-sm);
    padding-right: var(--px-sm);
  }
}

.hero-bg {
  position:absolute;
  inset:0;
  background: url("../../images/hero.png") center/cover no-repeat;
  opacity:1;
  pointer-events:none;
}
.hero-bg::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,0.1), rgba(0,0,0,0.78) 70%, rgba(0,0,0,0.92));
}
.hero-content { max-width:900px; margin:0 auto; position:relative; z-index:1; }
.hero-title {
  font-size: var(--h1);
  font-weight:800;
  color: var(--primary);
  text-transform:uppercase;
  letter-spacing:0.05em;
  line-height:1.05;
}
.hero-text {
  max-width:58ch;
  margin:18px auto 0;
  color:#aaa;
  line-height:1.6;
  font-size:1.05rem;
}
@media (max-width:768px) { .hero-title{ font-size:2rem; } }
.hero-social-icons { margin:32px 0; }

.social-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:#111;
  color:#888;
  margin:0 8px;
  transition: transform 0.16s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border:1px solid #222;
}
.social-icon:hover { background: var(--secondary); color:#fff; transform: translateY(-1px) scale(1.02); border-color: var(--secondary); }
.social-icon:active { transform: translateY(-2px) scale(1.03); }

.primary-btn {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border:none;
  padding:18px 48px;
  border-radius:999px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  margin-top:28px;
  transition: transform 0.16s ease, filter 0.2s ease;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:0.9rem;
}
.primary-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.primary-btn:active { transform: translateY(-2px); }

/* Titles */
.section-title { font-size: var(--h2); margin-bottom:22px; font-weight:800; letter-spacing:0.02em; }
.purple-title { color: var(--primary); }
.aligned-title { max-width: var(--container); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
@media (max-width:768px) { .aligned-title { padding-left: var(--px-sm); padding-right: var(--px-sm); } }

/* Lookbook */
.lookbook { padding-left:0; padding-right:0; }
.vertical-list { margin:26px 0 0; display:flex; flex-direction:column; gap:26px; }
.lookbook-card {
  border-radius:0;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  background:#000;
  height:440px;
  width:100%;
}
.lookbook-card::before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.75) 100%);
  z-index:1;
  pointer-events:none;
}
.lookbook-img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:768px) { .vertical-list{ gap:18px; } .lookbook-card{ height:320px; } }

/* Route pages */
.route-page {
  display:none;
  min-height:100vh;
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: 40px;
}
.route-page.active { display:block; }

.route-shell { max-width:1100px; margin:0 auto; padding:0 var(--px); }
@media (max-width:768px) { .route-shell{ padding:0 var(--px-sm); } }

.route-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0 16px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.route-topbar-center { display:flex; flex-direction:column; align-items:center; flex:1; }
.route-topbar-spacer { width:90px; }

.route-back {
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
  font-weight:900;
  letter-spacing:0.02em;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  user-select:none;
}
.route-back:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); transform: translateY(-1px); }
.route-back:active { transform: translateY(-2px); }

.route-title {
  font-weight:950;
  color: var(--primary);
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-size:0.95rem;
  text-align:center;
}

/* ✅ Hide route back button on mobile (back gesture already works) */
@media (max-width:768px) {
  .route-back { display:none !important; }
}

.lookbook-view {
  margin-top:18px;
  width:100%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.08);
}
.lookbook-view img {
  width:100%;
  height: min(72vh, 680px);
  object-fit:contain;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

/* Product route */
.product-page-grid {
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:22px;
  align-items:start;
}
@media (max-width:900px) { .product-page-grid { grid-template-columns: 1fr; } }

.pm-image-shell {
  height: min(56vh, 560px);
  overflow:hidden;
  background:#000;
  border:1px solid rgba(255,255,255,0.08);
}
.pm-image-shell img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

.thumb-row {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
  margin-bottom:6px;
}
.thumb {
  height:74px;
  border-radius:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  cursor:pointer;
  transition: border-color 0.18s ease, transform 0.16s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.thumb:hover { transform: translateY(-1px); }
.thumb:active { transform: translateY(-2px); }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-drag:none; pointer-events:none; }
.thumb.active { border-color: rgba(168,85,247,0.95); }

.rpp-details { width:100%; }
.rpp-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.rpp-name {
  font-size:1.2rem;
  font-weight:950;
  color:#fff;
  line-height:1.25;
  margin:0 0 6px;
}
.rpp-muted { color:#9a9a9a; font-weight:800; }
.rpp-price { font-size:1.15rem; font-weight:950; color:#fff; white-space:nowrap; }
.rpp-hint { color:#777; text-align:left; padding-top:16px; font-size:0.9rem; }

/* Shop */
.horizontal-scroll {
  max-width: var(--container);
  margin:0 auto;
  display:flex;
  overflow-x:auto;
  gap:24px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  padding:26px var(--px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.horizontal-scroll::-webkit-scrollbar { height:6px; }
.horizontal-scroll::-webkit-scrollbar-track { background:transparent; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius:999px; }

@media (max-width:768px) {
  .horizontal-scroll {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type:none;
    gap:16px;
    padding:26px var(--px-sm);
  }
}

/* ✅ Shop head + ONE search input (mobile + desktop) */
.shop-head {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.shop-title { margin: 0; }

/* Search always visible now */
.shop-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shop-search-input {
  width: min(420px, 38vw);
  padding: 12px 44px 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.shop-search-input::placeholder { color:#777; font-weight:800; }
.shop-search-input:focus {
  border-color: rgba(168,85,247,0.7);
  background: rgba(255,255,255,0.045);
}

.shop-search-clear {
  position:absolute;
  right:8px;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  color:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:1.2rem;
  line-height:1;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.18s ease, transform 0.16s ease;
}
.shop-search-clear.show { opacity:1; pointer-events:auto; }
.shop-search-clear:hover { transform: translateY(-1px); }

@media (max-width:768px) {
  .shop-head {
    padding-left: var(--px-sm);
    padding-right: var(--px-sm);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .shop-search-wrap { width: 100%; }
  .shop-search-input { width: 100%; }
}

/* Product cards + options (same as before) */
.product {
  min-width: 420px;
  color:#fff;
  text-align:left;
  display:flex;
  flex-direction:column;
  scroll-snap-align:center;
  cursor:pointer;
  background:transparent;
  border:none;
}
.product-img-container {
  width:100%;
  height:360px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  touch-action: pan-y;
}
.product-img { width:100%; height:100%; object-fit:cover; display:block; transition: opacity 160ms ease; user-select:none; -webkit-user-drag:none; }

@media (max-width:768px) {
  .product { min-width:0; }
  .product-img-container { height:220px; }
}

.product-info { padding:10px 0 6px; }
.product-label {
  font-size:0.78rem;
  color: var(--primary);
  font-weight:900;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:1.15px;
  opacity:0.95;
}
.product-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:10px;
  gap:12px;
}
.product-name-wrapper { flex:1; }
.product h3 {
  font-size:1.05rem;
  font-weight:800;
  color:#fff;
  line-height:1.35;
  margin:0 0 6px;
}
.product-category, .product-colors-count {
  font-size:0.95rem;
  color:#9a9a9a;
  font-weight:600;
  margin-bottom:10px;
}
.price { font-size:1.05rem; color:#fff; font-weight:900; white-space:nowrap; flex-shrink:0; opacity:0.95; }

/* Options */
.options {
  margin-top:16px;
  opacity:0;
  max-height:0;
  overflow:hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, max-height 0.35s ease, transform 0.25s ease;
}
.product.expanded .options {
  opacity:1;
  max-height:520px;
  transform: translateY(0);
}
@media (hover:none) and (pointer:coarse) {
  .options { display:none !important; }
  .product { cursor: default; }
}

/* Buttons, qty, etc (kept) */
.option-label { font-size:0.84rem; color:#fff; font-weight:900; margin-bottom:10px; letter-spacing:0.02em; }
.sizes { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; margin-bottom:18px; }
.size-btn {
  height:42px;
  border-radius:12px;
  background: rgba(255,255,255,0.03);
  color:#b5b5b5;
  border:1px solid rgba(255,255,255,0.14);
  cursor:pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  font-weight:800;
  font-size:0.95rem;
}
.size-btn:hover:not(.selected) { border-color: rgba(168,85,247,0.4); color:#fff; transform: translateY(-1px); }
.size-btn:active { transform: translateY(-2px); }
.size-btn.selected {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color:#fff;
  border-color: rgba(168,85,247,0.85);
  transform: translateY(-1px);
}

.colors { display:flex; gap:10px; margin-bottom:18px; }
.color {
  width:38px;
  height:38px;
  border-radius:999px;
  cursor:pointer;
  transition: transform 0.16s ease, border-color 0.18s ease;
  border:2px solid transparent;
  position:relative;
}
.color::after {
  content:"✖️";
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%) scale(0);
  color:#fff;
  font-weight:900;
  font-size:0.95rem;
  transition: transform 0.18s ease;
}
.color:hover { transform: translateY(-1px) scale(1.02); }
.color:active { transform: translateY(-2px) scale(1.03); }
.color.selected { border-color: rgba(168,85,247,0.95); transform: scale(1.03); }
.color.selected::after { transform: translate(-50%, -50%) scale(1); }
.color.black { background:#000; border:2px solid rgba(255,255,255,0.7); }
.color.white { background:#fff; border:2px solid rgba(255,255,255,0.7); }
.color.white::after { color:#000; }
.color.grey { background:#666; }

.quantity-wrapper { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.qty-stepper-ui {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,0.035);
  border:1px solid rgba(255,255,255,0.14);
}
.qty-stepper-ui .qty-btn-ui {
  width:44px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  color:#fff;
  cursor:pointer;
  font-weight:950;
  font-size:1.2rem;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}
.qty-stepper-ui .qty-btn-ui:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.qty-stepper-ui .qty-btn-ui:active { transform: translateY(-2px); }
.qty-stepper-ui .qty-value-ui {
  flex:1;
  text-align:center;
  font-size:1.05rem;
  font-weight:950;
  color:#fff;
  user-select:none;
}

.secondary-btn {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border:1px solid rgba(255,255,255,0.1);
  padding:16px 24px;
  border-radius:999px;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  transition: transform 0.16s ease, filter 0.2s ease;
  font-size:0.92rem;
  width:100%;
  text-transform:uppercase;
  letter-spacing:1px;
}
.secondary-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.secondary-btn:active { transform: translateY(-2px); }
.secondary-btn:disabled {
  opacity:0.45;
  cursor:not-allowed;
  transform:none !important;
  filter:none !important;
  background:#222 !important;
  color:#777 !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.section-divider { height:1px; background: rgba(255,255,255,0.1); max-width: var(--container); margin:0 auto; }
@media (max-width:768px) { .section-divider{ margin:0 var(--px-sm); } }

/* About */
.about {
  max-width:1000px;
  margin:0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
.about p { color:#aaa; line-height:1.8; font-size:1.05rem; max-width:70ch; }
.about-contact { margin-top:18px; display:grid; gap:10px; max-width:720px; }
.about-contact h4 {
  color: var(--primary);
  font-size:0.95rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  margin:0 0 6px;
}
.about-contact a {
  color: var(--muted);
  text-decoration:none;
  width:fit-content;
  transition: color 0.25s ease, transform 0.16s ease;
}
.about-contact a:hover { color: var(--secondary); transform: translateY(-1px); }
.about-contact a:active { transform: translateY(-2px); }
@media (max-width:768px) {
  .about { padding-left: var(--px-sm); padding-right: var(--px-sm); }
}

/* Footer */
.footer {
  background:#0a0a0a;
  border-top:1px solid var(--border);
  padding:42px 32px 40px;
}
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-legal { display:flex; flex-direction:column; align-items:center; gap:14px; }
.footer-legal-top { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; text-align:center; row-gap:10px; }
.footer-legal-link {
  color: var(--muted2);
  font-size:0.95rem;
  text-decoration:none;
  padding:0 2px;
  transition: color 0.25s ease, transform 0.16s ease;
}
.footer-legal-link:hover { color: var(--secondary); transform: translateY(-1px); }
.footer-legal-link:active { transform: translateY(-2px); }
.footer-sep { color:#666; padding:0 6px; user-select:none; }
.footer-copy { color:#666; font-size:0.95rem; margin-top:6px; text-align:center; }
@media (max-width:768px) {
  .footer { padding-left: var(--px-sm); padding-right: var(--px-sm); }
  .footer-legal-top { max-width:360px; }
  .footer-legal-link { font-size:0.92rem; }
}

/* Cart */
.floating-cart {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1500;
  transition: transform 0.16s ease, filter 0.2s ease;
}
.floating-cart:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.05); }
.floating-cart:active { transform: translateY(-2px) scale(1.03); }
.cart-count {
  position:absolute;
  top:0;
  right:0;
  background:#ef4444;
  color:#fff;
  border-radius:50%;
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.75rem;
  font-weight:700;
  border:2px solid #000;
}
.cart-overlay {
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index: 1900;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.25s ease;
}
.cart-overlay.active { opacity:1; pointer-events:auto; }
.cart-sidebar {
  position: fixed;
  top:0;
  right:-400px;
  width:400px;
  height:100%;
  background:#0a0a0a;
  z-index:2000;
  transition:right 0.4s ease;
  display:flex;
  flex-direction:column;
  border-left:1px solid var(--border);
  box-shadow: -5px 0 30px rgba(0,0,0,0.8);
}
.cart-sidebar.active { right:0; }
.cart-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px;
  border-bottom:1px solid var(--border);
  background: var(--surface);
}
.cart-header h2 { font-size:1.5rem; font-weight:700; color: var(--primary); margin:0; }
.close-cart {
  background:transparent;
  border:none;
  color:#888;
  cursor:pointer;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease;
}
.close-cart:hover { color:#fff; background:#1a1a1a; transform: translateY(-1px); }
.close-cart:active { transform: translateY(-2px); }
.cart-items { flex:1; overflow-y:auto; padding:24px; list-style:none; }
.cart-item {
  background: var(--surface);
  padding:14px;
  margin-bottom:12px;
  border-radius:14px;
  border:1px solid var(--border);
  display:grid;
  grid-template-columns: 66px 1fr auto;
  gap:12px;
  align-items:center;
}
.cart-item-img {
  width:66px; height:66px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  object-fit:cover;
}
.cart-item-title { font-weight:800; font-size:0.95rem; line-height:1.2; margin-bottom:6px; }
.cart-item-meta { font-size:0.84rem; color:#9a9a9a; line-height:1.25; }
.cart-item-actions { display:flex; flex-direction:column; gap:10px; align-items:flex-end; justify-content:center; }
.cart-footer {
  padding:24px;
  border-top:1px solid var(--border);
  background: var(--surface);
}
.cart-total-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:1.3rem; }
.cart-total-label { font-weight:700; color:#888; }
.cart-total-value { font-weight:700; color: var(--primary); font-size:1.5rem; }
.checkout-btn {
  width:100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border:none;
  padding:16px;
  border-radius:999px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition: transform 0.16s ease, filter 0.2s ease;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:0.9rem;
}
.checkout-btn:disabled { opacity:0.45; cursor:not-allowed; transform:none !important; background:#222 !important; color:#777 !important; }

.cart-toast {
  position: fixed;
  bottom:110px;
  right:32px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color:#fff;
  padding:16px 24px;
  border-radius:12px;
  transform: translateY(200px);
  transition: transform 0.4s ease;
  z-index:2200;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
}
.cart-toast.show { transform: translateY(0); }

@media (max-width:768px) {
  .cart-sidebar { width:100%; right:-100%; }
  .floating-cart { bottom:24px; right:24px; width:56px; height:56px; }
  .cart-toast { bottom:100px; right:24px; left:24px; max-width: calc(100% - 48px); }
  .cart-item {
    grid-template-columns: 58px 1fr;
    grid-template-areas:
      "img info"
      "img actions";
  }
  .cart-item-img { grid-area: img; width:58px; height:58px; }
  .cart-item-actions { grid-area: actions; align-items:flex-start; flex-direction:row; justify-content:space-between; }
}

/* ✅ MODALS (desktop default card) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-card {
  max-width: 820px;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.modal-head {
  background: var(--surface);
  padding: 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.modal-close {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 8px;
}
.modal-close:hover { color:#fff; background:#1a1a1a; }
.modal-body {
  padding: 32px;
  color: #ccc;
  line-height: 1.8;
}

/* ✅ TRUE FULLSCREEN MODALS ON MOBILE */
@media (max-width:768px) {
  .modal-overlay {
    padding: 0 !important;
    overflow: hidden; /* overlay itself */
  }
  .modal-card {
    width: 100%;
    max-width: none;
    height: 100dvh;          /* real mobile fullscreen */
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: column;
  }
  .modal-head {
    padding: 18px 16px;
    flex: 0 0 auto;
  }
  .modal-body {
    padding: 18px 16px 26px;
    overflow-y: auto;        /* scroll inside modal */
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
  }
}

/* Checkout + Signup boxes (kept) */
.checkout-banner, .signup-banner {
  border:1px solid rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.08);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:18px;
}
.checkout-banner-title, .signup-title { font-weight:950; color:#fff; letter-spacing:0.02em; }
.checkout-banner-text, .signup-text { color:#bdbdbd; margin-top:6px; line-height:1.5; }

.checkout-summary {
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:18px;
}
.checkout-summary-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; }
.checkout-muted { color:#9a9a9a; font-weight:800; }
.checkout-strong { color:#fff; font-weight:950; }

.checkout-form-title { font-weight:950; color:#fff; margin:12px 0 12px; }

.checkout-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.checkout-grid input, .signup-form input {
  width:100%;
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:14px;
  padding:12px 14px;
  color:#fff;
  font-weight:800;
  outline:none;
}
.checkout-grid input::placeholder, .signup-form input::placeholder { color:#777; font-weight:800; }
.checkout-grid input:focus, .signup-form input:focus { border-color: rgba(168,85,247,0.7); background: rgba(255,255,255,0.045); }

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

.checkout-note { color:#888; font-size:0.9rem; margin-top:10px; line-height:1.5; }

.checkout-actions {
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}
.ghost-btn {
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color:#fff;
  padding:14px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:950;
}
.ghost-btn:hover { background: rgba(255,255,255,0.07); }
.checkout-pay-btn {
  flex:1;
  border:none;
  background:#222;
  color:#777;
  padding:14px 18px;
  border-radius:999px;
  cursor:not-allowed;
  font-weight:950;
}

.signup-form { display:grid; gap:12px; }
.signup-note { color:#888; font-size:0.9rem; line-height:1.5; }