/* Start Variables */
:root {
  --main-color:  hsl(0deg 69.41% 50%);
  --transparent-color: rgb(15 116 143 / 70%);
  --section-padding: 100px;
  --main-transition: .3s;
  --main-padding-top: 60px;
  --main-padding-bottom: 60px;
}

/* End Variables */
/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  position: relative;
}

ul {
  list-style: none;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
a{
  text-decoration: none;
}
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* End Global Rules */

/* Start Whattapp */
.fixedButton {
  position: fixed;
  bottom: 0px;
  right: 10px;
  z-index: 1000;
  background-color: transparent;
}

.roundedFixedBtn {
  height: 100px;
  line-height: 80px;
  width: 60px;
  font-size: 2em;
  font-weight: bold;
  border-radius: 50%;
  color: white;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  outline: none;
}

/* end Whattapp */
/* Start To Top */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 99;
  border: none;
  outline: none;
  color: red;
  cursor: pointer;
  padding: 10px;
  font-size: 30px;
  border-radius: 4px;
}

/* End To Top */
/* End Components */
/* Start Header */
header {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 97px;
}
header .container::after {
  content: "";
  position: absolute;
  height: 1px;
  background-color: #a2a2a2;
  bottom: 0;
  width: calc(100% - 30px);
  left: 15px;
}
header .logo {
  height: 20px;

}
.search-box{
  border-radius: 20px;
  padding: 8px 10px;
  border: 0px;
  outline: 0px;
}
@media (max-width:767px) {
  .search-box{
      max-width: 180px;
  }
}
header nav {
  display: flex;
  align-items: center;
}
@media (max-width:767px) {
  header nav{
      order: 2;
  }
}
header nav .toggle-menu {
  color: white;
  font-size: 22px;
}

@media (min-width: 768px) {
  header nav .toggle-menu {
    display: none;
  }
}

header nav ul {
  display: flex;
}

@media (max-width: 767px) {
  header nav ul {
    display: none;
  }

  header nav .toggle-menu+ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(0 0 0 / 20%);
  }

  header nav ul li a {
    padding: 15px ;
  }
}

header nav ul li a {
  padding: 40px 10px;
  display: block;
  color: black;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
  position: relative;
  z-index: 2;
  font-weight: bold;
}

header nav ul li a.active,
header nav ul li a:hover {
  color: var(--main-color);
  border-bottom: 1px solid var(--main-color);
}

header nav .form {
  width: 40px;
  height: 30px;
  position: relative;
  margin-left: 30px;
  border-left: 1px solid white;
}

header nav .form i {
  color: white;
  position: absolute;
  font-size: 20px;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

/* End Header */
/* Start Articles */
.articles {
  padding-top: 150px;
  padding-bottom: 60px;
  position: relative;
  margin-top: 0px;
  background-color: rgb(230, 230, 231);
  min-height: 100vh;

}

.articles .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.articles .box {
  box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--main-transition), box-shadow var(--main-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.discount::before{
  position: absolute;
  content: "discount";
  font-size: 13px;
  rotate: 45deg;
  top: 15px;
  right: -3px;
  z-index: 10;
  color: white;
}
.discount::after{
  position: absolute;
  content: "";
  width: 100px;
  height: 25px;
  background-color: var(--main-color);
  rotate: 45deg;
  top: 14px;
  right: -32px;
  z-index: 9;
}
.articles .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.articles .box .img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.articles .box .img img {
  width: 100%;
}

.articles .box .content {
  padding: 20px;
    height: 180px;
}

.articles .box .content h3 {
  margin: 0;
  text-transform: uppercase;
}
.articles .price{
  color: var(--main-color);
}
.articles .box .content p {
  margin: 10px 0 0;
  line-height: 1.5;
  color: #777;
  font-weight: bold;
}

.articles .box .info {
  padding: 20px;
  border-top: 1px solid #e6e6e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.articles .box .info a {
  color: var(--main-color);
  font-weight: bold;
}

.articles .box .info i {
  color: var(--main-color);
}

.articles .box:hover .info i {
  animation: moving-arrow 0.6s linear infinite;
}

.articles button {
  padding: 20px;
  background-color: var(--main-color);
  color: white;
  border-radius: 3px;
  border: none;
  margin: 40px auto 0px;
  display: block;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.for-hp,
.for-printers {
  background-color: #e6e6e7;
}

/* End Articles */
/* Start Footer */

.footer{
  padding: 30px 0px;
  background-color: #191919;
}
.footer .container{
  display: flex;
  justify-content: space-between;
  direction: rtl;
}
@media (max-width:768px) {
  .footer .container{
    flex-direction: column;
    text-align: center;
  }
}
.footer .container .box img{
  width: 250px;
  padding: 20px 0px;
}

.footer .container .box .social{
  display: flex;
}
@media (max-width:768px) {
  .footer .container .box .social{
    justify-content: center;
    padding: 10px 0px;
    }
}
.footer .container .box .social li i{
  margin: 10px 0px 10px 20px;
  font-size: 30px ;
  color: #bebebe;
}

.footer .container .box .social li i:hover ,.footer .adrees .line .info-tel a:hover ,.footer .adrees .line:first-child .info:hover {
  color: var(--main-color);
}
.footer .container .box .text{
  font-size: 24px;
  max-width: 600px;
  color: #bebebe;
  line-height: 1.6;
}
.footer .adrees{
  padding:20px 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
@media (max-width : 768px) {
  .footer .adrees{
    gap: 20px;
  }
}
@media (max-width:768px) {
.footer .adrees .line{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
}
.footer .adrees .line:last-child{
  display: flex;
  align-items: center;
}
.footer .adrees .line i{
  color: var(--main-color);
  font-size: 24px;
  margin-left: 10px;
}
.footer .adrees .line .info{
color: #bebebe;
font-size: 20px;
}
@media (max-width:768px) {
.footer .adrees .line .info-tel{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
}
.footer .adrees .line .info-tel a{
  color: #bebebe;
  margin-left: 5px;
}
/* End Footer */
/* Start Animation */
@keyframes up-and-down {

  0%,
  100% {
    top: 0;
  }

  50% {
    top: -50px;
  }
}

@keyframes bouncing {

  0%,
  10%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40%,
  60% {
    transform: translateY(-15px);
  }
}

@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }

  100% {
    left: 0;
    border-radius: 0;
    width: 51%;
    height: 100%;
  }
}

@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }

  100% {
    right: 0;
    border-radius: 0;
    width: 51%;
    height: 100%;
  }
}

@keyframes moving-arrow {
  100% {
    transform: translateX(10px);
  }
}

@keyframes flashing {

  0%,
  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}

@keyframes change-background {

  0%,
  100% {
    background-image: url("../imgs/discount-background1.jpg");
  }

  50% {
    background-image: url("../imgs/discount-background2.jpg");
  }
}

/* End Animation */