* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
}

body {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

header {
  position: sticky;
  top: 0px;
  z-index: 900;
  padding-bottom: 20px;
  backdrop-filter: brightness(0.4);
  padding: 20px 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  align-items: center;
  margin-bottom: 0;
}

nav ul#user_info {
  display: none;
}

a#user {
  color: white;
  text-decoration: none;
}

a#logOut {
  color: white;
  text-decoration: none;
}

.logo-img {
  height: 5rem;
  width: auto;
  display: block;
  text-align: center;
  width: 8rem;
}

.brand {
  display: inline-block;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  transition: all 0.3s ease;
}

.brand:hover {
  color: #52057b;
  text-decoration: none;
  opacity: 0.8;
  font-size: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.logo-img:hover {
  -webkit-animation: blink-1 0.6s both;
  animation: blink-1 0.6s both;
}

@-webkit-keyframes blink-1 {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

ul#user_info {
  list-style: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Oswald", sans-serif;
  font-weight: 400;

  text-decoration: none;
  gap: 10px;
}

.user_info_li {
  background-color: #52057b;
  border-radius: 5px;
  padding: 4px;
}

.user_info_li:hover {
  background-color: #ffffff;
  opacity: 0.8;
}

ul#user_info a {
  color: #fff;
  text-decoration: none;
  padding: 5px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.6s ease;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
}

ul#user_info a:hover {
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.3s ease;
  color: #52057b;
}

nav li a {
  display: block;
  color: aliceblue;
  text-decoration: none;
  margin: 0 5px;
  padding: 5px;
  background-color: #52057b;
  border-radius: 5px;
  transition: all 0.4s ease;
}

nav li a:hover {
  background-color: #ffffff;
  opacity: 0.9;
  color: #000;
}

ul#user_info li {
  position: relative;
  margin-right: 10px;
}

.badge {
  position: absolute;
  top: -7px;
  right: -10px;
  background-color: #52057b;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 15px;
  width: 20px;
  height: 20px;
  display: none;
}

#user_info .cats-products {
  z-index: 22138;
  position: absolute;
  bottom: auto;
  width: 200px;
  transform: translate(-50%, 0);
  background-color: #666666;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: none;
  top: 100%;
  margin-top: 6px;
}

#user_info .cats-products a {
  color: #52057b;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-top: 5px;
  background-color: #ffffff;
  padding: 5px;
  border-radius: 5px;
}

/**********form**************/

.section-form {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.section-form h2 {
  font-size: 50px;
  letter-spacing: 2px;
  color: #52057b;
  margin: 10px 0;
}

.section-form form {
  background-color: #fff;

  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section-form form input {
  width: 100%;
  height: 40px;
  margin: 10px 0;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  outline: 0;
}

.section-form form input[type="submit"] {
  background-color: #52057b;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}

.section-form form input[type="submit"]:hover {
  opacity: 0.8;
  background-color: #632386;
}

/***********Product***********/

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

img {
  height: 200px;
  object-fit: contain;
}

.img-fluid {
  max-width: 100%;
  max-height: 245px;
  height: 257px;
  width: 100%;
  object-fit: scale-down;
}

.cats-products p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px 0;
}

.mt-2 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .col-md-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    max-height: 410px;
  }
}

#cart-btn {
  font-weight: bold;
}

.product-card button {
  background-color: #52057b;
  border-color: #52057b;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card img {
  height: 200px;
  object-fit: contain;
}

.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  flex: 2;
}

.actions .btn-heart {
  flex: 1;
  background-color: transparent;
}

.btn-heart {
  border-radius: 0.375rem;
  transition: 0.3s;
}

.col-md-3 {
  margin: 10px 0;
}

.btn-success:hover {
  color: #fff;
  background-color: #59525e;
  border-color: #59525e;
}

.btn-outline-danger:hover {
  color: #080808;
  border-color: #000000;
}

@media (max-width: 768px) {
  .col-md-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    max-height: 410px;
  }

  section.section-form {
    width: 95%;
  }
}