:root {
  --color1: #555555;
  --color2: #ffffff;
  --color3: #ff523b;
  --color4: #8a8a8a;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: "Poppins", sans-serif;
  max-width: 1900px;
  margin: 0 auto;
  user-select: none;
}

p {
  color: var(--color1);
  line-height: 20px;
}
a {
  text-decoration: none;
  color: var(--color1);
  /* padding: 2px; */
}
input {
  font-family: "Poppins", sans-serif;
  background-color: transparent;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 25px;
}
.row {
  display: flex;
  /* justify-content: center; */
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.col-2 {
  flex-basis: 50%;
  min-width: 300px;
}
.col-2 img {
  /* max-width: 100%; */
  width: 100%;
  padding: 50px 0;
  /* text-align: right; */
}
.col-2 h1 {
  margin: 30px 0;
  font-size: 50px;
  line-height: 60px;
}
.btn {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: var(--color2);
  background-color: var(--color3);
  display: inline-block;
  margin: 30px 0;
  border-radius: 30px;
  padding: 10px 30px;
  transition: background 0.2s;
  outline: none;
  border: none;
  cursor: pointer;
  user-select: none;
}
.sec-btn {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  background: none;
  display: inline-block;
  color: var(--color3);

  margin: 30px 0;
  border-radius: 30px;
  padding: 10px 30px;
  transition: background 0.2s;
  outline: none;
  border: 2px solid var(--color3);
  cursor: pointer;
  user-select: none;
}
.btn:hover {
  background-color: #e03124;
}
.sec-btn:hover {
  background-color: var(--color3);
  color: var(--color2);
}
.btn:active {
  transform: scale(0.99);
}
.cart-icon {
  position: relative;
  margin-right: 20px;
}
.cart-icon #cart-item-count {
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 0 5px 0 var(--color2);
  color: var(--color3);
  position: absolute;
  display: block;
  right: -6px;
  top: 20px;
  background-color: var(--color2);
  padding: 0 3px;
  /* border-radius: 50%; */
}
.product-name {
  font-weight: 600;
  text-transform: capitalize;
}

header {
  background: radial-gradient(#fff, #ffd6d6);
}
header .row {
  justify-content: center;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.2s;
  padding: 25px 30px;
}
.nav-bar.static {
  background-color: var(--color2);
  padding: 10px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 199999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
}
nav {
  flex: 1;
  text-align: right;
}
ul {
  list-style-type: none;
}
nav ul {
  transform: translateY(-10px);
}
nav ul li {
  display: inline-block;
  margin-right: 20px;
  font-weight: 400;
}
.nav-bar .cart-icon {
  /* margin-right: 25px; */
}
#menu-icon {
  display: none;
  width: 20px;
}
.hero-section {
  padding: 0 3.2rem;
}

.categories {
  margin: 50px 0;
}
.categories .row {
  justify-content: center;
}
.col-3 {
  flex-basis: 30%;
  min-width: 250px;
  margin-bottom: 50px;
  margin-right: 20px;
}
.col-3 img {
  width: 100%;
}
.small-container {
  max-width: 1080px;
  margin: auto;
  padding: 0 25px;
}
.col-4 {
  min-width: 200px;
  flex-basis: 25%;
  padding: 10px;
  margin-bottom: 50px;
  transition: transform 0.4s;
}
.col-4:hover {
  transform: translateY(-1px);
}
.col-4 img {
  /* border-radius: 20px; */
  object-fit: cover;
  width: 100%;
  height: 200px;
}

.title {
  text-align: center;
  position: relative;
  color: var(--color1);
  margin: 0 auto 70px;
  line-height: 60px;
  /* z-index: -1; */
}
.title::after {
  content: "";
  position: absolute;
  height: 5px;
  width: 80px;
  border-radius: 5px;
  background-color: var(--color3);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
h4 {
  color: var(--color1);
  font-weight: normal;
}
.col-4 h4 {
  font-size: 14px;
}
.col-4 p {
  font-size: 14px;
}
.far,
.fas {
  color: var(--color3);
}
.preloader-container {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.preloader-container .progress {
  font-weight: 500;
  color: var(--color4);
}
.product-page .pre-loader {
  margin: 100px auto;
}
.pre-loader {
  animation: rotate 1s infinite;
  height: 50px;
  width: 50px;
  margin: 0 auto;
}

.pre-loader:before,
.pre-loader:after {
  border-radius: 50%;
  content: "";
  display: block;
  height: 20px;
  width: 20px;
}
/* .pre-loader:before {
  animation: ball1 1s infinite;
  background-color: #ff583b;
  box-shadow: 30px 0 0 #998e8a;
  margin-bottom: 10px;
}
.pre-loader:after {
  animation: ball2 1s infinite;
  background-color: #ff903b;
  box-shadow: 30px 0 0 #ffc13b;
} */
.pre-loader:before {
  animation: ball1 1s infinite;
  background-color: #e0e0e0;
  /* box-shadow: 30px 0 0 rgb(0, 0, 0, 0.4); */
  margin-bottom: 10px;
}
.pre-loader:after {
  animation: ball2 1s infinite;
  background-color: #c7c7c7;
  /* box-shadow: 30px 0 0 rgb(0, 0, 0, 0.8); */
}

@keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg) scale(0.8);
    -moz-transform: rotate(0deg) scale(0.8);
  }
  50% {
    -webkit-transform: rotate(360deg) scale(1.2);
    -moz-transform: rotate(360deg) scale(1.2);
  }
  100% {
    -webkit-transform: rotate(720deg) scale(0.8);
    -moz-transform: rotate(720deg) scale(0.8);
  }
}

@keyframes ball1 {
  0% {
    box-shadow: 30px 0 0 #ababab;
  }
  50% {
    box-shadow: 0 0 0 #ababab;
    margin-bottom: 0;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #ababab;
    margin-bottom: 10px;
  }
}

@keyframes ball2 {
  0% {
    box-shadow: 30px 0 0 #969696;
  }
  50% {
    box-shadow: 0 0 0 #969696;
    margin-top: -20px;
    -webkit-transform: translate(15px, 15px);
    -moz-transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #969696;
    margin-top: 0;
  }
}

/* ------ offer ------ */

.offer {
  background: radial-gradient(#fff, #ffd6d6);
  margin-top: 80px;
  padding: 30px 0;
}
.offer .offer-img {
  padding: 50px;
}
small {
  color: var(--color1);
  display: inline-block;
  /* line-height: calc(normal + 90px); */
  /* line-height: 30px; */
}

/* -----testimonial---- */

.testimonial {
  padding-top: 100px;
}
.testimonial .row {
  justify-content: center;
}
.testimonial .col-3 {
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.4s;
}
.testimonial .col-3:hover {
  transform: translateY(-10px);
}
.testimonial .col-3 img {
  width: 50px;
  margin-top: 20px;
  border-radius: 50%;
}

.fa .fa-quote-left {
  font-size: 34px;
  color: var(--color3);
}
.col-3 p {
  font-size: 12px;
  margin: 12px 0;
  color: #777;
}
.testimonial .col-3 {
  /* font-weight: 600; */
  color: var(--color1);
  font-size: 16px;
}

/* --------brands------- */

.brands {
  margin: 100px auto;
}
.brands .row {
  justify-content: center;
}
.col-5 {
  width: 160px;
}
.col-5 img {
  width: 100%;
  cursor: pointer;
}

.footer {
  background-color: #000;
  color: var(--color4);
  font-size: 14px;
  padding: 60px 0 20px;
}
.footer p {
  color: var(--color4);
}
.footer a {
  color: var(--color4);
}
.footer h3 {
  color: var(--color2);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer .row {
  justify-content: center;
  align-items: flex-start;
}
.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-3,
.footer-col-4 {
  text-align: center;
  flex-basis: 12%;
}
.app-logo {
  margin-top: 20px;
}
.app-logo img {
  width: 140px;
}
.footer li {
  margin-bottom: 6px;
}
.footer hr {
  background-color: var(--color1);
  border: none;
  height: 1px;
  margin: 20px 0;
}
.copyright {
  text-align: center;
}

/* -------- all products page ------- */

.row-2 {
  justify-content: space-between;
  margin: 100px auto 50px;
}
.row-2 h2 {
  position: relative;
  color: var(--color1);
  margin: 0;
  line-height: 60px;
}
.row-2 h2::after {
  content: "";
  position: absolute;
  height: 5px;
  width: 80px;
  border-radius: 5px;
  background-color: var(--color3);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.product-page select {
  border: 1px solid var(--color3);
  padding: 5px;
  border-radius: 3px;
}
.product-page select:focus {
  outline: none;
}
.dropdown {
  position: relative;
  margin-top: 10px auto;
  width: 180px;
  height: 40px;
  border: 2px solid var(--color4);
  border-radius: 5px;
}
.dropdown::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color4);
  right: 20px;
  top: 15px;
  z-index: 100;
  border-top: none;
  border-left: none;
  transform: rotate(-45deg);
  transition: 0.2s;
}
.dropdown.active::before {
  transform: rotate(45deg);
}
.dropdown input {
  font-family: "Poppins", sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: var(--color2);
  border: none;
  outline: none;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); */
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
}
.dropdown .option {
  position: absolute;
  top: 70px;
  width: 100%;
  background-color: var(--color2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: 10px;
  transition: 0.4s;
  display: none;
  z-index: 1000;
}
.dropdown.active .option {
  display: block;
}
.dropdown .option div {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.dropdown .option div:hover {
  background-color: var(--color4);
  color: var(--color2);
}
.dropdown .option div i {
  position: relative;
  top: 0px;
  margin-right: 5px;
  font-size: 14px;
  color: var(--color1);
}
.dropdown .option div:hover > i {
  color: var(--color2);
}

.product-container .col-4:hover {
  box-shadow: 0 0 20px 0 rgba(75, 24, 24, 0.2);
}
.product-container .col-4 img {
  object-fit: cover;
  width: 100%;
  height: 150px;
  border-radius: 4px;
}
.cart-btn {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--color3);
  background-color: none;
  text-align: center;
  display: block;
  margin: 5px 0;
  padding: 5px 30px;
  transition: transform background 0.4s;
  outline: none;
  border: 1px solid var(--color3);
  cursor: pointer;
  border-radius: 4px;
}
.cart-btn:active {
  transform: scale(0.97);
}

.homepage-product {
  /* background-color: red; */
  position: relative;
}
.homepage-product:hover {
  box-shadow: 0 0 20px 0 rgba(75, 24, 24, 0.2);
}
.cart-btn ~ .added {
  background-color: #333;
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
}
.page-btn {
  margin: 0 auto 60px;
}
.page-btn span {
  display: inline-block;
  line-height: 40px;
  text-align: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: 1px solid var(--color3);
  cursor: pointer;
}

.page-btn span:hover {
  background-color: var(--color3);
  color: var(--color2);
}

/* ------- single-product details ---------- */

.single-product {
  margin-top: 80px;
}
.single-product .col-2 {
  padding: 20px;
}
.single-product .col-2 img {
  padding: 0px;
}
.single-product h4 {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
}
.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-radius: 3px;
  border: 1px solid var(--color3);
}
input:focus {
  outline: none;
}
textarea:focus {
  outline: none;
}
.single-product .fas {
  margin-left: 10px;
}

.small-img-row {
  display: flex;
  justify-content: space-between;
}
.small-img-col {
  cursor: pointer;
  flex-basis: 24%;
}

/* ------- cart items details ------- */

.cart-page {
  margin: 80px auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.cart-info {
  display: flex;
  flex-wrap: wrap;
}
th {
  text-align: left;
  padding: 5px;
  color: var(--color2);
  background-color: var(--color3);
  font-weight: normal;
}
td {
  padding: 10px 5px;
}
td:last-child,
th:last-child {
  text-align: right;
}
td input {
  width: 40px;
  height: 25px;
  padding: 5px;
  display: block;
  margin: 0 auto;
  outline: none;
  border: 1px solid var(--color3);
}
td a {
  font-size: 12px;
  color: var(--color3);
}
td img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 10px;
}

.total-price {
  display: flex;
  justify-content: flex-end;
}
.total-price table {
  border-top: 3px solid var(--color3);
  width: 100%;
  max-width: 400px;
}
.cart-page .row-2 {
  align-items: center;
  display: flex;
  margin: 20px 0;
}
.cart-page .row-2 .back {
  color: var(--color1);
  margin-right: 5px;
}

/* ------- account page ------- */

.account-page {
  padding: 50px 0;
  margin: 10px 0 50px 0;
  /* background: radial-gradient(#fff, #ffd6d6); */
}
.account-page .row {
  justify-content: center;
}
/* When user is logged out */

.form-container {
  background-color: var(--color2);
  box-shadow: 0 0 20px 0 rgba(61, 19, 19, 0.2);
  padding: 20px 0;
  margin: auto;
  width: 300px;
  height: 400px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.form-container #login-nav,
.form-container #register-nav {
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  color: var(--color1);
  width: 100px;
  padding: 0 10px;
}
.form-title {
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  color: var(--color1);
  width: 100px;
  padding: 0 10px;
}

.form-btn {
  display: inline-block;
}
.form-container #login-form,
.form-container #reg-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 #ccc;
}
form .btn,
form .sec-btn {
  width: 100%;
  margin: 10px 0;
}

#login-form {
  left: -300px;
}
#reg-form {
  left: 0;
}
form a {
  font-size: 12px;
  cursor: default;
}
#indicator {
  width: 100px;
  background-color: var(--color3);
  height: 3px;
  transform: translateX(100px);
  border: none;
  margin-top: 8px;
  transition: transform 1s;
}

.form-group {
  position: relative;
}
.form-group .toggle-password {
  position: absolute;
  width: 15px;
  height: 15px;
  filter: grayscale(5px);
  background-image: url(./images/show-password.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}
.forgot-password-btn {
  color: var(--color3);
  cursor: pointer;
  text-decoration: underline;
}

/* When user is logged in */
.user-profile {
  text-align: center;
  font-size: 14px;
  margin: 50px 0;
}
.user-profile-img {
  width: 100px;
  height: 100px;
  line-height: 120px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--color1);
  margin: 0 auto 25px;
}
.user-profile-img i {
  color: var(--color1);
  font-size: 50px;
}
.user-profile #fullname {
  color: var(--color3);
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}
.user-profile #email {
  color: var(--color4);
  font-size: 14px;
}

.sign-in-out {
  color: var(--color2);
  margin-left: 10px;
}
.sec-btn .sign-in-out {
  color: var(--color3);
}
.sec-btn:hover .sign-in-out {
  color: var(--color2);
}

/* -------- contact page -------- */
.contact {
  padding: 50px 20px;
  color: var(--color1);
  background: radial-gradient(#fff, #ffd6d6);
}

.smaller-container {
  text-align: center;
  max-width: 800px;
  margin: 10px auto 50px;
  padding: 0 25px;
}
.contact p {
  margin-top: 20px;
  line-height: 22px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  text-align: left;
}

.contact-row i {
  text-align: center;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: var(--color2);
  border-radius: 50%;
  margin-right: 20px;
  color: var(--color3);
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.1);
}
.contact-row div {
  flex: 1;
}
.contact-row h4 {
  color: var(--color3);
  font-weight: bold;
  font-size: 18px;
}
.contact-row p {
  color: var(--color1);
  max-width: 300px;
  font-size: 14px;
  margin-top: 10px;
}
.contact form {
  background-color: var(--color2);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 90%;
  margin: auto;
}
.contact form h2 {
  color: var(--color1);
  font-weight: lighter;
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.contact form label {
  text-align: left;
  color: var(--color1);
  font-size: 12px;
  display: block;
  margin-top: 20px;
}
.contact form input {
  margin: 5px 0;
}
#text-area {
  height: 70px;
  line-height: 170px;
}

.about {
  text-align: center;
}

.about p {
  line-height: 24px;
  margin-bottom: 30px;
  text-align: left;
  font-size: 14px;
}
.about p:nth-child(1)::first-letter {
  color: var(--color3);
  font-weight: bold;
  font-size: 40px;
}
.about .col-2 img {
  max-width: 400px;
}
/* dynamic stylings controlled by JavaScript */
.logged-in {
  display: none;
}
.pink-text {
  text-align: center;
  color: rgb(230, 22, 22);
  font-size: 11px;
  line-height: 14px;
  padding: 5px 0;
  display: none;
  background-color: rgb(248, 212, 212);
}

/* ------- admin page ------- */

.admin-page {
  /* padding: 50px 0; */
  margin: 30px 0 50px 0;
}

.admin-login-page .form-container {
  height: 300px;
  padding: 20px;
}
.admin-login-page .form-container form {
  position: static;
  margin: auto 0;
}

.close-section {
  display: none;
}
.open-section {
  display: block;
}
.modal-overlay {
  position: fixed;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  visibility: hidden;
  z-index: -10;
  display: none;
}
.modal-overlay .container {
  transform: translateY(-30px);
}
.open-modal {
  visibility: visible;
  z-index: 1000000;
  display: flex;
}

.admin-login-page .form-title {
  margin: 5px 0 50px;
  font-size: 18px;

  position: relative;
}
.admin-login-page .form-title::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100%;
  background-color: var(--color3);
  border-radius: 20px;
  height: 3px;
}

.admin-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.admin-col-4 {
  min-width: 150px;
  flex-basis: 25%;
  padding: 10px;
  margin-bottom: 50px;
  /* transition: transform 0.4s; */
}
.admin-col-4 img {
  width: 100%;
}
.admin-col-4 h4 {
  font-size: 12px;
}
.admin-col-4 p {
  font-size: 12px;
}
.admin-page .edit {
  text-align: right;
  padding: 10px 5px;
  background-color: rgb(242, 242, 242);
}
.admin-page i {
  padding: 5px;
  cursor: pointer;
}
.fa-solid {
  color: var(--color1);
}

.admin-page .add-btn i {
  color: var(--color2);
}
.admin-page .admin-log-out {
  color: var(--color4);
  margin-left: 10px;
  /* justify-items: flex-end; */
  justify-items: flex-end;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.admin-page .admin-log-out i {
  color: var(--color4);
  margin-left: 5px;
}
.admin-page .admin-log-out:hover {
  color: var(--color1);
}
.log-out-option .container {
  background-color: var(--color2);
  width: 280px;
  max-width: 300px;
  height: auto;
  position: absolute;
  padding: 0 20px;
  max-height: 220px;
}
.log-out-option .container .question {
  color: var(--color1);
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
}
.log-out-option .container .row {
  justify-content: space-around;
}
.log-out-option .container .btn {
  padding: 8px 16px;
  font-size: 12px;
}
.log-out-option .container .no-btn {
  background: none;
  font-weight: bold;
  color: var(--color3);
}

.add-form-section .container {
  background-color: var(--color2);
  width: 450px;
  height: 500px;
  padding: 20px;
  overflow-y: scroll;
  scrollbar-width: none;
  position: relative;
}
.add-form-section .container::-webkit-scrollbar {
  display: none;
}
.add-form-section .close-btn {
  color: var(--color1);
  font-size: 18px;
  padding: 3px;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* Chrome, Safari, Edge, Opera */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.add-form-section .price-input {
  -moz-appearance: textfield;
}
.add-form-section .category {
  margin: 10px 0;
  max-width: 150px;
}
.add-form-section .category .category-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color1);
  text-align: left;
}
.add-form-section .radio {
  margin-left: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color1);
  display: block;
  text-align: left;
  margin-top: 15px;
  position: relative;
}
.add-form-section .radio input[type="radio"] {
  display: none;
}
.add-form-section .radio span {
  height: 12px;
  width: 12px;
  display: block;
  position: absolute;
  top: 2px;
  left: -20px;
  border: 1px solid var(--color1);
  border-radius: 50%;
}
.add-form-section .radio span::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 70%;
  height: 70%;
  background-color: var(--color4);
  border-radius: 50%;
}
.add-form-section .radio input[type="radio"]:checked ~ span::after {
  transform: translate(-50%, -50%) scale(1);
}
.add-form-section .img-file {
  cursor: pointer;
  border-radius: 5px;
  color: var(--color2);
  font-size: 12px;
  background-color: var(--color1);
  padding: 5px 8px;
  display: inline-block;
  margin: 10px 0;
  user-select: none;
}
.add-form-section .img-file i {
  color: var(--color2);
}
.add-form-section input[type="file"] {
  display: none;
}
.add-form-section .image-preview {
  border: 2px dashed var(--color4);
  border-radius: 8px;
  padding: 5px;
  margin-top: 25px;
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color4);
  overflow: hidden;
  object-fit: cover;
  position: relative;
}
.add-form-section .image-preview span {
  font-size: 12px;
}
.image-preview.active {
  border: none;
}

.add-form-section .image-preview img {
  position: absolute;
  display: none;
  width: 100%;
  /* height: 100%; */
}

.add-form-section .image-preview .upload-icon {
  font-size: 45px;
  color: var(--color4);
  cursor: auto;
}
.add-form-section .image-preview .default-text {
  user-select: none;
}
.add-form-section .image-preview #cancel-btn {
  color: var(--color1);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 5px;
  display: none;
}
.image-preview.active #cancel-btn {
  display: block;
}
.add-form-section .file-name {
  color: var(--color1);
  font-size: 12px;
  margin: 3px 0;
}
.admin-page .form-title,
.forgot-password-form .form-title {
  text-align: left;
  margin: 5px auto 50px;
  font-size: 18px;
  position: relative;
  width: auto;
}
.admin-page .form-title::before,
.forgot-password-form .form-title::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100%;
  background-color: var(--color3);
  border-radius: 20px;
  height: 3px;
}

/* forgot password */
.forgot-password .form-container {
  margin: 30px auto;
  height: auto;
  padding: 25px;
}

/* ------- media query for menu ------ */

@media only screen and (max-width: 800px) {
  #menu-icon {
    display: inline-block;
    cursor: pointer;
    width: 19px;
    transform: translateY(-2px);
  }
  .nav-bar.static {
    padding: 10px 20px;
  }
  .nav-bar.static nav ul {
    top: 66px;
    border-radius: 0 0 20px 20px;
  }

  nav ul {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: var(--color2);
    width: 350px;
    max-height: 0px;
    text-align: center;
    overflow: hidden;
    transition: max-height 0.4s;
    z-index: 10000;
    border-radius: 20px;
    box-shadow: 0 5px 20px -2px rgb(0, 0, 0, 0.3);
    /* padding: 10px 0; */
  }
  nav ul li {
    display: block;
    margin: 18px 0;
    font-size: 14px;
  }
  nav ul li a {
    color: var(--color1);
    padding: 2px;
  }
  .cart-icon.static {
    position: fixed;
    top: 25px;
    right: 50px;
  }
}

/* ------- media query for screen size less than 600px ------ */

@media only screen and (max-width: 600px) {
  p {
    font-size: 14px;
  }
  .nav-bar {
    padding: 25px 20px;
  }
  nav ul {
    width: 250px;
  }
  .col-2 h1 {
    font-size: 40px;
    line-height: 50px;
  }
  .row {
    text-align: center;
  }
  .admin-row {
    text-align: center;
  }
  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }
  .cart-icon #cart-item-count {
    font-size: 10px;
    right: -3px;
    top: 20px;
    padding: 0 4px;
  }
  .admin-col-2,
  .admin-col-3,
  .admin-col-4 {
    flex-basis: 100%;
  }
  .admin-login-page .form-container {
    max-width: 280px;
  }
  .add-form-section .container {
    max-width: 280px;
    height: 400px;
  }
  .add-form-section .image-preview {
    margin: 25px auto 0;
  }
  .form-container {
    max-width: 300px;
  }

  .single-product .row {
    text-align: left;
  }
  .single-product .row h1 {
    /* text-align: left; */
    line-height: 30px;
    font-size: 26px;
  }
  .single-product .col-2 {
    padding: 20px 0;
  }
  .cart-info p {
    display: none;
  }
  .row-2 h2 {
    margin-bottom: 30px;
    line-height: 50px;
  }
  .smaller-container {
    padding: 0;
  }
  .contact form {
    width: 100%;
  }
  .account-page {
    padding: 25px 0;
    margin: 5px 0 25px 0;
  }
  .admin-page {
    padding: 5px 10px;
    margin: 0px 0 25px 0;
  }
  .admin-page input {
    text-align: left;
  }
  th {
    font-size: 13px;
  }
  td {
    font-size: 14px;
  }
  /* .testimonial .row {
    justify-content: center;
  } */
  .testimonial .row .col-3 {
    margin-right: 0;
  }
  footer .row {
    justify-content: center;
  }
}
