@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #0d0d0f;
  --card: #141419;
  --accent: #6cf0c2;
  --text: #e8e8ed;
  --muted: #ffffff;
  --border: #242631;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(108, 240, 194, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(108, 240, 194, 0.05), transparent 30%),
    linear-gradient(180deg, #0b0b0d 0%, #0f1117 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(108, 240, 194, 0.12);
  color: var(--text);
}

.logo {
  height: 90px;
  width: auto;
  margin: -15px 0;
  display: block;
  filter: brightness(0) invert(1);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 0 20px 40px;
}

.hero-content {
  padding: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(108, 240, 194, 0.16);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 18px 0;
  line-height: 1.4;
  letter-spacing: 1.5px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6cf0c2, #4bbca0);
  color: #0b0d10;
  box-shadow: 0 10px 30px rgba(108, 240, 194, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(108, 240, 194, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.hero-media {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(108, 240, 194, 0.18), transparent 40%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 14px;
}

.stat strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--hover-color, rgba(108, 240, 194, 0.35));
  box-shadow: 0 8px 30px var(--hover-color, rgba(108, 240, 194, 0.15));
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #ffffff;
  /* Consistent background for all product photos */
  overflow: hidden;
}

.card.nocta-card img {
  object-fit: cover;
}

.brand-nike img {
  object-position: center bottom;
  transition: transform 0.3s ease;
}


.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.second-price {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

.second-price strong {
  color: var(--accent);
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}

.featured-band {
  margin: 40px 0;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 240, 194, 0.1), rgba(108, 240, 194, 0.02));
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.featured-item h4 {
  margin: 0 0 6px;
}

.product-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.product-gallery {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.product-gallery img {
  width: 100%;
  border-radius: 12px;
  background: #0b0c10;
}

.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
}

.product-info p {
  color: var(--muted);
  margin: 0 0 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.info-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

footer {
  margin: 50px 0 30px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Mobile Header Actions */
.mobile-header-actions {
  display: none;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(13, 13, 15, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.btn-close-sidebar {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.sidebar-nav a {
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav a:hover,
.sidebar-nav a:active {
  background: rgba(108, 240, 194, 0.12);
  color: var(--accent);
}

@media (max-width: 768px) {

  /* Show mobile elements */
  .mobile-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Hide desktop navigation */
  .desktop-nav {
    display: none !important;
  }

  /* Navbar adjustments */
  .navbar {
    justify-content: space-between;
    padding: 12px 0;
  }

  /* Logo sizing for mobile */
  .logo {
    height: 60px;
    margin: 0;
  }

  /* Cart button mobile */
  .cart-btn-mobile {
    padding: 8px 12px !important;
  }

  /* Hero section mobile optimization */
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 0 30px;
    gap: 24px;
  }

  .hero-content {
    padding: 20px;
    order: 2;
  }

  .hero-media {
    order: 1;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 14px;
  }

  .badge {
    font-size: 12px;
    padding: 8px 14px;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat {
    padding: 12px;
  }

  .stat strong {
    font-size: 16px;
  }

  .stat span {
    font-size: 13px;
  }

  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section titles */
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  /* Cards grid mobile - 2 columns */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Adjust card content for smaller cards */
  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .card-body p {
    font-size: 12px;
    line-height: 1.4;
  }

  .card img {
    height: 160px;
  }

  .price-tag {
    font-size: 1rem;
  }

  .second-price {
    font-size: 0.75rem;
  }

  .tag {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Button adjustments for smaller cards */
  .card .btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Featured band */
  .featured-band {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  /* Container padding */
  .container {
    width: 95vw;
  }

  /* Cart sidebar mobile */
  .cart-sidebar {
    max-width: 100%;
    width: 100%;
  }
}

/* --- DESIGN PREMIUM POLISH --- */

/* Hero Gradient & Animation */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 240, 194, 0.1) 0%, transparent 60%);
  z-index: -1;
  animation: pulseGradient 10s infinite alternate;
}

@keyframes pulseGradient {
  from {
    transform: scale(1);
    opacity: 0.5;
  }

  to {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Glassmorphism Cards */
.card {
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* More subtle border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--hover-color, var(--accent));
  box-shadow: 0 12px 40px var(--hover-color, rgba(108, 240, 194, 0.15));
}

.card-body h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.card-body p {
  color: var(--muted);
}

/* Button Glows */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #0b0d10;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  z-index: 1000;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Brand Sections */
.brand-section {
  margin-bottom: 80px;
  position: relative;
  display: block;
}

.brand-banner {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background-color: #000;
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.banner-bape,
.banner-adidas {
  height: 200px;
  object-fit: cover;
  background-color: transparent;
}

.banner-new-balance {
  height: 200px;
  object-fit: cover;
  background-color: transparent;
}

.banner-essentials {
  height: 200px;
  object-fit: cover;
  background-color: transparent;
}

.brand-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Carousel Customization */
.carousel {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-inner {
  border-radius: 16px;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #0b0c10;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(108, 240, 194, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(108, 240, 194, 0.4);
  opacity: 1;
}

.carousel-indicators {
  margin-bottom: 10px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: var(--accent);
  width: 12px;
  height: 12px;
}

/* --- Shopping Cart Sidebar --- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.btn-close-cart {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-cart:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.cart-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.brand-nike .cart-item img,
.cart-item.nike img {
  background: #0b0c10;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-details h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.cart-item-details .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.old-price {
  text-decoration: line-through;
  color: #777;
  font-size: 0.85rem;
  margin-right: 6px;
  font-weight: 400;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #ff5555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.btn-remove-item:hover {
  opacity: 1;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.95);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.cart-total span:last-child {
  color: var(--accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.quantity-controls button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.quantity-controls button:hover {
  opacity: 0.7;
}

.quantity-controls span {
  font-size: 14px;
  font-weight: 500;
  min-width: 12px;
  text-align: center;
}

/* --- Community Section --- */
.community-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.community-info h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.community-info p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.community-carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.community-carousel .carousel-item img {
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.community-carousel:hover .carousel-item img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .community-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .community-carousel .carousel-item img {
    height: 300px;
  }

  .community-info {
    order: -1;
    text-align: center;
  }
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Transform hamburger to X */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}