/* ============================
   eCommerce Guide Page - Premium Theme
   ============================ */

/* === 1. Hero Banner === */
.ecom-hero {
  background: linear-gradient(
    160deg,
    #020a18 0%,
    #0a1e3d 40%,
    #0d2a4a 60%,
    #061225 100%
  );
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  width: 100%;
}

.ecom-hero .container {
  position: relative;
  z-index: 10;
}

/* Animated Background */
.ecom-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.ecom-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: ecomGridMove 20s linear infinite;
}

@keyframes ecomGridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.ecom-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.ecom-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent);
  top: -100px;
  right: -80px;
}

.ecom-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
  bottom: -80px;
  left: -60px;
}

.ecom-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ecom-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ecom-hero-badge i {
  font-size: 14px;
}

.ecom-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.ecom-hero-title span {
  background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ecom-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ecom-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.ecom-hero-meta-item i {
  color: #818cf8;
  font-size: 14px;
}

.ecom-hero-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.ecom-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 560px;
}

.ecom-hero-image {
  position: relative;
}

.ecom-hero-image img {
  max-width: 100%;
}

.ecom-hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  z-index: -1;
  border-radius: 20px;
}

/* === 2. Content Section === */
.ecom-content-section {
  background: #f8fafc;
  padding: 60px 0 80px;
  position: relative;
}

.ecom-content-section .container {
  position: relative;
  z-index: 2;
}

/* === 3. Sidebar / Table of Contents === */
.ecom-toc {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.ecom-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #eef2ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecom-toc-title i {
  font-size: 16px;
}

.ecom-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecom-toc-list li {
  margin-bottom: 4px;
}

.ecom-toc-list li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.ecom-toc-list li a:hover,
.ecom-toc-list li a.active {
  background: #eef2ff;
  color: #4338ca;
  border-left-color: #6366f1;
  font-weight: 500;
}

.ecom-toc-share {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #eef2ff;
}

.ecom-toc-share-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ecom-share-links {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecom-share-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ecom-share-links li a:hover {
  background: #6366f1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* === 4. Article Content === */
.ecom-article {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ecom-article p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
}

.ecom-article h2.ecom-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2ff;
  position: relative;
  padding-left: 16px;
}

.ecom-article h2.ecom-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 16px;
  width: 4px;
  background: linear-gradient(to bottom, #6366f1, #a78bfa);
  border-radius: 4px;
}

.ecom-article h3.ecom-subheading {
  font-size: 22px;
  font-weight: 600;
  color: #334155;
  margin-top: 32px;
  margin-bottom: 14px;
}

.ecom-article h4.ecom-h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecom-article h4.ecom-h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}

/* Premium list styles */
.ecom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.ecom-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.ecom-list li:last-child {
  border-bottom: none;
}

.ecom-list li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 12px;
  color: #6366f1;
  font-size: 12px;
}

/* Type cards for B2C, C2B, etc. */
.ecom-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}

.ecom-type-card {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.ecom-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.ecom-type-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 8px;
}

.ecom-type-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 0;
}

/* Platform cards */
.ecom-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}

.ecom-platform-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.ecom-platform-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
}

.ecom-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: #6366f1;
}

.ecom-platform-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.ecom-platform-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

/* Article images */
.ecom-article img.ecom-img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
}

/* CTA Banner */
.ecom-cta-banner {
  display: block;
  background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8);
  border-radius: 16px;
  padding: 40px;
  margin: 36px 0;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ecom-cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

.ecom-cta-banner h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ecom-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin-bottom: 20px;
}

.ecom-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #4338ca;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ecom-cta-banner:hover .ecom-cta-btn {
  background: #eef2ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Feature highlight cards */
.ecom-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.ecom-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  transition: all 0.3s ease;
}

.ecom-feature-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.ecom-feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecom-feature-card h4 i {
  color: #6366f1;
  font-size: 16px;
}

.ecom-feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 0;
}

/* Tech stack pills */
.ecom-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.ecom-tech-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.ecom-tech-pill:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.ecom-tech-pill h4 {
  font-size: 15px;
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 4px;
}

.ecom-tech-pill p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0;
}

/* Process Steps */
.ecom-process-steps {
  margin: 24px 0;
}

.ecom-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ecom-step:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.ecom-step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecom-step-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.ecom-step-content p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

/* Help section */
.ecom-help-box {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}

.ecom-help-box h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.ecom-help-box p {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ecom-help-box .ecom-contact-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ecom-help-box .ecom-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  color: #fff;
  text-decoration: none;
}

/* === 5. FAQ Section === */
.ecom-faq {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid #eef2ff;
}

.ecom-faq h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}
.accordion-flush .accordion-item:first-child, .accordion-flush .accordion-item:last-child {
    border: 1px solid #e2e8f0;
}
.ecom-faq .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ecom-faq .accordion-item:hover {
  border-color: #c7d2fe;
}

.ecom-faq .accordion-button {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b !important;
  padding: 18px 24px;
  background: #fff !important;
  box-shadow: none;
}

.ecom-faq .accordion-button.collapsed {
  color: #1e293b !important;
  background: #fff !important;
}

.ecom-faq .accordion-button:not(.collapsed) {
  background: #eef2ff !important;
  color: #4338ca !important;
  box-shadow: none;
}

.ecom-faq .accordion-button::after {
  background-size: 16px;
  width: 20px;
  height: 20px;
}

.ecom-faq .accordion-body {
  padding: 16px 24px 20px;
}

.ecom-faq .accordion-body p {
  font-size: 15px;
  color: #64748b !important;
  line-height: 1.7;
}

.ecom-faq .accordion-body ul {
  list-style: none;
  padding: 0;
}

.ecom-faq .accordion-body ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #64748b;
  font-size: 15px;
}

.ecom-faq .accordion-body ul li::before {
  content: '\f00c';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 12px;
}

/* === 6. Author Box === */
.ecom-author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
}

.ecom-author-box figure {
  margin: 0;
}

.ecom-author-box figure img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.3);
}

.ecom-author-label {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ecom-author-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.ecom-author-role {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

/* === 7. Cost list === */
.ecom-cost-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
}

.ecom-cost-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  border-bottom: 1px solid #f1f5f9;
}

.ecom-cost-list li:last-child {
  border-bottom: none;
}

.ecom-cost-list li::before {
  content: '\f0d6';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  top: 14px;
  color: #6366f1;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 991px) {
  .ecom-hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .ecom-hero-title {
    font-size: 36px;
  }

  .ecom-hero-image {
    margin-top: 32px;
  }

  .ecom-toc {
    position: relative;
    top: 0;
    margin-bottom: 30px;
    padding: 20px 10px;
  }

  .ecom-type-grid,
  .ecom-features-grid {
    grid-template-columns: 1fr;
  }

  .ecom-platform-grid,
  .ecom-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ecom-hero-title {
    font-size: 28px;
  }

  .ecom-hero-desc {
    font-size: 15px;
  }

  .ecom-article {
    padding: 24px;
  }

  .ecom-article h2.ecom-heading {
    font-size: 22px;
  }

  .ecom-article h3.ecom-subheading {
    font-size: 18px;
  }

  .ecom-platform-grid,
  .ecom-tech-grid {
    grid-template-columns: 1fr;
  }

  .ecom-step {
    flex-direction: column;
    gap: 12px;
  }

  .ecom-author-box {
    flex-direction: column;
    text-align: center;
  }

  .ecom-features-grid {
    grid-template-columns: 1fr;
  }

  .ecom-cta-banner {
    padding: 28px 20px;
  }

  .ecom-cta-banner h3 {
    font-size: 20px;
  }
}
