.r-offers-discounts {
  &.space {
    margin-block: 77px;
    margin-top: clamp(3.25rem, 0.8732rem + 10.1408vw, 10rem);
  }

  .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;

    .tittle_head {
      .title-section {
        font-size: 1.5rem;
        font-weight: 700;
      }

      .sub_title-section {
        font-size: 18px;
        font-weight: 500;
      }
    }

    .view-all {
      font-size: 1.125rem;
      text-decoration: none;
      color: var(--color-link);
      transition: color 0.3s;

      &:hover {
        color: var(--primary-color);
      }
    }
  }

  /* Horizontal card */
  .herozintal_prod {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 4rem;

    @media (max-width: 768px) {
      gap: 0rem;
    }

    @media (max-width: 600px) {
      grid-template-columns: repeat(1, 1fr);
      gap: 1rem;
    }

    .product-item {
      position: relative;
      width: 100%;
      height: 100%;
      max-height: 250px;
      max-width: 522px;
      overflow: hidden;
      aspect-ratio: 1 / 2;
      padding: 10px;
      display: flex;
      justify-content: space-around;
      gap: 20px;
      border: none;

      @media (max-width: 600px) {
        aspect-ratio: 1 / 0;
        max-height: unset;
      }

      .product-card-border-svg {
        z-index: -1;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        stroke: var(--text-color-primary-bg);
        display: inline-block;
      }

      .product_link {
        flex-direction: column;
        width: 50%;
      }

      .product_linkk {
        width: 100%;
        flex-direction: column;
      }

      > a {
        width: 45%;
      }

      .content_img {
        position: relative;
        width: 100% !important;
        height: 100% !important;
        max-width: 314px;
        max-height: 314px;
        min-height: 198px;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        clip-path: polygon(100% 0, 100% 74%, 61% 100%, 0 100%, 0 0);
        

        &:hover img {
          transform: rotateY(180deg);
        }

        img {
          width: 100%;
          height: 100%;
        }
      }

      .product_details {
        display: flex;
        justify-content: start;
        flex-flow: column;
        width: 50%;

        a {
          gap: 15px;
          flex-direction: column;
        }

        .product-title,
        .product-title span {
          min-height: unset;
          color: var(--text-color-primary-bg);
          font-size: 16px;
          font-weight: 400;
          word-break: break-word;
          -webkit-line-clamp: 1;
          -webkit-box-orient: vertical;
          display: -webkit-box !important;
          margin-bottom: 0;
          overflow: hidden;
          height: unset;
        }

        .discription_rating {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 5px;

          .discription-card {
            width: 50%;
            p,
            p span {
              color: --text-color-primary-bg;
              word-break: break-word;
              -webkit-line-clamp: 1;
              -webkit-box-orient: vertical;
              display: -webkit-box !important;
              margin-bottom: 0;
              overflow: hidden;
            }
          }

          .product-card-rating-wrapper {
            height: 18px;
            width: 50%;
          }
        }

        .discount {
          font-weight: 600;
          margin-left: 5px;
          color: var(--primary-color);
        }

        .countdown-wrapper {
          text-align: center;
          display: flex;
          align-items: center;
          flex-direction: row;

          .offer-end-message {
            .offer-end-date {
              display: flex;
              align-items: flex-start;
              flex-direction: column;
              gap: 0px;
              color: var(--text-color-primary-bg);
              border-right: 1px solid var(--text-color-primary-bg);
              padding-right: 5px;

              html[dir="ltr"] & {
                border-right: none;
                border-left: 1px solid var(--text-color-primary-bg);
                padding-right: 0;
                padding-left: 5px;
              }

              @media (max-width: 990px) {
                justify-content: center;
                align-items: center;
                gap: 0;
              }

              .offer-end-title {
                margin: 0;
              }

              .month {
                font-size: 16px;
                flex-direction: column;
                margin: 0 auto;
                @media (max-width: 990px) {
                  gap: 0;
                  font-size: 12px;
                  font-weight: 700;
                }
              }
            }
          }

          /* قسم العد التنازلي */
          .countdown_wrapper_section {
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            margin: 0 auto;
            color: var(--text-color-primary-bg);

            @media (max-width: 990px) {
              max-width: 85px;
            }

            html[dir="ltr"] & {
              padding-left: 0;
              padding-right: 10px;
            }

            .countdown {
              display: flex;
              justify-content: flex-end;
              flex-direction: row-reverse;
              gap: 0px;
              padding: 0;

              html[dir="ltr"] & {
                flex-direction: row;
              }
            }

            .countdown__section {
              background: transparent;
              border-radius: 5px;
              padding: 5px 6px;
              width: 35px;
              height: 35px;
              display: flex;
              flex-direction: column-reverse;
              align-items: center;
              justify-content: center;

              @media (max-width: 990px) {
                padding: 5px 10px;
                width: 30px;
                height: 25px;
              }

              span {
                font-size: 13px;
                font-weight: 700;
              }

              label {
                margin: 0;
                font-size: 10px;
                text-transform: capitalize;
              }
            }
          }
        }
      }

      .add_button_h {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 47px;
        transition: all 0.3s ease-in-out;

        .wishlist_container_hero {
          padding: 0;
          margin: 0;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 10px;

          .add-to-wishlist_h {
            position: unset;
            margin: 0;
            padding: 0;
            border-radius: 0;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }

        .add_btn_card_hero {
          border-radius: 0;
          border-color: var(--text-color-primary-bg);
          color: var(--text-color-primary-bg);
          width: 100%;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: transparent;
          flex-direction: row;

          &:hover {
            background-color: var(--app-bg-color);
            color: var(--primary-color);
            filter: brightness(100%);
          }
        }
      }

      .add_button_v {
        display: none;
      }

      .wishlist_container_v {
        display: none;
      }
    }
  }


  
}
