:root {
  --bg: #f7f3ec;
  --text: #1e1a16;
  --muted: #6f665d;
  --accent: #f55c36;
  --accent-dark: #df4c28;
  --dark: #151515;
  --line: #ddd1c5;
  --card: #fffdf9;
  --shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* voorkomt dat iets breder wordt dan scherm */
* {
  max-width: 100%;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 600;
}

p {
  font-weight: 400;
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 21, 21, 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
}

.menu a.active,
.menu a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #201a17 0%, #3d2d26 100%);
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 68vh;
  height: 68vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  filter: blur(0);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-slide-1 {
  background-image: url('../images/slider/slide1.jpg');
}

.hero-slide-2 {
  background-image: url('../images/slider/slide2.jpg');
}

.hero-slide-3 {
  background-image: url('../images/slider/slide3.jpg');
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 3;
}

.hero-content .container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #d6b8ad;
  margin-bottom: 0.8rem;
}

.hero h1,
.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
}

/* Buttons */
.button,
a.button,
button.button,
input.button,
.button:visited,
a.button:visited {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(245, 92, 54, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
a.button:hover,
button.button:hover,
input.button:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 92, 54, 0.24);
}

.button-secondary,
a.button-secondary,
button.button-secondary,
.button-secondary:visited,
a.button-secondary:visited {
  background: #fff;
  color: var(--text);
  border-color: #d7ccc3;
  box-shadow: none;
}

.button-secondary:hover,
a.button-secondary:hover,
button.button-secondary:hover {
  background: #f5efe9;
  color: var(--text);
  border-color: #cdbfb4;
  box-shadow: none;
}

.button-small,
a.button-small,
button.button-small {
  min-height: 42px;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
}

.hero .button,
.hero .button-secondary {
  min-width: 180px;
}

.hero .button-secondary,
.hero a.button-secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.96);
}

.hero .button-secondary:hover,
.hero a.button-secondary:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

/* General cards */
.summary-box,
.product-card,
.success-box,
.bank-box,
.empty-box,
.alert {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Intro homepage */
.intro {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.intro-text {
  padding: 1.2rem 0;
}

.intro-text h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 1.2rem;
}

.intro-text h2 span {
  display: block;
  font-weight: 600;
}

.intro-text .lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.intro-text .highlight {
  font-weight: 700;
  margin: 1.2rem 0;
  line-height: 1.6;
  color: var(--text);
}

.intro-text p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Right info box */
.info-box {
  background: #fff4ee;
  border: 1px solid #f2d2c6;
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 20px 40px rgba(245, 92, 54, 0.12);
  align-self: start;
  margin-top: 20px;
}

.info-box h3 {
  margin: 0 0 1.4rem;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
}

.info-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-box li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.info-box li:last-child {
  margin-bottom: 0;
}

.info-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.product-card {
  overflow: hidden;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #2b211d, #8a5a4e);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-body {
  padding: 1.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #f2e3da;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.product-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.product-body .description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.8rem 0;
}

.price-large {
  font-size: 1.8rem;
}

.price-info,
.shipping-info {
  font-size: 0.9rem;
  color: #6f665d;
  margin-top: 5px;
  font-weight: 400;
  display: block;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Hero pages */
.page-hero {
  padding: 4rem 0 3rem;
}

.page-hero-dark {
  background: linear-gradient(180deg, #201a17 0%, #2b2522 100%);
  color: #fff;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.product-detail-image .product-image,
.fallback {
  min-height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
}

.product-meta {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.product-meta li {
  margin-bottom: 0.45rem;
}

.buy-box {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.buy-box input,
.checkout-form input,
.cart-table input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.buy-box label {
  max-width: 120px;
}

/* Cart / checkout */
.cart-layout,
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.summary-box {
  padding: 1.3rem;
  position: sticky;
  top: 96px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.summary-line.total {
  font-size: 1.15rem;
}

.checkout-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checkout-form label,
fieldset {
  display: block;
  margin-bottom: 1rem;
}

.checkout-form .full {
  grid-column: 1 / -1;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset legend {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  color: #1e1a16;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.radio input {
  width: auto;
}

.success-box,
.bank-box,
.empty-box {
  padding: 1.5rem;
}

.bank-box {
  margin: 1.2rem 0;
}

.alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border-color: #e7b3a5;
  background: #fff6f2;
}

.muted {
  color: var(--muted);
}

/* Order management */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.orders-table th,
.orders-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ddd6cf;
}

.orders-table th:last-child,
.orders-table td:last-child {
  width: 220px;
}

.order-action-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 190px;
  max-width: 190px;
}

.order-action-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d7ccc3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.order-action-form .button {
  width: 100%;
  min-height: 44px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-paid {
  background: #e5f3e7;
  color: #256c38;
}

.status-pending {
  background: #fff1df;
  color: #9a5a00;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.text-column {
  padding: 1.5rem;
}

.image-column img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid,
  .product-detail,
  .cart-layout,
  .checkout-grid,
  .intro,
  .footer-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    margin-top: 0;
  }

  .info-box {
    margin-top: 0;
  }

  .checkout-form .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }

  .hero .button,
  .hero .button-secondary {
    min-width: 160px;
  }

  .cart-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table th,
  .cart-table td,
  .orders-table th,
  .orders-table td {
    word-wrap: break-word;
    white-space: normal;
  }

  .cart-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {

  html, body {
    overflow-x: hidden;
  }

  .container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
  }

  .section {
    padding: 2.5rem 0;
  }

  /* NAV */
  .nav {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* HERO */
  .hero-slider {
    min-height: 52vh;
    height: 52vh;
  }

  .hero-content {
    bottom: 20px;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero .button,
  .hero .button-secondary {
    min-width: 140px;
    font-size: 0.9rem;
  }

  /* INTRO */
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .intro-text {
    padding: 0;
  }

  .intro-text h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .intro-text p,
  .intro-text .lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* INFO BOX */
  .info-box {
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
    margin-top: 0;
  }

  .info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .info-box li {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }

  /* TITELS */
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .section-heading a {
    font-size: 0.95rem;
  }

  /* PRODUCT GRID */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  /* CHECKOUT */
  .checkout-form .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
    margin-top: 1.5rem;
  }

  /* WINKELWAGEN FIX */
  .cart-table {
    width: 100%;
  }

  .cart-table th,
  .cart-table td {
    white-space: normal;
    word-break: break-word;
  }

  .cart-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-buttons .button {
    width: 100%;
  }  
	.cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table tr,
  .cart-table th,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table {
    border-radius: 18px;
    overflow: hidden;
  }

  .cart-table tr {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }

  .cart-table td {
    border: 0;
    padding: 0.45rem 1rem;
    text-align: left;
  }

  .cart-table td::before {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }

  .cart-table td:nth-child(1)::before {
    content: "Product";
  }

  .cart-table td:nth-child(2)::before {
    content: "Prijs";
  }

  .cart-table td:nth-child(3)::before {
    content: "Aantal";
  }

  .cart-table td:nth-child(4)::before {
    content: "Totaal";
  }

  .cart-table input[type="number"],
  .cart-table input[type="text"] {
    max-width: 140px;
  }

  .cart-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-buttons .button,
  .cart-buttons .button-secondary {
    width: 100%;
  }
	.orders-table,
  .orders-table thead,
  .orders-table tbody,
  .orders-table tr,
  .orders-table th,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .orders-table td {
    border: none;
    padding: 0.4rem 0;
    word-break: break-word;
  }

  /* Labels voor duidelijkheid */
  .orders-table td::before {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .orders-table td:nth-child(1)::before {
    content: "Order";
  }

  .orders-table td:nth-child(2)::before {
    content: "Klant";
  }

  .orders-table td:nth-child(3)::before {
    content: "Items";
  }

  .orders-table td:nth-child(4)::before {
    content: "Status";
  }

  .orders-table td:nth-child(5)::before {
    content: "Acties";
  }

  /* Actie formulier netjes onder elkaar */
  .order-action-form {
    width: 100%;
    max-width: 100%;
  }

  .order-action-form input {
    width: 100%;
  }

  .order-action-form .button {
    width: 100%;
  }
	.orders-table {
    width: 100%;
    overflow: hidden;
  }

  .orders-table tr {
    width: 100%;
    box-sizing: border-box;
  }

  .orders-table td {
    width: 100%;
    box-sizing: border-box;
  }

  /* voorkomt dat lange tekst de layout breekt */
  .orders-table td,
  .orders-table td * {
    overflow-wrap: break-word;
    word-break: break-word;
  }
	.page-hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .page-hero .lead {
    font-size: 0.95rem;
  }

}