.page-container {
  min-height: 100vh;
  background-color: #050505;
  color: #fff;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.loading-screen, .error-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  background: #000;
  font-size: 28px;
  letter-spacing: 2px;
}

.content {
  height: 100vh;
  position: relative;
  z-index: 1;
  padding-bottom: 200px; // Ensure scroll space for bottom bar
}

// Animations
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0, 185, 107, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 185, 107, 0.8), 0 0 10px rgba(0, 240, 255, 0.4); }
  100% { box-shadow: 0 0 10px rgba(0, 185, 107, 0.4); }
}

@keyframes scanline {
  0% { top: -10%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

// Hero Section
.hero-section {
  position: relative;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;

  .image-container {
    width: 100%;
    min-height: 600px; // Slightly reduced to fit better
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    // Scanline effect
    &::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.5), transparent);
      animation: scanline 3s linear infinite;
      z-index: 0;
    }
    
    .hero-img {
      width: 75%;
      height: auto;
      display: block;
      filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.2));
      animation: float 6s ease-in-out infinite;
      z-index: 1;
    }
    
    .placeholder-box {
      .icon-bolt { font-size: 150px; color: #00b96b; text-shadow: 0 0 30px rgba(0, 185, 107, 0.5); }
    }
  }

  .hero-content {
    padding: 0 40px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    
    .hero-title {
      font-size: 60px;
      font-weight: 900;
      color: #fff;
      display: block;
      margin-bottom: 24px;
      line-height: 1.1;
      text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
      letter-spacing: 1px;
    }
    
    .hero-desc {
      font-size: 28px;
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.6;
      display: block;
      margin-bottom: 32px;
      font-weight: 300;
    }

    .tags-row {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      
      .tag {
        padding: 10px 28px;
        border-radius: 4px; // Techy sharp corners
        font-size: 24px;
        font-weight: 600;
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
        
        // Tech border effect
        &::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 4px; height: 100%;
        }

        &.cyan { 
            color: #00f0ff; 
            background: rgba(0, 240, 255, 0.08); 
            border: 1px solid rgba(0, 240, 255, 0.3);
            &::before { background: #00f0ff; }
        }
        &.blue { 
            color: #3b82f6; 
            background: rgba(59, 130, 246, 0.08); 
            border: 1px solid rgba(59, 130, 246, 0.3);
            &::before { background: #3b82f6; }
        }
        &.purple { 
            color: #a855f7; 
            background: rgba(168, 85, 247, 0.08); 
            border: 1px solid rgba(168, 85, 247, 0.3);
            &::before { background: #a855f7; }
        }
      }
    }
  }
}

// Stats Card (HUD Style)
.stats-card {
  margin: 40px 40px 60px;
  padding: 30px !important;
  background: rgba(20, 20, 20, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  position: relative;
  backdrop-filter: blur(10px) !important;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;

  // Corner accents
  &::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid #00b96b;
    border-left: 2px solid #00b96b;
    border-top-left-radius: 12px;
  }
  &::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid #00b96b;
    border-right: 2px solid #00b96b;
    border-bottom-right-radius: 12px;
  }

  .label-row {
      display: flex;
      width: 100%;
      margin-bottom: 12px;
      .label { font-size: 24px; color: #666; flex: 1; text-transform: uppercase; letter-spacing: 1px; }
  }

  .value-row {
      display: flex;
      width: 100%;
      align-items: baseline;
      
      .price-box {
          flex: 1;
          display: flex;
          align-items: baseline;
          .symbol { font-size: 32px; color: #00b96b; font-weight: bold; margin-right: 4px; }
          .price { 
              font-size: 72px; 
              color: #00b96b; 
              font-weight: bold; 
              text-shadow: 0 0 25px rgba(0, 185, 107, 0.4);
              font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; // Ensure clean number font
          }
      }
      
      .stock-box {
          .stock { font-size: 36px; color: #fff; font-weight: bold; }
          .unit { font-size: 24px; color: #666; margin-left: 6px; }
      }
  }
}

// Features Section
.features-section {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
  
  .feature-card {
    display: flex;
    flex-direction: row; // Change to row for better list layout
    align-items: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    padding: 30px;
    animation: fadeInUp 0.8s ease-out;
    // Stagger animations manually or via JS (here simplified)
    
    .feature-icon-box {
      width: 100px;
      height: 100px;
      margin-right: 30px;
      margin-bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.1);
      
      .f-icon { font-size: 50px; color: #00b96b; }
      .f-icon-img { width: 60px; height: 60px; object-fit: contain; }
    }
    
    .feature-text {
      flex: 1;
      .f-title { font-size: 32px; font-weight: bold; color: #fff; margin-bottom: 10px; display: block; }
      .f-desc { font-size: 24px; color: #888; line-height: 1.5; }
    }
  }
}

.detail-image-section {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  
  // Decorative line top
  &::before {
      content: '';
      display: block;
      width: 100px;
      height: 4px;
      background: #333;
      margin: 0 auto 40px;
      border-radius: 2px;
  }

  .long-detail-img { width: 100%; height: auto; display: block; }
}

.footer-spacer { height: 200px; }

// Bottom Bar
.bottom-bar {
  position: fixed;
  bottom: 40px;
  left: 30px;
  right: 30px;
  height: 110px;
  z-index: 100;
  border-radius: 55px; // Fully rounded capsule
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  
  .action-row {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    
    .btn-add-cart {
      flex: 1;
      height: 100%;
      border-radius: 45px 0 0 45px;
      font-size: 30px;
      font-weight: bold;
      border: none;
      margin: 0;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      
      &:active { background: rgba(255, 255, 255, 0.2); }
    }

    .btn-buy-now {
      flex: 1;
      height: 100%;
      border-radius: 0 45px 45px 0;
      font-size: 30px;
      font-weight: 800;
      border: none;
      margin: 0;
      background: linear-gradient(135deg, #00b96b 0%, #00f0ff 100%);
      color: #000; // Black text for high contrast on neon
      display: flex;
      align-items: center;
      justify-content: center;
      animation: pulse-glow 3s infinite;
      transition: all 0.2s ease;
      
      &:active {
          transform: scale(0.98);
          opacity: 0.9;
      }
      
      .cart-icon {
        font-size: 36px;
        margin-right: 12px;
      }
    }
  }
}

.safe-area-bottom {
  padding-bottom: 0;
}
