/* global */
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
/* navbar */
.logo {
  width: 110px;
}

.navbar {
  display: flex;
  align-items: center;
  padding: 20px;
}

nav {
  flex: 1;
  text-align: right;
}

nav ul {
  display: inline-block;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

a {
  color: #ff0000;
  font-size: 1.2rem;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 25px;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
}

.col-2 {
  flex-basis: 50%;
  min-width: 300px;
}

.col-2 img {
  max-width: 100%;
  padding: 50px 0;
}

.col-2 h1 {
  font-size: 3.5rem;
  line-height: 3.8rem;
  margin: 25px 0;
}

p {
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: #c70c15;
  color: #fff;
  padding: 8px 30px;
  border-radius: 25px;
  margin: 30px 0;
  letter-spacing: 2px;
  transition: background 0.5s;
}

.header .row {
  margin-top: 2rem;
}

.fa-shopping-cart {
  color: #ff0000;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn:hover {
  background: #17cece;
}

.categories {
  margin: 4.5rem 0;
}

.col-3 {
  flex-basis: 30%;
  min-width: 250px;
  margin-bottom: 2rem;
}

.col-3 img {
  width: 100%;
}

.small-container {
  max-width: 1080px;
  margin: auto;
  padding: 0 25px;
}
.small-container h4,
p,
.rating {
  padding-left: 30px;
}
.col-4 {
  flex-basis: 25%;
  padding: 10px;
  min-width: 200px;
  margin-bottom: 50px;
  transition: transform 0.5s;
}

.col-4 img {
  width: 100%;
}
.title {
  text-align: center;
  margin: 0 auto 80px;
  position: relative;
  line-height: 4rem;
  color: #ff0000;
  font-size: 2.5rem;
}

h4 {
  color: #c70c15;
  font-weight: normal;
}

.col-4 p {
  font-size: 1rem;
}

.rating {
  color: #17cece;
}

.col-4:hover {
  transform: translateY(-5px);
}
/* offer */
.offer {
  margin-top: 2rem;
  padding: 30px 0;
}

.offer-img {
  width: 100%;
  padding: 5rem;
}

.col-2 small {
  color: #c70c15;
}

/* testimonial  */

.testimonial {
  padding-top: 3rem;
}

.testimonial .col-3 {
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.5s;
}

.testimonial .col-3 img {
  width: 50px;
  margin-top: 20px;
  border-radius: 30%;
}

.testimonial .col-3:hover {
  transform: translateY(-10px);
}
.fa-quote-left {
  color: #17cece;
  font-size: 2rem;
}

.col-3 p {
  font-size: 15px;
  margin: 12px 0;
  color: #5d6161;
}

.testimonial .col-3 h3 {
  font-weight: 600;
  color: #c70c15;
  font-size: 18px;
}

/* brands */
.brands {
  margin: 6rem auto;
}

.col-5 {
  width: 10rem;
}
.brands img {
  width: 100%;
  cursor: pointer;
  filter: grayscale(70%);
}

.brands img:hover {
  filter: grayscale(0);
}

/* footer */

.footer {
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  padding: 60px 0 20px;
  bottom: 0;
  margin-bottom: 0;
}
.footer p {
  font-size: 15px;
  color: #cde2e2;
}

.footer h3 {
  margin-bottom: 5px;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-col-1 {
  flex-basis: 30%;
}
.footer-col-2 {
  flex: 1;
  text-align: center;
}
.footer-col-2 img {
  width: 180px;
  margin-bottom: 20px;
}
/* .footer-col-2 p {
  margin-top: 30px;
} */

.footer-col-3,
.footer-col-4 {
  flex-basis: 12%;
  text-align: center;
}

.app-logo {
  margin-top: 20px;
}
.app-logo img {
  width: 140px;
}

.fa-bars {
  margin-left: 20px;
  color: #ff0000;
  width: 28px;
  font-size: 1.5rem;
  display: none;
}

/* media query for menu */

@media screen and (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    background: #5d6161;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.5s;
  }
  nav ul li {
    display: block;
    margin-right: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  nav ul li a {
    color: #fff;
  }
  .fa-bars {
    display: block;
    cursor: pointer;
  }
}

/* All prouducts */
.row-2 {
  justify-content: space-between;
  margin: 100px auto 50px;
}

select {
  border: 2px solid #c70c15;
  padding: 5px;
  border-radius: 4px;
}

select:focus {
  outline: none;
}

.page-btn {
  margin: 0 auto 80px;
}

.page-btn span {
  display: inline-block;
  border: 1px solid #c70c15;
  margin-left: 20px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}

.page-btn span:hover {
  background-color: #c70c15;
  color: #fff;
}

/* --- single product details --- */
.product-image {
  width: 100%;
}

.single-product {
  margin-top: 80px;
}

.single-product .col-2 img {
  padding: 0;
}
.single-product .col-2 {
  padding: 20px;
}
.single-product p {
  padding-left: 0;
}

.single-product h4 {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
  padding-left: 0;
}

.single-product select {
  display: block;
  padding: 10px;
  margin-top: 20px;
}
.single-product input {
  width: 50px;
  height: 40px;
  padding-left: 10px;
  font-size: 20px;
  margin-right: 10px;
  border: 2px solid #c70c15;
}
input:focus {
  outline: none;
}
.single-product .fa-indent {
  color: #c70c15;
  margin-left: 10px;
}

.small-img-row {
  display: flex;
  justify-content: space-between;
}
.small-img-col {
  flex-basis: 24%;
  cursor: pointer;
}
/* cart items details */
.cart-page {
  margin: 80px 100px;
}
table {
  width: 100%;
  border-collapse: collapse;
}

.cart-info {
  display: flex;
  flex-wrap: wrap;
}
.cart-info p {
  padding: 0;
}
th {
  text-align: left;
  padding: 5px;
  color: #fff;
  background: #c70c15;
  font-weight: normal;
}
td {
  padding: 10px 5px;
}
td input {
  width: 40px;
  height: 30px;
  padding: 5px;
}

td a {
  color: #c70c15;
  font-size: 12px;
}

td img {
  width: 100px;
  height: 80px;
  margin-right: 10px;
}
.total-price {
  display: flex;
  justify-content: flex-end;
}

.total-price table {
  border-top: 3px solid #c70c15;
  width: 100%;
  max-width: 350px;
}

td:last-child {
  text-align: right;
}

th:last-child {
  text-align: right;
}
/* account page */
.account-page {
  padding: 50px 0;
}

.form-container {
  background: #fff;
  width: 300px;
  height: 400px;
  position: relative;
  text-align: center;
  padding: 20px 0;
  margin: auto;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.form-container span {
  font-weight: bold;
  padding: 0 10px;
  color: #5d6161;
  width: 100px;
  display: inline-block;
  cursor: pointer;
}

.form-btn {
  display: inline-block;
}

.form-container form {
  max-width: 300px;
  padding: 0 20px;
  position: absolute;
  top: 130px;
  transition: transform 1s;
}
form input {
  width: 100%;
  height: 30px;
  margin: 10px 0;
  padding: 0 10px;
  border: 1px solid #5d6161;
}
form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin: 10px 0;
}
form .btn:focus {
  outline: none;
}

#login-form {
  left: -300px;
}

#register-form {
  left: 0;
}

form a {
  font-size: 12px;
}

#indicator {
  width: 100px;
  border: none;
  background: #17cece;
  height: 3px;
  margin-top: 8px;
  transform: translateX(100px);
  transition: transform 1s;
}

/* media query for less than 700 screen size */
@media screen and (max-width: 700px) {
  .row {
    text-align: center;
  }
  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }
  .single-product .row {
    text-align: left;
  }
  .single-product .col-2 {
    padding: 20px 0;
  }
  .single-product h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .cart-info p {
    display: none;
  }
  .logo {
    padding: 0%;
  }
}
