:root {
   --primary: #3734A9;
   --secondary: #002A48;
   --body-bg: #fff;
   --text: #333;
   --gray: #f8f8f8;
   --text-gray: #666;
}

.dark-mode {
   --body-bg: #161529;
   --text-color: #e0e0e0;
   --gray: #2c273a;
   --text: #fff;
   --primary: #d0aff8;
   --text-gray: #cccccc;
   --secondary: #8567e9;
}

*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

* {
   font-family: "Jost", sans-serif;
}

.main-font {
   font-family: "Jost", sans-serif;
   font-optical-sizing: auto;
   font-weight: 400;
   font-style: normal;
}

body {
   background: var(--body-bg);
   color: var(--text);
}

section {
   padding: 4rem 0;
}

button,
a {
   cursor: pointer;
}


.shadow {
   box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.gradient-bg {
   background: linear-gradient(135deg, var(--primary), #5F5DC2, var(--secondary));
}

.no-scroll{
   overflow: hidden;
}

.overlay, .cart-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 4;
   display: none;
   backdrop-filter: blur(5px);
}

.cart-overlay {
   z-index: 10;
}

.overlay.active, .cart-overlay.active {
   display: block;
}


/* container */
.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 1rem;
   box-sizing: border-box;
}

@media (max-width: 768px) {
   .container {
      padding: 0 0.75rem;
   }
}

@media (max-width: 480px) {
   .container {
      padding: 0 0.5rem;
   }
}

/* container */

/* navbar Mohamed */
header {
   background-color: #c9e7f2;
}

nav{
   position: fixed;
   top: 0;
   right: 0;
   width: 100%;
   transition: all 0.1s;
   z-index: 5;
   
}

.sticky {
   background-color: rgba(255, 255, 255, 0.8);
   box-shadow: 0px 0px 14px 0px #0000001b;
   backdrop-filter: blur(5px);
}

.dark-mode .sticky {
   background-color: rgba(22, 21, 41, 0.8);
   box-shadow: 0px 0px 14px 0px #0000001b;
}

.nav-header {
   display: flex;
   justify-content: space-between;
   align-self: center;
   padding: 20px 0px;
   position: relative;
}

.nav-header::after {
   content: "";
   position: absolute;
   width: 100%;
   height: 1px;
   background-color: var(--body-bg);
   bottom: 0;
   transition: all 0.4s;
}

.nav-logo,
.nav-buttons {
   display: flex;
   align-items: center;
   gap: 0.725rem;
}
.nav-buttons button {
   padding: 0.5rem 0.7rem;
   border-radius: 0.5rem;
   border: none;
   color: var(--primary);
   background: var(--gray);
}

.sticky>.container>.nav-header::after {
   height: 0px;
}

.nav-img-logo {
   width: 1.875rem;
}

.nav-text-logo {
   font-size: 1rem;
   color: var(--primary);
}

.nav-links>ul {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 2rem;
}

.nav-links>ul>li {
   list-style: none;
   margin-top: 4px;
}

.nav-links>ul>li>a {
   text-decoration: none;
   color: var(--text-gray);
   position: relative;
   transition: all 0.4s;
}

.nav-links>ul>li:hover a {
   color: #000;
}

.nav-links>ul>li>a::after {
   content: "";
   position: absolute;
   left: 0;
   width: 0;
   height: 2px;
   background-color: var(--primary);
   bottom: -3px;
   transition: all 0.4s;
}

.nav-links>ul>li:hover>a::after {
   width: 100%;
   cursor: pointer;
}

.btn-cart {
   cursor: pointer;
}

.nav-links-button {
   display: flex;
   justify-content: center;
   align-items: center;
}

.btn-cart>span {
   color: var(--primary);
   font-size: 0.875rem;
   font-weight: 400;
}

.nav-buttons>.btn-getStarted>.btn {
   background-color: var(--primary);
   padding: 0.5rem 1rem;
   border-radius: 0.5rem;
   border: 1px solid var(--primary);
   color: var(--body-bg);
   cursor: pointer;
}

.drop-logo {
   display: none;
}

.nav-dropdown {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   height: 0;
   overflow: hidden;
   transition: all 0.5s;
   background-color:var(--body-bg);
}

.open {
   height: 240px;
}

.footer {
   height: 1000px;
   background-color: #000;
}

@media (max-width: 768px) {
   .display-none {
      display: none;
   }

   .nav-dropdown {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 20px;
   }

   .drop-logo {
      display: block;
   }

   .nav-links>ul {
      flex-direction: column;
      gap: 20px;
   }
}

/* navbar Mohamed */
/* cart aside Mostafa */
.cart {
   position: fixed;
   z-index: 11;
   width: 390px;
   max-width: calc(100% - 50px);
   height: 100vh;
   top: 0;
   right: -400px;
   background-color: #ffffffdc;
   padding-left: 50px;
   padding-right: 30px;
   transition: all 0.5s;
   scrollbar-color: #5d5d5d50 #ffffff00;
}
.dark-mode .cart {
   background-color: #0d0d0fd0;
}

.cart-head {
   height: 15%;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.cart-head i {
   cursor: pointer;
   transition: all 0.4s;
}

.cart-head i:hover {
   box-shadow: #ffffff8f 2px 2px 3px;
   color: #387CE1;
}

.cart-content {
   display: flex;
   flex-direction: column;
   height: 72%;
   justify-content: space-between;
   align-items: center;
}

.cart-products {
   flex-grow: 1;
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   overflow: hidden scroll;
   gap: 1rem;
}


.cart-price {
   margin-bottom: 6%;
}

.cart-btns button {
   border-radius: 0.5rem;
   background-color: var(--text-gray);
   padding: 0.5rem 2rem;
   color: var(--body-bg);
   border: 0;
   outline: 0;
   cursor: pointer;
   transition: all 0.4s;
}

.cart-products>div {
   width: 100%;
   display: flex;
   gap: 1rem;
   align-items: center;

}

.cart-products .product-details {
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   justify-content: space-evenly;
   /* margin-left: 15px; */
}

.cart-products .product-name {
   font-size: .9rem;
   font-weight: bold;
}

.cart-products .qty-price {
   font-size: .9rem;
   color: var(--text-gray);
}

.cart .product-img {
   width: 4rem;
   height: 5rem;
   position: relative;
   background-size: cover;
   background-position: center;
   border-radius: 0.5rem;
   overflow: hidden;
}
.cart .product-img img {
   width: 100%;
   height: 100%;
   object-fit: cover;

}

.cart .product-img:hover::after {
   transition: all 0.4s;
   content: "X";
   position: absolute;
   top: 0;
   left: 0;
   color: #ffffff;
   width: 100%;
   height: 100%;
   justify-content: center;
   align-items: center;
   display: flex;
   background-color: #00000041;
   border-radius: inherit;
   cursor: pointer;
}

.cart::before {
   content: url("../images/Vector\ 333.png");
   /* content: url(../imgs/Vector\ 333.png); */
   position: absolute;
   top: -16px;
   left: 0;
   z-index: -3;
   opacity: 50%;
}


.cart-counter {
   display: flex;
   width: 4rem;
   height: 1.36rem;
   /* margin-right: 1.825rem; */

}


.cart-counter input {
   width: 40%;
   margin: 0 .125rem;
   border: 0;
   outline: 0;
   border-radius: .325rem;
   background-color: transparent;
   text-align: center;
   color: var(--text-color);
}

.cart-counter button {
   width: 30%;
   border-radius: .325rem;
   background-color: #387CE1;
   color: #ffffff;
   border: 0;
   outline: 0;
   cursor: pointer;
   transition: all 0.4s;
   opacity: 30%;
}

.cart-counter button:hover {
   opacity: 90%;
}

/* cart aside Mostafa */

/* products section */
.products-section h2 {
   text-align: center;
   font-size: 2rem;
   margin-bottom: 1rem;
}

.products-section p {
   text-align: center;
   color: #5c5c5c;
   max-width: 600px;
   margin: 0 auto 2rem;
}
.dark-mode .products-section p {
   color: #cbcbcb;
}

.products-section a {
   display: block;
   color: var(--body-bg);
   background: var(--primary);
   text-decoration: none;
   border-radius: 0.5rem;
   padding: 0.5rem 2rem;
   width: fit-content;
   margin: 4rem auto;
   transition: 0.3s;
}

.products-section a:hover {
   scale: 1.1;
}

.products-layout {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
}

.products-layout .card {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   padding: 0.5rem;
   border-radius: 1rem;
   background: var(--gray);
}

.products-layout .card img {
   max-width: 100%;
   aspect-ratio: 5/6;
   object-fit: cover;
   border-radius: 0.7rem;

   box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
   /*  */
}

.products-layout .card .price {
   font-weight: bold;
}

.products-layout .card .category {
   font-size: 12px;
   color: #5c5c5c;
}
.dark-mode .products-layout .card .category {
   color: #cbcbcb;
}

.products-layout .card .btns {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-top: auto;
}

.products-layout .card .btns button {
   padding: 0.5rem 1rem;
   border-radius: 0.7rem;
   border: none;
   background: var(--primary);
   color: var(--body-bg);
   flex-grow: 1;
}

.products-layout .card .btns button:first-child {
   background: transparent;
   color: var(--primary);
   border: 1px solid var(--primary);
}

.products-layout .card .btns button:hover {
   opacity: 0.8;
}

.products-layout .products-loading {
   grid-column: 1/5;
   font-size: larger;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 400px;
}

@media (max-width: 1200px) {
   .products-layout {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
   }
}

@media (max-width: 768px) {
   .products-layout {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
   }
   .bannar{
      display: none;
   }
}

/* products section Mahmoud */


/* Mohamed */
/*-----newsletter-----*/
.newsletter {
   margin: 0 10rem;
   padding: 2rem;
   background-color: var(--primary);
   border-radius: 1rem;
}

.newsletter>h3 {
   text-align: center;
   color: var(--body-bg);
   margin-bottom: 2rem;
}

.newsletter-container {
   padding: 1rem;
   margin: 1rem 3rem;
   background-color: var(--body-bg);
   border-radius: 10px;
   display: flex;
   gap: 1rem;
   align-items: center;
}

.newsletter-container>input {
   padding: 0.4rem;
   border: 1px solid var(--primary);
   border-radius: 0.5rem;
   flex-grow: 1;
   background: var(--gray);
}

:focus-visible {
   outline: none;
}

.newsletter-btn {
   padding: 0.5rem 1.5rem;
   border-radius: 0.5rem;
   border: none;
   background-color: var(--primary);
   color: var(--body-bg);
   cursor: pointer;
   font-size: 0.7rem;
}

.newsletter-btn>i {
   font-size: 0.7rem;
}

/*-----Footer------*/

.footer-body {
   display: flex;
   justify-content: space-around;
   align-items: center;
   padding: 2.5rem 3rem;
   margin-top: 1rem;
   border-radius: 10px;
   position: relative;
   color: var(--text-gray);
}

.footer-body::after {
   position: absolute;
   content: "";
   right: 0;
   border-radius: 30px;
   top: -10px;
   width: 100%;
   height: 2px;
   background-color: var(--primary);
}

.logo-container {
   display: flex;
   align-items: center;
   gap: 10px;
}

.logo-container>img {
   width: 30px;
}
.dark-mode .logo-container>img {
   filter: invert(99%) sepia(1%) saturate(0%) hue-rotate(134deg) brightness(102%) contrast(102%);
}

.logo-container>h3 {
   font-size: 0.938rem;
   color: #000;
}

.dark-mode .logo-container>h3 {
   font-size: 0.938rem;
   color: white;
}

/* .footer-text>.text {
   color: var(--secondary-color);
} */

.footer-text .copyright {
   font-size: 0.813rem;
}

.about-footer>ul>li {
   list-style: none;
}

.about-footer>ul>li>a {
   text-decoration: none;
   color: var(--text-gray);
}

.footer-body>.row2 {
   display: flex;
   justify-content: space-between;
   align-items: start;
   gap: 3rem;
}

.social h4 {
   color: #000;
   margin: 1rem 0;
}

.dark-mode .social h4 {
   color: white;
}

.social .links{
   display: flex;
   gap: 1rem;
   align-items: center;
}

.social .links a {
   text-decoration: none;
   color: var(--secondary-color);
   border-radius: 0.5rem;
   background: var(--gray);
   padding: 0.5rem 0.7rem;
   transition: 0.3s;
}
.social .links a:hover {
   background: var(--primary);
   color: #fff;
}

@media (max-width: 992px) {

   .newsletter {
      margin: 2rem;
   }

   .newsletter-container {
      margin: 1rem 0;
   }
}

@media (max-width: 768px) {
   .container {
      padding: 0 0.75rem;
   }

   .footer-body {
      flex-direction: column;
      gap: 2rem;
      align-items: start;
   }

   .row1 {
      width: 70%;
   }

   .row2 {
      width: 70%;
   }

   .slider-content {
      width: 45%;
   }

   .testimonials-slider {
      min-height: 18rem;
   }

   .question-container {
      flex-direction: column;
   }

   .question-row1 {
      width: 100%;
   }

   .moreQuestions {
      width: 100%;
   }

   .newsletter {
      margin: 0;
   }

   .newsletter-container {
      margin: 1rem 0;
   }

   .newsletter-container>input {
      width: 65%;
   }

   .newsletter-btn {
      width: 33%;
   }
}

@media (max-width: 480px) {
   .container {
      padding: 0 0.5rem;
   }

   .footer-body {
      padding: 2.5rem 15px;
   }

   .row1 {
      width: 100%;
   }

   .row2 {
      width: 100%;
   }

   .slider-content {
      width: 90%;
   }

   .question-container {
      flex-direction: column;
   }

   .question-row1 {
      width: 100%;
   }

   .moreQuestions {
      width: 100%;
   }
}
/* Mohamed */

