@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  --primary: lightsalmon;
  --secondary: lightsalmon;
  --accent: lightsalmon;
  --light: #eee;
  --gray30: #b2b2b2;
  --gray70: #4d4d4d;
  --breaksm: 576px;
  --breakm: 768px;
  --breakl: 960px;
  --breakxl: 1200px;
}

.full-height {
  min-height: 50vh;
}

/* FLORART 2023 */

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

body {
  background-color: black;
  color: white;
  font-family: "Poppins",sans-serif;
}

.width-container {
  width: 90%;
  max-width: 62rem;
  margin: 0 auto;
}

.full-container {
  width: 100%;
}

header div:first-child {
  background-image: url('../images/site/hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  min-height: 10rem;
}

header > img {
  width: 10rem;
  border-radius: .5rem;
  margin: -6rem auto 0 auto;
  display: block;
}

.product-header img {
  width: 10rem;
  border-radius: .5rem;
  margin: -6rem 2rem 0 2rem;
  display: block;
}

.product-logo {
  display: flex;
}

.home-main > div {
  margin: 0 auto;
  text-align: center;
  min-height: 30rem;
}

.home-main h1 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.home-main a {
  display: block;
  color: white;
  background-color: #FF4747;
  text-decoration: none;
  padding: .75rem 0;
  font-weight: bold;
  margin: 1rem auto;
  border-radius: .5rem;
  width: 50%;
}

.home-main p {
  margin-top: 3rem;
  font-size: .75rem;
}

.product-main {
  margin-top: 1.5rem;
}

.product-main > div {
  min-height: 10rem;
  margin-bottom: 3rem;
}

.product-main h2 {
  margin: 1rem 0;
}

.product-list {
  display: flex;
  column-gap: 2rem;
  row-gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.product-card {
  width: 28rem;
  border: 2px solid white;
  border-radius: .75rem;
  display: flex;
}

.product-card img {
  object-fit: cover;
  width: 100%;
  max-width: 8rem;
  border-radius: .55rem 0 0 .55rem;
}

.product-text {
  padding: 0 1rem;
}

.product-text h3 {
  font-size: 1.1rem;
  margin: .5rem 0;
}

.product-text > p {
  font-size: .85rem;
  color: gray;
}

.product-price {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.product-price p {
  color: red;
  font-weight: bold;
}

.product-price a,
#product-cart,
#purchase-create,
#product-create,
#product-edit {
  color: white;
  background-color: #FF4747;
  font-weight: bold;
  padding: .2rem .4rem;
  border-radius: .25rem;
  border: 0;
  font-size: 1.25rem;
  text-decoration: none;
  margin-bottom: .5rem;
}

.product-show-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-show-image img {
  max-width: 25rem;
  margin: 2.5rem 0;
}

.product-show-description {
  margin: 2rem 0;
}

.product-show-price {
  font-size: 1.5rem;
  text-align: right;
}

.product-show a, .cart > div > p > a, .client-form > form > div > p > a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

footer div {
  text-align: center;
}

footer p {
  margin-top: 2rem;
  font-size: .75rem;
}

.admin-body {
  background-color: white;
  color: black;
}

.admin-main > div {
  border: 1px solid lightgray;
  border-radius: .35rem;
  padding: .75rem;
  background-color: white;
  color: black;
}

.admin-main label {
  font-size: .75rem;
}

.admin-main input, .admin-main textarea {
  padding: .3rem;
  border: 1px solid lightgray;
  border-radius: .35rem;
  margin-bottom: .5rem;
}

.admin-main textarea {
  width: 100%;
}

.category-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid lightgray;
  display: flex;
  justify-content: space-between;
}

.category-list {
  padding: .75rem;
}

.admin-card {
  display: flex;
  column-gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid lightgray;
  padding-bottom: 1rem;
}

.admin-card img {
  width: 8rem;
  height: 8rem;
}

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

@media only screen and (max-width: 400px) {
  .admin-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 12rem;
    padding-bottom: 2rem;
  }
}

/* CART */

.cart {
  min-height: 37rem;
}

.cart-item {
  display: flex;
  column-gap: 1rem;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--light);
  padding-bottom: .5rem;
  margin-bottom: 2rem;
}

.cart-item img {
  width: 3rem;
  margin-right: 2rem;
}

.cart-item button {
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem 1.2rem;
  margin-top: .5rem;
}

#cart-btn {
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .75rem 1.5rem;
  margin-top: .5rem;
  background-color: var(--light);
  color: black;
  text-decoration: none;
}

.cart-item input, .product-show-text input {
  margin-top: .8rem;
  padding: .5rem;
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  width: 5rem;
}

.cart > p {
  margin: 1rem 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
}

#delete-cart {
  background-color: red;
  color: white;
  font-size: 1.2rem;
}

.cart-finish {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.cart-finish select, .cart-finish button, #finish {
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem;
  width: 15rem;
  margin-bottom: .8rem;
}

.cart-empty {
  text-align: center;
  padding-top: 10rem;
}

.cart-link {
  text-align: right;
}

.cart-link a {
  text-decoration: none;
  color: white;
  font-size: 2rem;
}

.cart-back {
  display: flex;
  justify-content: space-between;
}

.client-form h3, .client-form h2, .cat-form h2 {
  margin: 1.5rem 0;
}

.client-form input,
.client-form select,
.client-form textarea {
  display: block;
  margin-bottom: .75rem;
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem;
}

.client-form button, .cat-form button {
  margin: 1rem 0;
}

.cat-input {
  display: flex;
  gap: 2rem;
}

.cat-form input,
.cat-form select {
  margin-bottom: .75rem;
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem;
}

.alert-success {
  width: 100%;
  background-color: lightgreen;
  border: 1px solid darkgreen;
  border-radius: .5rem;
  padding: 1rem;
  color: darkgreen;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .5rem 0;
}

.alert-success i {
  font-size: 2rem;
}

@media only screen and (max-width: 400px) {
  .admin-card {
    display: flex;
    flex-direction: column;
  }

  .admin-main input {
    width: 100%;
  }

  .category-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .home-main a {
    width: 100%;
  }

  .product-header img {
    margin: -6rem 0 0 0;
  }

  .product-logo {
    justify-content: space-around;
  }

  .client-form input,
  .client-form select,
  .client-form textarea {
    width: 100%;
  }

}

/* USER FORMS */

.user-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-form > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 5px var(--gray30);
  border-radius: .8rem;
  border: 1px solid var(--light);
  padding: 2rem;
}

.user-form form input {
  display: block;
  margin-top: .5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem;
}

.user-form form button {
  border: 1px solid var(--gray30);
  border-radius: .8rem;
  padding: .5rem 1.2rem;
  display: block;
  margin: 2rem 0;
}

.user-form h2 {
  margin-bottom: 1.5rem;
}

form p, .single-error {
  font-size: .75rem;
  color: red;
  margin-top: .5rem;
  margin-bottom: .75rem;
}