@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

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

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

/* PETMARKET 2023 */

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

body {
  font-family: "Playfair Display",sans-serif;
  font-style: normal;
}

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

.full-container {
  width: 100%;
}

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

.hero > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero h1 {
  font-size: 48px;
  color: white;
}

.hero h2 {
  font-size: 36px;
  color: white;
}

/* HEADER Y NAV */

header {
  background-color: var(--primary);
}

header img {
  max-height: 100px;
  background-color: rgba(255, 255, 255, .5);
  border-radius: 5px;
}

header > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0.5rem;
}

header ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

header li {
  margin: 0 1rem;
  padding: 1rem;
}

header li > a {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary);
  font-size: 1.15rem;
}

header li > a:hover {
  border-bottom: 0.25rem solid var(--secondary);
  font-weight: bold;
}

header li > .active-lnk {
  color: var(--primary);
}

header img {
  margin: 0.5rem 0;
  max-width: 15rem;
}

.logout-btn {
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: 3px;
  padding: .5rem;
}

@media only screen and (max-width: 1000px) {
  header > div {
    flex-direction: column;
    justify-content: center;
  }
}/*750px*/

@media only screen and (max-width: 710px) {
  header > div {
    flex-direction: row;
    justify-content: space-between;
  }

  header ul {
    flex-direction: column;
    text-align: center;
  }

  header li {
    padding: 0.5rem;
  }

  header {
    padding: 1rem 0;
  }
}/*555px*/

@media only screen and (max-width: 400px) {
  header > div {
    flex-direction: column;
    justify-content: center;
  }

  header {
    padding: 1.25rem 0;
  }
}/*325px*/

/* FOOTER */

footer {
  background-color: var(--secondary);/*#e16c24*/
  color: white;
}

footer > div {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 14rem;
}

footer > div > div {
  /*width: 10rem;*/
  text-align: center;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0 1rem;
  padding: 1rem;
}

footer li > a {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

footer li > a:hover {
  border-bottom: 0.25rem solid var(--gray70);
  font-weight: bold;
}

.social-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.footer-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.social-media a {
  color: white;
  text-decoration: none;
}

.footer-logo {
  text-align: center;
  /*padding: 0 1rem;*/
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.footer-logo img {
  max-height: 15rem;
  background-color: rgba(255, 255, 255, .45);
  border-radius: 1rem;
  margin: 1rem 0;
}

.footer-map {
  flex-grow: 2;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media only screen and (min-width: 645px) and (max-width: 970px) {
  .footer-map {
    flex: 2 0 auto;
  }
  footer > div > div {
    margin-top: 1rem;
  }
}

@media only screen and (max-width: 644px) {
  footer > div {
    flex-direction: column;
    align-items: center;
  }

  footer > div > div {
    width: 100%;
    margin: 1rem 0;
  }

  .social-media p {
    margin: .125rem 0;
  }

.footer-map {
  flex-grow: 1;
}

}

.wa-wrapper {
  position: fixed;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, .75);
  border-radius: 1rem;
}

.wa-wrapper p {
  position: relative;
  color: var(--primary);
  left: 15px;
  margin-bottom: 10px;
}

.wa-wrapper a {
  text-decoration: none;
}

.wa-logo {
  max-height: 150px;
}

@media only screen and (max-width: 550px) {
  .wa-logo {
    max-height: 100px;
  }

  .wa-wrapper p {
    left: 5px;
  }
}

/* COMPROMISOS */

.last-home {
  margin-bottom: 5rem;
}

.last-home h2, .exams-home h2 {
  margin-top: 5rem;
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gray30);
  padding-bottom: 2rem;
}

.last-home > div > div {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.last-home > div > div > div {
  width: 30%;
  min-width: 300px;
  text-align: justify;
}

.last-home > div > div h3 {
  margin: 1rem 0;
}

.last-home > div > div p {
  margin-bottom: 1rem;
}

.last-home > div > div i {
  text-align: center;
  font-size: 5rem;
  color: var(--primary);
}

.last-home img, .product-card img {
  width: 90%;
  max-height: 16rem;
  text-align: center;
}

@media only screen and (max-width: 665px) {
  .last-home > div > div {
    margin-bottom: 3rem;
  }
}

/* EXAMS */

.exams-home > div {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.exams-home > div > div {
  width: 30%;
  min-width: 300px;
  text-align: center;
  box-shadow: 5px 5px 5px var(--gray30);
  border-radius: .3rem;
  border: 1px solid var(--light);
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.exams-home > div > div h3 {
  margin: 1rem 0;
}

.exams-home > div > div p {
  text-align: justify;
  padding: 0 .75rem;
}

.exams-home > div > div i {
  text-align: center;
  font-size: 5rem;
  color: var(--secondary);
}

.exams-home img {
  max-height: 5rem;
}

.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-bottom: 3rem;
}

.home-main a {
  display: block;
  color: var(--light);
  background-color: var(--secondary);
  font-size: 20px;
  text-decoration: none;
  padding: .75rem 1rem;
  font-weight: bold;
  margin: 2rem auto;
  border-radius: .5rem;
  width: 250px;
}

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

.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.5rem;
  margin: .5rem 0;
}

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

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

.product-price p {
  color: blue;
  font-weight: bold;
  font-size: 1.5rem;
}

.product-price a,
#product-cart,
#purchase-create,
#product-create,
#product-edit {
  color: white;
  background-color: blue;
  font-weight: bold;
  padding: .5rem .8rem;
  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: .75rem;
  font-size: 1rem;
}

.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 h2 {
  margin-bottom: 30px;
}

.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;
  font-size: 1.25rem;
}

.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;
}