/* 1. Global Variables & Reset */
:root {
  --bg: #000000;
  --text: #ffffff;
  --accent: #e5e5e5;
  --font: 'Helvetica Neue', sans-serif;
}

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

body { 
  background-color: var(--bg); 
  color: var(--text); 
  font-family: var(--font); 
  overflow-x: hidden; 
}

/* 2. Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  z-index: 10;
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(8px);
}

.brand { 
  font-size: 1.5rem; 
  font-weight: 700; 
  letter-spacing: 3px; 
  color: var(--text); 
  text-decoration: none; 
}

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

.nav-links a { 
  color: var(--text); 
  text-decoration: none; 
  font-size: 0.9rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

/* 3. Base Video Container (Auth & Split Pages) */
#video-container {
  width: 45vw; 
  height: 70vh; 
  position: absolute; 
  right: 5%; 
  top: 15%; 
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* 4. Hero Only Override (Full Screen Homepage Video) */
#video-container.full-screen-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background-color: var(--bg);
}

#video-container.full-screen-logo video {
  width: 85vw;
  max-width: 900px;
  height: 85vh;
  transform: scale(1.15);
}

.hero-only-section {
  min-height: 100vh;
  width: 100%;
}

/* 5. Authentication & Form Layouts */
section { 
  min-height: 100vh; 
  padding: 120px 5% 40px; 
}

.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(100vh - 160px);
  position: relative;
  z-index: 5;
}

.form-container {
  width: 100%;
  max-width: 400px;
  background: rgba(13, 13, 13, 0.75);
  padding: 2.5rem;
  border: 1px solid #222;
  backdrop-filter: blur(12px);
  border-radius: 4px;
}

.form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.form-container p {
  color: #888;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form input,
.form-input {
  width: 100%;
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  border-radius: 4px;
}

.auth-form input:focus,
.form-input:focus {
  border-color: #666;
}

.btn {
  padding: 12px 30px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #888;
}

.auth-switch a {
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.field-error {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: 4px;
}
/* Logged-in User Welcome Greeting */
.hero-only-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5vh;
  position: relative;
  z-index: 5; /* Places text above background video layer */
}

.user-welcome {
  text-align: center;
  pointer-events: auto;
}

.user-welcome p {
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}



/* Shop Page Styles */
#shop-page {
  padding-top: 140px;
  position: relative;
  z-index: 5;
}

.shop-header {
  margin-bottom: 3rem;
}

.shop-header h2 {
  font-size: 2.2rem;
  letter-spacing: 4px;
}

.shop-header p {
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 0.3rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #141414;
  border: 1px solid #222;
  transition: border-color 0.3s ease;
}

.product-card:hover .product-image-placeholder {
  border-color: #444;
}

.product-card h3 {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.product-card .price {
  color: #888;
  font-size: 0.85rem;
}
.product-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #141414;
  border: 1px solid #222;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Zoom Effect */
.product-card:hover .product-image {
  border-color: #555;
}

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



/* Card Link Reset */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Product Detail Page Layout */
#product-detail-page {
  padding-top: 140px;
  position: relative;
  z-index: 5;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.detail-image {
  aspect-ratio: 3 / 4;
  background-color: #141414;
  border: 1px solid #222;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

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

.detail-info h2 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.detail-price {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.detail-description {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.size-selector {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-selector label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #888;
}

.size-selector select {
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid #333;
  padding: 0.8rem;
  outline: none;
  width: 100%;
}




/* Cart Page Styling */
#cart-page {
  padding-top: 140px;
  position: relative;
  z-index: 5;
}

.cart-container {
  max-width: 800px;
  margin: 0 auto;
}

.cart-container h2 {
  font-size: 2rem;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #222;
}

.cart-item img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #333;
}

.item-details { flex-grow: 1; }
.item-details h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.item-details p { color: #888; font-size: 0.8rem; margin-bottom: 0.2rem; }

.remove-btn {
  color: #666;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0 10px;
}
.remove-btn:hover { color: #ff4d4d; }

.cart-summary {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.total-row {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  gap: 2rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 0;
  color: #888;
}
.empty-cart p { margin-bottom: 1.5rem; }
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  #product-detail-page {
    padding-top: 100px !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .detail-container {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .detail-image {
    max-width: 100% !important;
    width: 100%;
  }

  .detail-info {
    width: 100%;
  }

  /* Make touch navigation easier on small screens */
  .detail-image button {
    padding: 0.8rem 1rem !important;
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  nav ul, .nav-links {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide scrollbar track for clean minimalist aesthetic */
  nav ul::-webkit-scrollbar, .nav-links::-webkit-scrollbar {
    display: none;
  }
}
/* Base Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

/* Hide Hamburger Menu on Desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Mobile Media Query */
@media (max-width: 768px) {
  /* Show Hamburger Icon */
  .menu-toggle {
    display: flex;
  }

  /* Hide Horizontal Links & Convert to Vertical Mobile Drawer */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0a0a0a;
    border-bottom: 1px solid #222;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #141414;
    font-size: 0.9rem;
  }

  /* Class toggled by JavaScript when clicked */
  .nav-links.active {
    max-height: 400px;
    padding: 1rem 0;
  }
}