/* Nesh Lab - Premium Research Peptides */
:root {
  --navy: #0B1C2C;
  --navy-light: #152A3F;
  --gold: #C9A227;
  --gold-hover: #B8911F;
  --gold-soft: #E8D5A3;
  --cream: #F8F5F0;
  --cream-dark: #EFEBE3;
  --white: #FFFFFF;
  --text: #0B1C2C;
  --text-muted: #5A6A7A;
  --border: #E5E0D8;
  --success: #2E7D4F;
  --shadow: 0 4px 20px rgba(11, 28, 44, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 28, 44, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* ========== HEADER ========== */

.top-banner {
  background: linear-gradient(90deg, #0B1C2C 0%, #152A3F 50%, #0B1C2C 100%);
  color: #E8D5A3;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(201,162,39,0.35);
}
.top-banner span {
  color: #C9A227;
}

.float-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0B1C2C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11,28,44,0.35);
  z-index: 9000;
  border: 2px solid #C9A227;
}
.float-cart img { width: 28px; height: 28px; display:block; }
.float-cart .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #C9A227;
  color: #0B1C2C;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--gold);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav-cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  background: var(--navy-light);
  padding: 16px 20px;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: rgba(255,255,255,0.9);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 20px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

.badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-full {
  width: 100%;
}

/* ========== FEATURES ========== */
.features {
  max-width: 1100px;
  margin: -36px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========== SECTION ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-img {
  background: #FAFAFA;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.product-img img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 16px;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ruo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8B5A2B;
  background: #F5EDE0;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ========== RUO BANNER ========== */
.ruo-banner {
  background: var(--navy);
  color: var(--white);
  padding: 28px 20px;
  text-align: center;
}

.ruo-banner h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.ruo-banner p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}

.auth-card h1 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}

.auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.auth-sub a {
  color: var(--gold);
  font-weight: 600;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--cream);
  transition: var(--transition);
  color: var(--text);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}

.btn-google:hover {
  background: var(--cream);
  border-color: #ccc;
}

/* ========== CART ========== */
.cart-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.cart-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.cart-item-price {
  color: var(--gold);
  font-weight: 700;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer p, .footer a {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ========== UTILS ========== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .features {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 20px 56px;
  }
  .section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }
  .logo {
    font-size: 1.15rem;
  }
  .product-img {
    min-height: 200px;
    padding: 20px;
  }
}