html {
    height: 100%;
    line-height: 1.5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: #31314D;
}

* {
    box-sizing: border-box;
}

.hero-wrapper {
    background-image: url(../images/layered-waves-haikei.svg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

header {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.name {
    font-size: 20px;
    color: #F7F8FB;
    font-weight: 600;
    margin: 0;
}

.logo {
    width: 50px;
    height: auto;
    margin: 0;
    border-radius: 50%;
}

main {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: max(8.79vw, 110px);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-h1 {
    font-size: max(2.64vw, 32px);
    font-weight: 800;
    color: #F7F8FB;
    text-align: center;
}

.hero-p {
    font-size: max(1.76vw, 22px);
    font-weight: 600;
    text-align: center;
    color: #F7F8FB;
    width: 70%;
}

.CTA {
    font-size: max(2.34vw, 28px);
    font-weight: 800;
    text-decoration: none;
    color: #F7F8FB;
    background-color: #31314D;
    width: max(18.31vw, 235px);
    height: max(5.86vw, 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3rem;
}

.CTA:hover {
    background-color: #23233f;
}

.features {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 22%;
    height: max(21.95vw, 250px);
    box-shadow: 0 4px 12px ;
    padding: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-7px);
}

.feature-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-img {
    width: max(5.12vw, 50px);
}

.feature-h2 {
    font-size: 1.7vw;
    text-align: center;
    color: #F7F8FB;
}

.feature-p {
    text-align: center;
    color: #F7F8FB;
    font-size: max(1.46vw, 14px);
    font-weight: 600;
    height: 40%;
}

.products {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    margin-bottom: 40px;
}

.product {
    width: 19%;
    height: max(34vw, 360px);
    background-color: #F7F8FB;
    padding: 1.46vw;
    box-shadow: 0 4px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    border-radius: 1vw;
}

.swiper {
    width: 100%;
    margin-bottom: 10px;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
}

.swiper-button-next,
.swiper-button-prev {
    color: #000;
    display: none !important;
}

.swiper-pagination-bullet {
    background-color: #000;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.product-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-h3 {
    margin: 5px;
    font-size: max(1.61vw, 18px);
    color: #97859B;
    align-items: center;
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.product-price {
    margin: 0;
    font-size: max(1.76vw, 20px);
    font-weight: 800;
    color: #31314D;
    text-align: center;
}

.product-notes {
    text-align: center;
}

.products-note {
    display: inline-block;
    margin: 40px auto 0;
    padding: 10px;
    text-align: center;
    font-size: max(2.34vw, 26px);
    font-weight: 800;
    color: #F7F8FB;
    background-color: #97859B;
    border-radius: 3rem;
}

.products-note span {
    color: #1f51ff;
}

.product-note2 {
    padding: 10px;
    margin-top: 5px;
    text-align: center;
    font-size: max(1.9vw, 22px);
    font-weight: 800;
    color: #F7F8FB;
}

.top {
    color: #F7F8FB;
    margin: 60px 0;
    font-size: max(2.34vw, 26px);
    font-weight: 800;
    text-align: center;
}

.reviews-section {
  background-color: #31314D;
  padding: 60px 20px;
  font-family: "Poppins", sans-serif;
  text-align: center;
}

/* نخفي النقاط */
.reviews-section .swiper-pagination {
  display: none !important;
}

/* ضبط السلايدر */
.swiper {
  padding-bottom: 40px;
}

.swiper-wrapper {
  display: flex;
}

/* كل سلايد ياخذ حجمه الطبيعي بدون تمدد غريب */
.swiper-slide {
  height: auto !important;
  display: flex;
  justify-content: center;
}

/* البوكس */
.box {
  background: #F7F8FB;
  border-radius: 20px;
  padding: clamp(15px, 3vw, 25px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 90%; /* يخلي العرض مضبوط وما يلزق بالكروت الثانية */
  box-sizing: border-box;
}

/* الصورة */
.box img {
  width: clamp(60px, 6vw, 90px);
  border-radius: 50%;
  margin-bottom: 15px;
}

/* النجوم */
.stars {
  color: #31314D;
  margin-bottom: 10px;
}

/* النص */
.box p {
  font-size: clamp(13px, 1.5vw, 15px);
  color: #333;
  line-height: 1.6;
  width: 100%;
  text-align: centثr;
  margin-top: auto;
}

.delivery {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.delivery-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
}

.aramex {
    width: max(16.47vw, 160px);
}

.delivery-p {
    text-align: center;
    font-size: max(1.9vw, 22px);
    color: #F7F8FB;
    font-weight: 600;
}

footer {
    background-color: #F7F8FB;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vw;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.social img {
    width: max(5.12vw, 60px);
}

.social a {
    transition: transform 0.3s ease;
}

.social a:hover {
    transform: scale(1.1);
}

h5 {
    text-align: center;
    font-size: max(1.17vw, 14px);
    color: #31314D;
    margin: 5px;
}

@media (max-width: 1024px) and (min-height: 720px) {
    header {
        padding: 20px 30px;
    }

    .name {
        font-size: 2.7vw;
    }

    .logo {
        width: 8vw;
    }

    main {
        margin-top: 12vh;
    }

    .hero-h1 {
        font-size: 4vw;
    }

    .hero-p {
        font-size: 3.5vw;
    }

    .CTA {
        width: 36vw;
        height: 12vw;
        font-size: 4vw;
    }

    .features {
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px;
        margin: 15px;
    }

    .feature {
        width: 95%;
        height: max(32.55vw, 180px);
        padding: 10px;
    }

    .feature-img {
        width: max(7.81vw, 45px);
    }

    .feature-h2 {
        font-size: max(3vw, 20px);
    }

    .feature-p {
        font-size: max(2.4vw, 14px);
    }

    .products {
        margin: 30px auto;
    }

    .product {
        width: 23%;
        height: max(45vw, 255px);
    }

    h3 {
        font-size: 3.2vw;
    }

    .product-h3 {
        font-size: 2.2vw;
    }

    .product-price {
        font-size: 2.8vw;
    }

    .products-note {
        font-size: 4vw;
    }

    .product-note2 {
        font-size: 3vw;
    }

    .top {
        font-size: 5vw;
    }

    .smsa {
        width: 25vw;
    }

    .redbox {
        width: 40vw;
    }

    .delivery-p {
        font-size: 3.2vw;
    }

    .social img {
        width: 10vw;
    }

    h5 {
        font-size: 2.5vw;
    }
}

/* استجابة لتوسيط المحتوى */
@media (max-width: 640px) {
  .reviews-section {
    padding: 40px 10px;
  }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    .name {
        font-size: 4.6vw;
    }

    .logo {
        width: 12vw;
    }

    .hero-h1 {
        font-size: 6.5vw;
    }

    .hero-p {
        font-size: 4.8vw;
    }

    .CTA {
        width: 50vw;
        height: 17vw;
        font-size: 6.8vw;
    }

    .features {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.8vw;
        margin: 0;
    }

    .feature {
        width: 95%;
        height: 36vw;
    }

    .feature-img {
        width: 10.42vw;
    }

    .feature-h2 {
        margin-bottom: 0px;
        font-size: 4.17vw;
    }

    .feature-p {
        font-size: 2.92vw;
    }

    .products {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: auto aut0;
    }

    .product {
        display: flex;
        flex-direction: row;
        justify-content: space-between !important;
        width: 95%;
        height: fit-content;
        border-radius: 2rem;
    }

    .product-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .product .swiper {
        flex: 0 0 50% !important;
        max-width: 50%;
        margin: 0 !important;
        padding: 0;
    }

    .swiper-slide img {
        border-radius: 2rem;
    }

    .small {
        width: 200px !important;
    }

    .product-h3 {
        font-size: 5.8vw;
    }

    .product-price {
        font-size: 6.7vw;
    }

    .product-p {
        font-size: 3.8vw;
        width: 90%;
    }

    .products-note {
        font-size: 5vw;
    }

    .product-note2 {
        font-size: 4.2vw;
    }

    .top {
        font-size: 8vw;
    }

    .smsa {
        width: 25vw;
    }

    .redbox {
        width: 35vw;
    }

    .delivery-p {
        font-size: 4.2vw;
        width: 80%;
    }

    .social img {
        width: 13vw;
    }

    .prove img {
        width: 25vw;
    }

    .prove-head {
        font-size: 4vw;
    }

    .prove-p {
        font-size: 4.4vw;
    }

    h5 {
        font-size: 3vw;
    }

}



