
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --bg-color: #767151;
  --bg-color-light: #767151b5;
  --title-color: hsl(220, 8%, 10%);
  --text-color: hsl(220, 4%, 32%);
  --text-color-light: hsl(220, 4%, 55%);
  --body-color: hsl(220, 18%, 99%);
  --container-color: hsl(220, 18%, 97%);
  --bge-color: #767151;
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Lora', serif;

  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1124px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*For animation dark mode*/
  font-family: "Beiruti", sans-serif !important;
  display: flex;
  flex-direction: column; /* لتحديد اتجاه العناصر بشكل عمودي */
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme {
  --bg-color: hsl(220, 18%, 13%);
  --bg-color-light: hsl(220, 18%, 23%);
  --title-color: hsl(220, 8%, 95%);
  --text-color: hsl(220, 8%, 65%);
  --body-color: hsl(220, 18%, 18%);
  --container-color: hsl(220, 18%, 21%);
  --bge-color: hsl(220, 8%, 95%);
}

/*========== Button Dark/Light ==========*/
.change-theme {
  color: var(--title-color);
  font-size: 1.125rem;
  cursor: pointer;
  margin-right: 3rem;
}

/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/
.dark-theme .scroll-header{
  box-shadow: 0 2px 8px hsla(220, 18%, 8%, .3);
}

.dark-theme .nav__menu {
  background-color: var(--container-color);
}

.dark-theme .nav__menu,
.dark-theme .scrollup {
  box-shadow: 0 4px 8px hsla(220, 18%, 8%, .3);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(220, 18%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(220, 18%, 25%);
}

.dark-theme::-webkit-scrollbar:hover {
  background-color: hsl(220, 18%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: bold;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    bottom: 1.5rem;
    background-color: var(--body-color);
    box-shadow: 0 4px 12px hsla(220, 18%, 40%, .15);
    width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 1.25rem 2.8rem;
    border-radius: .5rem;
    transition: .4s; /*For animation dark mode*/
  }
  .nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav__link {
    color: var(--text-color-light);
    font-weight: var(--font-medium);
    display: grid;
    justify-items: center;
    row-gap: .25rem;
  }
  .nav__link i {
    font-size: 1.25rem;
  }
  .nav__link span {
    font-size: .688rem;
  }
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(220, 4%, 15%, .1);
}

/* Active link */
.active-link {
  color: var(--title-color);
}

/*=============== HOME ===============*/
.home {
  background-color: var(--bg-color);
  overflow: hidden;
  transition: .4s; /*For animation dark mode*/
}

.home__container {
  padding: 4rem 0 1rem;
  row-gap: 8.5rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: 400;
  color: #f8f9fa;
}

.home__description {
  color: #f8f9fa;
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  
}

.home__title,
.home__description {
  line-height: 160%;
}

.home__images {
  position: relative;
  width: 310px;
  justify-self: center;
}

.home img:nth-child(1) {
  width: 224px;
  position: absolute;
  right: -1.5rem;
  top: -9.5rem;
}

.home img:nth-child(2) {
  width: 180px;
  margin-left: .5rem;
  position: relative;
}

/*=============== BUTTON ===============*/
.button__link {
  color: #f8f9fa;
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
}

.button__link i {
  font-size: 1rem;
  transition: .3s;
}

.button__link:hover i {
  transform: translateX(.25rem);
}

/*=============== NEW ===============*/
.new__container {
  row-gap: 2.5rem;
  padding-bottom: 1.5rem;
}

.new__card {
  justify-self: center;
}

.new__img {
  width:270px;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.new__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--title-color);
  padding-right: .75rem;
}

.new__link i {
  font-size: 1.25rem;
  transition:.3s;
}

.new__title {
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}

.new__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.new__link:hover i {
  transform: translateX(.25rem);
}

/*=============== COLLECTION ===============*/
.collection {
  background-color: var(--bg-color-light);
  overflow: hidden;
  transition: .4s; /*For animation dark mode*/ 
}

.collection__container {
  position: relative;
  height: 571px;
  display: grid;
  justify-items: center;
}

.collection__title {
  font-size: var(--h1-font-size);
  margin-bottom: .75rem;
  color: #f8f9fa;
}

.collection__explore {
  display: grid;
  column-gap: 2rem;
  position: absolute;
}

.collection__explore:nth-child(2) {
  grid-template-columns: 230px max-content;
  bottom: 1rem;
  margin-right: 5rem;
}

.collection__explore:nth-child(1) {
  grid-template-columns: max-content 230px;
  top: 0;
  margin-left: 5rem;
}

.collection__data-men {
  margin-top: 2.5rem;
}

.collection__data-women {
  align-self: flex-end;
  margin-bottom: 2.5rem;
}

/*=============== PRODUCTS ===============*/
.products__container {
  padding-bottom: 5rem;
}

.products__card {
  width: 270px;
}

.products__img {
  margin-bottom: 1rem;
}

.products__title {
 font-size: var(--h3-font-size);
 margin-bottom: .75rem;
}

.products__price {
  color: var(--font-medium);
  font-weight: var(--font-medium);
}

/* Swiper class */
.swiper-button-prev::after,
.swiper-button-next::after{
  content: '';
}

.swiper-button-prev,
.swiper-button-next {
  top: initial;
  bottom: 0;
  width: initial;
  height: initial;
  font-size: 1.5rem;
  color: var(--title-color);
}

.swiper-button-prev {
  left: calc(50% - 2rem);
}

.swiper-button-next {
  right: calc(50% - 2rem);
}

/*=============== BRANDS ===============*/
.brand__container {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  column-gap: 1.25rem;
}

.brand__img {
  width: 120px;
}

.brand__img:nth-child(even) {
  margin-top: 2rem;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  display: inline-block;
  margin-bottom: .75rem;
}

.footer__content,
.footer__links {
  display: grid;
}

.footer__content {
  grid-template-columns: repeat(2, max-content);
  gap: 3.5rem 3rem;
}

.footer__title {
  margin-bottom: 1.25rem;
}

.footer__links {
  row-gap: .75rem;
}

.footer__link,
.footer__information {
  font-size: var(--small-font-size);
}

.footer__link {
  color: var(--text-color);
  transition: .3s;
}

.footer__link:hover {
  text-decoration: underline;
  color: var(--title-color);
}

.footer__social {
  display: flex;
  column-gap: .5rem;
}

.footer__social-link {
  display: inline-flex;
  color: var(--title-color);
  padding: .4rem;
  background-color: var(--container-color);
  font-size: 1.25rem;
  transition: background-color .3s;
}

.footer__social-link:hover {
  background-color: var(--bg-color-light);
}

.footer__info {
  margin-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: .75rem;
}

.footer__copy,
.footer__privacy {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(220, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(220, 8%, 64%);
  border-radius:.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(220, 8%, 54%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--container-color);
  box-shadow: 0 8px 12px hsla(220, 18%, 45%, .15);
  display: inline-flex;
  padding: .35rem;
  color: var(--title-color);
  font-size: 1.1rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 7.5rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 460px) {
  button.snack-btn {
    bottom: 9rem;
  }
}
@media screen and (max-width: 340px) {
  button.snack-btn {
    bottom: 9rem;
  }
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .footer__content {
    grid-template-columns: max-content;
    row-gap: 2rem;
  }

  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__container {
    padding: 2rem 0 1rem;
    row-gap: 6rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 248px;
  }
  .home__images img:nth-child(1) {
    width: 180px;
    top: -7rem;
  }
  .home__images img:nth-child(2) {
    width: 150px;
  }

  .new__img {
    width: 230px;
  }
  .new__link {
    padding-right: 0;
  }

  .collection__explore:nth-child(1),
  .collection__explore:nth-child(2) {
    position: initial;
    grid-template-columns: 230px;
    row-gap: 2rem;
    margin: 0;
  }
  .collection__container {
    height: initial;
    row-gap: 3rem;
  }
  .collection__data-men {
    margin-top: 0;
  }
  .collection__data-women {
    margin-bottom: 0;
  }

  .products__card {
    width: 230px;
  }
  
  .brand__container {
    grid-template-columns: repeat(2, 100px);
    row-gap: .5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 342px;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 767px) {
  .home__container,
  .new__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
  }

  .home__images {
    margin-top: 6rem;
  }

  .brand__container {
    grid-template-columns: repeat(4, max-content);
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .section {
    padding: 7rem 0 1rem;
  }
  .section__title {
    margin-bottom: 4rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__menu {
    width: initial;
    margin-left: auto;
  }
  .nav__list {
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: .3s;
  }
  .nav__link i {
    display: none;
  }
  .nav__link:hover {
    color: var(--title-color);
  }

  .active-link {
    color: var(--title-color);
    text-decoration: underline;
  }

  .change-theme {
    margin-left: 3rem;
    color: var(--text-color);
  }

  .dark-theme .nav__menu {
    background-color: transparent;
    box-shadow: none;
  }

  .products__container {
    width: 945px;
  }

  .footer__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 5.5rem;
  }
  .footer__link {
    font-size: var(--normal-font-size);
  }
  .footer__info {
    padding-bottom: 2rem;
    row-gap: 1rem;
  }
}

@media screen and (min-width: 1054px){
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1124px){
  .home__container {
    padding: 10rem 0 3rem;
    column-gap: 0;
  }
  .home__images {
    width: 500px;
    margin-top: 8rem;
    transform: translate(-1rem);
  }
  .home__images img:nth-child(1) {
    width: 345px;
    top: -14.5rem;
  }
  .home__images img:nth-child(2) {
    width: 277px;
  }

  .new__container {
    grid-template-columns: repeat(3, max-content);
    padding-bottom: 4.5rem;
    gap: 4.5rem;
  }
  .new__img {
    margin-bottom: 1.25rem;
  }
  .new__title {
    font-size: var(--h3-font-size);
  }

  .collection__container {
    height: 760px;
    margin-bottom: 2rem;
  }
  .collection__explore:nth-child(1) {
    grid-template-columns: max-content 330px;
    margin-left: 10rem;
  }
  .collection__explore:nth-child(2) {
    grid-template-columns: 330px max-content ;
    margin-right: 10rem;
  }
  .collection__explore {
    column-gap: 5rem;
  }

  .products__container {
    padding-bottom: 7rem;
  }

  .brand__container {
    column-gap: 5.5rem;
  }
  .brand__img {
    width: 140px;
  }

  .scrollup {
    right: 3rem;
  }
  .show-scroll {
    bottom: 3rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body{
    zoom: 1.3;
  }
}

/* For 4K resolutions (3840 x 2160, 4096 x 2160) */
@media screen and (min-width: 3840px) {
  body{
    zoom: 2.3;
  }
}

.review .review-slider .box h3 {
  color: #f8f9fa !important;
}
.review .review-slider .box p{
  color: #ffffff !important;
}

/* Scroll Down */
.scroll-down{
  text-align: -webkit-center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* color: #1c1460; */
}
.scrolldown {
  --color: #cecece !important;
  --sizeX: 30px;
  --sizeY: 50px;
  position: relative;
  width: var(--sizeX);
  height: var(--sizeY);
  margin-left: var(sizeX / 2);
  border: calc(var(--sizeX) / 10) solid var(--color);
  border-radius: 50px;
  box-sizing: border-box;
  margin-bottom: 16px;
  cursor: pointer;
  margin-top: -10rem;
}
.scrolldown::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--color);
  border-radius: 100%;
  animation: scrolldown-anim 2s infinite;
  box-sizing: border-box;
  box-shadow: 0px -5px 3px 1px #2a547066;
}
@keyframes scrolldown-anim {
  0% {
    opacity: 0;
    height: 6px;
  }
  40% {
    opacity: 1;
    height: 10px;
  }
  80% {
    transform: translate(0, 20px);
    height: 10px;
    opacity: 0;
  }
  100% {
    height: 3px;
    opacity: 0;
  }
}
.chevrons {
  padding: 6px 0 0 0;
  margin-left: -3px;
  margin-top: 48px;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chevrondown {
  margin-top: -6px;
  position: relative;
  border: solid var(--color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}
.chevrondown:nth-child(odd) {
  animation: pulse54012 500ms ease infinite alternate;
}
.chevrondown:nth-child(even) {
  animation: pulse54012 500ms ease infinite alternate 250ms;
}
@keyframes pulse54012 {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem; /* تقليل المسافة بين العنوان وبطاقة المنتج */
    font-weight: bold;
}

.product-card {
    background-color: var(--container-color);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    margin-bottom: 5rem;
}


.swiper-container {
    width: 100%;
    height: 300px; /* ارتفاع السلايدر */
    margin-bottom: 16px;
    position: relative;
    border-radius: 12px; /* تليين حواف السلايدر */
    overflow: hidden; /* لإخفاء الأجزاء الزائدة من الصورة */
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.swiper-slide img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out; /* تأثير التحريك */
    border-radius: 12px;
}

.swiper-slide:hover img {
    transform: scale(1.05); /* تكبير الصورة عند التمرير */
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination {
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #28a745;
    opacity: 1;
}

.product-title {
    font-size: 1.6em;
    margin: 16px 0;
}

.product-description {
    color: #555;
    margin: 8px 0;
}

.color-options {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.color-option {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: border-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    border-color: #fefefe;
}

.color-option.selected {
    border-color: #c8c0c0;
    transform: scale(1.2);
}

.product-price {
    font-size: 1.4em;
    margin: 16px 0;
}

.buy-button {
    background-color:  var(--bg-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
    font-family: "Beiruti", sans-serif !important;
}

.buy-button:hover {
    background-color: #767151b5;
}

.product-details {
    margin-top: 16px;
    text-align: left;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: 2rem !important;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    color: #767151 !important;
}

