/* Nike Pure Catalog Stylesheet */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.catalog-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.catalog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5e7;
}

.header-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #707072;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111111;
}

.nav-link.active {
  font-weight: 800;
  border-bottom: 2px solid #111111;
  padding-bottom: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box i {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: #707072;
}

.search-input-box input {
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px 9px 36px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  width: 220px;
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  background: #ffffff;
  border-color: #111111;
  width: 280px;
}

.search-input-box button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #707072;
  cursor: pointer;
}

.cart-trigger-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #111111;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-trigger-btn:hover {
  background: #f5f5f5;
}

.cart-badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sticky Category Ribbon */
.catalog-sticky-ribbon {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5e7;
  padding: 16px 0;
}

.ribbon-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ribbon-title-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ribbon-headline {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.ribbon-counter {
  font-size: 14px;
  font-weight: 700;
  color: #707072;
}

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chips-scroll-box {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.chips-scroll-box::-webkit-scrollbar {
  display: none;
}

.nike-chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #f5f5f5;
  color: #111111;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nike-chip:hover {
  background: #e8e8e8;
}

.nike-chip.active {
  background: #111111;
  color: #ffffff;
}

.nike-sort-select {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #f5f5f5;
  color: #111111;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
}

/* Product Grid */
.main-content {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .nav-links, .search-input-box {
    display: none;
  }
  .ribbon-headline {
    font-size: 22px;
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-media img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover .card-media img {
  transform: scale(1.06);
}

.card-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #111111;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.catalog-card:hover .card-add-btn {
  opacity: 1;
}

.card-add-btn:hover {
  background: #111111;
  color: #ffffff;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card-price {
  font-size: 14px;
  font-weight: 800;
  color: #111111;
}

.card-buy-link {
  font-size: 12px;
  font-weight: 700;
  color: #707072;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.card-buy-link:hover {
  color: #111111;
}

/* Loading & Empty */
.loading-state, .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #707072;
}

.loading-state i {
  font-size: 32px;
  color: #111111;
  margin-bottom: 16px;
  display: block;
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 16px;
  color: #111111;
}

.empty-state h3 {
  font-size: 18px;
  color: #111111;
  margin-bottom: 8px;
}

.reset-filter-btn {
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Off-Canvas Cart */
.catalog-cart-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.catalog-cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-cart-drawer {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.catalog-cart-overlay.active .catalog-cart-drawer {
  transform: translateX(0);
}

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

.cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-title-wrap h2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #707072;
  cursor: pointer;
}

.cart-shipping-promo {
  padding: 12px 24px;
  background: #f0f7ff;
  border-bottom: 1px solid #e0effe;
  font-size: 13px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.empty-cart-view {
  text-align: center;
  padding: 60px 0;
  color: #707072;
}

.empty-cart-view i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: #f6f6f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-details h4 {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
  display: block;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #e5e5e7;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-val {
  font-size: 12px;
  font-weight: 700;
}

.cart-item-del {
  background: none;
  border: none;
  color: #707072;
  cursor: pointer;
  padding: 8px;
  font-size: 14px;
}

.cart-item-del:hover {
  color: #ef4444;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e5e7;
  background: #ffffff;
}

.cart-subtotal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.subtotal-val {
  font-size: 18px;
  font-weight: 900;
}

.checkout-submit-btn {
  width: 100%;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-submit-btn:hover {
  background: #0284c7;
}

/* Minimal Apple Footer */
.catalog-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5e7;
  padding: 32px 0;
}

.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-brand span {
  font-size: 12px;
  font-weight: 600;
  color: #707072;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: #707072;
  text-decoration: none;
}

.footer-links a:hover {
  color: #111111;
}

.footer-copy {
  font-size: 12px;
  color: #707072;
}
