body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5em;
}

a {
  text-decoration: none;
}

/* NAVIGATION LINKS (all pages) */
.nav a { /* styles the text & buttons */
  text-decoration: none; /* removes underline */
  color: black; /* text color */
  font-size: 14px;
  letter-spacing: 1px;
  font-family: 'Times New Roman', serif;
  transition: color 0.3s ease, letter-spacing 0.3s ease; /* hover state */
}

.nav a:hover {
  color: gray;
  letter-spacing: 1.5px;
  text-decoration: none;
}

/* HOME PAGE */
.home_page #site_wrap {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "intro"
    "section_head"
    "gallery"
    "footer";
  grid-template-rows: auto auto auto auto auto auto; /* adjusts row height automatically */
}

.home-page .nav { /*parent, styles whole nav area */
  position: absolute; /*takes nav out of normal page flow and lets you manually place it based on coordinates you assign it*/
  top: 100px;
  right: 130px;
  z-index: 10; /* puts nav. bar on top of hero image */

}

.home-page .nav ul { /*styles the container of the list of items*/
  list-style: none; /*removes bullets*/
  display: flex; /*lists items in a row instead of vertically*/
  gap: 24px; /*spaces 24px between each item*/
  margin: 0; 
  padding: 0;
}

.home-page  .hero {
  grid-area: hero; /*assigns hero section to "hero area of grid template*/
  position:relative; /*tells the browser to place position: absolute logo & nav on to this hero section not the whole page*/
  width: 100%; /*hero section stretchs full width of browser*/
  min-height: 600px;   
  overflow: hidden; /*hide anything that sticks out past the hero boundaries*/
        
}

.home-page .hero-img {
  width: 100%;
  height: auto; /*auto scale of height to prevent image distortion*/
  display: block; /*removes default spacing under images*/
  object-fit: cover; /*crop edges of image rather than stretching it*/
    
}

.home-page .hero-logo {
  position: absolute;
  top: 30%; /* moves logo up and down */
  left: 50%; /*centers logo horizontally*/
  transform: translate(-50%, -50%); /*perfect center of logo horiz. & vertically*/
  width: 200px; /* logo size */
  height: auto; 
}
    
.home-page .hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Times New Roman', serif;
  letter-spacing: 2px;
  color: black;
   
}


.home-page .intro {
  background-color: white;
  grid-area:intro;
  text-align: center;
  padding: 180px 40px;
  font-family: "Times New Roman", serif;
  line-height: 1.8;
  color: black;
        
}

.home-page .section_head {
  grid-area: section_head;
  position: relative; /*makes this a position reference for anything inside it*/
  display: flex; /*makes it so you can align internal elements*/
  justify-content: center; /*centers everything*/
  align-items: center; /* vertically centers text & buttons to line up evenly no matter their font size */
  padding: 40px 80px; /* 40px-adds space on top/bottom, 80x-left/right */
  background-color: white;
}

.home-page .section_head h2 {
  font-family: "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 2px; 
  font-weight: 600;
  color: black;
  margin: 0;

}

.shop_now {
  position: absolute;
  text-decoration: none;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: black;
  transition:  color 0.3s ease, letter-spacing 0.3s ease;
        
}

.section_head a:hover {
  color: rgb(75, 73, 73);
  letter-spacing: 2px;
  cursor: pointer;
        
}


.home-page .gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 12px;
  row-gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: white;
  box-sizing: border-box;
  width: calc(100% - 40px); /* makes padding apply evenly */
   margin: 0 auto; /* helps center the grid */
}

.home-page .gallery img {
  width: 100%;
  height: 340px; 
  object-fit: cover; /*fill entire container space but keep proportions, no stretching*/
  display: block;
}
    
.home-page .footer {
  grid-area: footer;
  padding: 48px 60px; 
  background-color: white;
}

.home-page .footer ul {
list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end; /*aligns items right*/
  align-items: center; /*makes items vertically centered*/
  gap: 30px; /*spacing between each item*/ 
}

.home-page .footer a {
  text-decoration: none;
  color:black;
  font-size: 8px;
  letter-spacing: 1px;
  transition:  color 0.3s ease, letter-spacing 0.3s ease; 
  /*0.3s ease: transition time, starts fast slows slowly*/
 
}

 .home-page .footer a:hover {
    color: gray;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    
 }

/* ABOUT / CONTACT / SHOP / NAV BAR */

.nav-logo-link {
  display: inline-block; /*sits next to the other elements on same line*/
  text-decoration: none;
}


.nav-logo-link:hover .nav-logo {
  opacity: 0.7; /* fades logo when u hover */
  transition: opacity 0.3s ease;

}

.about-page .nav,
.contact-page .nav,
.shop-page .nav,
.cart-page .nav  {
  position: static;  /* resets positioing / cancels out parent positioning */
  width: 100%;       
  box-sizing: border-box;
  display: flex;            
  align-items: center;       
  justify-content: space-between; /* logo left, links right */
  padding: 60px 130px 0 130px; /* top, right, bottom, left */

}

/* logo */
.about-page .nav-logo,
.contact-page .nav-logo,
.shop-page .nav-logo,
.cart-page .nav-logo  {
  height: 20px;   
  width: auto;

}

/* right links*/
.about-page .nav ul,
.contact-page .nav ul,
.shop-page .nav ul,
.cart-page .nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;

}

.about-page .footer ul,
.contact-page .footer ul,
.shop-page .footer ul,
.cart-page .footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end; /*aligns links right*/
  align-items: center; /*makes links centered vertically*/
  gap: 30px; /*spacing between links*/
  margin-top: 80px;   /* pushes links down from rest of page */
  margin-bottom: 40px; /* space below links*/
  padding-right: 80px; /* keeps right spacing */
  box-sizing: border-box;

}

.about-page .footer a,
.contact-page .footer a,
.shop-page .footer a,
.cart-page .footer a {
  text-decoration: none;
  color:black;
  font-size: 8px;
  letter-spacing: 1px;
  transition:  color 0.3s ease, letter-spacing 0.3s ease;

}

.about-page .footer a:hover,
.contact-page .footer a:hover,
.shop-page .footer a:hover,
.cart-page .footer a:hover{
  color: gray;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;

}

/*/SHOP PAGE/*/
.shop-page {
  background-color: #f5f2ec;

}
.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}


.shop-hero {
  display: grid;
  grid-template-columns: 2fr 1.4fr; /*big left image w text on right */
  gap: 40px;
  align-items: center;
  background-color: #f9f6f1;
  border-radius: 4px;
  padding: 40px;
  border: 1px solid #e0ddd5;
  margin-bottom: 60px;
}

.shop-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.shop-hero-text h1 {
  font-family: "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 2px;
  margin: 0 0 16px;
  color: #222;
}

.shop-hero-text p {
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* "SHOP THE COLLECTION"*/
.shop-featured h2 {
  font-family: "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #303030;
  margin-bottom: 24px;
}

/* COLLECTION OF PRODUCTS*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background-color: #f9f6f1;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #e0ddd5;
  padding-bottom: 16px;
}

.product-image {
  width: 100%;
  height: 260px; /* eacch Photo has sameheight */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* product name */
.product-card h3 {
  font-family: "Times New Roman", serif;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 12px 4px;
  color: #222;
}

.product-meta {
  font-family: "Times New Roman", serif;
  font-size: 11px;
  color: #999;
  margin: 0 12px 4px;
}

.product-price {
  font-family: "Times New Roman", serif;
  font-size: 12px;
  color: #333;
  margin: 0 12px;
}

.product-card:hover {
  border-color: #c9c4b8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}


@media screen and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-hero {
    grid-template-columns: 1.2fr 1fr;
    padding: 32px;
  }
}

@media screen and (max-width: 780px) {
  .shop-main {
    padding: 60px 20px 80px;
  }

  .shop-hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-hero {
    padding: 24px;
  }
}

/*ABOUT PAGE*/
.about-page {
  background-color: #f5f2ec;  

}

.about-layout {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "main side"
    "main text";
  gap: 40px;
  margin: 120px auto 80px;   
  padding: 0 130px;         
  box-sizing: border-box;

}

/* left Photo */
.about-main-image {
  grid-area: main;
  background-color: #f9f6f0;  
  overflow: hidden;

}

.about-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

}

/* top right photo */
.about-side-image {
  grid-area: side;
  background-color: #f9f6f0;
  overflow: hidden;

}

.about-side-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

}

/* BOTTOM-RIGHT TEXT CARD */
.about-text {
  grid-area: text;
  background-color: #f9f6f0;
  padding: 60px 80px;
  box-sizing: border-box;

}

.about-label {
  font-family: "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #777777;
  margin: 0 0 12px;

}

.about-heading {
  font-family: "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #222222;
  margin: 0 0 24px;
}

.about-copy {
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
  margin: 0 0 32px;
}

.about-link {
  display: inline-block;
  font-family: "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #222222;
  border-bottom: 1px solid #222222;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.about-link:hover {
  color: #777777;
  border-color: #777777;
}
.cart-page {
  background-color: #f7f4ee; 
}

/*/CONTACT PAGE*/
.contact-page { background-color: #f7f4ee; 

}

.contact-page .contact-wrapper {
  min-height: 100vh;     
  display: flex;
  align-items: center;   
  justify-content: center;
  background-color: #f5f2ec;

}


.contact-page .contact-card {
  background-color: #f9f6f1;  /* contact box  color */
  padding: 40px 48px;
  max-width: 520px;
  width: 90%;
  box-sizing: border-box;
  border-radius: 2px;

}

/* heading + intro */
.contact-page .contact-card h2 {
  margin: 0 0 8px;
  font-family: "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 1px;

}

.contact-page .contact-intro {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;

}

/*contact layout */
.contact-page .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;

}


.contact-page .contact-row {
  display: flex;
  gap: 12px;

}

.contact-page .contact-row input {
  flex: 1;

}


    .contact-page .contact-form input,
    .contact-page .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: #faf7f2;
  border: 1px solid #ded7cc;
  color: #222222;   
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}


  .contact-page .contact-form input:focus,
  .contact-page .contact-form textarea:focus {
  outline: none;
  border-color: #f4f2f0;
}

/* Submit button */
.contact-page .contact-submit {
   margin-top: 8px;
  align-self: flex-start;
  padding: 10px 24px;
   border: 1px solid #a2a1a1;
  background-color: #373634;;    /* send button color */
  color: #ffffff; /*send button text*/
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;

}

/* Hover for submit button */
.contact-page .contact-submit:hover {
  opacity: 0.7;

}

@media (max-width: 600px) {
  .contact-page .contact-row {
    flex-direction: column;
  }
}


/*CART*/
.cart-page .cart-wrapper {
  min-height: 100vh;        
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f2ec;   

}

.cart-page .cart-card {
      background-color:#f9f6f1;
  max-width: 960px;
      width: 90%;
  padding: 32px 40px;
  box-sizing: border-box;
  border-radius: 2px;
  font-size: 14px;

}

.cart-page .cart-title {
     margin: 0 0 20px;
  font-family: "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 1px;

}

/* two-columns items (L), summary (R) */
.cart-page .cart-layout {
    display: grid;
  grid-template-columns: 2fr 1fr;
   gap: 32px;

}

.cart-page .cart-items {
  border-top: 1px solid #373634;
}

.cart-page .cart-empty {
  padding: 24px 0;
  color: #222222;
  font-size: 13px;

}

.cart-page .cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e0ddd5;

}

.cart-page .cart-item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  background-color: #ddd;

}

.cart-page .cart-item-info h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;

}

.cart-page .cart-meta {
  margin: 0;
  font-size: 12px;
  color: #666;

}

.cart-page .cart-remove {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;

}

.cart-page .cart-remove:hover {
  color: #555;
}


.cart-page .cart-item-qty {
  text-align: right;
  font-size: 11px;

}

.cart-page .cart-item-qty label {
  display: block;
  margin-bottom: 4px;
  color: #777;

}

.cart-page .cart-item-qty select {
  padding: 4px 8px;
  border: 1px solid #d3c7b6;
  background-color: #f3e9dc;
  font-size: 12px;

}


.cart-page .cart-summary h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-family: "Times New Roman", serif;
  letter-spacing: 1px;

}

.cart-page .cart-summary-row,
.cart-page .cart-summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;

}

.cart-page .cart-summary-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #373634;
  font-weight: 600;

}

      .cart-page .cart-discount-label {
  display: block;
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.cart-page .cart-discount-input {
   width: 100%;
  padding: 8px 10px;
  border: 1px solid  #a2a1a1;
  background-color: 1px white;
  font-size: 13px;
  box-sizing: border-box;

}

/* checkout */

.cart-page .cart-checkout {
  margin-top: 14px;
  width: 100%;
  padding: 10px 0;
  border: none;
  background-color: #373634;
  color: white;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;

}

.cart-page .cart-checkout:hover {
  opacity: 0.75;

}

.cart-page .cart-continue {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: #555;

}

.cart-page .cart-continue:hover {
  color: #999;

}


@media (max-width: 800px) {
  .cart-page .cart-layout {
    grid-template-columns: 1fr;
  }

}
   
@media screen and (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery img {
    height: 400px; /* smaller images for mobile */
  }
}

/* stack images vertically */
@media screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* one image per row */
    row-gap: 20px; /* spacing between images */
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery img {
    height: auto; /* images will adjust automatically */
  }
}