/* Global Media Queries*/

@media (min-width: 500px) {
  .header-container {
    display: grid;
    grid-template-areas: 
    "nav icons"
    "logo logo";
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .main-nav {
    grid-area: nav;
    justify-self: start;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
    text-align: center;
  }

  .enlarged {
    height: auto;
  }

  .header-icons {
    grid-area: icons;
    justify-self: end;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 1rem;
  }

    .footer-container {
    padding: 3rem;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .newsletter input {
    width: 100%;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
    gap: 2rem;
  }

  .product-image {
    position: relative;
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .product-info img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
    
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .checkout-header {
    padding-left: 0;
    text-align: center;
  }

  .your-information-container {
    padding: 1rem;
  }

  .order-summary {
    padding: 1rem;
    margin-top: 2rem;
    height: auto;
  }

  .order-information {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .order-information img {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .order-summary-info {
    margin: 1rem 0;
    text-align: center;
  }

  .summary-text-price h4 {
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
  }

  .heading-summary span {
    font-size: 2rem;
  }

  .checkout-button {
    font-size: 1rem;
    text-align: center;
  }
}
