@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Quicksand:wght@300;400;500;600;700&display=swap');
/*
    colors
   dark -  #437E81
   light - #7ACFD3
   grey - #575758
   white - #F0F0F1

   
  width: min(80% -30px, 500px);
  margin-inline: auto;
*/
* {
  box-sizing: border-box;
}
body{
  font-family: Quicksand, Helvetica, sans-serif;
  color: #575758;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
p{
  color: #575758;
 }

/*  INDEX  BANNER */
#banner-main{
  display: flex;
  justify-content:center;
  height: 250px;

}
.banner-container-image{
  width: 70%;
}
.banner-container-image img{
  width: 100%;
  height: 250px;
}
.banner-container-side{
  margin: 0 auto;
  padding: 0;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #7ACFD3;

}

  
.banner-container-side h1{
  font-family: 'Amatic SC', Helvetica, sans-serif;
  color:#F0F0F1;
  padding: 20px;
}
  
.banner-container-side a{
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  background-color:#437E81;
  color: #F0F0F1;
  padding:0.8rem 2rem;
  border-radius: 8px;
  
}
  
.banner-container-side a:hover{
  color: #437E81;
  background-color:#F0F0F1;
}
/* FEATURED PRODUCTS*/
#featured-section{
  display:flex;
  flex-direction: column;
}
section h2 {
  color: #437E81;
  text-align: center;
}
#featured-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

#featured-products ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  width: calc(100% / 6);
}
#featured-products li{
  text-align: center;
  font-size: 15px;
  padding: 0.3rem;
}

#featured-products ul img {
  width: 150px;
}

#featured-products ul a {
  text-decoration: none;
  color: #575758;
}
.featured-price{
  color: #7ACFD3;
  font-weight: 600;
}

/* SHOP BY CATEGORY */
#category-section{
  display: flex;
  flex-wrap: wrap;
}
#category-section h2 {
  width: 100%;
  text-align: center;
}

.category-section {
  display: flex;
  width: 70%;
  justify-content: space-evenly;
}

.category-list {
  list-style: none;
  display: flex;
  align-items: center;
}

.category-list li {
  margin-right: 50px;
}
.category-list h3{
    font-weight: 700;
    font-size: 18px;
    background-color:#7ACFD3;
    color: #F0F0F1;
    padding:0.8rem;
    border-radius: 10px;
}
.category-list h3:hover{
  color: #437E81;
}
.category-list a{
  text-decoration: none;
  display: flex;
  flex-direction: column;
  text-align: center;

}
.category-list img {
  max-width: 100%;
}
.category-list-shop img:hover {
  box-shadow: 0 5px 25px rgba(87, 87, 88, 0.3);
}

.category-aside {
  flex: 1;
  display: flex;
  padding: 0 20px;

}
.category-aside p{
  margin: 0;
  font-family: 'Amatic SC', Helvetica, sans-serif;
  background-color: #7ACFD3;
  color:#F0F0F1;
  padding: 25px;
  font-size: 35px;
 
}
/*  PRODUCT PAGE   */

#product-page{
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding: 2rem;
}
.product-page-container{
  display: flex;
  gap: 5%;
  justify-content:center;
  color:#F0F0F1;
}
.product-page-image{
  display: flex;
  max-width: 60%;
}
.product-page-image img{
  max-width: 300px;
  max-height: 300px;
}
.product-page-details{
  display: flex;
  flex-direction: column;
  width: 35%;
  background-color: #F0F0F1;
  padding: 1.3rem;
}
.product-page-details h3{
  color:rgb(87, 87, 88);
}
.product-name{
  color: #437E81;
  font-size: 1.5rem;
  font-weight: 600;
}
.product-page-cart{
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  padding: 15px 10px;
  background-color: #437E81;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 500;
}
.product-page-form input[type=submit]{
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color:#F0F0F1;
  background-color: transparent;
  cursor: pointer;
}
.product-page-form input[type=submit]:hover{
  color: #7ACFD3;
}

/*  SHOP PAGE   */
#shop-page-main{
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.shop-page-filter select {
  background-color: #F0F0F1;
  padding: 12px;
  width: 200px;
  border: none;
  font-size: 16px;
  box-shadow: 0 5px 25px rgba(87, 87, 88, 0.3);
  outline: none;
}
#shop-page-main form label{
  font-size: 22px;
  padding-right: 3rem;
}
.shop-page-filter input[type=submit]{
  border: none;
  background-color: #575758;
  color: #F0F0F1;
  font-size: 20px;
  margin-left: 2rem;
  padding: 8px 20px;
  border-radius: 5px;
}
.shop-page-filter input[type=submit]:hover{
  background-color: #437E81;
  color: #F0F0F1;
}

#shop-page-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 2rem;
}
#shop-page-section h2 {
  margin: 10px 0;
  width: 100%;
  text-align: center;
  padding-bottom: 1rem;

}
.shop-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.shop-page-list li {
  width: 18%;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.shop-page-list a{
  text-decoration: none;
  color: #437E81;
}
.shop-page-list p{
  color: #437E81;
}
.shop-page-list img {
  max-width: 100%;
  height: auto;
}
.shop-page-list p {
  margin: 5px 0;
}
.shop-page-list .price {
  font-weight: bold;
  font-size: 1.2em;
  color: #7ACFD3;
}

.shop-page-list input[type=submit] {
  background-color: #437E81;
  color: #f1f1f1;
  border: none;
  padding: 10px 20px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 7px;
}
.shop-page-list input[type=submit]:hover{
   background-color:#7ACFD3;
}

@media screen and (max-width: 768px) {
  .shop-page-list li {
    width: 30%;
  }
}
/*SHOP BY CATEGORY ON SHOP PAGE*/

#category-shop{
  display: flex;
  flex-direction: column;
}
#category-shop h1 {
  color: #437E81;
  width: 100%;
  text-align: center;
}

.category-div-shop {
  margin: 0 auto;
  display: flex;
  width: 70%;
  justify-content: center;
}

.category-list-shop {
  list-style: none;
  display: flex;
  align-items: center;
}

.category-list-shop li {
  margin-right: 50px;
}
.category-list-shop h2{
    font-weight: 700;
    font-size: 18px;
    background-color:#7ACFD3;
    color: #F0F0F1;
    padding:0.8rem;
    border-radius: 10px;
}

.category-list-shop h2:hover{
  color: #437E81;
}
.category-list-shop a{
  text-decoration: none;
  display: flex;
  flex-direction: column;
  text-align: center;

}
.category-list-shop img {
  max-width: 100%;
}
.category-list-shop img:hover {
  box-shadow: 0 5px 25px rgba(87, 87, 88, 0.3);
}

/*  LOGIN   */
#login-main{
  display: flex;
  justify-content:center;
  margin: 0 auto;
  margin-top: 5rem;
  padding: 2rem;
  max-width: 800px;
  flex-grow: 1;
  gap: 3%;

}
.login-container{
  display: flex;
  align-items: center;
}
form .login{
  display: flex;
  flex-direction: column;
}
.login fieldset{
  border: none;
}
.login legend{
  font-size: 30px;
  padding-top: 1rem;
  color: #437E81;
  font-weight:600;
}
.signup-container{
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0.7rem;
  background-color: #437E81;
  color: #f1f1f1;
}
.signup-container img{
    width: 100px;
    height: 90px;
    
}
/* BUTTONS */
.login input[type=text],
.login input[type=password],
.login input[type=submit],
.signup-button {
  padding: 15px;
  margin: 15px 0;
  width: 100%;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  color: #7ACFD3;
  background-color: #f1f1f1;
}
::placeholder{
  color: #7ACFD3;
}

.login input[type=submit]{
  background-color: #437E81;
  color: #f1f1f1;
  cursor: pointer;
}
.login input[type=submit]:hover{
  background-color: #7ACFD3;
  color:  #575758;
}
.signup-button{
  text-decoration: none;
  text-align: center;
  margin-top: 2.5rem;
  background-color: #f1f1f1;
  color:  #437E81;
  cursor: pointer;
}
.signup-button:hover{
  background-color: #7ACFD3;
  color:  #f1f1f1;
}

/* SIGN UP*/

#signup-main{
  display: flex;
  justify-content:center;
  margin: 0 auto;
  margin-top: 5rem;
  padding: 2rem;
  max-width: 800px;
  flex-grow: 1;
}
.signup-container p{
  color: #f1f1f1;
}
.signup{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
}
.signup input[type=text],
.signup input[type=password],
.signup input[type=email],
.signup input[type=submit]{
padding: 15px;
margin: 15px 0;
width: 100%;
border-radius: 10px;
border: none;
font-size: 16px;
color: #7ACFD3;
background-color: #f1f1f1;
}

.signup fieldset{
  border: none;
}
.signup legend{
  font-size: 30px;
  padding-top: 1rem;
  color: #437E81;
  font-weight:600;
}
.signup input[type=submit]{
  background-color: #437E81;
  color: #f1f1f1;
  cursor: pointer;
}
.signup input[type=submit]:hover{
  background-color: #7ACFD3;
  color:  #575758;
}

/* Shopping Bag Page CSS */
#cart-main {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-direction: row; /* set direction to row */
  width: 60%;
  margin: 0 auto;
  justify-content: space-between; /* align items to opposite sides */
  gap:2;
}


.shopping-bag-section {
  width: 80%;
  display: flex;
  justify-content: baseline;
  flex-direction: column;
  flex-grow: 1; /* allow the container to expand */
}
#shopping-details-container{
  display: flex;
  justify-content: space-between;
}

.shopping-cart-image{
  width: 20%;
}
.shopping-cart-image img{
  width: 80px;
  height: auto;
}
.shopping-cart-details{
  width: 70%; /* adjust the width to fit the available space */
  padding: 1rem;
}
.shopping-cart-details h2,
.shopping-cart-details p,
.shopping-cart-details h3{
  font-size: 20px;
}
.cart-section-line{
  border-bottom: 1px solid black;
  margin-bottom: 20px;
}

.basket-sect{
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 500;
}

.ordersummary {
  flex-basis: 40%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #7ACFD3;

  padding: 1rem;
}

.ordersummary h4 {
  color: #F0F0F1;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.ordersummary table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.ordersummary th {
  text-align: left;
  padding: 0.5rem;
}

.ordersummary td {
  text-align: right;
  padding: 0.5rem;
}

.ordersummary td:last-of-type {
  font-weight: bold;
}

.ordersummary form {
  display: flex;
  flex-direction: column;
}

.ordersummary label {
  font-size: 1rem;
  font-weight: 600;
  color: #F0F0F1;
  margin-bottom: 0.5rem;
}

.ordersummary input[type='text'],
.ordersummary input[type='email'],
.ordersummary input[type='submit'] {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  border: 1px solid #F0F0F1;
  border-radius: 2px;
}

.ordersummary input[type='submit'] {
  background-color: #437E81;
  color: #f1f1f1;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.ordersummary input[type='submit']:hover {
  background-color: #575758;
  color: #F0F0F1;
  border: 1px solid #437E81;
}
.save-for-later{
  display: flex;
  justify-content: end;
  font-size: 22px;
  font-weight: 600;
  color: #437E81;
}

/* Media Queries */
@media only screen and (max-width: 768px) {
  .shopping-bag-section {

    flex-basis: 100%;
    margin-right: 0;
  }
  
  .ordersummary {
    flex-basis: 100%;
    margin-top: 2rem;
  }
}
