/*
  STYLE GUIDE STYLING 
  Default styling for the style guide 
*/

/* Referenced: https://www.w3schools.com/howto/howto_css_smooth_scroll.asp#section2 */
html{
  scroll-behavior: smooth;
}

body {
    font-family: "Commissioner", sans-serif;
    margin: 0;
    background-color: #F7F6F2;
    color: #5E479E;
  }
  
  .element {
    padding-left: 0;
    padding-right: 0;
    border-top-width: 0.15rem;
    border-top-style: solid;
    border-top-color: #5E479E;
  }

  h1 {
    font-family: "rafaella", serif;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: normal;
    /* line-height: 1.35; */
    color: #5E479E;
    margin: 0;
  }
  
  h2, h3, h4, h5, h6{
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  h2 {
    font-family: "EB Garamond", serif;
    font-size: 2.3rem;
    margin-bottom: 0.3rem;
  }
  
  h3 {
    font-family: "EB Garamond", serif;
    font-size: 1.9rem;
    line-height: 1;
  }
  
  h4 {
    font-size: 1.1rem;
    font-weight: 560;
    /* margin-bottom: 0.3rem; */
  }
  
  p {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 32rem;
  }

  ol{
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  code {
    background-color: #EEE;
    padding: 0.5rem;
    display: block;
  }

  /* -------------------------------------------------------------------------- */
  
  /* 
    INTERACTIVE ELEMENTS -------------------
  */

  /* Styling for in-text link */
  a{
    color: #B78913;
    font-weight: 600; 
    text-decoration: none;

    transition-duration: 0.1s;
    transition-property: color;
  }

  a:hover, a:focus{
    color: #BD9C49;
    /* text-decoration: underline; */
  }
  
  /* Links in Nav Bar */
  nav a{
    color: #5E479E;
    text-decoration: none;

    /* transition-duration: 0.1s;
    transition-property: color; */
  }

  nav a:hover, nav a:focus {
    color: #B78913;
    text-decoration: none;
  }

  /* Logo in Nav Bar */
  nav img{
    width: 8rem;
    background-color: transparent;

    transition-property: transform;
    transition-duration: 0.2s;
  }

  nav img:hover, nav img:focus{
    transform: scale(0.95,0.95);
  }

  /* Styling for the Cart button */
  .button-nav {
    font-size: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border: 2px solid #5E479E;
    border-radius: 8px;
    color: #5E479E;

    transition-duration: 0.1s;
    transition-property: background-color, color;
  }
  
  .button-nav:hover, .button-nav:focus {
    color: #F7F6F2;
    background-color: #5E479E;
    font-weight: 600;
    text-decoration: none;
  }  

  /* button{
    margin-top: 2rem;
    background: #5E479E;
    color: #EEE;
    border: none;
    padding: 0.6rem;
  }

  button:hover, button:focus{
    background: #A475AC;
  }

  /* BESTSELLERS */
  /* View Product Button */
  .view-product-button{
    font-size: 1.1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    border: 2px solid #5E479E;
    border-radius: 8px;
    color: #5E479E;
    text-align: center;
    /* width: fit-content; */

    transition-duration: 0.1s;
    transition-property: color, background-color;
  }

  .view-product-button:hover, .view-product-button:focus{
    color: #F7F6F2;
    background-color: #5E479E;
    font-weight: 600;
    text-decoration: none;
  } 

  .product-imgbox{
    position: relative;
    /* float: left; */
  }

  .img-border{
    border-radius: 20px;
    border: 2px solid #5E479E;
  }

  .product-img{
    background-color: white;
    border-radius: 20px;
    border: 2px solid #5E479E;
    width: 100%;
  
    /* transition-property: box-shadow;
    transition-duration: 0.35s; */
  }

  /* Referenced: https://cloudinary.com/guides/front-end-development/change-image-on-hover-with-html-and-css#:~:text=You%20can%20use%20the%20background,user%20hovers%20over%20that%20element. */
  /* And Referenced:  https://sirv.com/help/articles/hover-change-image/#how-to-swap-images-with-css*/
  .product-img-hover{
    background-color: white;
    border-radius: 20px;
    border: 2px solid #5E479E;
    width: 100%;

    opacity: 0;
    transition: opacity .2s;
    position: absolute;
    top: 0;
    left: 0;
  }

  .product-imgbox:hover .product-img-hover{
    opacity: 1;
    display: block;
    /* Referenced: https://stackoverflow.com/questions/9612758/add-a-css-border-on-hover-without-moving-the-element */
    /* box-shadow: 0 0 0 3px #5E479E; */
  }

  /* VIEW ALL */
  .view-product-button.view_all{
    background-color: #5E479E;
    color: #F7F6F2;
    width: 10rem;
    /* border: #5E479E solid 2px; */
  }

  .view-product-button.view_all:hover, .view-product-button.view_all:focus{
    background-color: #B78913;
    border: #B78913 solid 2px;
  }

  /* Styling for image */
  img{
    height: auto;
    max-width: 100%;
  }

  /* -------------------------------------------------------------------------- */

  /* Styling for Form */
  /* label,input {
    font-size: 1rem;
    font-weight: 500;
  } */

  /* Referenced: https://www.w3schools.com/howto/howto_css_placeholder.asp */
  /* ::placeholder{
    color: #9586BC;
  } */

  /* Referenced: https://stackoverflow.com/questions/1633522/html-input-element-wider-than-containing-div */
  input, textarea{
    padding: 0.4rem;
    width: 100%;
    border: 2px solid #5E479E ;
    border-radius: 5px;
    background-color: #F7F6F2;
    box-sizing: border-box;

    margin-bottom: 0.7rem;

    transition-duration: 0.2s;
    transition-property: background-color, box-shadow;
  }

  input:hover, input:focus, textarea:hover, textarea:focus{
    background-color: white;
    box-shadow: 0 0 0 0.5px #5E479E;
    /* border-color: #A475AC; */
  }

  /* form {
    width: 40rem;
    max-width: 100%;
  } */
  
  label {
    /* margin-top: 0.4rem; */
    margin-bottom: 0.4rem;
    /* Gives it a seperate line */
    display: block;
  }

  input[type=submit]{
    border: none;
    background-color: #5E479E;
    color: #F7F6F2;
    font-family: "Commissioner", sans-serif;
  }

  input[type=submit]:hover, input[type=submit]:focus{
    background-color: #B78913;
  }

  /* -------------------------------------------------------------------------- */

  /* SECTION STYLING */
  section {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    /* margin-bottom: 2rem; */
    border-bottom: #5E479E 3px solid;
  }

  /* HERO SECTION - LANDING */
  /* Used for background image placement: https://www.freecodecamp.org/news/css-background-image-with-html-example-code/ */
  .hero_section{
    background-image: url('../img/Background-Landing-Hero.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-height: 30rem;
  }

  .hero_section h1{
    /* color: #5E479E; */
    text-align: center;
  }

  .hero_section p{
    color: #5E479E;
    text-align: center;
    width: 100%;
    margin: 0;
  }

/* ------------------------------------------------------------------- */
/* ABOUT US */

/* Hero Section */
.hero_section_about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 11rem;

  background-image: url('../img/AboutUs-Landing-Page.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero_section_about h1 {
  color: #5E479E;
  text-align: center;
  font-size: 3rem;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  margin-bottom: 3.5rem;
}

/* OUR STORY SECTION */
.our-story-section{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-p{
  margin-bottom: 0.9rem;
}

/* Our Process Section */
.our-process-section{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-content{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-title{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.process-step h4{
  font-family: 'EB Garamond', serif;
  font-size: 2.3rem;
}

.step-title img{
  width: 2.5rem;
  height: auto;
}

.process-step img{
  max-width: 100%;
}

/* CONNECT WITH US SECTION */
.connect-section{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-name{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 1rem;
}

.connect-section label{
  font-size: 0.9rem;
}

.connect-section textarea{
  margin-bottom: 2rem;
}

.connect-section input[type=submit]{
  width: 10rem;
}

/* CONFIRMATION SECTION */
.section_cards.confirmation-section {
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #F7F6F2;
  /* min-width: auto;
  max-width: auto; */
}

.section_cards.confirmation-section .title h1 {
  display: flex;
  flex-direction: column;
  font-size: 3rem;
  font-family: 'EB Garamond', sans-serif;
  color: #5E479E;
  margin-bottom: 1rem;
}

.section_cards.confirmation-section .title h2 {
  display: flex;
  flex-direction: column;
  font-size: 2.5rem;
  color: #5E479E;
  margin-bottom: 1rem;
}

.section_cards.confirmation-section .title p {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  color: #5E479E;
  margin-bottom: 2rem;
}

.section_cards.confirmation-section .button-nav {
  font-size: 1.1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border: 2px solid #5E479E;
  border-radius: 8px;
  color: #5E479E;
  text-decoration: none;
  display: inline-block;
}

.section_cards.confirmation-section .button-nav:hover, 
.section_cards.confirmation-section .button-nav:focus {
  color: #F7F6F2;
  background-color: #5E479E;
  font-weight: 600;
  text-decoration: none;
}

  /* Section with Product Cards */
  .section_cards{
    display: flex;
    gap: 2.5rem;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    /* align-items: center; */
  }

  .section_cards .title{
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .center-vert{
    display: flex;
    justify-content: center;
  }

  .purple_bg{
    background-color: #5e479e1d;
  }

  /* -------------------------------------------------------------------------- */

/* NAVIGATION BAR */
.nav-web-logo, .nav-web-cart{
  display: none;
}

.nav-mobile-logocart{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-grid{
  display: flex;
  flex-direction: column;
  gap: 1rem; /* between logo and links */
  padding: 1.7rem;
  padding-bottom: 0.5rem;
  background-color: #F7F6F2;
  border-bottom: #5E479E 3px solid;
}

.nav-links{
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
}

.nav-main-item{
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;

  font-size: 1.1rem;
  font-weight: 550;

  color: #5E479E;

  /* HOW TO PUT LINE AT THE BOTTOM? And HOW TO ROUND EDGES */
  border-top: 2px solid #5E479E;
}

/* -------------------------------------------------------------------------- */

/* PRODUCT LISTING */

.card-listing{
  gap: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow-x: scroll;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 1rem;
}

.product-card{
  /* background-color: aqua; */
  width: 15rem;
}

.product-card .info{
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin-top: 1.2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  /* padding-bottom: 1rem; */
}

.product-card .info p{
  padding-bottom: 1.2rem;
}

.info p{
  margin-top: 0.7rem;
}

.product-card .horizontal-layout{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  gap: 1rem;

  border-top: #5E479E 3px solid;
}

.horizontal-layout{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-card-heading{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card .info h4{
  font-family: "Commissioner", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ARTICLE CARD */
.card{
  display: flex;
  flex-direction: column;
  /* max-width: 23rem; */
  width: 17rem;

  background-color: #ffffff;
  border: #5E479E 3px solid;
  border-radius: 20px;
}

/* Referenced Image Scaling: https://stackoverflow.com/questions/69342300/how-can-i-make-image-scale-on-hover-inside-the-container */
.img-container{
  height: 15rem;
  overflow: hidden;
  /* Referenced: https://stackoverflow.com/questions/10074023/how-do-i-make-corners-rounded-only-on-the-top-part-of-the-border-in-css */
  border-radius: 17px 17px 0px 0px;
}

.article-img{
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition-property: transform;
  transition-duration: 0.2s;
}

.card:hover .article-img{
  transform: scale(1.1);
}

.article-content{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  height: 14rem;
  justify-content: space-between;
}

.read-article{
  font-size: 1.1rem;
  color: #5E479E;
  width: fit-content;

  transition-duration: 0.1s;
  transition-property: color;
}

.read-article:hover, .read-article:focus{
  color: #B78913;
  text-decoration: none;
}

/* REVIEW CARD */

.review-card{
  width: 15rem;

  background-color: #ffffff;
  border: #5E479E 3px solid;
  border-radius: 20px;
  padding: 1.8rem;
}

.review-card-content{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#reviews img{
  width: 8rem;
}

#reviews h3{
  font-size: 2rem;
}

/* ------------------------------------------------------------------------------ */
/* PURCHASE - PurpleFlowers */
/* Fonts */
.purchase-section h2{
  font-size: 3rem;
}

.purchase-section .price{
  font-family: "Commissioner", sans-serif;
  font-size: 1.7rem;
  font-weight: 560;
}

.purchase-section label{
  font-size: 1rem;
  font-weight: 450;
}

.quantity-form input{
  border: #5E479E 2px solid;
  background-color: #ffffff63;
  font-size: 1.1rem;
  color: #5E479E;
  width: 4.5rem;

  transition-duration: 0.2s;
  transition-property: box-shadow, background-color;
}

/* Referenced: https://www.w3schools.com/css/css_form.asp */
.quantity-form input:hover, .quantity-form input:focus{
  background-color: #ffffff;
  outline: none;
  color: #5E479E;
  /* Referenced: https://stackoverflow.com/questions/9612758/add-a-css-border-on-hover-without-moving-the-element */
  box-shadow: 0 0 0 1px #5E479E;
}

/* input{
  text-align: center;
} */

::placeholder{
  /* text-align: center; */
  text-align: left;
  color: #9586BC;
  font-family: "Commissioner", sans-serif;
}

.quantity-form{
  display: flex;
  flex-direction: column;
  margin-bottom: 0.3rem;
}

/* Section */
.purchase-section{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.purchase-content{
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Add to Cart Button */
.view-product-button.view_all.cart-button{
  background-color: #5E479E;
  color: #F7F6F2;
  width: auto;
  transition-duration: 0.2s;
  transition-property: background-color;
  border: none;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.view-product-button.view_all.cart-button:hover, .view-product-button.view_all.cart-button:focus{
  background-color: #B78913;
  border: none;
}

/* ------------------------------------------------------------------------------ */
/* TYPE OF FLOWERS */
.flowertype-section{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flower-card-listing{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flower-card{
  background-color: #ffffff75;
  border-radius: 20px;
  border: 2px solid #5E479E;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 1rem; */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 0.3rem;
}

.flower-card h4{
  text-align: center;
  font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */

/* SHOPPING CART */
.shopping-section {
  padding: 4rem 2rem;
  background-color: #F7F6F2;
  text-align: left;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.shopping-section h2 {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  color: #5E479E;
  text-align: left;
  margin-bottom: 2rem;
}

.shopping-section p{
  font-size: 0.7rem;
}

.shopping-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.shopping-section th, 
.shopping-section td {
  padding: 1rem;
  /* border-bottom: 3px solid #5E479E; */
}

tr{
  border-bottom: 3px solid #5E479E;
}

.shopping-section th {
  text-align: left;
  font-weight: 600;
  color: #5E479E;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  gap: 1rem;
}

.shopping-section .product-img {
  width: 10rem;
  border-radius: 7px;
}

.product-text h3 {
  font-size: 1.2rem;
  color: #5E479E;
}

.product-text h4 {
  font-size: 1rem;
  color: #5E479E;
}

.quantity-form {
  display: flex;
  justify-content: left;
  /* align-items: center; */
}

.quantity-form input {
  width: 3rem;
  text-align: center;
  border: 1px solid #5E479E;
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 1rem;
}

.total-price {
  font-size: 1.2rem;
  color: #5E479E;
  font-weight: 600;
}

.shopping-section h5 {
  text-align: right;
  /* padding-right: 8rem; */
  font-size: 1.5rem;
  color: #5E479E;
}

.shopping-section .button-nav {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  margin-top: 1rem;

  text-align: center;
  width: 10rem;
  background-color: #5E479E;
  color: #F7F6F2;

  border: none;
  /* max-width: 14rem; */
  transition-duration: 0.2s;
  transition-property: background-color;
}

.shopping-section .button-nav:hover, .shopping-section .button-nav:focus{
  background-color: #B78913;
}



/* -------------------------------------------------------------------------- */

/* Checkout Section */
.checkout-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding: 4rem 2rem; */
  background-color: #F7F6F2;
}

.checkout-title {
  text-align: left;
  margin-bottom: 2rem;
}

.checkout-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  /* min-width: fit-content;
  max-width: fit-content; */
  flex-direction: column;
  width: 100%;
  /* align-items: flex-start; */
  /* margin-left: 20rem;
  margin-right: 20rem; */
}

.checkout-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
  width: 100%;
}

.checkout-card, .shipping-options, .payment-summary {
  border: 3px solid #5E479E;
  border-radius: 10px;
  padding: 2rem;
}

.white_bg{
  background-color: #ffffff;
}

.checkout-card h2, .shipping-options h2, .payment-summary h2 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: #5E479E;
  margin-bottom: 1rem;
}

.checkout-card label, .checkout-card input, .shipping-options label {
  font-size: 1rem;
  color: #5E479E;
}

.checkout-card input, .shipping-options input {
  width: 100%;
  padding: 0.5rem;
  border: 1.7px solid #5E479E;
  border-radius: 5px;
  background-color: #F7F6F2;
  margin-bottom: 0.7rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.checkout-card input:focus, .shipping-options input:focus, .checkout-card input:hover, .shipping-options input:hover {
  background-color: white;
  outline: none;
  box-shadow: 0 0 0 0.5px #5E479E;
}

.shipping-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shipping-options input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.payment-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: flex-start;
  /* margin-bottom: 60rem; */
}

.payment-summary h2 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: #5E479E;
}

.payment-summary img {
  width: 7rem;
  /* width: 50px; */
  height: auto;
}

.payment-summary .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.summary-item .content{
  display: flex;
  flex-direction: column;
}

.payment-summary .summary-total {
  font-weight: bold;
  font-size: 1.2rem;
  justify-content: space-between;
}

.payment-summary .summary-amount {
  text-align: right;
}

.checkout-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  /* margin-top: 2rem; */
}

.checkout-information {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.checkout-buttons .back-home, .checkout-buttons .place-order {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  /* border: 2px solid #5E479E; */
  border-radius: 8px;
  /* color: #5E479E; */
  text-decoration: none;
  width: 10rem;
  text-align: center;
  transition: background-color 0.1s, color 0.1s;
}

.back-home{
  border: 2px solid #5E479E;
  color: #5E479E;
}

.place-order{
  background-color: #5E479E;
  color: #F7F6F2;
  border: none;
  border: 2px solid #5E479E;

  transition-duration: 0.2s;
  transition-property: background-color, border;
}

.checkout-buttons .place-order:hover, .checkout-buttons .place-order:focus{
  background-color: #B78913;
  border: 2px solid #B78913;
  color: #F7F6F2;
}

.checkout-buttons .back-home:hover, 
.checkout-buttons .back-home:focus {
  color: #F7F6F2;
  background-color: #5E479E;
  font-weight: 600;
}

.payment-summary .img-border{
  border-radius: 7px;
}

/* ------------------------------------------------------------------------------ */

/* CONFIRMATION SECTION */
.confirmation-section {
  padding: 4rem 2rem;
  background-color: #F7F6F2;
  display: flex;
  justify-content: center;
}

.confirmation-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.order-details {
  flex: 2;
}

.order-details h2 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: #5E479E;
  margin-bottom: 1rem;
}

.order-details p {
  font-size: 1.2rem;
  color: #5E479E;
  margin-bottom: 2rem;
}

.address-info, .contact-payment-info {
  display: flex;
  gap: 2rem;
}

.address-column, .contact-column, .payment-column {
  flex: 1;
}

.address-column h3, .contact-column h3, .payment-column h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  color: #5E479E;
  margin-bottom: 0.5rem;
}

.address-column p, .contact-column p, .payment-column p {
  font-size: 1rem;
  color: #5E479E;
}

.payment-column img {
  width: 2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.order-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: fit-content;
  /* max-width: fit-content; */
  gap: 1.5rem;
  /* align-items: flex-start; */
  flex: 1;
  border: 3px solid #5E479E;
  border-radius: 10px;
  padding: 2rem;
  background-color: #ffffff;
}

.order-summary .summary-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* .payment-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: fit-content;
  max-width: fit-content;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 70rem;
} */

.order-summary h3 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  color: #5E479E;
  margin-bottom: 1rem;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-summary img {
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
}

.product-summary p {
  flex: 1;
  font-size: 1rem;
  color: #5E479E;
}

.product-summary span {
  font-size: 1rem;
  color: #5E479E;
}

.summary-total {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  border-top: 1px solid #5E479E;
  padding-top: 1rem;
  justify-content: space-between;
}

.summary-total p {
  font-size: 1rem;
  color: #5E479E;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left; /* Align text to the left */
}

.summary-total span {
  font-size: 1rem;
  color: #5E479E;
  text-align: right; /* Keep amounts aligned to the right */
}

.summary-total p:last-of-type {
  font-weight: bold;
  font-size: 1.2rem;}

.summary-total span:last-of-type {
  font-weight: bold;
  font-size: 1.2rem;
}

/* ------------------------------------------------------------------------------ */

/* FOOTER */
.footer-grid{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;

  padding-top: 4rem;
  gap: 3rem;
}

footer img{
  width: 100%;
}

.banner{
  background-image: url('../img/footer-flowers.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  width: 100%;
  height: 7rem;
}

footer h2{
  font-family: "Commissioner", sans-serif;
  font-size: 1.2rem;
  font-weight: 550;
}

footer a{
  color: #5E479E;
  font-weight: 500;
  /* line-height: 100; */
}

.footer-links{
  padding-left: 1rem;
  /* Referenced: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns */
  display: grid;
  /* grid-template-columns: 1fr; */
  grid-template-columns: 1fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.vertical-layout{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ------------------------------------------------------------------------------ */

@media (min-width: 29.32rem){ /* 470px */
  .product{
    flex-direction: row;
  }

  .product .product-img{
    width: 7rem;
  }

  .payment-summary .summary-item{
    flex-direction: row;
  }
}

/* Tablet Size */
@media (min-width: 41.87rem){ /* 670px */
  h1 {
    font-size: 4.5rem;
  }

  img{
    width: 30rem;
  }

  .hero_section p{
    font-size: 1.4rem;
    max-width: 100%;
  }

  .hero_section{
    height: 65vh;
    max-height: 40rem;
  }

  /* NAVIGATION BAR */
  .nav-mobile-logocart{
    display: none;
  }

  .nav-web-cart, .nav-web-logo{
    display: flex;
  }

  .nav-grid{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.7rem;
  }

  .nav-links{
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .nav-main-item{
    border: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;

    font-size: 1.2rem;
  }

  .nav-cart{
    font-size: 1.3rem;
  }

  /* -------------------------------------------------------------------------- */
  /* PRODUCT LISTING */

  .product-card{
    width: 20rem;
  }

  /* -------------------------------------------------------------------------- */
  /* PURCHASE - Purple Flowers*/

  .purchase-section{
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .purchase-section .product-img{
    width: 45%;
  }

  .product-text h3{
    font-size: 1.7rem;
  }

  .product-text p{
    font-size: 1rem;
  }

  /* Type of Flowers */
  .flower-card-listing{
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .flower-card img{
    width: 8rem;
  }

  /* -------------------------------------------------------------------------- */
  /* ABOUT US*/

  /* Hero Section */
  .hero_section_about{
    height: 15rem;
  }

  /* Our Story */
  .our-story-section{
    /* flex-direction: row; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .our-story-section img{
    width: 100%;
  }

  .summary-item .content{
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
  }

  .checkout-information{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-width: 10rem;
    /* flex-direction: row; */
  }

  /* .checkout-card, .shipping-options, .payment-summary{
    width: 20rem;
  } */

  .payment-summary{
    height: fit-content;
    position: sticky;
    top: 2rem;
  }

  /* Our Process */
  .our-process-section{
    gap: 3.7rem;
  }

  .process-title h2, .process-title p{
    text-align: center;
    max-width: 100%;
  }

  .process-content{
    flex-direction: row;
  }

  .process-step h4{
    font-size: 1.5rem;
  }

  .step-title img{
    width: 2rem;
  }

  /* Connect with Us */
  .connect-section label, .connect-section ::placeholder, .connect-section input[type=submit]{
    font-size: 1rem;
  }

  .connect-section input, .connect-section textarea{
    padding: 0.7rem;
  }

  /* -------------------------------------------------------------------------- */
  /* SHOPPING CART */

  /* Fonts */
  .shopping-section{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .shopping-section h2{
    font-size: 4rem;
  }

  .section_cards.confirmation-section {
    min-height: 30rem;
    height: 100vh;
    max-height: 35rem;
  }

  /* -------------------------------------------------------------------------- */
  /* FOOTER */
  .footer-grid{
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
  }

  footer img{
    width: 15rem;
    /* max-width: 15rem; */
    transition-duration: 0.2s;
    transition-property: transform;
  }

  footer img:hover, footer img:focus{
    transform: scale(0.95);
  }

  .footer-links{
    display: flex;
    flex-direction: row;
    /* grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr; */
    gap: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* DESKTOP SIZE */
@media (min-width: 65.6rem){ /* 1050px */

  /* -------------------------------------------------------------------------- */
  /* HERO SECTION */
  .hero_section{
    height: 70vh;
    max-height: 50rem;
  }

  /* Font */
  h1{
    font-size: 6.3rem;
  }

  h2{
    font-size: 3.3rem;
  }

  p{
    font-size: 1.1rem;
  }
  
  .hero_section p{
    font-size: 1.6rem;
  }

  /* -------------------------------------------------------------------------- */

  section {
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .nav-web-logo img{
    width: 10rem;
  }

  /* -------------------------------------------------------------------------- */
  /* BESTSELLERS */
  .section_cards .title{
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .card-listing{
    overflow-x: hidden;
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .product-card{
    width: 100%;
  }

  .button{
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  /* -------------------------------------------------------------------------- */
  /* WILD ACADEMY */
  .card{
    width: 100%;
  }

  .article-content{
    height: 50%;
    /* height: 19rem; */
  }

  /* -------------------------------------------------------------------------- */
  /* REVIEWS */

  .review-card{
    width: fit-content;
  }

  .review-card-content{
    gap: 0.7rem;
  }

  .review-card-heading{
    flex-direction: column;
    align-items:start;
    gap: 0.7rem;
  }

  /* #reviews .card{
    width: 100%;
  }

  .horizontal-layout{
    width: 100%;
  }  */

  /* -------------------------------------------------------------------------- */
  /* Type of Flowers */

  .flower-card-listing{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .yellow-flower .flower-card-listing{
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .flower-card{
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
  }

  /* -------------------------------------------------------------------------- */
  /* ABOUT US */
  .hero_section_about{
    height: 30rem;
  }

  .hero_section_about h1{
    font-size: 4.7rem;
  }

  /* Our Process */
  .process-content{
    gap: 3rem;
  }

  /* -------------------------------------------------------------------------- */
  /* FOOTER */
  .footer-grid{
    gap: 10rem;
    justify-content: center;
  }

}

/* For the review card */
@media (min-width: 82.5rem){ /* 1320px */
  .review-card-heading{
    flex-direction: row;
  }
}