@font-face { font-family: J; src: url('../J\ Audio\ Cassette.otf'); }

* {
  box-sizing: border-box;
}

body {
  color: #222;
  font-family: J, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  margin: auto;
  width: 100%;
}

main {
  margin-left: 10%;
  margin-right: 10%;
}

header {
  background-color: #247BA0;	
  border-bottom: 1px solid #222;
  margin-bottom: 3rem;
}

footer {
  background-color: #247BA0;	
  color: white;
  text-align: center ;
  border-style: solid ;
  border-width: 8px 0px 0px 0px ;
  padding: 0.4rem ;
  margin-top: 3rem;
  bottom: 0;
}

a {
  color: #00e;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  margin-top: 0.8rem;
}

td, th {
  border: 1px solid #ddd;
  padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2;}

tr:hover {background-color: #ddd;}

th {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  background-color: #247BA0;
  color: white;
}

input, textarea {
  width: stretch;
  padding: 0.4rem;
}

.form {
  margin-top: 1.1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-left: 9%;
  margin-right: 9%;
}

.navlink {
  list-style: none;
  display: flex;
  gap: 1.3rem;	
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.navlink a:hover {
  color: #E2E2E2;
  border-bottom: 1px solid #E2E2E2;
  border-bottom-width: 0.2rem;
  
}

#site-title {
  font-weight: 700;
}

.is-active { 
  border-bottom: 1px solid white;
  border-bottom-width: 0.2rem;
}

.product {
  display: grid;
  align-items: self-end;
  border-color: #E2E2E2;
  border-style: solid ;
  border-width: 0.12rem;
  border-radius: 2rem;
  padding: 1.6rem;
  box-shadow: 2px 6px #E2E2E2;
}

.product > p {
  line-height: 1.2rem;
}
.product:hover, .product:active {
  box-shadow: 3px 7px #d4d0d0;
  transition: 0.3s;
}

.product > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

.product-section {
  display: grid;
  gap: 0.8rem;
  grid-template: repeat(1, 1fr) / repeat(3, 1fr)
}

.product-button {
  cursor: pointer;
  text-align: center;
  font-weight: 900;
  width: 100%;
  padding: 0.6rem;
  border-style: solid;
  border-radius: 2rem;
  background-color: #247BA0;
  color: white;
  -moz-appearance: button;
  appearance: button;
}

.product-button:hover {
  background-color: #134e67;
  box-shadow: 2px 5px #134e67;
  transition: 0.3s;
}

.order-section {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 20% 80%;
  grid-gap: 0.9rem;
}

#order-quantity {
  padding: 0.6rem;
  text-align: center;
}

#order-quantity:active,
#order-quantity:focus {
  border-color: #f2f2f2;
}

.product-price {
  margin: 1;
  font-weight: 600;
  font-size: larger;
}

.old-product-price {
  font-weight: 500;
  font-size: medium;
  text-decoration: line-through;
}

.product-info-price {
  font-weight: 600;
  font-size: x-large;
}

.old-product-info-price {
  font-weight: 400;
  font-size: medium;
  text-decoration: line-through;
}

.template {
  margin-left: 5%;
  margin-right: 5%;
}

.space-margin {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.product-detail {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
}

/* Mobile responsive */
@media screen and (max-width: 1100px) {
  .product-section {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  main {
    margin-left: 6%;
    margin-right: 6%;
  }
  .navbar {
    margin-left: 5%;
    margin-right: 5%;
  }
  .product-detail {
    display: grid; 
    grid-template-columns: 2fr 2fr;
    grid-gap: 1.4rem;
  }
 }

/* Mobile responsive */
@media screen and (max-width: 760px) {
  .product-section {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin: 1rem;
  }
  main {
    margin-left: 4%;
    margin-right: 4%;
  }
  .navbar {
    margin-left: 1%;
    margin-right: 1%;
  }
  .product-detail {
    display: grid; 
    grid-template-columns: 2fr;
  }
 }
