@import "tailwindcss";

:root {
  --bg: #060915;
  --bg-soft: #0d1224;
  --panel: #111938;
  --panel-2: #171f45;
  --yellow-bg: #111938;
  --border: rgba(131, 151, 255, 0.22);

  --brand-blue: #3fa7ff;
  --brand-cyan: #47d6ff;
  --brand-purple: #8f4dff;
  --brand-pink: #ff4d9d;
  --brand-orange: #ff8c2f;
  --brand-yellow: #ffd84f;

  --green: #47d6ff;
  --green-dark: #2fb9f0;
  --green-light: rgba(71, 214, 255, 0.14);
  --pink: #ff4d9d;

  --text-dark: #f3f7ff;
  --text-mid: #c6d0ee;
  --text-light: #8e9bc3;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(4, 8, 30, 0.45);
  --shadow-hover: 0 12px 34px rgba(71, 214, 255, 0.22);
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(63, 167, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(255, 77, 157, 0.2), transparent 33%),
    radial-gradient(circle at 50% 100%, rgba(143, 77, 255, 0.2), transparent 40%),
    var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 5%;
  font-size: 0.8rem;
  gap: 8px;
}

.header {
  background: rgba(8, 13, 32, 0.78);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(130, 151, 255, 0.18);
  transition: box-shadow var(--transition);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.search-trigger,
.hamburger {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(131, 151, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: rgba(17, 25, 56, 0.8);
}

.search-trigger:hover,
.hamburger:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  box-shadow: 0 0 0 5px rgba(71, 214, 255, 0.12);
}

.logo {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #53e7ff 0%, #4ea3ff 30%, #c06cff 60%, #ff6db8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(79, 175, 255, 0.16);
  transition: transform var(--transition), filter var(--transition);
}

.logo:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.cart-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid rgba(131, 151, 255, 0.35);
  background: rgba(17, 25, 56, 0.85);
}

.cart-trigger:hover {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 5px rgba(71, 214, 255, 0.1);
}

.cart-trigger i { font-size: 1.15rem; }

.cart-count {
  background: linear-gradient(130deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.hamburger { display: none; font-size: 1.2rem; }

.nav-bar {
  background: rgba(17, 25, 56, 0.8);
  border-top: 1px solid rgba(130, 151, 255, 0.12);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 5% 14px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-link {
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-radius: 30px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  box-shadow: 0 6px 16px rgba(63, 167, 255, 0.35);
}

.search-overlay,
.mobile-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 14, 0.72);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal {
  background: linear-gradient(180deg, #141d41, #0f1733);
  width: 90%;
  max-width: 560px;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(130, 151, 255, 0.25);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-modal-header h3 { font-size: 1.1rem; font-weight: 800; }
.search-modal-close { font-size: 1.3rem; color: var(--text-light); }

.search-modal input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(130, 151, 255, 0.35);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: rgba(10, 16, 38, 0.9);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-modal input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(71, 214, 255, 0.15);
}

.mobile-overlay { z-index: 300; }

.mobile-panel {
  position: fixed;
  top: 0;
  right: -310px;
  width: 290px;
  height: 100vh;
  background: linear-gradient(180deg, #10183a, #0a1024);
  border-left: 1px solid rgba(130, 151, 255, 0.25);
  z-index: 301;
  transition: right var(--transition);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-panel-header .logo { font-size: 1.6rem; }

.mobile-panel-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(71, 214, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 2px;
  color: var(--text-mid);
}

.mobile-nav-item:hover {
  background: rgba(71, 214, 255, 0.14);
  color: var(--brand-cyan);
}

.mobile-nav-item i {
  width: 24px;
  text-align: center;
  font-size: 1rem;
  color: var(--brand-cyan);
}

.cart-overlay { z-index: 400; }

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(180deg, #10183a, #0a1024);
  border-left: 1px solid rgba(130, 151, 255, 0.25);
  z-index: 401;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(130, 151, 255, 0.2);
}

.cart-panel-header h3 {
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-title-icon { color: var(--brand-cyan); }

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

.cart-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}

.cart-empty i {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  color: rgba(142, 155, 195, 0.55);
}

.cart-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(130, 151, 255, 0.2);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.btn-checkout,
.btn-buy {
  width: 100%;
  padding: 14px;
  background: linear-gradient(95deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-checkout:hover,
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(78, 163, 255, 0.35);
  filter: brightness(1.07);
}

.featured-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.carousel-gallery {
  display: flex;
  gap: 12px;
  position: relative;
}

.carousel-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 72px;
}

.carousel-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(130, 151, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.55;
  background: #0d1224;
}

.carousel-thumb:hover { border-color: var(--brand-cyan); opacity: 0.86; }

.carousel-thumb.active {
  border-color: var(--brand-blue);
  opacity: 1;
  box-shadow: 0 0 0 1px var(--brand-blue), 0 0 0 5px rgba(63, 167, 255, 0.12);
}

.carousel-thumb img,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-main {
  flex: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1224;
  border: 1px solid rgba(130, 151, 255, 0.25);
}

.carousel-viewport { width: 100%; overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1224;
}

.carousel-counter {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 18, 40, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 3;
  border: 1px solid rgba(130, 151, 255, 0.25);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 17, 40, 0.85);
  border: 1px solid rgba(130, 151, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dark);
  z-index: 3;
  transition: var(--transition);
  opacity: 0;
}

.carousel-main:hover .carousel-arrow { opacity: 1; }

.carousel-arrow:hover {
  background: rgba(71, 214, 255, 0.2);
  border-color: var(--brand-cyan);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

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

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(198, 208, 238, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--brand-cyan);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(71, 214, 255, 0.15);
}

.product-info { padding-top: 10px; }

.badge-discount {
  display: inline-block;
  background: linear-gradient(95deg, var(--brand-pink), var(--brand-orange));
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  animation: pulseBadge 2.4s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 157, 0.0); }
  50% { box-shadow: 0 0 0 8px rgba(255, 77, 157, 0.18); }
}

.product-info h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.price-block { margin-bottom: 20px; }

.price-current {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}

.price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 10px;
}

.price-pix {
  display: block;
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 4px;
}

.price-installments,
.price-shipping {
  display: block;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 8px;
}

.price-shipping { color: var(--brand-yellow); font-weight: 700; margin-top: 4px; }

.variant-label {
  font-weight: 800;
  font-size: 0.9rem;
  margin: 20px 0 10px;
}

.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }

.variant-btn {
  padding: 10px 20px;
  border: 1px solid rgba(130, 151, 255, 0.3);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  color: var(--text-mid);
  background: rgba(17, 25, 56, 0.75);
}

.variant-btn:hover,
.variant-btn.selected {
  border-color: var(--brand-blue);
  color: #fff;
  background: linear-gradient(90deg, rgba(63, 167, 255, 0.24), rgba(143, 77, 255, 0.24));
}

.buy-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(130, 151, 255, 0.32);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(17, 25, 56, 0.8);
}

.qty-btn {
  width: 40px;
  height: 44px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  background: rgba(71, 214, 255, 0.08);
  font-weight: 700;
  transition: var(--transition);
}

.qty-btn:hover { color: var(--brand-cyan); background: rgba(71, 214, 255, 0.15); }

.qty-input {
  width: 45px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  color: #fff;
  background: transparent;
}

.btn-buy { flex: 1; }

.product-description {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.features-bar {
  background: rgba(17, 25, 56, 0.65);
  border-top: 1px solid rgba(130, 151, 255, 0.22);
  border-bottom: 1px solid rgba(130, 151, 255, 0.22);
  padding: 30px 5%;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(130deg, rgba(63, 167, 255, 0.18), rgba(143, 77, 255, 0.22));
  color: var(--brand-cyan);
  border: 1px solid rgba(130, 151, 255, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition);
}

.feature:hover .feature-icon {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
}

.feature h4 { font-size: 0.85rem; font-weight: 800; }
.feature p { font-size: 0.78rem; color: var(--text-light); }

.footer {
  background: linear-gradient(180deg, #0c122a 0%, #070a18 100%);
  color: rgba(235, 241, 255, 0.7);
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(90deg, #53e7ff, #8a6bff, #ff66b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--brand-cyan); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(130, 151, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: linear-gradient(130deg, var(--brand-blue), var(--brand-purple));
  border-color: transparent;
  color: #fff;
}

.footer-contact-icon {
  margin-right: 6px;
  color: var(--brand-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(130, 151, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .featured-product { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .carousel-gallery { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-bar { display: none; }
  .topbar { display: none; }
  .logo { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .carousel-thumbs { display: none; }
  .carousel-arrow { opacity: 1; }
  .carousel-main { border-radius: 0; }
  .carousel-dots { bottom: 12px; }
}

@media (max-width: 480px) {
  .header-main { padding: 12px 4%; }
  .featured-product { padding: 30px 4%; }
  .buy-row { flex-direction: column; }
  .btn-buy { width: 100%; }
}
