* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "yekanBakh";
}

body {
  background-color: white;
  padding: 40px 20px;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-title-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
  font-weight: 700;
  color: #3974d3;
}

.header-title-slider i {
  color: #3974d3;
  padding: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-arrows {
  display: flex;
  gap: 5px;
}

.nav-btn {
  background: #fff;
  border: 1px solid #3974d3;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3974d3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #f0f0f0;
  color: #3870cb;
}

.btn-view-all {
  background: transparent;
  border: 1px solid #3974d3;
  color: #3974d3;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  height: 40px;
  width: 100px;
  text-align: center;
}

.btn-view-all:hover {
  background: #3974d3;
  color: #fff;
}



.new-index {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.index {
  display: flex;
  flex-direction: column;
}

.product-track {
  display: flex;
  gap: 15px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transition: all 0.35s ease;
  cursor: grab;
}

.product-track::-webkit-scrollbar {
  display: none;
}


.card {
  
  flex: 0 0 283px;
  scroll-snap-align: start; 

  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  padding: 10px;
  flex-direction: column;
  border: 1px solid #E2E8F0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
}

.custom-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3974d3;
    color: #fff;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
    height: 30px;
    line-height: 30px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}



.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  border-radius: 7px !important;
  -webkit-user-drag: none;
  position: relative;
  pointer-events: none;
}

.card-image img {
  -webkit-user-drag: none;
  border-radius: 5px !important;
}

.badge{
  position: absolute;
  left: 10px;
  top: 3px;
  background-color: #3974d3;
  color: white;
  border-radius: 5px;
  padding: 3px;
}


.card-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.card-title {
  font-size: 1rem;
  color: #1E293B;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 0;

 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  


  cursor: pointer;
  transition: all 0.02s ease;
  position: absolute;
  width: 100%; 
  box-sizing: border-box;
  padding-left: 10px;
}

.card-title:hover {
  white-space: normal; 
  overflow: visible; 
  color: #012b69;
  
  
  height: auto; 
  min-height: 60px; 
  
  background-color: #ffffff;
  z-index: 10; 
  
}


.active-drag {
  cursor: grabbing;
}

.card-category {
  font-size: 0.8rem;
  color: rgb(108, 108, 108);
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  font-family: "yekanbakh";
  font-weight: 600;
  padding: 35px 0 5px 0;
}

.card-footer {
  margin-top: auto;
  border-top: 1px dashed rgba(108, 108, 108, .4);
  padding-top: 3px;
  display: flex;
  justify-content: space-between;
  /* align-items: flex-end; */
}

.stats-container {
  display: flex;
  gap: 15px;
  border-left: 1px solid rgba(146, 146, 146, 0.4);
  padding-left: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.86rem;
  max-height: 15px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light-gray);
}

.price-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
padding-right = 5px
}

.price-currency {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 400;
}

.for-this {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dots-slider {
  display: flex;
  gap: 20px;
}
.dots-slider span {
  border: 1px solid #3a7ce7;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dots-active {
  background-color: #3a7ce7;
  width: 30px !important;
  height: 15px;
  border-radius: 8px !important;
}

.buy-section {
  position: absolute;
  background-color: white;
  padding: 10px 10px;
  bottom: -60px;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.purchase {
  width: 82px;
  height: 35px;
  background-color: #3a7ce7;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.purchase:hover {
  background-color: #4c8bf2;
}

.preview {
  width: 35px;
  height: 35px;
  background-color: #e4e4e4;
  color: rgb(72, 72, 72);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview:hover {
  background-color: #f0f0f0;
}


.purchased-btn {
    background-color: #e73a3a;
}
.purchase.action.purchased-btn:hover{
  background-color: #f54949;
}

@media (max-width: 600px) {
  .container{
    margin-bottom: 25px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-title-slider{
    font-size: 1.5rem;
  }
  .slider-container {
    width: 95%;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .card {
    flex: 0 0 79vw;
  }

  .card-title {
  font-size: .97rem;
  color: var(--text-dark);
  height: 50px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
  padding: 0;
  overflow: visible;
  white-space: wrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  position: static;
}

.card-category{
  padding: 0;
}
  .card-footer {
    align-items: flex-start;
    gap: 15px;
  }
  .price-container {
    align-self: flex-end;
  }

  .buy-section {
  position: absolute;
  background-color: white;
  padding: 10px 10px;
  bottom: -60px;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.purchase {
  width: 90px;
  height: 35px;
  background-color: #3a7ce7;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.purchase:hover {
  background-color: #4c8bf2;
}

.preview {
  width: 35px;
  height: 35px;
  background-color: #e4e4e4;
  color: rgb(72, 72, 72);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview:hover {
  background-color: #f0f0f0;
}
}

@media (max-width: 391px) {
  .card {
    flex: 0 0 78vw;
  }
}


@media (max-width: 376px) {
  .card {
    flex: 0 0 77vw;
  }
}
