/* ==========================================================================
   dcart.css - Styles for WakinSoftwares Ecommerce Platform (D-Cart) Page
   ========================================================================== */

:root {
  --badge-bg: #eef2ff;
  --feature-card-shadow: 0 10px 30px rgba(0, 51, 153, 0.05);
}

/* ---- Breadcrumbs ---- */
.breadcrumb-container {
  padding-top: 100px; /* Offset for fixed navbar */
  padding-bottom: 10px;
  background-color: #f8fafc;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Hero Section ---- */
.dcart-hero-section {
  padding: 10px 0 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.badge-solution {
  background-color: var(--badge-bg);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.dcart-hero-section .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.dcart-hero-section .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--primary);
}

.dcart-hero-section .hero-desc {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-demo {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-pricing {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2.5rem;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.hero-feature-item .feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-feature-item .feature-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.hero-feature-item .feature-text span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-left: 0;
  margin-top: 0;
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  max-width: 900px;
  filter: drop-shadow(0 20px 40px rgba(0, 51, 153, 0.08));
  transition: transform 0.3s ease;
}

.hero-mockup-img:hover {
  transform: translateY(-5px) scale(1.03);
}



/* ---- Features Section ---- */
.dcart-section-header {
  margin-bottom: 3.5rem;
}

.dcart-features-section {
  background-color: #ffffff;
  padding: 50px 0;
}

.dcart-features-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.dcart-features-section .section-subtitle {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--feature-card-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 51, 153, 0.15);
  box-shadow: 0 15px 35px rgba(0, 51, 153, 0.08);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: #f0f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.feature-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Mobile App Section ---- */
.dcart-mobile-section {
  padding: 50px 0;
  background-color: #f8fafc;
  overflow: hidden;
}

.mobile-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.mobile-section-desc {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

.mobile-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
}

.mobile-checklist li i {
  color: var(--primary);
  font-size: 1.2rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-store:hover {
  transform: translateY(-2px);
  background-color: #1e293b;
  color: #ffffff;
}

.btn-store i {
  font-size: 1.8rem;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
}

.btn-store-text span {
  font-size: 0.65rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
  line-height: 1;
}

.btn-store-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Phone Mockup Stack */
.mobile-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 480px;
  margin-top: 2rem;
}

.phone-mockup {
  width: 200px;
  height: 410px;
  border-radius: 30px;
  border: 8px solid #0f172a;
  background-color: #ffffff;
  position: absolute;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.phone-header {
  height: 24px;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
}

.phone-app-bar {
  padding: 8px 14px;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-app-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

.phone-app-bar i {
  font-size: 0.85rem;
  color: var(--primary);
}

.phone-app-body {
  flex: 1;
  background-color: #f8fafc;
  padding: 10px;
  overflow: hidden;
}

/* Left phone styles (Orders) */
.phone-left {
  left: 20px;
  transform: rotate(-8deg) scale(0.9);
  z-index: 1;
}

.phone-tabs {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.phone-tabs span {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 50px;
  color: #64748b;
  font-weight: 600;
}

.phone-tabs span.active {
  background-color: #e0f2fe;
  color: var(--primary);
}

.app-order-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid #f1f5f9;
}

.app-order-item div {
  display: flex;
  flex-direction: column;
}

.app-order-item strong {
  font-size: 0.68rem;
  color: #0f172a;
}

.app-order-item span {
  font-size: 0.55rem;
  color: #64748b;
}

.status-badge {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.status-badge.pending {
  background-color: #fef3c7;
  color: #d97706;
}

.status-badge.shipped {
  background-color: #dcfce7;
  color: #15803d;
}

.status-badge.delivered {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Center phone styles (Home/Dashboard) */
.phone-center {
  z-index: 3;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(0, 51, 153, 0.2);
}

.section-title-app {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.sales-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend {
  font-size: 0.55rem;
  background-color: #dcfce7;
  color: #15803d;
  padding: 1px 4px;
  border-radius: 4px;
}

.sparkline-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 55px;
  margin: 10px 0;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #f1f5f9;
}

.sparkline-bar {
  width: 10%;
  background-color: var(--primary);
  border-radius: 2px 2px 0 0;
}

.app-stat-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.app-stat-col {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.app-stat-col span {
  font-size: 0.5rem;
  color: #64748b;
  font-weight: 600;
}

.app-stat-col strong {
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 800;
  margin-top: 1px;
}

/* Right phone styles (Products) */
.phone-right {
  right: 20px;
  transform: rotate(8deg) scale(0.9);
  z-index: 1;
}

.app-product-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  border: 1px solid #f1f5f9;
}

.app-product-img-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
}

.app-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-product-info strong {
  font-size: 0.65rem;
  color: #0f172a;
}

.app-product-info span {
  font-size: 0.55rem;
  color: #64748b;
}

.stock-status {
  font-size: 0.45rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}

.stock-status.in {
  background-color: #dcfce7;
  color: #15803d;
}

.stock-status.low {
  background-color: #fee2e2;
  color: #ef4444;
}

/* Hover effects for Mockups */
.mobile-mockup-wrapper:hover .phone-left {
  transform: translateX(-15px) rotate(-10deg) scale(0.92);
}

.mobile-mockup-wrapper:hover .phone-right {
  transform: translateX(15px) rotate(10deg) scale(0.92);
}

.mobile-mockup-wrapper:hover .phone-center {
  transform: translateY(-15px) scale(1.05);
}

/* ---- Responsive CSS ---- */
@media (max-width: 991.98px) {
  .breadcrumb-container {
    padding-top: 85px;
  }
  
  .dcart-hero-section {
    text-align: center;
    padding-bottom: 40px;
  }
  
  .dcart-hero-section .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 550px;
    margin: 2rem auto 0;
  }
  
  .hero-illustration {
    margin-top: 2.5rem;
    width: 100%;
    margin-left: 0;
  }
  
  .dcart-mobile-section {
    text-align: center;
  }
  
  .mobile-checklist {
    max-width: 320px;
    margin: 0 auto 2rem;
    text-align: left;
  }
  
  .download-buttons {
    justify-content: center;
    margin-bottom: 3rem;
  }
  
  .mobile-mockup-wrapper {
    height: 430px;
  }
  
  .phone-mockup {
    width: 170px;
    height: 350px;
  }
  
  .phone-left {
    left: calc(50% - 190px);
  }
  
  .phone-right {
    right: calc(50% - 190px);
  }
  
  .phone-center {
    left: calc(50% - 85px);
  }
}

@media (max-width: 575.98px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .mobile-mockup-wrapper {
    height: 380px;
  }
  
  .phone-mockup {
    width: 140px;
    height: 290px;
    border-width: 6px;
    border-radius: 20px;
  }
  
  .phone-header {
    height: 20px;
    padding: 0 10px;
    font-size: 0.55rem;
  }
  
  .phone-app-bar {
    padding: 6px 10px;
  }
  
  .phone-app-title {
    font-size: 0.75rem;
  }
  
  .phone-left {
    left: calc(50% - 130px);
    transform: rotate(-5deg) scale(0.95);
  }
  
  .phone-right {
    right: calc(50% - 130px);
    transform: rotate(5deg) scale(0.95);
  }
  
  .phone-center {
    left: calc(50% - 70px);
    transform: translateY(-5px);
  }
  
  .mobile-mockup-wrapper:hover .phone-left {
    transform: translateX(-5px) rotate(-6deg) scale(0.95);
  }
  
  .mobile-mockup-wrapper:hover .phone-right {
    transform: translateX(5px) rotate(6deg) scale(0.95);
  }
  
  .mobile-mockup-wrapper:hover .phone-center {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (max-width: 767.98px) {
  .phone-left {
    left: calc(50% - 160px);
  }
  .phone-right {
    right: calc(50% - 160px);
  }
  .phone-center {
    left: calc(50% - 85px);
  }
}
