/* ============ Reset & Base ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Utility Bar ============ */
.utility-bar {
  background: #111;
  color: #aaa;
  font-size: 12px;
  padding: 8px 0;
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-notice {
  color: #ccc;
}

.utility-links {
  display: flex;
  gap: 20px;
}

.utility-links a {
  color: #aaa;
  font-size: 12px;
  transition: color 0.2s;
}

.utility-links a:hover {
  color: #fff;
}

/* ============ Header ============ */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #111;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #f5f5f5;
  color: #000;
}

.nav-link.active {
  color: #000;
}

.nav-link--subtle {
  color: #888;
  font-weight: 500;
}

.header-search {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: #111;
}

.header-search input {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 13px;
  flex: 1;
  font-family: inherit;
}

.search-btn {
  padding: 10px 14px;
  color: #555;
  transition: color 0.2s;
}

.search-btn:hover {
  color: #000;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* ============ Category Bar ============ */
.category-bar {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  overflow-x: auto;
}

.category-heading {
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}

.category-bar-inner a {
  color: #555;
  white-space: nowrap;
  transition: color 0.2s;
}

.category-bar-inner a:hover {
  color: #000;
}

/* ============ Hero Banner ============ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
}

.hero-bg--2 {
  background: linear-gradient(135deg, #0c0c1d 0%, #1b1b3a 40%, #3a0ca3 70%, #f72585 100%);
}

.hero-bg--3 {
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 40%, #a00000 70%, #ff6600 100%);
}

.hero-bg--4 {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 40%, #415a77 70%, #e0e1dd 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 80px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 36px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  width: fit-content;
}

.hero-cta:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.hero-counter {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  min-width: 50px;
}

.hero-counter .current-slide {
  font-size: 20px;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-pause {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.hero-pause:hover {
  color: #fff;
}

.hero-progress {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* ============ Sections ============ */
.best-section,
.arrivals-section {
  padding: 60px 0;
}

.arrivals-section {
  background: #fafafa;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: #888;
}

.view-all {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: color 0.2s;
}

.view-all:hover {
  color: #111;
}

/* ============ Product Grid ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ============ Product Card ============ */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-official {
  background: #111;
  color: #d4af37;
  border: 1px solid #d4af37;
}

.badge-new {
  background: #e53e3e;
  color: #fff;
  top: 12px;
  right: 12px;
  left: auto;
}

.product-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  font-size: 13px;
  font-weight: 800;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:has(.badge-new) .product-rank {
  top: auto;
  bottom: auto;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-placeholder {
  opacity: 0.4;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s;
}

.quick-view-btn:hover {
  background: #f0f0f0;
}

.product-info {
  padding: 16px;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

.price-original {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: #e53e3e;
}

.add-to-cart {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
}

.add-to-cart:hover {
  background: #333;
}

/* ============ Footer ============ */
.footer {
  background: #111;
  color: #aaa;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #777;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-search {
    width: 220px;
  }

  .hero {
    height: 400px;
  }

  .hero-content {
    padding: 0 40px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-controls {
    left: 40px;
    bottom: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .utility-bar {
    display: none;
  }

  .header-search {
    width: 160px;
  }

  .category-bar-inner {
    gap: 16px;
    padding-bottom: 4px;
  }

  .hero {
    height: 340px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

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

  .hero-controls {
    left: 24px;
    bottom: 20px;
  }

  .hero-progress {
    width: 80px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-title {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
