@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-80px);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300px);
    opacity: 1;
  }
}

#main-banner.embla {
  direction: rtl;
  position: relative;
  overflow: hidden;

  .embla__container {
    display: flex;
    position: relative;

    .embla__slide {
      flex: 0 0 100%;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 1920px;
      height: 738px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;

      &.active {
        h3 {
          top: -100px;
          animation: slideDown ease 0.5s forwards 0.2s;
        }
        p {
          right: -300px;
          animation: slideLeft ease 0.5s forwards 0.5s;
        }
        .view-button {
          top: 80px;
          animation: slideUp ease 0.5s forwards 1s;
        }
      }

      .slide-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow: hidden;
        text-align: right;
        h3,
        p {
          overflow: hidden;
          white-space: nowrap;
          width: 100%;
          text-align: right;
          direction: rtl;
          display: inline-block;
        }
        h3 {
          font-size: 42px;
          margin: 0 0 20px 0;
          color: var(--text);
          width: 100%;
          text-align: right;
          position: relative;
        }
        p {
          font-size: 16px;
          color: var(--text-gray);
          line-height: 1.6;
          margin: 0 0 30px 0;
          width: 100%;
          text-align: right;
          position: relative;
        }
        .view-button {
          background-color: var(--gold);
          color: var(--white);
          padding: 12px 30px;
          border-radius: 5px;
          text-decoration: none;
          display: inline-block;
          border-radius: 80px;
          margin-top: 20px;
          position: relative;
        }
      }
    }
  }

  .embla__prev,
  .embla__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s;
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    i {
      font-size: 40px;
      color: rgba(0, 0, 0, 0.5);
      &:hover {
        color: var(--text);
      }
    }
  }

  .embla__prev {
    left: 20px;
  }
  .embla__next {
    right: 20px;
  }
  .embla__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    top: -32px;
    position: relative;
    z-index: 2;
    button {
      border: 2px solid var(--white);
      border-radius: 50%;
      width: 16px;
      height: 16px;
      background: transparent;
      outline: none;
      &.active {
        background-color: var(--white);
      }
    }
  }
}

.features {
  align-items: center;
  padding: 80px 0;

  > div:nth-child(2) .feature-item {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 0 50px;

    .feature-icon {
      font-size: 34px;
      color: var(--gold);
    }
    .feature-content {
      text-align: right;
      width: 100%;

      .feature-title {
        font-size: 16px;
        color: var(--text);
        margin-bottom: 5px;
      }

      .feature-text {
        font-size: 14px;
        color: var(--text-gray);
        line-height: 1.5;
      }
    }
  }
}

.twin-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto;

  .spec-links {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    text-decoration: none;
    &::after {
      content: "";
      position: absolute;
      background: linear-gradient(360deg, rgba(0, 0, 0, 0.3), transparent);
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    &:hover img {
      opacity: 0.6;
    }
    img {
      width: 570px;
      height: 330px;
      object-fit: cover;
      display: block;
      transition: opacity 0.3s ease;
    }

    .text-overlay {
      position: absolute;
      top: calc(50% + 25px);
      right: 40px;
      transform: translateY(-50%);
      text-align: right;
      color: var(--white);
      z-index: 1;
      .subtitle {
        display: block;
        font-size: 14px;
        margin-bottom: 10px;
        color: var(--white);
      }
      h2 {
        color: var(--white);
        font-size: 24px;
        margin: 0 0 15px 0;
      }
      .cta {
        color: var(--white);
        display: inline-block;
        font-size: 14px;
        border-bottom: 2px solid var(--white);
        padding-bottom: 2px;
        text-decoration: none;
        &:hover {
          border-color: var(--gold);
          color: var(--gold);
        }
      }
    }
  }
}

.cont {
  padding-top: 80px;
  padding-bottom: 40px;

  .products-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    &::after {
      content: "";
      width: 8rem;
      height: 2px;
      background: var(--text);
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }
  }
  .products-grid {
    > div {
      margin-bottom: 40px;
    }
  }
}

/* Tab Styles */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  .tab-button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    position: relative;
    &.active {
      color: var(--gold);
      &::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: var(--gold);
      }
    }
  }
}

.tab-content {
  padding: 15px 0;
  max-width: 100%;
  margin: 0 auto;
  display: none;
  &.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-wrap: wrap;
  }

  .tab-button {
    margin: 5px;
  }
}

@media (max-width: 425px) {
  .con-img {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .twin-banner {
    flex-wrap: wrap;
    flex-direction: column;
    .spec-links {
      flex: 1;
      .text-overlay {
        top: 50%;
        .subtitle,
        h2 {
          margin-bottom: 0 !important;
        }
      }
      img {
        max-width: 100%;
        height: auto;
        width: 370px;
        height: 195px;
      }
    }
  }

  .features {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 30px 10px;
    .feature-item {
      flex-direction: row;
      justify-content: space-between;
      padding: 30px 0;
      text-align: right;
      border-left: none !important;
      border-right: none !important;
      border-bottom: 1px solid var(--border);
    }
    > div:last-child {
      .feature-item {
        border-bottom: none;
      }
    }
  }

  #main-banner {
    .embla__prev,
    .embla__next {
      display: none !important;
    }
    .embla__container {
      .embla__slide {
        height: 200px !important;
        padding: 20px;
        .slide-content {
          h3 {
            font-size: 24px !important;
          }
          p {
            display: none !important;
          }
          .view-button {
            margin: 0 !important;
            padding: 8px 15px !important;
            font-size: 12px !important;
          }
        }
      }
    }
  }
}

.optional-products {
  background-color: #dbc3a936;
  padding: 60px 0;
  margin: 40px 0;

  .products-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;

    &::after {
      content: "";
      width: 8rem;
      height: 2px;
      background: var(--text);
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }
  }

  .embla {
    margin: 0 auto;
    position: relative;
    --slide-spacing: 1rem;
    --slide-size: 100%;

    @media (min-width: 768px) {
      --slide-size: 33.333%;
    }

    .embla__viewport {
      overflow: hidden;
    }

    .embla__container {
      display: flex;
      margin-left: calc(var(--slide-spacing) * -1);
      touch-action: pan-y pinch-zoom;
    }

    .embla__slide {
      flex: 0 0 var(--slide-size);
      min-width: 0;
      padding-left: var(--slide-spacing);
      position: relative;
    }

    .embla__controls {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    .embla__buttons {
      display: flex;
      gap: 10px;
      transition: all 0.3s ease;
    }

    .embla__button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      i {
        color: var(--text-gray);
        font-size: 40px;
      }

      &.embla__button--prev {
        right: -50px;
      }
      &.embla__button--next {
        left: -50px;
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .embla__button__svg {
        width: 35%;
        height: 35%;
      }
    }
  }

  .product-card-big {
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    .unvisible-link {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 1;
    }
    .discount-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: var(--red);
      color: var(--white);
      border-radius: 2px;
      font-size: 10px;
      z-index: 2;
      max-width: 50%;
      padding: 0 15px;
      width: fit-content;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .product-rating {
      display: flex;
      align-items: center;
      margin-bottom: 5px;
      .star {
        i {
          color: #ffb400;
        }
        &.empty i {
          color: var(--border);
        }
      }
    }

    &:hover {
      transform: translateY(-5px);
    }

    .product-image-wrapper {
      position: relative;
      width: 100%;
      height: 220px;
      overflow: hidden;
    }

    .product-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    &:hover .product-image {
      transform: scale(1.05);
    }

    .product-content {
      padding: 20px;
      text-align: right;
    }

    .product-title {
      font-size: 18px;
      margin: 0;
      color: var(--text);
      font-weight: 600;
    }

    .product-meta {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 5px;
      margin-bottom: 15px;
      font-size: 14px;
    }
  }
  .prc {
    font-size: 14px;
    color: var(--text);
    text-align: center;
    font-weight: normal;
    &.sale {
      color: var(--gold);
    }
  }

  .old-prc {
    padding: 0 5px;
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 14px;
  }
}

/* Testimonials Section Styles */
.testimonials-section {
  padding: 60px 0;
  direction: rtl;

  .section-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    &::after {
      content: "";
      width: 8rem;
      height: 2px;
      background: var(--text);
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }
  }

  .embla {
    margin: 0 auto;
    position: relative;
    --slide-spacing: 1rem;
    --slide-size: 100%;

    @media (min-width: 768px) {
      --slide-size: 100%;
    }

    .embla__viewport {
      overflow: hidden;
    }

    .embla__container {
      display: flex;
      margin-left: calc(var(--slide-spacing) * -1);
      touch-action: pan-y pinch-zoom;
    }

    .embla__slide {
      flex: 0 0 var(--slide-size);
      min-width: 0;
      padding-left: var(--slide-spacing);
      position: relative;
    }

    .embla__controls {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    .embla__buttons {
      display: flex;
      gap: 10px;
      transition: all 0.3s ease;
    }

    .embla__button {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      i {
        color: var(--text-gray);
        font-size: 40px;
      }

      &.embla__button--prev {
        right: -50px;
      }
      &.embla__button--next {
        left: -50px;
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .embla__button__svg {
        width: 35%;
        height: 35%;
      }
    }
  }

  .testimonial-content {
    padding: 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 840px;
    margin: 0 auto;
  }

  .quote-icon i {
    color: var(--gold);
    font-size: 60px;
    opacity: 0.5;
  }

  .testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
    position: relative;
    z-index: 1;
  }

  .client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .client-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 3px solid var(--border);
  }

  .client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .client-details {
    text-align: right;
    display: flex;
    gap: 10px;
  }
  .client-position-separator {
    color: var(--text-gray);
  }

  .client-name {
    font-size: 14px;
    font-weight: normal;
    color: var(--text);
    text-align: center;
  }

  .client-position {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
  }

  .testimonial-prev,
  .testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background-color: transparent;
    i {
      font-size: 40px;
      color: var(--text-gray);
      transition: all 0.3s ease;
    }
  }

  .testimonial-prev:hover,
  .testimonial-next:hover {
    i {
      color: var(--text);
    }
  }

  .testimonial-prev {
    left: 0;
  }

  .testimonial-next {
    right: 0;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
      display: none;
    }

    .testimonial-content {
      padding: 30px 20px;
    }

    .client-info {
      flex-direction: column;
    }

    .client-image {
      margin: 0 0 15px 0;
    }

    .client-details {
      text-align: center;
    }
  }
}

.instagram-section {
  padding: 50px 0;
  background: #dbc3a936;
  .section-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    margin-bottom: 80px;
    &::after {
      content: "";
      width: 8rem;
      height: 2px;
      background: var(--text);
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }
  }

  .instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 5px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(
      45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
  }

  .instagram-button:hover {
    opacity: 0.9;
    color: var(--white);
    transform: translateY(-2px);
  }

  .instagram-button i {
    font-size: 18px;
    color: var(--white);
  }
}
