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

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

:root {
   --blue: #026cb6;
   --light-blue: #bfdaed;
   --dark: #171717;
   --grey: #707070;
   --grey-light: #eeeeee;
}

img {
   width: 100%;
   border-radius: 5px;
}

body {
   width: 100%;
   height: 100vh;
   display: flex;
   justify-content: center;
   align-items: center;
}

body,
input,
button {
   font-family: 'Poppins', sans-serif;
}

.box {
   width: min(900px, 90%);
   height: 500px;
   background-color: rgb(255, 255, 255);
   box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2);
   border-radius: 10px;
   display: grid;
   grid-template-columns: 1fr 1fr;
}

.left {
   background-color: var(--grey-light);
}

.product {
   padding: 1rem 1rem;
   display: flex;

   flex-direction: column;
   justify-content: space-evenly;
   height: 100%;
}

.container {
   display: flex;
   justify-content: space-between;
   gap: 1rem;
}

.container img {
   cursor: pointer;
   width: 100%;
}

.expandedImg {
   position: relative;
}

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

.imgArea img {
   width: min(350px, 100%);
}

.prevNextBtn {
   width: 100%;
   position: absolute;
   top: 50%;
   display: flex;
   justify-content: space-between;
   transform: translateY(-50%);
   padding: 0.5rem;
}

.prev,
.next {
   opacity: 0.5;
   cursor: pointer;
   padding: 1rem;
   background-color: var(--grey);
   color: white;
}

/* DESCRIPTION*/

.selectedField {
   margin-bottom: 1rem;
}

.right {
   display: flex;
   flex-direction: column;
   color: var(--grey);
   overflow-y: auto;
   padding: 1rem 0;
}

.info {
   padding: 1rem;
}

.breadcrumb {
   font-size: 0.825rem;
   margin-bottom: 1rem;
   list-style: none;
}

.breadcrumb li {
   display: inline;
}

.breadcrumb li + li:before {
   content: '/\00a0';
}

.breadcrumb li a {
   color: #0275d8;
   text-decoration: none;
}

.category {
   text-transform: uppercase;
   font-weight: bold;
   margin-bottom: 0.2rem;
}

.title {
   color: var(--dark);
   font-size: 1.75rem;
   font-weight: bold;
   margin-bottom: 0.2rem;
}

.shortInfo {
   display: flex;
   gap: 1rem;
   font-size: 0.825rem;
   margin-bottom: 0.4rem;
}

.description {
   font-size: 0.925rem;
   margin-bottom: 2rem;
}

.subtitle {
   font-size: 0.875rem;
   text-transform: uppercase;
   margin-bottom: 0.5rem;
}

.size {
   margin-bottom: 1rem;
}

.sizeOptions {
   margin-bottom: 1rem;
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

.sizeOptions span {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background-color: var(--blue);
   color: white;
   cursor: pointer;
}

span.selectedSize {
   border: 1px solid var(--blue);
   background-color: white;
   color: var(--blue);
}

.btn {
   display: inline-block;
   padding: 0.6rem 1rem;
   border: none;
   border-radius: 8px;
   text-transform: uppercase;
   font-weight: 500;
   font-size: 0.825rem;
   cursor: pointer;
   margin-bottom: 1rem;
}

.btnBlue {
   background-color: var(--blue);
   color: white;
}

.btnBlueLight {
   background-color: var(--light-blue);
   color: var(--blue);
}

.shipBox {
   border: 1px solid rgba(0, 0, 0, 0.2);
   padding: 1rem;
   border-radius: 5px;
}

.shipBox p {
   font-size: 0.825rem;
   margin-bottom: 1rem;
}

.inputForm {
   display: flex;
   flex-wrap: wrap;
}

.shipBox .inputForm > input {
   width: 60%;
   height: 2.5rem;
   border-radius: 5px 0 0 5px;
   border: 1px solid rgba(0, 0, 0, 0.2);
   padding: 0 1rem;
}

.shipBox .inputForm > input:focus {
   outline: none;
   border: 1px solid rgba(0, 0, 0, 0.3);
}

.shipBox .inputForm > button {
   width: 40%;
   height: 2.5rem;
   border-radius: 0 5px 5px 0;
   border: 1px solid rgba(0, 0, 0, 0.2);
   padding: 0.4rem 0.8rem;
   background-color: var(--grey-light);
   color: var(--blue);
   text-transform: uppercase;
   font-weight: 500;
   cursor: pointer;
}

.shipBox a {
   text-decoration: none;
   color: var(--blue);
   font-size: 0.825rem;
}

.active {
   opacity: 0.4;
}

/* HOVER APARECE APENAS EM NAVEGADOR */

@media (hover: hover) and (pointer: fine) {
   .prev:hover,
   .next:hover {
      opacity: 0.8;
   }

   .breadcrumb li a:hover {
      color: #01447e;
      text-decoration: underline;
   }

   .sizeOptions span:hover {
      border: 1px solid var(--blue);
      background-color: white;
      color: var(--blue);
   }

   .btnBlue:hover,
   .btnBlueLight:hover {
      filter: brightness(1.1);
   }

   .shipBox .inputForm > button:hover {
      background-color: rgb(206, 206, 206);
   }
}

/* MEDIA QUERIES*/

@media screen and (max-width: 1000px) {
   body {
      height: 100%;
   }

   .box {
      margin: 1rem 0;
      width: min(500px, 90%);
      height: 100%;
      grid-template-columns: 1fr;
   }

   .right {
      overflow-y: initial;
   }

   .ship {
      width: 100%;
   }
}

@media screen and (max-width: 420px) {
   body {
      width: 100%;
   }

   .box {
      padding: 0.5rem;
   }

   .inputForm {
      flex-direction: column;
   }

   .shipBox .inputForm > input {
      width: 100%;
      border-radius: 5px 5px 0 0;
   }

   .shipBox .inputForm > button {
      width: 100%;
      border-radius: 0 0 5px 5px;
   }

   .sizeOptions {
      font-size: 0.725rem;
   }

   .sizeOptions span {
      width: 30px;
      height: 30px;
   }

   .btn {
      font-size: 0.625rem;
   }

   .prev,
   .next {
      padding: 0.5rem;
   }

   .prevNextBtn {
      padding: 0rem;
   }
}
