/* 4DRIP Store - Design System */

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f0f0f0;
  
  --accent-primary: #000000; /* Preto */
  --accent-hover: #333333;
  
  --text-primary: #000000;
  --text-secondary: #555555;
  --text-inverse: #ffffff;
  
  --border-color: #e5e5e5;
  --danger: #ff4444;
  
  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Bebas Neue', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --header-fixed-height: 89px;
}

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

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  padding-top: var(--header-fixed-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-weight: normal;
  text-transform: uppercase;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* Ticker Bar */
.ticker-bar {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: var(--spacing-sm) 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 15s linear infinite;
  padding-left: 100%;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Header & Nav */
.header {
  background-color: var(--bg-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 72px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
  width: 190px;
  height: 72px;
  justify-content: center;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: cover;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.22));
  transform-origin: center center;
}

.logo-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  transform: none;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
}

.logo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
  pointer-events: none;
}

.logo-video::-webkit-media-controls,
.logo-video::-webkit-media-controls-panel,
.logo-video::-webkit-media-controls-start-playback-button,
.logo-video-mobile::-webkit-media-controls,
.logo-video-mobile::-webkit-media-controls-panel,
.logo-video-mobile::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
}

.logo-video-mobile {
  display: none;
}

.logo-apng {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
}

.logo.use-apng .logo-video,
.logo.use-apng .logo-video-mobile {
  display: none !important;
}

.logo.use-apng .logo-apng {
  display: block;
}

.logo-3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.logo.has-3d-logo .logo-img {
  display: none;
}

@keyframes logo-axis-spin {
  0% { transform: rotateY(0deg) translateZ(0); }
  100% { transform: rotateY(360deg) translateZ(0); }
}

/* Fallback text if image missing */
.logo h1 {
  font-size: 2rem;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.logo span {
  color: var(--accent-primary);
}

.header-icons {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  z-index: 102;
}

.icon-btn {
  color: var(--text-primary);
  font-size: 1.25rem;
  position: relative;
}

.icon-btn:hover {
  color: var(--accent-primary);
}

#header-auth {
  display: flex;
  align-items: center;
  margin: 0 !important;
}

.account-icon-btn,
.account-menu {
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: .8rem;
  white-space: nowrap;
}

.account-icon-btn span {
  display: none;
}

.account-menu {
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 1;
  max-width: 62px;
}

.account-name {
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .75rem;
}

.account-logout {
  color: var(--text-secondary);
  font-size: .68rem;
  text-decoration: underline;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: bold;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation - Mobile First */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-menu.active {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-link {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.nav-link.sale {
  color: var(--accent-primary);
}

@media (max-width: 1023px) {
  :root {
    --header-fixed-height: 75px;
  }

  .header-container {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    padding: var(--spacing-xs) var(--spacing-md);
    width: 100vw;
    max-width: 100vw;
  }

  .menu-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .logo-img {
    height: 66px;
    max-width: 170px;
  }

  .logo-video {
    display: none;
  }

  .logo-video-mobile {
    display: none;
  }

  .logo-apng {
    display: block;
  }

  .logo {
    width: 170px;
    height: 66px;
  }

  .header-icons {
    grid-column: 3;
    justify-self: end;
    gap: 4px;
  }

  .header-icons #search-btn {
    display: none;
  }

  .header-icons .icon-btn,
  .account-icon-btn {
    width: 30px;
    height: 30px;
  }

  .account-menu {
    max-width: 48px;
  }

  .account-name {
    max-width: 48px;
  }

  .hero-content {
    width: min(100% - 24px, 720px);
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: block;
    position: static;
    border-top: none;
    box-shadow: none;
    width: auto;
    flex-grow: 1;
  }
  
  .nav-list {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-md);
  }
  
  .nav-link {
    border-bottom: none;
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .nav-link:hover {
    background-color: var(--bg-tertiary);
  }

  .header-icons {
    gap: var(--spacing-md);
  }

  .account-icon-btn {
    padding: 0 var(--spacing-sm);
    width: auto;
  }

  .account-icon-btn span {
    display: inline;
  }

  .account-menu {
    max-width: 120px;
  }

  .account-name {
    max-width: 120px;
  }
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Product Card - Mobile First */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-grid-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .product-grid-small {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .product-grid-small {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-grid-small .product-image-container {
  aspect-ratio: 3/2; /* Shorter image container to reduce card height */
}

.product-grid-small .product-info {
  padding: var(--spacing-sm);
}

.product-grid-small .product-title {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.product-grid-small .price-current {
  font-size: 0.95rem;
}

.product-grid-small .price-pix {
  font-size: 0.75rem;
}

.product-grid-small .price-installments {
  display: none;
}

.product-grid-small .btn {
  padding: var(--spacing-sm);
  font-size: 1rem;
}

.product-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-container {
  position: relative;
  aspect-ratio: 4/5;
  background-color: #ffffff;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background-color: var(--text-inverse);
  color: var(--text-primary);
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 12px;
  z-index: 2;
}

.product-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.product-price-container {
  margin-top: auto;
  margin-bottom: var(--spacing-md);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-right: var(--spacing-xs);
}

.price-current {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-primary);
}

.price-pix {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 2px;
}

.price-installments {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  width: min(calc(100% - 32px), 1400px);
  aspect-ratio: 16 / 7;
  max-height: calc(100svh - 150px);
  min-height: 0;
  margin: var(--spacing-md) auto 0;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  contain: layout paint;
  padding: var(--spacing-xl) var(--spacing-md);
  touch-action: pan-y;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--text-inverse);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.banner-slide-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(100%, 0, 0);
  transition: transform 450ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.banner-slide-layer.current {
  transform: translate3d(0, 0, 0);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, .86);
}

.banner-mid {
  position: relative;
  width: min(calc(100% - 32px), 1200px);
  aspect-ratio: 16 / 7;
  max-height: 620px;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  text-align: center;
  padding: 40px 20px;
  margin: var(--spacing-xl) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
  contain: layout paint;
}

.banner-mid.has-image {
  min-height: 0;
}

.banner-mid h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.banner-mid p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 18px;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .75);
  transition: var(--transition-fast);
}

.banner-dot.active {
  width: 24px;
  background: #fff;
}

.brand-flight {
  --flight-progress: 0;
  --launch-progress: 0;
  --launch-warp-progress: 0;
  --launch-flyby-progress: 0;
  --launch-category-progress: 0;
  --cyan: #00e5ff;
  --launch-dark: #050508;
  position: relative;
  height: 400svh;
  background: var(--launch-dark);
}

.launch-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100svh - var(--header-fixed-height));
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 42%, rgba(0,229,255, calc(var(--launch-warp-progress) * .14)), transparent 36%),
    radial-gradient(circle at 52% 100%, rgba(255,255,255,.06), transparent 40%),
    var(--launch-dark);
  perspective: 1000px;
  perspective-origin: 70% 42%;
}

.launch-stage::before {
  content: '';
  position: absolute;
  top: -8svh;
  left: 50%;
  width: 145vw;
  height: 42svh;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(0,229,255,.38), transparent 44%),
    radial-gradient(ellipse at 50% 54%, rgba(8,24,78,.82), transparent 70%);
  filter: blur(22px);
  opacity: calc((1 - var(--flight-progress)) * (1 - var(--launch-category-progress)));
  transform:
    translate3d(-50%, calc(var(--flight-progress) * -18vh), 0)
    scale(calc(1 + var(--flight-progress) * .22));
  will-change: opacity, transform;
}

.brand-flight.is-active .launch-stage {
  position: fixed;
  top: var(--header-fixed-height);
  left: 0;
  right: 0;
  z-index: 1;
}

.brand-flight.is-past .launch-stage {
  position: absolute;
  top: auto;
  bottom: 0;
}

.launch-stars,
.launch-warp,
.launch-flash,
.launch-categories {
  position: absolute;
  inset: 0;
}

.launch-stars,
.launch-warp,
.launch-engine-glow,
.launch-ground,
.launch-flash,
.launch-boy,
.launch-logo,
.launch-hud,
.launch-scroll-cue,
.launch-categories {
  z-index: 2;
}

.launch-stars {
  pointer-events: none;
  opacity: calc((.34 + var(--flight-progress) * .66) * (1 - var(--launch-category-progress) * .72));
  transform: scale(calc(1 + var(--flight-progress) * .14 + var(--launch-flyby-progress) * .1));
  will-change: opacity, transform;
}

.launch-warp {
  pointer-events: none;
  opacity: calc(var(--launch-warp-progress) * .22);
}

.launch-star {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: #fff;
  opacity: calc(.3 + var(--depth, 1) * .24 + var(--flight-progress) * var(--depth, 1) * .32);
  transform: scale(calc(.82 + var(--flight-progress) * var(--depth, 1) * 1.25 + var(--launch-flyby-progress) * var(--depth, 1) * 1.55));
  animation: launch-twinkle var(--duration, 2s) infinite alternate;
}

@keyframes launch-twinkle {
  from { opacity: .18; }
  to { opacity: 1; }
}

.launch-warp {
  overflow: hidden;
}

.launch-warp-line {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 1.5px;
  height: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,229,255,.42));
  transform-origin: top center;
  animation: launch-warp-shoot var(--duration, .7s) infinite linear;
  animation-delay: var(--delay, 0s);
}

@keyframes launch-warp-shoot {
  0% { height: 0; opacity: 1; top: 42%; }
  100% { height: 68vh; opacity: 0; top: 112%; }
}

.launch-flash {
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 42%, rgba(0,229,255,.75), transparent 62%);
  opacity: calc(max(0, (var(--flight-progress) - .72) * 5) * (1 - var(--launch-category-progress)));
}

.launch-engine-glow {
  position: absolute;
  top: 46%;
  left: 70%;
  width: 160px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,229,255,1) 0%, rgba(0,150,255,.5) 40%, transparent 80%);
  filter: blur(14px);
  opacity: calc((.28 + var(--launch-warp-progress) * .72) * (1 - var(--launch-category-progress)));
  z-index: 18;
  pointer-events: none;
  transform:
    translate3d(
      calc(-50% - var(--flight-progress) * 21vw - var(--launch-flyby-progress) * 14vw),
      calc(-50% + var(--flight-progress) * 10vh - var(--launch-flyby-progress) * 4vh),
      0
    )
    rotate(calc(var(--flight-progress) * -12deg))
    scale(calc(.45 + var(--flight-progress) * 1.45 + var(--launch-flyby-progress) * 2.2));
  will-change: transform, opacity;
}

.launch-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(calc(1 + var(--flight-progress) * 0.3));
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 18vw, 200px);
  letter-spacing: 0.08em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(180, 185, 190, 0.7);
  text-stroke: 1.5px rgba(180, 185, 190, 0.7);
  text-shadow: 0 0 30px rgba(180, 185, 190, 0.15);
  opacity: calc((1 - var(--flight-progress)) * (1 - var(--launch-category-progress)));
  z-index: 5;
  pointer-events: none;
  will-change: transform, opacity;
  transition: none;
}

.launch-boy {
  position: absolute;
  bottom: -2%;
  left: 2%;
  width: min(300px, 32vw);
  overflow: visible;
  transform-origin: bottom left;
  z-index: 10;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.9));
  transform:
    translate3d(
      calc(var(--flight-progress) * -34vw),
      calc(var(--flight-progress) * 8vh),
      0
    )
    scale(calc(1 - var(--flight-progress) * .5));
  opacity: calc(1 - var(--flight-progress) * 1.25);
  will-change: transform, opacity;
}

.launch-boy img,
.launch-logo img {
  width: 100%;
  display: block;
}

.launch-boy img {
  position: relative;
  z-index: 2;
}

.launch-logo img {
  position: relative;
  z-index: 2;
  filter:
    invert(1)
    drop-shadow(0 0 12px rgba(255,255,255,.46))
    drop-shadow(0 0 22px rgba(0,229,255,.68));
}

.launch-logo {
  position: absolute;
  top: 40%;
  left: 72%;
  width: min(260px, 32vw);
  z-index: 20;
  transform-origin: center center;
  filter:
    drop-shadow(0 18px 32px rgba(0,0,0,.6))
    drop-shadow(0 0 calc(var(--launch-warp-progress) * 22px) rgba(0,229,255,.8));
  transform:
    translate3d(
      calc(-50% - var(--flight-progress) * 20vw - var(--launch-flyby-progress) * 18vw),
      calc(-50% + var(--flight-progress) * 9vh - var(--launch-flyby-progress) * 3vh),
      0
    )
    rotateZ(calc(var(--flight-progress) * -10deg))
    rotateX(calc(var(--launch-flyby-progress) * 78deg))
    scale(calc(.68 + var(--flight-progress) * 1.75 + var(--launch-flyby-progress) * 3.7));
  opacity: calc(1 - var(--launch-category-progress) * .72);
  will-change: transform, opacity, filter;
}

.launch-logo::before,
.launch-logo::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: calc((.58 + var(--launch-warp-progress) * .42) * (1 - var(--launch-category-progress)));
  transform-origin: right center;
}

.launch-logo::before {
  right: 63%;
  top: 68%;
  width: clamp(150px, 40vw, 440px);
  height: clamp(14px, 3vw, 34px);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.14), rgba(0,229,255,.96));
  filter: blur(9px);
  transform:
    translate3d(0, -50%, 0)
    rotate(-7deg)
    scaleX(calc(.58 + var(--launch-warp-progress) * .82));
}

.launch-logo::after {
  right: 72%;
  top: 78%;
  width: clamp(170px, 46vw, 500px);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), rgba(0,229,255,1));
  box-shadow:
    0 -10px 20px rgba(0,229,255,.32),
    0 10px 26px rgba(0,229,255,.38);
  transform:
    translate3d(0, -50%, 0)
    rotate(-10deg)
    scaleX(calc(.48 + var(--launch-warp-progress) * 1.04));
}

.launch-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: calc(.25 * (1 - var(--launch-category-progress)));
  filter: blur(2px);
}

.launch-hud-top {
  position: absolute;
  top: 24px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255,255,255, calc(.22 * (1 - var(--launch-category-progress))));
  text-transform: uppercase;
  pointer-events: none;
  z-index: 30;
}

.launch-hud {
  position: absolute;
  bottom: 36px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255,255,255, calc(.22 * (1 - var(--launch-category-progress))));
  text-transform: uppercase;
  pointer-events: none;
  z-index: 30;
}

.launch-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(140px, 18svh, 190px);
  width: 52px;
  height: 68px;
  z-index: 31;
  pointer-events: none;
  opacity: calc(max(0, 1 - var(--flight-progress) * 8) * (1 - var(--launch-category-progress)));
  transform: translateX(-50%);
  will-change: opacity;
}

.launch-scroll-cue span {
  position: absolute;
  left: 50%;
  width: 30px;
  height: 30px;
  border-right: 3px solid rgba(255,255,255,.92);
  border-bottom: 3px solid rgba(255,255,255,.92);
  filter: drop-shadow(0 0 16px rgba(0,229,255,.9));
  transform: translateX(-50%) rotate(45deg);
  animation: launch-scroll-cue 1.25s infinite;
}

.launch-scroll-cue span:first-child {
  top: 0;
}

.launch-scroll-cue span:last-child {
  top: 20px;
  animation-delay: .16s;
}

@keyframes launch-scroll-cue {
  0% { opacity: 0; transform: translate3d(-50%, -8px, 0) rotate(45deg); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-50%, 10px, 0) rotate(45deg); }
}

.launch-categories {
  z-index: 60;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.08), transparent 60%),
    #000;
  color: #fff;
  opacity: var(--launch-category-progress);
  transform: translate3d(0, calc((1 - var(--launch-category-progress)) * 20vh), 0);
  will-change: opacity, transform;
}

.launch-kicker {
  margin-bottom: .75rem;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.brand-categories-title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .9;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.brand-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
}

.brand-category-link {
  min-height: 132px;
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: flex-end;
  background: #000;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.brand-category-link:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 767px) {
  .hero {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: none;
    margin-top: 0;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .banner-mid {
    width: min(100%, calc(100vw - 24px));
    aspect-ratio: 4 / 5;
    max-height: none;
    padding: 32px 16px;
  }

  .hero-title,
  .banner-mid h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand-flight {
    height: 380svh;
  }

  .launch-boy {
    left: -1vw;
    bottom: clamp(188px, 24svh, 224px);
    width: 58vw;
    height: auto;
    z-index: 32;
    transform:
      translate3d(
        calc(var(--flight-progress) * -36vw),
        calc(var(--flight-progress) * 6vh),
        0
      )
      scale(calc(1 - var(--flight-progress) * .42));
  }

  .launch-boy img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .launch-logo {
    top: 36%;
    left: 74%;
    width: 44vw;
    transform:
      translate3d(
        calc(-50% - var(--flight-progress) * 24vw - var(--launch-flyby-progress) * 34vw),
        calc(-50% + var(--flight-progress) * 10vh - var(--launch-flyby-progress) * 4vh),
        0
      )
      rotateZ(calc(var(--flight-progress) * -8deg))
      rotateX(calc(var(--launch-flyby-progress) * 78deg))
      scale(calc(.72 + var(--flight-progress) * 1.6 + var(--launch-flyby-progress) * 3.8));
  }

  .launch-engine-glow {
    top: 48%;
    left: 70%;
    transform:
      translate3d(
        calc(-50% - var(--flight-progress) * 27vw - var(--launch-flyby-progress) * 31vw),
        calc(-50% + var(--flight-progress) * 10vh - var(--launch-flyby-progress) * 4vh),
        0
      )
      rotate(calc(var(--flight-progress) * -10deg))
      scale(calc(.38 + var(--flight-progress) * 1.25 + var(--launch-flyby-progress) * 2.1));
  }

  .brand-category-grid {
    grid-template-columns: 1fr;
  }

  .brand-category-link {
    min-height: 74px;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xxl) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.footer-col ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* --- CART SIDEBAR (DRAWER) --- */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--transition-normal);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100%;
    background: var(--bg-primary); z-index: 1000;
    display: flex; flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}
.cart-sidebar.active { transform: translateX(0); }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--spacing-lg); border-bottom: 1px solid var(--border-color);
}
.close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

.cart-items { flex: 1; overflow-y: auto; padding: var(--spacing-lg); }

.cart-item {
    display: flex; gap: var(--spacing-md); margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md); border-bottom: 1px solid var(--border-color);
}
.cart-item img { width: 80px; height: 140px; object-fit: cover;
border-radius: var(--radius-sm); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.2; }
.cart-item-size { color: var(--text-secondary); font-size: 0.8rem; }
.cart-item-price { margin-top: auto; font-weight: bold; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-qty-btn { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); width: 28px; height: 28px; cursor: pointer; border-radius: 4px; display:flex; align-items:center; justify-content:center; }
.cart-qty-val { font-size: 0.9rem; width: 20px; text-align: center; }
.cart-remove { color: var(--danger); font-size: 0.8rem; cursor: pointer; text-decoration: underline; background: none; border: none; margin-left: auto; }

.cart-footer { padding: var(--spacing-lg); border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: var(--spacing-md); }

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-primary); z-index: 1001;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition-fast);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-container { width: 100%; max-width: 600px; padding: 20px; position: relative; }
#search-input { 
    width: 100%; font-size: 2.5rem; font-family: var(--font-heading); 
    border: none; border-bottom: 3px solid var(--accent-primary); 
    padding: 10px 0; margin-bottom: 20px; outline: none; 
    background: transparent; color: var(--text-primary); 
}
#search-input::placeholder { color: var(--text-secondary); opacity: 0.5; }
.close-search { 
    position: absolute; top: -60px; right: 20px; font-size: 2rem; 
    background: none; border: none; cursor: pointer; color: var(--text-primary); 
}

/* Accessory Slider */
.accessory-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accessory-slider-track {
  overflow: hidden;
  flex: 1;
}

.accessory-slider-track .product-grid-small {
  display: flex;
  gap: var(--spacing-md);
  transition: transform 0.35s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.accessory-slider-track .product-grid-small > * {
  min-width: calc(20% - 12px);
  max-width: calc(20% - 12px);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .accessory-slider-track .product-grid-small > * {
    min-width: calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
  }
}

@media (max-width: 600px) {
  .accessory-slider-track .product-grid-small > * {
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

.accessory-arrow {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary, #111);
  color: var(--text-primary, #fff);
  border: 1px solid var(--border-color, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast, 0.2s);
}

.accessory-arrow:hover {
  background: var(--accent-primary, #00e5ff);
  color: #000;
  border-color: var(--accent-primary, #00e5ff);
}

.accessory-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Cart Upsell */
.cart-upsell {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.cart-upsell-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.cart-upsell-slider-wrapper {
  overflow: hidden;
}

.cart-upsell-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cart-upsell-items {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.cart-upsell-items .upsell-card {
  min-width: 110px;
  max-width: 110px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-align: center;
}

.cart-upsell-items .upsell-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff;
  display: block;
}

.cart-upsell-items .upsell-card .upsell-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-upsell-items .upsell-card .upsell-add {
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-family: var(--font-body);
  background: var(--accent-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-upsell-items .upsell-card .upsell-add:hover {
  background: var(--accent-hover);
}

/* Hero Background Video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mid-banner-video,
.mid-banner-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mid-banner-video {
  opacity: 0;
}

.banner-mid.video-playing .mid-banner-video {
  opacity: 1;
}

.banner-mid.video-playing .mid-banner-fallback {
  opacity: 0;
}

#mid-banner {
  position: relative;
  overflow: hidden;
}

/* Video overlay for text readability */
#mid-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.banner-slide-layer {
  z-index: 0;
}

/* Mid banner video fix - ensure dark bg while video loads */
.banner-mid {
  background-color: #0a0a0a;
}
