@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --klein-blue: #002FA7;
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #F3F4F6;
  --gray-text: #6B7280;
  --border-color: #E5E7EB;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-klein { color: var(--klein-blue); }
.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.text-sm { font-size: 0.875rem; }

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

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

.logo a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--klein-blue);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px;
  margin: -10px;
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--klein-blue);
  color: white;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-transition {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

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

.btn-primary {
  background: var(--klein-blue);
  border-color: var(--klein-blue);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--klein-blue);
}

.sold-out-btn {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  transform: translateY(40px);
}

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

.hero .btn {
  opacity: 0;
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  transform: translateY(20px);
}

/* Product Grid Elements */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2rem;
}

/* Product Card */
.product-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background-color: var(--white);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.product-card.sold-out .product-image {
  opacity: 0.6;
}

.product-card.sold-out .product-price {
  text-decoration: line-through;
  color: var(--gray-text);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}

.wishlist-btn.active svg {
  fill: var(--klein-blue);
  stroke: var(--klein-blue);
}

.wishlist-btn:hover {
  transform: scale(1.1);
}

.product-info h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.5rem;
  min-height: 2.8em;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--klein-blue);
  margin-bottom: 0.5rem;
}

.product-meta {
  font-size: 0.875rem;
  color: var(--gray-text);
  display: flex;
  justify-content: space-between;
}

/* Brand Story */
.brand-story {
  background-color: var(--light-gray);
  text-align: center;
  padding: 8rem 1.5rem;
}

.brand-story p {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-heading);
  line-height: 1.5;
  color: var(--black);
}

/* Trust Indicators */
.trust-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--gray-text);
  font-size: 0.875rem;
}

/* Instagram Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ig-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ig-item:hover img {
  transform: scale(1.05);
}

.ig-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 47, 167, 0.8); /* Klein blue overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

/* Footer & Newsletter */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.5rem;
  transition: border-color 0.3s;
}

.newsletter-form:focus-within {
  border-color: var(--white);
}

.newsletter-form input {
  background: none;
  border: none;
  color: var(--white);
  flex-grow: 1;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  background: none;
  border: none;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  cursor: pointer;
  padding-left: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* Single Product Page */
.product-detail-hero {
  padding: 120px 0 6rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.product-detail-image {
  background: var(--white);
  aspect-ratio: 3/4;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 120px;
}

.product-detail-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 2rem;
  color: var(--klein-blue);
  font-family: var(--font-heading);
  margin-bottom: 2rem;
}

.product-attributes {
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.attr-box {
  display: flex;
  flex-direction: column;
}

.attr-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
}

.attr-value {
  font-weight: 500;
  font-size: 1rem;
}

.product-description {
  margin-bottom: 3rem;
  color: var(--gray-text);
  line-height: 1.8;
}

.sticky-order-btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1rem;
}

/* Authenticity Page */
.auth-hero {
  text-align: center;
  padding: 160px 0 8rem;
  background: var(--klein-blue);
  color: white;
}

.auth-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

.auth-list {
  list-style: none;
  margin-top: 2rem;
}

.auth-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-list li::before {
  content: "✓";
  color: var(--klein-blue);
  font-weight: bold;
}

/* Wishlist Drawer */
.wishlist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

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

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
  font-size: 1.5rem;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
}

.drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 0.5rem;
}

.drawer-item {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1.5rem;
}

.drawer-item img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  background: var(--white);
}

.drawer-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drawer-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.drawer-item-info p {
  color: var(--klein-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.drawer-remove {
  background: none;
  border: none;
  color: var(--gray-text);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

/* Mobile Menu */
.hamburger-btn { display: none; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: var(--white);
  z-index: 99;
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  margin-top: 100px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-menu-content a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--black);
}

body.no-scroll {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  
  /* Disable fade animations on mobile to ensure content natively loads */
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero h1 { font-size: 3rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .product-detail-info { position: static; }
  .wishlist-drawer {
    padding: 1.5rem;
    max-width: 100%;
    right: -100%;
  }
}

/* Sale Countdown Section */
.sale-countdown-section {
  padding: 4rem 0 2rem 0;
  background-color: var(--white);
}

.sale-countdown-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sale-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sale-info .sale-badge {
  align-self: flex-start;
  background: #d93025;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.sale-info h2 {
  font-size: 2.25rem;
  font-family: var(--font-heading);
}

.sale-info p {
  color: var(--gray-text);
  font-size: 1rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
  min-width: 90px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.time-block span {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}

.time-block label {
  font-size: 0.75rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.time-block-separator {
  font-size: 2rem;
  font-weight: 500;
  color: var(--gray-text);
}

@media (max-width: 991px) {
  .sale-countdown-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .countdown-timer {
    gap: 0.25rem;
  }
  .time-block {
    min-width: 65px;
    padding: 1rem 0.5rem;
  }
  .time-block span {
    font-size: 1.75rem;
  }
  .time-block label {
    font-size: 0.65rem;
  }
  .time-block-separator {
    font-size: 1.25rem;
  }
}
