@charset "utf-8";

/*
    Crafts By Catmarg Project
    Catherine Carter
    Started on 9/29/2025
*/

#logo {
    width: 300px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* main nav bar */
nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  background: rgba(183, 224, 246);
}

nav ul li {
  position: relative;
}

/* button styling */
nav ul li > a {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  border: 2px solid purple;
  border-radius: 5px;
  background: #ffebff;
  box-shadow: 2px 2px 4px #aaa;
  transition: all 0.2s ease;
}

nav ul li > a:hover {
  background: #ffebff;
  box-shadow: 1px 1px 2px #666;
}

/* dropdown hidden by default */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffebff;
  z-index: 999;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  border-radius: 6px;
  border: 2px solid purple;
}

/* dropdown links */
nav ul li ul li a {
  display: block;
  width: 180px;
  padding: 10px 14px;
  text-decoration: none;
  color: black;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: #ffebff;
}

nav ul li ul li a:hover {
  background: #e6e6fa;
}

/* keep menu open while hovering parent OR dropdown */
nav ul li:hover > ul,
nav ul li ul:hover {
  display: block;
}

/*global fonts */
body {
    font-family: 'Lora', serif;
}

/* headings */
h1 {
    font-family: 'Quicksand' sans-serif;
    text-align: center;
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 15px;
}

/* Our Story box styling */
.our-story {
    margin: 40px auto;
    padding: 20px;
    background: #ffebff;
    border: 2px solid purple;
    border-radius: 8px;
    box-shadow: 2px 2px 6px #aaa;
}

.our-story p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}

.faq-box {
    margin: 40px auto;
    padding: 20px;
    background: #ffebff;
    border: 2px solid purple;
    border-radius: 8px;
    box-shadow: 2px 2px 6px #aaa;
}

/* FAQ heading inside the box */
.faq-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

/* FAQ list styling */
.faq-box dl {
    margin: 0;
}

.faq-box dt {
    font-weight: bold;
    margin-top: 10px;
    color: #3b3b3b;
}

.faq-box dd {
    margin-left: 15px;
    margin-bottom: 10px;
}

/* Product grid outer box - matches Our Story / FAQ theme */
.product-grid-box {
    margin: 40px auto;
    padding: 20px;
    background: #ffebff;
    border: 2px solid purple;
    border-radius: 8px;
    box-shadow: 2px 2px 6px #aaa;
}

/* Heading inside product sections */
.product-grid-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

/* The grid itself */
.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Individual product cards */
.product-item {
    background: rgba(183, 224, 246);
    border-radius: 8px;
    box-shadow: 1px 1px 4px #ccc;
    padding: 10px;
    text-align: center;
}

/* Product images */
.product-item img {
    width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/* Product name */
.product-item h3 {
    margin: 10px 0 5px;
    font-size: 1.1em;
}

/* Price text */
.product-item p.price {
    font-weight: bold;
    margin: 0 0 5px;
}

/* Small description text (optional) */
.product-item p.description {
    font-size: 0.95em;
    margin: 0;
}

/* Category sections inside Home Goods */
.product-category {
    margin-top: 30px;
}

/* Category headings */
.product-category h4 {
    margin-bottom: 10px;
    border-bottom: 1px solid purple;
    padding-bottom: 5px;

}

/* Make Images Flexible */
img {
  max-width: 100%;
  height: auto;
}

/* Make form fields stretch on small screens */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%,
  box-sizing: border-box;
}

/* Keep main boxes flexible */
.our-story,
.faq-box,
.product-grid-box {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* footer stuff */

footer {
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    background: #ffebff;
    border-top: 2px solid purple;
    box-shadow: 0 -2px 6px #aaa;
}

footer a {
    text-decoration: none;
    color: purple;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Tablet and smaller (768) */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }

  nav ul li > a {
    padding: 8px 14px;
    font-size: 0.95em;
  }

  .our-story,
  .faq-box,
  .product-grid-box {
    margin: 20px 10px;
    padding: 15px;
  }

  .product-item h3 {
    font-size: 1em;
  }

  .product-item p.description {
    font-size: 0.95em;
  }
}

/* Small phones (480) */

@media (max-width: 480px) {
  nav ul {
    justify-content: center;
  }

  nav ul li > a {
    display: inline-block;
    min-width: 180px;
    text-align: center;
  }

  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.3em;
    text-align: center;
  }

  .product-item img {
    width: 80%;
    margin: 0 auto;
  }

  .faq-box dd {
    margin-left: 10px;
    margin-bottom: 8px;
  }
}