/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Image Loading Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-image,
.product-main-image,
.product-main-image-mobile {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.product-image.loaded,
.product-main-image.loaded,
.product-main-image-mobile.loaded {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'Inconsolata', monospace;
  line-height: 1.6;
  color: #e0e0e0;
  background: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Global link styles - remove blue and underlines */
a {
  color: inherit;
  text-decoration: none;
}

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

a:visited {
  color: inherit;
}

/* Header Styles */
.header {
  background: #1a1a1a;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: 40px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  border-radius: 4px;
}

.logo-icon {
  height: 40px;
  width: 40px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.logo:hover .logo-text {
  color: #ccc;
}


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

.cart-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.cart-link:hover {
  color: #000;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-item {
  cursor: pointer;
  text-align: center;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  text-align: center;
}

.product-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ccc;
  text-align: center;
}

/* Last.fm Stats Styles */
.stats-view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.view-btn {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: #666;
  color: #fff;
}

.view-btn.active {
  background: #333;
  border-color: #666;
  color: #fff;
}

.time-period-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.period-btn {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.period-btn:hover {
  border-color: #666;
  color: #fff;
}

.period-btn.active {
  background: #333;
  border-color: #666;
  color: #fff;
}

.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #ccc;
}

.loading-state p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stats-view {
  display: none;
}

.stats-view.active {
  display: block;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* Summary Card */
.summary-card {
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.summary-text {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.summary-text span {
  font-weight: 600;
  color: #fff;
}

/* Overview Stats */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #333;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Now Playing */
.now-playing-section {
  margin-top: 2rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title-update {
  font-size: 0.9rem;
  color: #999;
  font-weight: 400;
}

.now-playing-card {
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.now-playing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.now-playing-placeholder {
  color: #666;
  text-align: center;
  padding: 2rem;
}

.now-playing-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.now-playing-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
}

.now-playing-image.loaded {
  opacity: 1;
}

.image-loading-container {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 4px;
}

.image-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #333;
  border-top-color: #666;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.now-playing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.now-playing-track {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.now-playing-artist {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.25rem;
}

.now-playing-album {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.now-playing-plays {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.now-playing-time {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.now-playing-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.now-playing-link:hover {
  opacity: 0.8;
}

.now-playing-indicator {
  font-size: 1.5rem;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Recent Tracks */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.track-item:hover {
  background: #333;
  border-color: #444;
}

.track-item.now-playing-track {
  border-color: #666;
  background: #2d2d2d;
}

.track-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.track-image.loaded {
  opacity: 1;
}

.track-image-container {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 4px;
}

.track-image-container .image-loading-spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.track-artist {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.15rem;
}

.track-album {
  font-size: 0.85rem;
  color: #999;
}

.track-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.track-date {
  font-size: 0.85rem;
  color: #666;
}

.now-playing-badge {
  font-size: 1.2rem;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

/* Top Albums */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.album-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.album-card {
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-cover.loaded {
  opacity: 1;
}

.album-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-cover-container .image-loading-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.album-info {
  padding: 1rem;
}

.album-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-artist {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-plays {
  font-size: 0.85rem;
  color: #999;
}

/* Top Artists */
.artists-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.artist-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.artist-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.artist-item:hover {
  background: #333;
  border-color: #444;
}

.artist-rank {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
  min-width: 40px;
  text-align: center;
}

.artist-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artist-image.loaded {
  opacity: 1;
}

.artist-image-container {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 12px;
}

.artist-image-container .image-loading-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.artist-info {
  flex: 1;
  min-width: 0;
}

.artist-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.artist-plays {
  font-size: 0.9rem;
  color: #999;
}

.empty-state,
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
  font-size: 1rem;
}

.error-state {
  color: #ff6b6b;
}

/* Detail Pages */
.album-detail-header,
.artist-detail-header,
.track-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.album-detail-cover {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.artist-detail-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}


.track-detail-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.album-detail-info,
.artist-detail-info,
.track-detail-info {
  flex: 1;
  min-width: 0;
}

.album-detail-title,
.artist-detail-title,
.track-detail-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.album-detail-artist,
.track-detail-artist {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.2s ease;
}

.album-detail-artist:hover,
.track-detail-artist:hover {
  color: #fff;
}

.track-detail-album {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 1rem;
  display: block;
  transition: color 0.2s ease;
}

.track-detail-album:hover {
  color: #ccc;
}

.album-detail-meta,
.artist-detail-meta,
.track-detail-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  color: #999;
  font-size: 0.95rem;
}

.artist-detail-bio {
  margin-top: 1.5rem;
  color: #ccc;
  line-height: 1.8;
  max-width: 600px;
}

.album-detail-section,
.artist-detail-section,
.track-detail-section {
  margin-top: 3rem;
}

.track-number {
  font-size: 1rem;
  color: #666;
  min-width: 30px;
  text-align: right;
}

.track-duration,
.track-plays {
  font-size: 0.9rem;
  color: #999;
}

/* Listening Charts */
.listening-chart {
  width: 100%;
  max-width: 800px;
  height: 300px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .now-playing-content {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .now-playing-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  
  .now-playing-info {
    flex: 1;
    min-width: 0;
  }
  
  .now-playing-track {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  
  .now-playing-artist {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  
  .now-playing-album {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .now-playing-plays {
    font-size: 0.85rem;
    margin-left: 0;
    text-align: right;
  }
  
  .now-playing-card {
    padding: 1rem;
  }
  
  .artist-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  .artist-detail-header {
    flex-direction: column;
  }
  
  .artist-detail-bio {
    display: none;
  }

  .track-item {
    flex-wrap: wrap;
  }

  .track-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .album-detail-header,
  .artist-detail-header,
  .track-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .album-detail-cover,
  .track-detail-image {
    width: 200px;
    height: 200px;
  }
  
  .artist-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  .artist-detail-header {
    flex-direction: column;
  }

  .album-detail-title,
  .artist-detail-title,
  .track-detail-title {
    font-size: 2rem;
  }

  .album-detail-meta,
  .artist-detail-meta,
  .track-detail-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Cart Page Styles */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
}

.cart-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #fff;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #444;
  gap: 1.25rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
}

.cart-item-price {
  color: #ccc;
  font-size: 1.33rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0;
}

.quantity-btn {
  width: 28px;
  height: 36px;
  background: #2a2a2a;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.quantity-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.quantity-btn:hover {
  background: #333;
}

.quantity {
  min-width: 28px;
  height: 36px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn {
  padding: 0.5rem 1rem;
  height: 36px;
  background: transparent;
  color: #ccc;
  border: none;
  font-size: 0.9rem;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: #fff;
}

.cart-summary {
  padding: 2rem;
  background: #2a2a2a;
  border-radius: 8px;
  margin-top: 2rem;
}

.cart-total {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #fff;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Inconsolata', monospace;
  color: #fff;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkout-btn:hover:not(:disabled) {
  background: #ccc;
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart p {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.continue-shopping-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.continue-shopping-btn:hover {
  background: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 2rem 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

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

  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }

  .cart-item-image {
    width: 70px;
    height: 100px;
    align-self: flex-start;
  }

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

  .cart-item-name {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }

  .cart-item-price {
    font-size: 1.19rem;
  }

  .cart-item-controls {
    width: 100%;
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: 0;
    margin-right: 0;
  }

  .quantity-controls {
    gap: 0;
    padding: 0;
  }

  .quantity-btn {
    width: 24px;
    height: 32px;
    font-size: 0.9rem;
  }

  .quantity {
    min-width: 24px;
    height: 32px;
    font-size: 0.85rem;
  }

  .remove-btn {
    padding: 0.4rem 0.75rem;
    height: 32px;
    font-size: 0.8rem;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cart-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1rem;
  }
}

/* Product Detail Page Styles */
.product-detail-page {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.product-detail-container {
  width: 100%;
}

.back-to-home {
  display: inline-block;
  margin-bottom: 2rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.back-to-home:hover {
  color: #fff;
}

/* Cart Popup */
.cart-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.cart-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.cart-popup-content {
  position: relative;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  z-index: 1;
  font-family: 'Inconsolata', monospace;
}

.cart-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.cart-popup-close:hover {
  color: #000;
}

.cart-popup-message {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
}

.cart-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-popup-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'Inconsolata', monospace;
  transition: all 0.2s ease;
}

.go-to-cart-btn {
  background: #fff;
  color: #000;
}

.go-to-cart-btn:hover {
  background: #ccc;
}

.continue-shopping-btn {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

.continue-shopping-btn:hover {
  background: #333;
  border-color: #555;
}

@media (max-width: 768px) {
  .cart-popup-content {
    padding: 1.5rem;
    max-width: 90%;
  }

  .cart-popup-message {
    font-size: 1rem;
  }
}

/* Desktop Layout - 3 column grid */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 70vh;
}

.product-info-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.product-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.product-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin: 0.5rem 0 0 0;
  font-family: 'Inconsolata', monospace;
}

.product-price-large {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ccc;
  margin: 0;
}

.free-shipping {
  font-size: 0.875rem;
  color: #ccc;
  margin-left: 0.5rem;
  font-family: 'Inconsolata', monospace;
  text-transform: lowercase;
  font-weight: normal;
}

.product-description {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.875rem;
}

.product-description ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.product-description li {
  margin-bottom: 0.5rem;
  font-family: 'Inconsolata', monospace;
  color: #ccc;
  font-size: 0.875rem;
  padding-left: 1.2rem;
  position: relative;
}

.product-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 0.875rem;
}

.product-image-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-main-image {
  width: 130%;
  max-width: 780px;
  height: auto;
  object-fit: contain;
}

.product-actions-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.size-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.size-selector label {
  font-weight: 500;
  color: #fff;
}

.size-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inconsolata', monospace;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 50px;
  box-sizing: border-box;
  line-height: 1.5;
}

.size-btn:hover {
  background: #333;
  border-color: #555;
}

.size-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.purchase-btn-large {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: normal;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  transition: background 0.2s ease;
  display: block;
  box-sizing: border-box;
  line-height: 1.5;
}

.purchase-btn-large:hover {
  background: #ccc;
}

.add-to-cart-btn-large {
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Inconsolata', monospace;
}

.add-to-cart-btn-large:hover {
  background: #ccc;
}


/* Mobile Layout - Hidden on desktop */
.product-detail-mobile {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .product-detail-page {
    padding: 2rem 1rem;
  }

  /* Hide desktop layout */
  .product-detail-grid {
    display: none;
  }

  /* Show mobile layout */
  .product-detail-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-main-image-mobile {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-title-mobile {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
  }

  .product-subtitle-mobile {
    font-size: 0.875rem;
    color: #666;
    margin: 0.5rem 0 0 0;
    font-family: 'Inconsolata', monospace;
  }

  .product-price-mobile {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ccc;
    margin: 0;
  }

  .free-shipping-mobile {
    font-size: 0.875rem;
    color: #ccc;
    margin-left: 0.5rem;
    font-family: 'Inconsolata', monospace;
    text-transform: lowercase;
    font-weight: normal;
  }

  .size-selector-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .size-selector-mobile label {
    font-weight: 500;
    color: #fff;
  }

  .size-selector-mobile .size-buttons {
    width: 100%;
  }

  .size-selector-mobile .size-btn {
    flex: 1;
  }

  .product-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .product-description-mobile {
    margin-top: 0.5rem;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.875rem;
    font-family: 'Inconsolata', monospace;
  }

  .product-description-mobile ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
  }

  .product-description-mobile li {
    margin-bottom: 0.5rem;
    font-family: 'Inconsolata', monospace;
    color: #ccc;
    font-size: 0.875rem;
    padding-left: 1.2rem;
    position: relative;
  }

  .product-description-mobile li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
    font-size: 0.875rem;
  }
}

/* Footer Styles */
.footer {
  background: #1a1a1a;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  font-family: 'Inconsolata', monospace;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-copyright {
  color: #ccc;
  font-family: 'Inconsolata', monospace;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
  
  .footer-links {
    justify-content: flex-start;
  }
}

/* Contact Page Styles */
.contact-page {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.contact-container {
  width: 100%;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Inconsolata', monospace;
}

.contact-info {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 2rem;
  font-family: 'Inconsolata', monospace;
  line-height: 1.6;
}

.contact-email-link {
  color: #ccc;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-email-link:hover {
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Inconsolata', monospace;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Inconsolata', monospace;
  color: #fff;
  background: #2a2a2a;
  transition: border-color 0.2s ease;
  width: 100%;
  resize: vertical;
}

.form-group textarea {
  min-height: 120px;
  line-height: 1.5;
}

.form-group input#message,
.form-group textarea#message {
  min-width: 500px;
}

@media (max-width: 768px) {
  .form-group input#message,
  .form-group textarea#message {
    min-width: 100%;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff;
}

.submit-btn {
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: normal;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  transition: background 0.2s ease;
  align-self: center;
}

.submit-btn:hover:not(:disabled) {
  background: #ccc;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 2rem 1rem;
  }
  
  .contact-title {
    font-size: 1.5rem;
  }
}

/* Success Popup Styles */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.success-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.success-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.success-popup-content {
  position: relative;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  z-index: 1;
  font-family: 'Inconsolata', monospace;
}

.success-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  font-family: 'Inconsolata', monospace;
}

.success-popup-close:hover {
  color: #fff;
}

.success-popup-message {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  font-family: 'Inconsolata', monospace;
}

.success-popup-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: normal;
  font-family: 'Inconsolata', monospace;
  transition: background 0.2s ease;
}

.success-popup-btn:hover {
  background: #ccc;
}

/* Size Chart Link */
.size-chart-link {
  color: #ccc;
  text-decoration: underline;
  font-size: 0.875rem;
  font-family: 'Inconsolata', monospace;
  display: block;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.size-chart-link:hover {
  color: #fff;
}

/* Size Chart Popup */
.size-chart-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.size-chart-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.size-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.size-chart-content {
  position: relative;
  background: #2a2a2a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  font-family: 'Inconsolata', monospace;
}

.size-chart-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  font-family: 'Inconsolata', monospace;
}

.size-chart-close:hover {
  color: #fff;
}

.size-chart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.5rem 0;
  font-family: 'Inconsolata', monospace;
}

.size-chart-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 1rem auto 1.5rem auto;
  justify-content: center;
}

.size-chart-toggle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.875rem;
  font-family: 'Inconsolata', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-chart-toggle-btn:hover {
  border-color: #555;
}

.size-chart-toggle-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}


.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: 'Inconsolata', monospace;
}

.size-chart-table th,
.size-chart-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #444;
}

.size-chart-table th {
  font-weight: 600;
  color: #fff;
  background: #333;
}

.size-chart-table td {
  color: #ccc;
}

.size-chart-table tr:last-child td {
  border-bottom: none;
}

/* Terms Page Styles */
.terms-page {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.terms-container {
  width: 100%;
}

.terms-content {
  max-width: 800px;
  margin: 0 auto;
}

.terms-title {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  font-family: 'Inconsolata', monospace;
}

.terms-section {
  margin-bottom: 2.5rem;
}

.terms-section-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Inconsolata', monospace;
}

.terms-section p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: 'Inconsolata', monospace;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .terms-page {
    padding: 2rem 1rem;
  }
  
  .terms-title {
    font-size: 1.5rem;
  }
  
  .terms-section-title {
    font-size: 0.95rem;
  }
}

/* Username Input */
.username-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.username-input-box {
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 3rem;
  max-width: 400px;
  width: 100%;
}

.username-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
  text-align: center;
}

.username-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.username-field {
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.username-field:focus {
  outline: none;
  border-color: #666;
}

.username-submit {
  padding: 0.75rem 1.5rem;
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.username-submit:hover {
  background: #444;
  border-color: #555;
}

.username-submit:active {
  background: #2a2a2a;
}

/* Change Username Button */
.change-username-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
  font-family: 'Inconsolata', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-username-btn:hover {
  background: #2a2a2a;
  border-color: #555;
  color: #fff;
}
