/* Products Page Styles - Xardiant */

/* Reset and base styles for products page */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* Fixed navigation - match main site navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  transition: all var(--transition);
}

/* Shop section - takes up most viewport */
.shop-section {
  margin-top: 70px; /* Just enough for the nav bar */
  width: 100vw;
  height: 80vh;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0 !important; /* Remove any padding that creates space */
}

.shop-container {
  width: 100vw !important;
  height: 80vh !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.shop-iframe-wrapper {
  width: 100vw !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.error-state {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-state h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.retry-btn,
.external-link {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.retry-btn {
  background: var(--primary);
  color: white;
}

.retry-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.external-link {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.external-link:hover {
  background: var(--primary);
  color: white;
}

.form-status {
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.shop-iframe-wrapper iframe {
  border: none;
  outline: none;
  width: 100vw !important;
  height: 100% !important;
  margin: 0;
  padding: 0;
  display: block;
}

/* Shop info section - stays under shop */
.shop-info-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: absolute;
  top: calc(80vh + 70px);
  left: 0;
  right: 0;
  box-shadow: var(--shadow-lg);
  z-index: 500;
}

.shop-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.95;
}

.shop-info-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.shop-info-section h2 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.shop-info-section p {
  margin: 0;
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Impact message section */
.impact-message-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  margin-top: calc(2rem + 6rem); /* Account for fixed header */
  position: relative;
  z-index: 100;
}

.impact-message-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.impact-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.impact-content h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}

.impact-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
}

.impact-messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.message-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.message-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.message-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.message-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
}

/* Footer adjustments */
.social-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .shop-section {
    height: 75vh;
    margin-top: 60px;
  }
  
  .shop-container {
    height: 75vh !important;
  }
  
  .shop-info-section {
    padding: 2rem 0;
    top: calc(75vh + 60px);
  }
  
  .shop-info-section h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  
  .shop-info-section p {
    font-size: 1.1rem;
  }
  
  .impact-content h2 {
    font-size: 2rem;
  }
  
  .impact-content p {
    font-size: 1.1rem;
  }
  
  .impact-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .impact-messages {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .message-card {
    padding: 2rem 1.5rem;
  }
  
  .impact-message-section {
    margin-top: calc(1.5rem + 4rem);
  }
}

@media (max-width: 480px) {
  .shop-info-section .container {
    padding: 0 1rem;
  }
  
  .shop-info-section h2 {
    font-size: 1.5rem;
  }
  
  .shop-info-section p {
    font-size: 1rem;
  }
  
  .impact-message-section {
    padding: 3rem 0;
  }
  
  .impact-content h2 {
    font-size: 1.8rem;
  }
}

/* Back to top button enabled for products page */
.back-to-top {
  display: flex;
}

/* Newsletter form styling fixes for products page */
.newsletter-form input {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  color: var(--text) !important;
}

.newsletter-form input::placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
  font-weight: 400;
}

.newsletter-form input:focus {
  border-color: var(--primary) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}
