@import url('./index.css');

/* Ecommerce Hero Section CSS */
.ecommerce-hero-section {
  width: 100%;
  background: #ffffff;
  padding: 0 40px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ecommerce-hero-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 0 40px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tagline */
.ecommerce-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ecommerce-hero-tagline span {
  color: var(--69686E, #69686E);
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecommerce-hero-title {
  font-family: Satoshi, Inter, sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 56px;
  color: rgb(6, 6, 18);
  font-style: normal;
  margin: 0 0 clamp(16px, 2vw, 28px) 0;
  text-align: center;
}

/* Outer Card Frame styling */
.ecommerce-card-frame {
  display: flex;
  width: 100%;
  max-width: 1320px;
  padding: 16px;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  border: 1px solid #FFFFFF;
  background: #F5F5F5;
  box-shadow: 0 0 6px 1px rgba(6, 6, 18, 0.16) inset;
  box-sizing: border-box;
}

/* White Card Container */
.ecommerce-card {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(6, 6, 18, 0.05);
  overflow: hidden;
  border: 1px solid #E5E4E2;
}

.ecommerce-card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
}

/* Left Column Styling */
.ecommerce-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  padding: 40px 48px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.ecommerce-card-heading {
  color: var(--060612, #060612);
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 44px;
  font-style: normal;
  font-weight: 500;
  line-height: 56px;
  margin: 0 0 12px 0;
}

.ecommerce-card-heading .highlight-green {
  color: #599632;
}

.ecommerce-card-desc-group {
  margin-bottom: 8px;
}

.ecommerce-card-desc-group p {
  color: var(--69686E, #69686E);
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin: 0 0 10px 0;
}

.ecommerce-card-desc-group p:last-child {
  margin-bottom: 0;
}

.ecommerce-divider-line {
  border: none;
  border-top: 1px solid #E5E4E2;
  margin: 16px 0;
  width: 100%;
}

/* Features Row */
.ecommerce-features-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
}

.ecommerce-feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.ecommerce-feature-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(133, 189, 86, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ecommerce-feature-divider {
  width: 1px;
  background: #E5E4E2;
  margin: 0 16px;
  align-self: stretch;
}

.ecommerce-feature-title {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #060612;
  margin: 0 0 4px 0;
}

.ecommerce-feature-desc {
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 11px;
  color: #69686E;
  margin: 0;
}

/* Right Column Styling: flush against the outer card's edge so the
   outer card's own border-radius + overflow:hidden clips it into one
   continuous rounded corner (same treatment as Social Media Hero's image panel). */
.ecommerce-card-right {
  width: 520px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
}

.ecommerce-mockup-image-container {
  width: 100%;
  height: 100%;
  min-height: 416px;
  background: #F3EFE9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ecommerce-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecommerce-card:hover .ecommerce-mockup-image {
  transform: scale(1.04);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .ecommerce-card-frame {
    padding: 12px;
    border-radius: 20px;
  }

  .ecommerce-card {
    border-radius: 14px;
  }

  .ecommerce-card-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .ecommerce-card-right {
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }

  .ecommerce-mockup-image-container {
    height: 380px;
    min-height: 0;
  }

  .ecommerce-card-left {
    padding: 32px 24px;
  }
}

@media (max-width: 960px) {
  .ecommerce-hero-section {
    padding: 0 24px;
  }

  .ecommerce-hero-container {
    padding: 24px 0 40px 0;
  }

  .ecommerce-hero-title {
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 12px;
  }

  .ecommerce-card-heading {
    font-size: 28px;
    line-height: 38px;
  }

  .ecommerce-features-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .ecommerce-feature-item {
    flex: unset;
    width: calc(50% - 10px);
  }

  .ecommerce-feature-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .ecommerce-mockup-image-container {
    height: 280px;
    min-height: 0;
  }

  .ecommerce-card-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .ecommerce-feature-item {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ecommerce-hero-section {
    padding: 0 16px;
  }

  .ecommerce-hero-container {
    padding: 24px 0 24px 0;
  }

  .ecommerce-mockup-image-container {
    height: 200px;
    min-height: 0;
  }

  .ecommerce-card-frame {
    padding: 8px;
    border-radius: 16px;
  }

  .ecommerce-card {
    border-radius: 12px;
  }

  .ecommerce-card-inner {
    gap: 8px;
    padding: 8px;
  }

  .ecommerce-hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .ecommerce-card-desc-group p {
    font-size: 14px;
    line-height: 22px;
  }
}


/* Ecommerce Projects Section CSS */
.ecommerce-projects-section {
  width: 100%;
  background: #ffffff;
  padding: 0 40px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.ecommerce-projects-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 0;
  box-sizing: border-box;
}

.ecommerce-projects-title {
  color: var(--060612, #060612);
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 44px;
  font-style: normal;
  font-weight: 500;
  line-height: 56px;
  text-align: center;
  margin: 0 0 56px 0;
}

/* Projects Grid — single column by default, 2 cols on large screens */
.ecommerce-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 100%;
}

/* ── Card Container ── */
.ecommerce-project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  padding: 16px 20px 12px 20px;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  will-change: transform, border-color, box-shadow;
}

.ecommerce-project-card:hover {
  transform: translateY(-6px);
  border-color: #C2E2A6;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ── Screenshot Preview ── */
.ecommerce-card-preview {
  position: relative;
  width: 100%;
  height: 335px;
  border-radius: 14px;
  overflow: hidden;
  background: #F1F5F9;
  margin-bottom: 10px;
  border: 1px solid #F0F0F0;
  flex-shrink: 0;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.4s ease;
  will-change: height, margin-bottom;
}

.ecommerce-project-card:hover .ecommerce-card-preview {
  height: 200px;
  margin-bottom: 10px;
}

.ecommerce-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ecommerce-project-card:hover .ecommerce-preview-image {
  transform: translateY(-20%);
}

/* ── Project Name ── */
.ecommerce-project-name {
  color: #0F172A;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 25px;
  margin: 0 0 4px 0;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 54px;
  flex-shrink: 0;
  transition: color 0.3s ease, margin-top 0.4s ease;
}

.ecommerce-project-card:hover .ecommerce-project-name {
  margin-top: auto;
}

/* ── Project Meta (year • category) ── */
.ecommerce-project-meta {
  color: #94A3B8;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  text-align: left;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.ecommerce-project-card:hover .ecommerce-project-meta {
  color: #75BF46;
}

/* ── Hover Details (expand on hover) ── */
.ecommerce-card-hover-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
  will-change: max-height, opacity, transform, margin-top;
}

.ecommerce-project-card:hover .ecommerce-card-hover-details {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

/* ── Description ── */
.ecommerce-project-details {
  color: #64748B;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 22px;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tags ── */
.ecommerce-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ecommerce-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #D8EEC8;
  background: #F4FBF0;
  color: #4A8A2A;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
}

/* ── Buttons ── */
.ecommerce-project-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}

.ecommerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: Satoshi, 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ecommerce-btn-primary {
  background: #85BD56;
  color: #FFFFFF;
  box-shadow: 2px 2px 2px 0 rgba(255, 255, 255, 0.16) inset, 0 0 0 2px #E1FFC8;
}

.ecommerce-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 2px 0 rgba(255, 255, 255, 0.25) inset, 0 0 0 3px #E1FFC8, 0 6px 14px rgba(133, 189, 86, 0.2);
}

.ecommerce-btn-secondary {
  background: #FFFFFF;
  color: #060612;
  border: 1.5px solid #E4E7EC;
}

.ecommerce-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: #85BD56;
  color: #599632;
}

/* ── Responsive Overrides ── */
@media (max-width: 1024px) {
  .ecommerce-projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ecommerce-project-card {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .ecommerce-card-hover-details {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
  }

  .ecommerce-card-preview {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ecommerce-project-card:hover .ecommerce-card-preview {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ecommerce-projects-title {
    font-size: 36px;
    line-height: 46px;
    margin-bottom: 40px;
  }
}

@media (max-width: 960px) {
  .ecommerce-projects-section {
    padding: 0 24px;
  }

  .ecommerce-projects-container {
    padding: 24px 0;
  }
}

@media (max-width: 640px) {
  .ecommerce-projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ecommerce-projects-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 32px;
  }

  .ecommerce-project-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .ecommerce-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ecommerce-projects-section {
    padding: 0 16px;
  }

  .ecommerce-projects-container {
    padding: 20px 0;
  }
}

/* Live Preview Modal — macOS/Chrome browser chrome (same pattern as Home's Featured section) */
.ecommerce-live-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 18, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  z-index: 1000;
}

.ecommerce-live-preview-window {
  width: 100%;
  max-width: 1600px;
  height: 90vh;
  max-height: 960px;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.ecommerce-live-preview-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #F4F4F5;
  border-bottom: 1px solid #E4E4E7;
  flex-shrink: 0;
}

.ecommerce-live-preview-address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 0;
}

.ecommerce-live-preview-address-bar svg {
  flex-shrink: 0;
}

.ecommerce-live-preview-address-bar svg:last-of-type {
  color: #8F8E93;
}

.ecommerce-live-preview-url {
  font-family: Menlo, Consolas, 'SFMono-Regular', monospace;
  font-size: 14px;
  color: #2563EB;
  text-decoration: underline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecommerce-live-preview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.ecommerce-live-preview-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #F0F0F2;
  color: #18181B;
  font-family: Satoshi, 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.ecommerce-live-preview-open-btn:hover {
  background: #E4E4E7;
}

.ecommerce-live-preview-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ecommerce-traffic-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.ecommerce-traffic-dot.ecommerce-traffic-green {
  background: #22C55E;
}

.ecommerce-traffic-dot.ecommerce-traffic-yellow {
  background: #EAB308;
}

.ecommerce-traffic-dot.ecommerce-traffic-red {
  background: #EF4444;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.ecommerce-traffic-dot.ecommerce-traffic-red:hover {
  filter: brightness(0.92);
}

.ecommerce-live-preview-body {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  background: #F4F4F5;
}

.ecommerce-live-preview-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .ecommerce-live-preview-overlay {
    padding: 0;
  }
  .ecommerce-live-preview-window {
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  .ecommerce-live-preview-open-btn span {
    display: none;
  }
  .ecommerce-live-preview-open-btn {
    padding: 8px;
  }
}


.ecommerce-page {
  position: relative;
  overflow-x: clip;
}
