/* ─── TIERFIT HIGH-END EDITORIAL MONOCHROME SYSTEM ─── */

:root {
  --font-satoshi: 'Satoshi', sans-serif;
  
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-dark: #0a0a0a;
  --color-gray-light: #8e8e93;
  --color-gray-muted: #3a3a3c;
  
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-satoshi), sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Transparent Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

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

.logo-link img {
  height: 66px; /* 3x larger logo height */
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  letter-spacing: 0.2em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 48px;
}

nav a {
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-light);
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--color-white);
}

.cart-icon-btn {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-satoshi);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.cart-btn-text {
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 2px;
}

.cart-count {
  font-size: 10px;
  background: var(--color-white);
  color: var(--color-black);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Hero Section - Editorial Cover Style */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-black);
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-subtitle {
  color: var(--color-gray-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-size: clamp(56px, 10vw, 110px);
  margin-bottom: 40px;
  line-height: 0.9;
  font-weight: 900;
}

.hero-title span {
  font-weight: 300;
}

.hero-desc {
  font-size: 18px;
  color: var(--color-gray-light);
  margin-bottom: 56px;
  line-height: 1.6;
  max-width: 540px;
  font-weight: 300;
}

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

/* Clean Minimal Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-satoshi);
  font-weight: 700;
  font-size: 12px;
  padding: 18px 40px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0;
  border: none;
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-primary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  outline: 1px solid var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  outline-color: var(--color-white);
}

.btn-full {
  width: 100%;
}

/* Products Section - Borderless Editorial Grid */
.products-section {
  padding: 160px 0;
  background-color: var(--color-black);
}

.section-header {
  margin-bottom: 100px;
  text-align: center;
}

.section-subtitle {
  color: var(--color-gray-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 72px 48px; /* Large spacious gaps */
}

/* Borderless Product Card */
.product-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  border: none !important;
  cursor: pointer;
}

.product-card-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: transparent;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.03);
}

.product-card-content {
  padding: 24px 0 0 0; /* No side padding, pulls content clean */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.price-current {
  font-size: 18px;
  font-weight: 900;
}

.price-original {
  font-size: 14px;
  color: var(--color-gray-light);
  text-decoration: line-through;
  font-weight: 300;
}

.size-selector-wrap {
  margin-bottom: 20px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.product-card-actions .btn {
  padding: 12px 24px;
  font-size: 11px;
}

/* Dynamic Product Page View */
.product-page-container {
  padding-top: 160px;
  padding-bottom: 120px;
}

.back-nav {
  margin-bottom: 48px;
}

.back-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--color-gray-light);
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--color-white);
}

.product-page-main {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

.product-page-image {
  flex: 1.2;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.product-page-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-page-details {
  flex: 0.8;
  display: flex;
  flex-direction: column;
}

.product-page-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gray-light);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.product-page-title {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  line-height: 0.95;
}

.product-page-desc {
  font-size: 16px;
  color: var(--color-gray-light);
  line-height: 1.8;
  margin-top: 40px;
  font-weight: 300;
  max-width: 480px;
}

.product-page-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

/* Sizes styling on detail pages */
.size-selector-title {
  font-size: 11px;
  color: var(--color-gray-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.size-options {
  display: flex;
  gap: 12px;
}

.size-radio {
  display: none;
}

.size-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--color-gray-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-label:hover {
  background: var(--color-gray-muted);
}

.size-radio:checked + .size-label {
  background-color: var(--color-white);
  color: var(--color-black);
}

.product-card .size-label {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

/* Minimal Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--color-black);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.active {
  right: 0;
}

#cart-drawer.active ~ .cart-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-btn:hover {
  opacity: 0.5;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 48px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cart-item {
  display: flex;
  gap: 24px;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background-color: transparent;
}

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

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cart-item-size {
  font-size: 12px;
  color: var(--color-gray-light);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: var(--color-gray-dark);
}

.qty-selector button {
  background: none;
  border: none;
  color: var(--color-white);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-weight: 700;
}

.qty-selector button:hover {
  background-color: var(--color-gray-muted);
}

.qty-selector span {
  width: 38px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--color-gray-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.remove-item-btn:hover {
  color: var(--color-white);
}

.cart-footer {
  padding: 48px;
  background: var(--color-black);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 900;
}

.empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-gray-light);
  text-align: center;
  gap: 20px;
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 90%;
  max-width: 950px;
  background-color: var(--color-black);
  z-index: 1001;
  display: flex;
  opacity: 0;
  border: none !important;
}

.modal-left {
  flex: 1.1;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.modal-right {
  flex: 0.9;
  padding: 56px;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.modal-desc {
  color: var(--color-gray-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

/* custom toast */
.toast-notification {
  position: fixed;
  bottom: 48px;
  left: 48px;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 12px 24px;
  z-index: 2000;
  transform: translateY(120px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}



/* Footer */
footer {
  background-color: var(--color-black);
  padding: 140px 0 80px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
}

.footer-desc {
  color: var(--color-gray-light);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: 0.25em;
  color: var(--color-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--color-gray-light);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}

/* GSAP Opacity Setup */
.gs-fade, .gs-scroll-fade, .gs-product {
  opacity: 0;
  transform: translateY(40px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 48px 32px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 20px 0;
    flex-direction: column;
    gap: 16px;
  }
  .logo-link img {
    height: 36px;
  }
  nav {
    display: block;
  }
  nav ul {
    gap: 24px;
    justify-content: center;
  }
  
  .hero {
    padding-top: 160px;
    min-height: auto;
    padding-bottom: 80px;
  }
  .hero-title {
    font-size: clamp(36px, 8vw, 64px);
    margin-bottom: 24px;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .products-section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .section-title {
    font-size: 32px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .modal {
    flex-direction: column;
    max-height: 90vh;
    width: 92%;
    overflow-y: auto;
  }
  .modal-left {
    width: 100%;
    max-height: 320px;
  }
  .modal-left img {
    height: 100%;
    max-height: 320px;
    object-fit: contain;
  }
  .modal-right {
    padding: 24px;
  }
  .modal-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .modal-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .product-page-main {
    flex-direction: column;
    gap: 48px;
  }
  .product-page-container {
    padding-top: 120px;
  }
  .product-page-actions {
    flex-direction: column;
  }

  .toast-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 20px;
  }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
  .cart-header, .cart-items, .cart-footer {
    padding: 24px;
  }
}
