/* DARK THEME */
:root {
  --home-bg: #ffffff;
  --text-color: #111111;
}

[data-theme="dark"] {
  --home-bg: #000000;
  --text-color: #ffffff;
}

body {
  background-color: var(--home-bg) !important;
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] section,
[data-theme="dark"] .section,
[data-theme="dark"] .section1,
[data-theme="dark"] .mobiles,
[data-theme="dark"] .fashion,
[data-theme="dark"] .accessories,
[data-theme="dark"] .shoes,
[data-theme="dark"] .winter,
[data-theme="dark"] .headset,
[data-theme="dark"] .wrapper,
[data-theme="dark"] .container,
[data-theme="dark"] .content,
[data-theme="dark"] .product-section,
[data-theme="dark"] .product-section2,
[data-theme="dark"] .service-section,
[data-theme="dark"] .reviews,
[data-theme="dark"] .card-content,
[data-theme="dark"] .review-section {
  background-color: #000000 !important;
}

[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] a,
[data-theme="dark"] label,
[data-theme="dark"] small,
[data-theme="dark"] strong {
  color: #ffffff !important;
}

[data-theme="dark"] i {
  color: #000000 !important;
}

[data-theme="dark"] .profile .menu span {
  color: #000000 !important;
}


/* HERO1 */
.hero1 {
  background:
    url("images/home-imgs/bg1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hero-content1 {
  text-align: center;
  padding-top: 190px;
}

.hero-content1 h1 {
  font-size: 47px;
}

.hero-content1 p {
  font-size: 25px;
}

.shopnow {
  background-color: #0548d7;
  color: white;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  border: 2px solid #0548d7;
  margin-top: 20px;
  cursor: pointer;
}

.shopnow:hover {
  background-color: white;
  color: #0548d7;
  font-weight: 700;
}

/* SECTION1 */
.section1 img {
  width: 150px;
  height: 150px;
  margin-top: 10px;
}

.section1 {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  margin-right: 20px;
  margin-left: 20px;
  background-color: white;
}

.section1 h5 {
  padding-left: 5px;
  font-size: 18px;
}

/* CAROUSEL */
.carousel {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.mySlides {
  width: 100%;
  height: 80%;
  display: none;
  background-size: cover;
  background-position: center;
  position: absolute;
  overflow: hidden;
}

.slide1 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/home-imgs/bg2.jpg");
}

.slide1 img {
  width: 500px;
  margin-left: 150px;
  height: 320px;
}

.slide2 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/home-imgs/bg3.jpg");
}

.slide2 img {
  width: 400px;
  margin-left: 180px;
  height: 320px;
}

.slide3 {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/home-imgs/bg2.jpg");
}

.slide3 img {
  width: 500px;
  margin-left: 150px;
  height: 320px;
}

.mySlides img {
  transition: transform 0.5s ease-in-out;
}

.mySlides:hover img {
  transform: scale(1.07);
}

.text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 35px;
  font-weight: 700;
  text-shadow: 0 0 10px black;
  z-index: 2;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  color: white;
  font-size: 45px;
  font-weight: bold;
  user-select: none;
  transition: 0.3s ease;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.15);
}

/* PRODUCT SECTIONS */
/* PRODUCT-SECTION1 */
.product-section1 {
  background: #736fc9;
  background: linear-gradient(90deg, rgba(115, 111, 201, 1) 0%, rgba(23, 23, 166, 1) 35%, rgba(0, 212, 255, 1) 100%);
  margin-top: -50px;
  padding-top: 30px;
  padding-left: 5px;
  padding-right: 5px;
  height: 203vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobiles {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.primg img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.primg:hover img {
  transform: scale(1.1);
}

.primg h5 {
  font-size: 18px;
  text-align: center;
  margin-top: 2px;
}

.primg h6 {
  font-size: 20px;
  text-align: center;
  margin-top: -18px;
  color: #0548d7;
  margin-bottom: 10px;
}

.primg {
  border: 2px solid grey;
  margin-left: 25px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.imgs {
  overflow: hidden;
  width: 200px;
  height: 200px;
}

.fashion {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  border-radius: 12px;
}

.accessories {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  border-radius: 12px;
}

.shoes {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  border-radius: 12px;
}

.winter {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  border-radius: 12px;
}

.headset {
  width: 490px;
  height: 670px;
  background-color: white;
  padding-top: 10px;
  border-radius: 12px;
}

/* PRODUCT-SECTION2 */
.product-section2 {
  width: 100%;
  height: 350px;
  position: relative;
}

.item {
  width: 250px;
  height: 230px;
  overflow: hidden;
  flex-shrink: 0;
}

.item img {
  width: 100%;
  height: 100%;
  transition: transform .3s;
}

.items {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.items::-webkit-scrollbar {
  display: none;
}

.item:hover img {
  transform: scale(1.1);
}

.previous,
.last {
  background: white;
  border: none;
  font-size: 25px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 10;
}

.previous {
  left: 20px;
  bottom: 105px;
}

.last {
  right: 50px;
  bottom: 105px;
}

i {
  color: white;
}

/*REVIEWS*/
.card-content {
  width: 360px;
  height: 200px;
  background: #f9fafb;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.icon {
  background-color: #0548d7;
  color: white;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
}

.card-content:hover {
  border: 1px solid #0548d7;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-left: 50px;
  padding-bottom: 50px;
}

/* NUMBERS */
.numbers {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  background: #0e3c77;
  color: white;
  text-align: center;
  margin-top: 30px;
}

.count {
  font-size: 45px;
  font-weight: bold;
  color: #ffdb00;
}

.last i,
.previous i {
  color: black;
}

/* RTL */
/* Hero-content */

/* Section1 */
body.rtl .section1 h5 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
}

/* Carousel */
.rtl .slide1 img,
.rtl .slide3 img {
  margin-left: 0;
  margin-right: 150px;
}

.rtl .slide2 img {
  margin-left: 0;
  margin-right: 180px;
}

.rtl .mySlides h1,
.rtl .mySlides h5 {
  padding-left: 0 !important;
  padding-right: 700px !important;
  text-align: right;
}

.rtl .prev {
  left: auto;
  right: 20px;
}

.rtl .next {
  right: auto;
  left: 20px;
}

/* Product-section1 */
.rtl .product-section1 {
  direction: rtl;
}

.rtl .product {
  flex-direction: row-reverse;
}

.rtl .primg {
  margin-left: 0;
  margin-right: 25px;
  margin-left: 30px;
}

/* Product-section2 */
.rtl .items {
  flex-direction: row-reverse;
}

.rtl .previous {
  left: auto;
  right: 20px;
}

.rtl .last {
  right: auto;
  left: 50px;
}

/* Reviews */
body.rtl .cards {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  margin: 0;
  margin-bottom: 50px;
  padding: 0;
}

body.rtl .info {
  margin-right: 10px;
}

body.rtl .card-content {
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 1280px){

  .slide3 h5 {
    padding-right: 100px;
  }

  .product-section1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    height: auto;
    /* very important */
  }

  .mobiles,
  .fashion,
  .accessories,
  .shoes,
  .winter,
  .headset {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
  }

  .product {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .primg {
    margin-left: 0;
  }

  .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 0 !important;
    padding-bottom: 50px !important;
  }


  .rtl .slide3 h5 {
    padding-left: 100px !important;
  }
}
@media (max-width: 1024px){
  .hero-content1 h1 {
    margin-top: 200px !important;
  }
  /* HERO */
  .hero1 {
    min-height: 85vh;
  }

  .hero-content1 {
    padding-top: 160px;
  }

  .hero-content1 h1 {
    font-size: 38px;
  }

  .hero-content1 p {
    font-size: 20px;
  }

  /* SECTION 1 – 4 items top, 3 items bottom */
.section1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px;
  background-color: white;
  justify-items: start; /* left align items */
}

.section1 img {
  width: 150px;
  height: 150px;
  display: block;
}

.section1 h5 {
  margin-top: 10px;
  font-size: 18px;
  text-align: left; 
}

  /* CAROUSEL */
  .carousel {
    height: 360px;
  }

  .mySlides img {
    width: 380px;
    height: 280px;
    margin-left: 40px;
  }

  .mySlides h1 {
    font-size: 28px !important;
    padding-left: 450px !important;
    padding-right: 40px !important;
    margin-top: -200px !important;
  }

  .mySlides h5 {
    font-size: 18px !important;
    padding-left: 450px !important;
    padding-right: 40px !important;
  }

  /* PRODUCT SECTION 1 */
  .product-section1 {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    padding: 20px;
  }

  .mobiles,
  .fashion,
  .accessories,
  .shoes,
  .winter,
  .headset {
    width: 100%;
    height: auto;
  }

  .product {
    justify-content: center;
    gap: 15px;
  }

  /* PRODUCT SECTION 2 */
  .product-section2 {
    height: auto;
  }

  .product-section2 h1 {
    font-size: 26px;
    text-align: center;
    margin-left: 0 !important;
  }

  .item {
    width: 220px;
    height: 200px;
  }

  /* NUMBERS */
  .numbers {
    padding: 30px 10px;
  }

  .count {
    font-size: 36px;
  }

}

@media (max-width: 820px){
  .hero-content1 h1 {
    margin-top: 200px !important;
  }

  .section1 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .section1 div {
    width: 100% !important;
    margin: 10px 0 !important;
  }

  .section1 img {
    width: 100% !important;
    height: auto !important;
  }

  .section1 h5 {
    font-size: 45px !important;
    text-align: center !important;
    padding-left: 0 !important;
    margin-top: 5px !important;
  }

  .slide3 h5 {
    padding-right: 100px;
  }

  .product-section1 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    height: auto;
  }

  .mobiles,
  .fashion,
  .accessories,
  .shoes,
  .winter,
  .headset {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
  }

  .product {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .primg {
    margin-left: 0;
  }

  .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 0 !important;
    padding-bottom: 50px !important;
  }

  .rtl .hero-content1 h1 {
    margin-left: 0px;
  }

  .mySlides img {
    width: 50% !important;
    height: 320px;
  }
.mySlides h1{
margin-top: -250px !important;
}
  .prev i,
  .next i {
    color: black;
    background-color: white;
  }

  .slide1 img {
    margin-left: 20px;
  }

  .slide2 img {
    margin-left: 20px;
  }

  .slide3 img {
    margin-left: 20px;
  }

  .slide1 h1,
  .slide1 h5 {
    font-size: 23px !important;
    padding-right: 60px !important;
    padding-left: 0px;
  }

  .slide2 h1,
  .slide2 h5 {
    font-size: 23px !important;
    padding-right: 60px !important;
    padding-left: 0px;
  }

  .slide3 h1,
  .slide3 h5 {
    font-size: 23px !important;
    padding-right: 60px !important;
    padding-left: 0px;
  }

  .rtl .mySlides img {
    margin-right: 360px;
  }

  .rtl .slide1 h1,
  .rtl .slide1 h5 {
    margin-right: 70px;
    font-size: 23px !important;
    padding-right: 10px !important;
    padding-left: 0px;
    width: 250px;
  }

  .rtl .slide2 h1,
  .rtl .slide2 h5 {
    margin-right: 70px;
    font-size: 23px !important;
    padding-right: 10px !important;
    padding-left: 0px;
    width: 250px;
  }

  .rtl .slide3 h1,
  .rtl .slide3 h5 {
    margin-right: 70px;
    font-size: 23px !important;
    padding-right: 10px !important;
    padding-left: 0px;
    width: 250px;
  }
}

@media (max-width: 413px) {
  .hero1 {
    min-height: 100vh;
  }

  /* HERO SECTION */
  .hero-content1 h1 {
    font-size: 39px;
    margin-top: 50px !important;
  }

  .hero-content1 p {
    font-size: 30px !important;
  }

  .shopnow {
    padding: 10px 20px !important;
    font-size: 20px !important;
  }

  /* SECTION1 */
  .section1 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-around !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .section1 div {
    width: 100% !important;
    margin: 10px 0 !important;
  }

  .section1 img {
    width: 100% !important;
    height: auto !important;
  }

  .section1 h5 {
    font-size: 20px !important;
    text-align: center !important;
    padding-left: 0 !important;
    margin-top: 5px !important;
  }

  /* CAROUSEL */

  .mySlides img {
    width: 90% !important;
    height: 320px;
  }

  .mySlides h1,
  .mySlides h5 {
    display: none;
  }

  .prev,
  .next {
    font-size: 30px !important;
    top: 35% !important;
  }

  .prev i,
  .next i {
    color: #000000;
  }

  .slide1 img {
    margin-left: 20px;
  }

  .slide2 img {
    margin-left: 20px;
  }

  .slide3 img {
    margin-left: 20px;
  }

  /* PRODUCT-SECTION1 */
  .product-section1 {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
  }

  .mobiles,
  .fashion,
  .accessories,
  .shoes,
  .winter,
  .headset {
    width: 100%;
    height: auto;
  }

  .product {
    flex-direction: column;
    align-items: center;
  }

  .primg {
    width: 90%;
    margin-left: 0;
    margin-bottom: 15px;
  }

  .imgs {
    width: 150px;
    height: 150px;
    margin: auto;
  }

  .primg h5 {
    font-size: 14px;
    margin-top: 5px;
  }

  .primg h6 {
    font-size: 16px;
    margin-top: -10px;
  }

  h1 {
    font-size: 18px;
  }

  /* product-section2 */
  .product-section2 h1 {
    font-size: 23px;
    margin-left: -35px !important;
  }

  /* REVIEWS */
  .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 0 !important;
    padding-bottom: 50px !important;
    margin: 10px;
    padding-left: 10px;
  }

  .card-content {
    width: 90% !important;
    height: auto !important;
    padding: 20px !important;
  }

  /* NUMBERS */
  .numbers {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
  }

  .count {
    font-size: 35px !important;
  }

  .rtl .mySlides img {
   margin-right: 20px !important;
  }
  .rtl .cards{
   margin: 10px !important;
   padding-left: 5px !important;
  }
  .rtl .product-section2 h1 {
    margin-left: 25px !important;
  }
}