/* ============================================
   Popular Peptides - Main Stylesheet
   White / Purple / Black Theme
   ============================================ */

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

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #f3eeff;
  --accent: #a855f7;
  --accent-bright: #c084fc;
  --dark: #0a0a0f;
  --dark2: #13111a;
  --dark3: #1e1a2e;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --border-dark: rgba(255,255,255,0.1);
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(124,58,237,0.08);
  --shadow-lg: 0 8px 40px rgba(124,58,237,0.18);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---- TOP BAR ---- */
.topbar {
  background: var(--dark);
  color: var(--accent-bright);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.cart-icon {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.cart-icon:hover { background: #e0d4fc; }

.cart-count {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 40%, var(--dark3) 100%);
  color: white;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent-bright);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---- TRUST BADGES ---- */
.badges {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.badge {
  text-align: center;
  padding: 24px 16px;
}

.badge-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.badge strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.badge p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---- PRODUCTS ---- */
.products {
  padding: 80px 24px;
  background: white;
}

.products h2 {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 48px;
  font-style: italic;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img-photo {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f3eeff;
}

.product-img-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

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

.badge-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.variant-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  margin-bottom: 14px;
  cursor: pointer;
  outline: none;
}

.variant-select:focus {
  border-color: var(--primary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.btn-add {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.btn-add:hover {
  background: var(--primary-dark);
}

/* ---- BUNDLE ---- */
.bundle {
  padding: 80px 24px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.bundle-card {
  position: relative;
  background: linear-gradient(135deg, #1e1a2e 0%, #2d1f5e 50%, #1e1a2e 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  padding: 56px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124,58,237,0.25), 0 0 120px rgba(124,58,237,0.1);
}

.bundle-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.bundle-tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(168,85,247,0.5); }
  50% { box-shadow: 0 0 20px rgba(168,85,247,0.9); }
}

.bundle-left h2 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.bundle-left p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

.bundle-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.bundle-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.bundle-check {
  background: rgba(124,58,237,0.3);
  border: 1px solid rgba(168,85,247,0.5);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bundle-val {
  margin-left: auto;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}

.bundle-savings {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.bundle-original {
  font-size: 18px;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  font-weight: 500;
}

.bundle-arrow {
  color: var(--accent-bright);
  font-size: 20px;
}

.bundle-price {
  font-size: 52px;
  font-weight: 700;
  color: white;
  letter-spacing: -2px;
  line-height: 1;
}

.bundle-save-tag {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.btn-bundle {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.45);
  letter-spacing: 0.2px;
}

.btn-bundle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,58,237,0.65);
}

.bundle-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.bundle-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(168,85,247,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  aspect-ratio: 1;
  transition: transform 0.25s, box-shadow 0.25s;
}

.bundle-img-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

.bundle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 960px) {
  .bundle-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 40px;
  }
  .bundle-left h2 { font-size: 32px; }
  .bundle-price { font-size: 40px; }
  .bundle-images { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .bundle-card { padding: 32px 24px; }
  .bundle-left h2 { font-size: 28px; }
}

/* ---- ABOUT ---- */
.about {
  background: var(--dark);
  color: white;
  padding: 80px 24px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-text p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.about-stat strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.about-stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- FAQ ---- */
.faq {
  padding: 80px 24px;
  background: #fafafa;
}

.faq h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--primary); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
}

.faq-a.open { display: block; }

.faq-a p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  color: white;
  padding: 64px 24px;
  text-align: center;
}

.newsletter h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}

.newsletter-form .btn-primary {
  background: var(--primary);
  white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
  background: var(--primary-dark);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 24px 0;
  border-top: 1px solid rgba(124,58,237,0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid .product-card:last-child { grid-column: span 1; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero { padding: 64px 20px; }
  .about-visual { grid-template-columns: 1fr; }
}
