/* ==========================================================================
   SONLI-D High-Converting Single Product Landing Page Stylesheet
   Tailored for Pakistani Health & Wellness E-Commerce
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Brand Colors - Inspired by Sonli-D Red & Clinical Trust Navy */
  --primary-red: #d90429;
  --primary-red-hover: #b8001f;
  --primary-red-light: #fff0f3;
  --primary-dark: #0f172a;
  --primary-navy: #1e293b;
  
  --accent-gold: #eab308;
  --accent-green: #16a34a;
  --accent-blue: #0284c7;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 40px rgba(217,4,41,0.12);
  --shadow-card: 0 12px 32px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

/* ==========================================================================
   Utility Classes & Badges
   ========================================================================== */
.text-red { color: var(--primary-red) !important; }
.bg-red { background-color: var(--primary-red) !important; }
.text-navy { color: var(--primary-navy) !important; }
.bg-navy { background-color: var(--primary-navy) !important; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-red-light);
  color: var(--primary-red);
  margin-bottom: 16px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #d90429, #ef233c);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.announcement-bar .badge-pulse {
  background: #ffffff;
  color: var(--primary-red);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  margin-right: 8px;
}

/* Navigation Header */
.main-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-text-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--primary-red);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.brand-text-logo:hover {
  color: var(--primary-red-hover);
  transform: scale(1.02);
}

.brand-text-logo .brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.header-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Primary CTA Buttons */
.btn-cta {
  background: linear-gradient(135deg, var(--primary-red) 0%, #ef233c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.35);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--primary-red-hover) 0%, var(--primary-red) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 4, 41, 0.45);
}

.btn-cta-lg {
  font-size: 1.25rem;
  padding: 20px 42px;
  width: 100%;
}

.btn-cta-outline {
  background: transparent;
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-outline:hover {
  background: var(--primary-navy);
  color: #ffffff !important;
}

/* Hero Section */
.hero-wrapper {
  padding: 60px 0 80px 0;
  background: radial-gradient(circle at 90% 20%, rgba(217,4,41,0.06) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(15,23,42,0.04) 0%, transparent 60%),
              #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.product-hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  text-align: center;
}

.product-hero-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-md);
  transition: var(--transition);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.1));
}

.product-hero-card:hover .product-hero-img {
  transform: scale(1.02);
}

.floating-deal-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

/* Pricing Highlight Card in Hero */
.hero-price-box {
  background: var(--primary-red-light);
  border: 2px dashed var(--primary-red);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-price-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-red);
}

.hero-price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* The Synergy Science Section */
.synergy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: var(--transition);
}

.synergy-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-red);
}

.synergy-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.synergy-icon.red {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.synergy-icon.navy {
  background: #f1f5f9;
  color: var(--primary-navy);
}

/* Competitor Comparison Table */
.comparison-table-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.table-custom {
  width: 100%;
  margin-bottom: 0;
}

.table-custom th {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.table-custom th.highlight-col {
  background: var(--primary-red);
}

.table-custom td {
  padding: 18px 24px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom td.highlight-col {
  background: rgba(217, 4, 41, 0.03);
  font-weight: 700;
}

/* Bundle Option Cards */
.bundle-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bundle-card:hover, .bundle-card.selected {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.bundle-card.popular {
  border-color: var(--primary-red);
  background: linear-gradient(180deg, #fff9fa 0%, #ffffff 100%);
}

.bundle-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.bundle-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bundle-price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-red);
  margin: 16px 0;
}

.bundle-savings {
  display: inline-block;
  background: var(--accent-green);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  height: 100%;
  position: relative;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.verified-badge {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Accordion */
.faq-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  transition: var(--transition);
}

.faq-card:hover {
  border-color: var(--primary-red);
}

.faq-button {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none !important;
}

.faq-button:not(.collapsed) {
  color: var(--primary-red);
  background: var(--primary-red-light);
}

.faq-button .faq-icon {
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.faq-button:not(.collapsed) .faq-icon {
  transform: rotate(180deg);
}

.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-collapse.show {
  max-height: 400px;
}

.faq-body {
  padding: 10px 24px 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Fixed Floating CTA Bar on Mobile/Desktop */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  display: none;
}

.sticky-buy-bar.visible {
  display: block;
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Footer */
.main-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  color: #ef233c;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.footer-brand-text:hover {
  color: #ffffff;
  transform: scale(1.02);
}

.footer-brand-text .brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #20ba59;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

/* Checkout Modal Popup Styles */
.checkout-modal-header {
  background: linear-gradient(135deg, #d90429, #b8001f);
}

.checkout-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

#orderModal .modal-content {
  border-radius: 20px;
}

#orderModal .form-control,
#orderModal .form-select {
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-color: #cbd5e1;
  border-radius: 8px;
}

#orderModal .form-control:focus,
#orderModal .form-select:focus {
  border-color: #d90429;
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.15);
}

#orderModal .input-group-text {
  border-color: #cbd5e1;
  border-radius: 8px 0 0 8px;
}

.modal-order-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.modal-order-btn:hover {
  background: linear-gradient(135deg, #20ba59, #0e7266);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4) !important;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .hero-title { font-size: 2.2rem; }
  .hero-wrapper { padding: 40px 0 60px 0; }
  .table-custom { font-size: 0.85rem; }
  .table-custom th, .table-custom td { padding: 12px 14px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.85rem; }
  .hero-price-amount { font-size: 1.75rem; }
  .btn-cta { padding: 14px 24px; font-size: 1rem; }
}
