/* Online Offers – Figma design (Ecom / Product cards) */

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

/* Page container */
.ecom-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 120px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  background: #FFFFFF;
  box-sizing: border-box;
}

.ecom-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* Frame 307 – Hero header + search */
.ecom-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
}

.ecom-hero-title {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  color: #000000;
  margin: 0;
}

.ecom-hero-subtitle {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
  margin: 0;
}

/* Frame 306 – Search row */
.ecom-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  height: 60px;
}

.ecom-search-row .filter-col {
  flex: 1;
  min-width: 0;
}

.ecom-search-row .header-search input,
.ecom-search-row .header-filter select {
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

.ecom-search-row .btn-col {
  flex: none;
}

.ecom-search-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  height: 60px;
  min-width: 196px;
  background: #ACAE36;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  cursor: pointer;
}

.ecom-search-btn:hover {
  background: #9a9c2e;
  color: #FFFFFF;
}

.ecom-search-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Section block (TOP ANGEBOTE / NUR HEUTE NOCH) */
.ecom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

.ecom-section-title {
  width: 100%;
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 40px;
  color: #000000;
  margin: 0;
}

/* Carousel row – 5 product cards */
.ecom-carousel-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.ecom-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  overflow: hidden;
}

.ecom-carousel-track {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* Carousel card (small) */
.ecom-card-carousel {
  flex: 0 0 227.2px;
  min-width: 227.2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  scroll-snap-align: start;
  justify-content: space-between;
}

.ecom-card-carousel .ecom-card-img {
  box-sizing: border-box;
  width: 100%;
  height: 237px;
  background: #FFFFFF;
  border: 1px solid #C5C5C5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ecom-card-carousel .ecom-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ecom-badge-mega {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 10px;
  background: #F30B26;
  border-radius: 0 0 8px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.ecom-card-carousel .ecom-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.ecom-card-carousel .ecom-card-name {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #000000;
  margin: 0;
}

.ecom-card-carousel .ecom-card-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  margin: 0;
}

.ecom-card-carousel .ecom-card-price {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #000000;
  margin: 0;
}

/* Carousel arrows */
.ecom-carousel-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  margin-top: -30px;
  width: calc(100% + 60px);
  max-width: 1260px;
  pointer-events: none;
  z-index: 2;
}

.ecom-carousel-arrows .ecom-arrow-btn {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: #E1E1E1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.ecom-carousel-arrows .ecom-arrow-btn:hover {
  background: #d0d0d0;
}

.ecom-carousel-arrows .ecom-arrow-btn svg {
  width: 24px;
  height: 24px;
}

/* Carousel dots */
.ecom-carousel-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.ecom-carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: #D9D9D9;
  border-radius: 8px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.ecom-carousel-dots .dot.active {
  width: 20px;
  background: #ACAE36;
}

/* All Offers header + sort */
.ecom-all-offers-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  height: 60px;
}

.ecom-all-offers-header .ecom-section-title {
  flex: 1;
  margin: 0;
}

.ecom-sort-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.ecom-sort-btn {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 60px;
  border: 1px solid #000000;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.ecom-sort-btn:hover {
  background: #f5f5f5;
}

.ecom-sort-btn svg {
  width: 24px;
  height: 24px;
}

/* Grid of product cards (All Offers) - 3 cards per row */
.ecom-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;

  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

.ecom-offers-grid .ecom-card-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ecom-card-grid .ecom-card-img-wrap {
  width: 100%;
  height: 360px;
  position: relative;
  background: #F1F1F1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ecom-card-grid .ecom-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ecom-badge-discount {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 2px 10px;
  background: #F30B26;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #FFFFFF;
}

.ecom-card-grid .ecom-fav-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecom-card-grid .ecom-fav-btn.active,
.ecom-card-grid .ecom-fav-btn:hover {
  color: #F30B26;
}

.ecom-card-grid .ecom-fav-btn svg {
  width: 24px;
  height: 24px;
}

.ecom-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  background: #000000;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #FFFFFF;
  width: fit-content;
}

.ecom-card-grid .ecom-card-name {
  width: 100%;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
}

.ecom-card-grid .ecom-card-price {
  width: 100%;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
}

.ecom-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.ecom-btn-get-offer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  flex: 1;
  max-height: 60px;
  background: #1A6E83;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
}

.ecom-btn-get-offer:hover {
  background: #155a6b;
  color: #FFFFFF;
}

.ecom-btn-get-offer svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ecom-btn-view-product {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  height: 60px;
  min-width: 140px;
  background: transparent;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

.ecom-btn-view-product:hover {
  background: #f5f5f5;
  color: #000000;
}

/* Pagination inside grid area */
.ecom-pagination {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .ecom-page-wrap {
    padding: 40px 24px;
    gap: 40px;
  }
  .ecom-offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ecom-page-wrap {
    padding: 24px 16px;
    gap: 32px;
  }
  .ecom-hero-title {
    font-size: 32px;
    line-height: 40px;
  }
  .ecom-hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  .ecom-search-row {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }
  .ecom-search-row .filter-col {
    flex: 1 1 100%;
  }
  .ecom-search-row .header-search input,
  .ecom-search-row .header-filter select {
    height: 48px;
  }
  .ecom-search-btn {
    width: 100%;
    height: 48px;
    min-width: 0;
  }
  .ecom-section-title {
    font-size: 24px;
    line-height: 32px;
  }
  .ecom-card-carousel {
    flex: 0 0 200px;
    min-width: 200px;
  }
  .ecom-offers-grid {
    grid-template-columns: 1fr;
  }
  .ecom-all-offers-header {
    flex-wrap: wrap;
    height: auto;
  }
  .ecom-carousel-arrows {
    display: none;
  }
}
