@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --main-bg: #fcf8f3;
  --accent: #f2e4d5;
  --brown: #6a4b2c;
  --brown-light: #a88a6b;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--main-bg);
  color: var(--brown);
  font-family: var(--font-body);
  min-height: 100%;
}

header.hero {
  background: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem 1rem;
  gap: 2rem;
}

.hero-logo img {
  width: 150px;
  height: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 16px #e0e0e0;
}

.hero-text {
  max-width: 500px;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: 2.7rem;
  margin: 0;
  letter-spacing: 1px;
}
.hero-text h2 {
  font-size: 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--brown-light);
}
.hero-text p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--brown);
}

nav {
  background: var(--brown);
  padding: 0;
}
nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}
nav li {
  margin: 0 1.5rem;
}
nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 0;
  letter-spacing: 1px;
  transition: color 0.2s;
}
nav a:hover,
nav a:focus,
nav a.active {
  color: var(--brown-light);
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* SHOP LAYOUT */
.shop-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.products-container {
  flex: 2;
  min-width: 0;
}

.products-container h2 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: 1.3rem;
}

/* CATEGORIE OVERZICHT */
.product-category-group {
  margin-bottom: 2.5rem;
}

.product-category-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: var(--brown-light);
  margin: 1.5rem 0 1.1rem 0;
  padding-left: 0.15em;
  letter-spacing: 0.5px;
}

/* PRODUCTEN GRID PER CATEGORIE */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

/* PRODUCT CARD */
.product-card {
  background: var(--accent);
  padding: 1.3rem 1rem 1.2rem 1rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px #ece4dc;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.22s;
}
.product-card:hover {
  box-shadow: 0 4px 22px #e0d7c6;
}
.product-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
  color: var(--brown);
  font-weight: 700;
}
.product-card .product-price {
  font-weight: bold;
  color: var(--brown);
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
}
.product-card button {
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: 0.4em;
  padding: 0.47em 1.3em;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s;
}
.product-card button:disabled {
  background: #c6b19b;
  cursor: not-allowed;
}
.product-card button:hover,
.product-card button:focus {
  background: var(--brown-light);
}

/* CART */
.cart {
  flex: 1;
  min-width: 295px;
  background: var(--accent);
  box-shadow: 0 2px 16px #e0e0e0;
  border-radius: 1.2rem;
  padding: 1.4rem 1.1rem;
  position: sticky;
  top: 2rem;
  max-width: 350px;
}
.cart h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--brown);
}
#cartItems {
  margin-bottom: 1rem;
  min-height: 80px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  border-bottom: 1px dotted #dbc8b7;
  padding: 0.35em 0;
}
.cart-item span {
  font-size: 1rem;
}
.cart-item .cart-qty {
  display: flex;
  gap: 0.3em;
  align-items: center;
}
.cart-item button {
  background: none;
  color: var(--brown);
  border: none;
  font-size: 1.1em;
  padding: 0 0.3em;
  cursor: pointer;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 1em;
}
#checkoutBtn {
  display: block;
  width: 100%;
  background: var(--brown);
  color: #fff;
  border: none;
  border-radius: 0.4em;
  padding: 0.7em;
  font-size: 1.07rem;
  font-weight: bold;
  margin-bottom: 0.5em;
  cursor: pointer;
  transition: background 0.2s;
}
#checkoutBtn:hover, #checkoutBtn:focus {
  background: var(--brown-light);
}
#cartMessage {
  color: var(--brown);
  font-size: 1em;
  text-align: center;
}

/* Modal (order form popup) */
.modal {
  display: none;
  position: fixed;
  z-index: 30;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.22);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--main-bg);
  border-radius: 1rem;
  max-width: 430px;
  width: 97%;
  margin: 2rem auto;
  padding: 1.7rem 1.5rem 1.2rem 1.5rem;
  position: relative;
  box-shadow: 0 2px 24px #cfcfcf;
}
.close-modal {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 1.5em;
  color: var(--brown);
  cursor: pointer;
}
#orderForm {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#orderForm label {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
#orderForm input, #orderForm textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5em;
  border: 1px solid #dbc8b7;
  border-radius: 0.4em;
  background: #fff;
  resize: vertical;
}
#orderForm textarea {
  min-height: 60px;
}
#orderForm button {
  background: var(--brown);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0.4em;
  padding: 0.7em;
  font-size: 1.08rem;
  cursor: pointer;
  margin-top: 0.6em;
  transition: background 0.2s;
}
#orderForm button:hover,
#orderForm button:focus {
  background: var(--brown-light);
}
#orderSummary {
  background: var(--accent);
  border-radius: 0.6em;
  padding: 0.6em 1em;
  font-size: 1em;
  margin-bottom: 1em;
}
#orderSuccess {
  color: var(--brown);
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  text-align: center;
}

footer {
  background: var(--accent);
  padding: 1.1rem 0;
  margin-top: 2.5rem;
  text-align: center;
}
.footer-content {
  font-size: 1rem;
  color: var(--brown);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  main {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 1000px) {
  .shop-section {
    flex-direction: column;
    gap: 2.5rem;
  }
  .cart {
    position: static;
    margin: 0 auto;
    width: 100%;
    max-width: 430px;
  }
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .shop-products-grid {
    grid-template-columns: 1fr;
  }
  .cart {
    padding: 1.1rem 0.6rem;
  }
  main {
    padding: 1rem 0.2rem;
  }
}