:root {
  /* Palette */
  --colombia-yellow: #ffd700;
  --colombia-blue: #003087;
  --colombia-red: #bf0000;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --white: #ffffff;
  --cta-green: #00c853;
  --text-body: #e0e0e0;

  /* Typography */
  --font-display: "Bebas Neue", sans-serif;
  --font-sub: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Spacing */
  --section-padding: 80px 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none; /* Custom soccer ball cursor */
}

/* --- Top Bar Styling --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to right, #ffd700, #003087, #bf0000);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.top-bar-content {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.top-countdown {
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
}

.top-bar-price {
  background: var(--bg-dark);
  color: var(--colombia-yellow);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .top-bar-text { display: none; }
  .top-bar-content { gap: 10px; }
}

/* --- Noise Grain Overlay --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==");
  pointer-events: none;
  z-index: 9999;
}

/* Custom Cursor */
#custom-cursor {
  width: 30px;
  height: 30px;
  background: url("https://cdn-icons-png.flaticon.com/512/33/33736.png")
    no-repeat center center;
  background-size: contain;
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  transition: transform 0.1s ease-out;
  transform: translate(-50%, -50%);
}

/* --- UI Components --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta {
  background-color: var(--cta-green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 18px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
  animation: pulse-green 2s infinite;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 200, 83, 0.6);
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 15px rgba(0, 200, 83, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
  }
}

/* Badge Holográfico */
.badge-official {
  background: linear-gradient(135deg, #ffd700, #fff, #ffd700, #003087, #bf0000);
  background-size: 400% 400%;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-sub);
  font-weight: bold;
  font-size: 14px;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  animation:
    holo-flow 6s ease infinite,
    hue-rotation 10s linear infinite;
}

@keyframes holo-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hue-rotation {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

/* --- Section 1: Hero --- */
#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(0, 48, 135, 0.2) 0%,
    rgba(10, 10, 10, 1) 70%
  );
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.logo-adidas {
  width: 120px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  animation: fade-scale-in 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-size: 64px; /* Fallback */
  font-size: clamp(40px, 8vw, 92px);
  line-height: 0.9;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: 20px; /* Fallback */
  font-size: clamp(16px, 3vw, 24px);
  color: var(--colombia-yellow);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.viewing-counter {
  margin-top: 30px;
  font-family: var(--font-sub);
  color: #888;
  font-size: 16px;
}

.viewing-counter span {
  color: var(--colombia-red);
  font-weight: bold;
}

/* --- Section 2: Trust --- */
.trust-section {
  padding: var(--section-padding);
  background: #0d0d0d;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-item {
  text-align: center;
}

.trust-item i {
  font-size: 40px;
  color: var(--colombia-yellow);
  margin-bottom: 15px;
  display: block;
}

.trust-item h4 {
  font-family: var(--font-sub);
  font-size: 18px;
  margin-bottom: 5px;
}

/* --- Section 3: Star Product --- */
#product-star {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
}

.product-flex {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 992px) {
  .product-flex {
    flex-direction: row;
  }
}

.product-image-container {
  flex: 1;
  position: relative;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.product-main-img {
  width: 100%;
  max-width: 500px;
  height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(255, 215, 0, 0.2));
  transition: transform 0.5s ease;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

/* Gallery Thumbnails */
.product-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
  max-width: 500px;
  scrollbar-width: thin;
  scrollbar-color: var(--colombia-yellow) #222;
}

.product-gallery::-webkit-scrollbar {
  height: 6px;
}

.product-gallery::-webkit-scrollbar-thumb {
  background: var(--colombia-yellow);
  border-radius: 10px;
}

.gallery-item {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid #333;
  cursor: pointer;
  transition: all 0.3s;
  object-fit: cover;
  background: #111;
  position: relative;
}

.gallery-item.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.gallery-item.active {
  border-color: var(--colombia-yellow);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.gallery-item:hover {
  border-color: #555;
  transform: translateY(-3px);
}

.product-main-img:hover {
  transform: scale(1.05) rotateX(5deg);
}

.product-info {
  flex: 1;
  text-align: left;
}

.price-container {
  margin: 30px 0;
}

.price-old {
  text-decoration: line-through;
  color: #666;
  font-size: 24px;
  font-family: var(--font-sub);
}

.price-new {
  color: var(--cta-green);
  font-size: 48px;
  font-family: var(--font-display);
  margin-left: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.price-new.pop {
  transform: scale(1.1);
  color: var(--colombia-yellow);
}

.savings-badge {
  background: var(--colombia-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 10px;
  vertical-align: middle;
  animation: pulse-red 2.5s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(191, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(191, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(191, 0, 0, 0); }
}

.selector-group {
  margin-bottom: 25px;
}

.selector-label {
  display: block;
  font-family: var(--font-sub);
  color: #aaa;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.option-tabs {
  display: flex;
  gap: 10px;
}

.option-btn {
  background: var(--bg-card);
  border: 1px solid #333;
  color: var(--white);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-sub);
  font-weight: bold;
}

.option-btn.active {
  border-color: var(--colombia-yellow);
  color: var(--colombia-yellow);
  background: rgba(255, 215, 0, 0.05);
}

.stock-indicator {
  margin-top: 15px;
  font-size: 14px;
  color: #888;
}

.stock-indicator.low {
  color: var(--colombia-red);
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* --- Section 4: Grid --- */
#catalog {
  padding: var(--section-padding);
  background: #0d0d0d;
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border: 1px solid #222;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px) rotateY(10deg);
  border-color: var(--colombia-yellow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.best-seller {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--colombia-yellow);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* --- Section 5: Trust/Toasts --- */
#social-proof {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  pointer-events: none;
}

.toast-notification {
  background: rgba(20, 20, 20, 0.95);
  border-left: 4px solid var(--cta-green);
  padding: 15px 25px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
  transform: translateX(-150%);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.toast-notification.show {
  transform: translateX(0);
}

/* Countdown Section */
#countdown-section {
  padding: var(--section-padding);
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
  text-align: center;
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, var(--colombia-yellow), var(--colombia-blue), var(--colombia-red)) 1;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.countdown-box {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  min-width: 100px;
}

.countdown-num {
  display: block;
  font-size: 32px; /* Fallback */
  font-size: clamp(32px, 5vw, 48px);
  font-family: var(--font-display);
  color: var(--colombia-yellow);
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
}

/* WhatsApp Floating */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s;
  animation: bounce 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Footer */
footer {
  padding: 60px 20px;
  background: #050505;
  text-align: center;
  border-top: 1px solid #222;
}

.footer-logo {
  width: 80px;
  margin-bottom: 20px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content,
.lightbox-video {
  max-width: 90%;
  max-height: 80%;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
}

.lightbox-video {
  width: 800px; /* Base for desktop */
}

.lightbox-modal.active .lightbox-content,
.lightbox-modal.active .lightbox-video {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  font-family: var(--font-display);
  border: none;
  background: transparent;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: var(--colombia-red);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 20001;
}

.lightbox-nav:hover {
  background: var(--colombia-yellow);
  color: #000;
}

.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }

@media (max-width: 768px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-close { top: 20px; right: 20px; width: 45px; height: 45px; font-size: 30px; }
}

.zoom-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

/* Hover Zoom Effect on Images */
.product-main-img,
.card-img {
  cursor: zoom-in;
}

.disclaimer {
  font-size: 12px;
  color: #555;
  max-width: 600px;
  margin: 30px auto 0;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Copy WhatsApp Tooltip */
.copy-feedback {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta-green);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.copy-feedback.show {
  opacity: 1;
}

/* Quantity Selector & Cart */
.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-main);
}

.qty-btn:hover {
    background: var(--colombia-yellow);
    color: black;
}

#purchase-qty {
    width: 60px;
    border: none;
    background: transparent;
    color: white;
    text-align: center;
    font-size: 20px;
    font-family: var(--font-main);
    font-weight: bold;
}

#purchase-qty::-webkit-inner-spin-button,
#purchase-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
