/* ============================================
   PHARMALINK B2B - PRODUCT & PAGE STYLES
   ============================================ */

/* ---- Single Product Page ---- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Product gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height-desktop) + var(--space-lg));
}
.gallery-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}
.gallery-main img {
  max-height: 320px;
  width: auto;
  margin: 0 auto;
  transition: transform var(--transition-base);
}
.gallery-main:hover img { transform: scale(1.05); }
.gallery-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}
.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb.active { box-shadow: 0 0 0 3px rgba(0,123,94,0.2); }

/* Product info */
.product-info { display: flex; flex-direction: column; gap: var(--space-lg); }
.product-info-head {}
.product-info-tags { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md); }
.product-info-name {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
.product-info-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.product-info-meta strong { color: var(--text-primary); }
.product-rating-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
}
.rating-big { font-size: 2rem; font-weight: 800; color: #D97706; }
.stars-big { color: #FBBF24; font-size: 1.1rem; }
.rating-breakdown { font-size: 0.8rem; color: var(--text-muted); }

/* Price section */
.product-price-section {
  background: linear-gradient(135deg, var(--primary-light), #E8F8F3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
}
.price-main-row { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.price-main { font-size: 2rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.price-old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.price-save {
  padding: 4px 12px;
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}
.price-tax-note { font-size: 0.8rem; color: var(--text-muted); }

/* MOQ box */
.moq-selector {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.moq-selector label { font-size: 0.875rem; font-weight: 700; display: block; margin-bottom: var(--space-sm); }
.qty-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-number {
  width: 60px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
}

/* CTA buttons */
.product-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.product-cta .btn { flex: 1; min-width: 140px; justify-content: center; }
.btn-add-cart {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
}
.btn-add-cart:hover { background: var(--primary); color: var(--white); }

/* Product tabs */
.product-tabs { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--border); overflow: hidden; }
.tab-nav { display: flex; border-bottom: 1.5px solid var(--border); overflow-x: auto; }
.tab-btn {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: var(--space-xl); display: none; }
.tab-content.active { display: block; }
.tab-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text-primary); }
.tab-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: var(--space-md); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: var(--bg); }
.spec-table td {
  padding: 10px var(--space-md);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child { font-weight: 600; color: var(--text-primary); width: 35%; }
.spec-table td:last-child { color: var(--text-secondary); }

/* ---- FAQ Page ---- */
.faq-section {}
.faq-categories {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.faq-cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.faq-cat-btn:hover, .faq-cat-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.faq-accordion { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--primary); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  gap: var(--space-md);
}
.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-base);
}
.faq-item.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}
.faq-item.open .faq-answer { display: block; }

/* ---- About Page ---- */
.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-hero-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: var(--space-lg); }
.about-hero-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-lg); }
.about-hero-img { position: relative; }
.about-hero-img img { border-radius: var(--radius-xl); width: 100%; box-shadow: var(--shadow-xl); }
.about-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.stat-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}
.stat-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.stat-card h3 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-card p { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }

/* Mission Vision Cards */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.mv-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.mv-mission::before { background: linear-gradient(90deg, var(--primary), #00C988); }
.mv-vision::before  { background: linear-gradient(90deg, var(--secondary), #FB923C); }
.mv-values::before  { background: linear-gradient(90deg, var(--accent), #38BDF8); }
.mv-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
}
.mv-mission .mv-icon { background: var(--primary-light); color: var(--primary); }
.mv-vision .mv-icon  { background: var(--secondary-light); color: var(--secondary); }
.mv-values .mv-icon  { background: #DBEAFE; color: var(--accent); }
.mv-card h3 { font-size: 1.3rem; margin-bottom: var(--space-md); }
.mv-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

/* Chairman message */
.chairman-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.chairman-photo-wrap {
  text-align: center;
}
.chairman-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
  outline: 2px solid var(--primary);
}
.chairman-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: var(--space-lg);
  margin-bottom: 4px;
}
.chairman-title { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.chairman-message blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-dark);
  line-height: 1.5;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-xl);
}
.chairman-message p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: var(--space-md); }
.chairman-signature { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); margin-top: var(--space-lg); }

/* Team section */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.team-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  transition: all var(--transition-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  border: 3px solid var(--primary-light);
  overflow: hidden;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: var(--space-sm); }
.team-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Contact Page ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: var(--white);
  height: 100%;
}
.contact-info-card h3 { color: var(--white); margin-bottom: var(--space-sm); }
.contact-info-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: var(--space-2xl); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text { font-size: 0.875rem; }
.contact-detail-text strong { display: block; color: var(--white); margin-bottom: 3px; }
.contact-detail-text span { color: rgba(255,255,255,0.7); }
.contact-social { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); }
.contact-social .social-link { color: var(--white); background: rgba(255,255,255,0.12); }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1.5px solid var(--border);
}
.contact-form-card h3 { margin-bottom: var(--space-sm); }
.contact-form-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-xl); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* ---- Vendor Enquiry ---- */
.vendor-form-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.vendor-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
}
.vendor-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.vendor-step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vendor-step.active .vendor-step-num { background: var(--primary); color: var(--white); }
.vendor-step.done .vendor-step-num { background: var(--success); color: var(--white); }
.vendor-step:not(.active):not(.done) .vendor-step-num { background: var(--bg); color: var(--text-muted); }
.vendor-step-label { font-size: 0.8rem; font-weight: 600; }
.vendor-step.active .vendor-step-label { color: var(--primary); }
.vendor-step:not(.active) .vendor-step-label { color: var(--text-muted); }
.vendor-step-divider { flex: 0 0 40px; height: 2px; background: var(--border); }

.vendor-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.vendor-form-head {
  background: linear-gradient(135deg, var(--primary-light), #E8F8F3);
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1.5px solid var(--border);
}
.vendor-form-head h3 { margin-bottom: 4px; }
.vendor-form-head p { color: var(--text-muted); font-size: 0.875rem; }
.vendor-form-body { padding: var(--space-2xl); }
