@font-face {
  font-family: Lucida Calligraphy;
  src: url("../font/Lucida Calligraphy Regular.ttf") format("truetype");
}

@font-face {
  font-family: DM Sans;
  src: url("../../font/static/DMSans_18pt-Black.ttf") format("truetype");
}

:root {
  --background-color: rgba(188, 131, 74, 1);
  --text-color: rgba(255, 255, 255, 1);
  --input-color: rgba(137, 95, 54, 1);
  --input-border-color: rgba(149, 90, 59, 1);
  --box-background-color: rgba(90, 58, 26, 1);
  --item-price-sale-color: rgba(0, 246, 0, 1);
  --item-price-normal-color: rgba(188, 131, 74, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #f3e7d7;
  overflow-x: hidden;
  background-color: var(--background-color);
}

/* ── Header ── */
.header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 120;
  backdrop-filter: blur(4px);
  background: url("../img/HeaderBackground.jpg");
  background-size: cover;
}

.logo {
  width: clamp(60px, 10vw, 100px);
  margin: 1%;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 1%;
}

.menu-btn img {
  width: clamp(28px, 4vw, 35px);
}

/* Spacer that pushes content below the fixed header */
.block {
  height: clamp(70px, 12vw, 110px);
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
}

.bigtxt {
  margin-left: 5vw;
  margin-top: 4vh;
  font-size: clamp(1.4rem, 5vw, 2.5rem);
}

.bar {
  background-color: var(--text-color);
  width: min(60vw, 500px);
  height: 3px;
  margin-left: 5vw;
  margin-bottom: 4vh;
}

/* ── Search / filter bar ── */
.divide {
  width: 100%;
  min-height: 60px;
  padding: 10px 5vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  z-index: 120;
  backdrop-filter: blur(4px);
  background: url("../img/devider.png");
  background-size: cover;
}

.divide input,
.divide button,
.divide select {
  background-color: var(--input-color);
  color: var(--text-color);
  border-radius: 5px;
  padding: 8px 12px;
  border: 1px solid var(--input-border-color);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.Name {
  width: clamp(120px, 35vw, 260px);
  flex-shrink: 1;
}

.divide input::placeholder {
  color: var(--text-color);
  opacity: 1;
}

/* ── Offers heading ── */
#ourOffers {
  display: flex;
  justify-content: center;
  margin-top: 3vh;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

/* ── Card grid (offers + category sections) ── */
.aanbiedingen {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 5vw, 60px);
  flex-wrap: wrap;
  padding: 0 4vw;
}

/* Offer / product cards */
#boxT1 {
  background-color: var(--box-background-color);
  border-radius: 10px;
  padding: 0;
  width: clamp(140px, 28vw, 240px);
  height: auto;          /* let content drive height on small screens */
  min-height: 220px;
}

#boxT2 {
  background-color: var(--box-background-color);
  border-radius: 10px;
  padding: 0;
  width: clamp(140px, 28vw, 240px);
  height: auto;
  min-height: 260px;
}

#imgInBox {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border: 1px solid var(--input-border-color);
  display: block;
}

.itemName,
.itemPricedisc,
.itemPrice {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  text-align: center;
}

.itemPricedisc {
  color: var(--item-price-sale-color);
}

#oldValue {
  margin-left: 2vw;
  text-decoration: line-through;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.whitespace {
  margin-bottom: 3vh;
}

/* ── Main product listing ── */
main {
  background: url("../img/bgWood.png");
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(100px, 18vh, 160px);
}

.itemPrice {
  color: var(--item-price-normal-color);
}

/* ── Counter / quantity controls ── */
.options {
  display: flex;
  justify-content: center;
}

.amount {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.amount button,
.amount .counter-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  min-width: 2rem;
}

.amount button:disabled,
.amount .counter-btn:disabled {
  color: #999;
  cursor: default;
}

.amount button:focus,
.amount .counter-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.amountofproduct {
  min-width: 3rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── See more / see less buttons ── */
.seeMore,
.seeLess {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 32px);
  border-radius: 10px;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  background: none;
  margin-top: 2vh;
  margin-bottom: 2vh;
  cursor: pointer;
  position: relative;
  z-index: 10;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.buttonseemore {
  width: 100%;
  text-align: center;
}

/* ── Footer ── */
footer {
  padding: clamp(12px, 3vh, 24px) clamp(16px, 5vw, 40px);
  position: fixed;
  bottom: 0;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  width: 100%;
  height: auto;
  background: url("../img/devider.png");
  background-size: cover;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 32px);
  align-items: center;
  z-index: 5;
  animation: fadeInHeader 0.5s ease-out;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

footer button {
  background-color: var(--input-color);
  color: var(--text-color);
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  white-space: nowrap;
}

footer a {
  text-decoration: none;
}

.divide select {
  background-color: var(--input-color);
  color: var(--text-color);
}

/* ── Animations ── */
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutHeader {
  from {
    opacity: 1;
    transform: translateY(0px);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ── Responsive breakpoints ── */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .aanbiedingen {
    gap: 16px;
    padding: 0 3vw;
  }

  #boxT1,
  #boxT2 {
    width: clamp(130px, 42vw, 200px);
  }

  .Name {
    width: clamp(100px, 50vw, 200px);
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .bigtxt {
    font-size: 1.4rem;
  }

  .bar {
    width: 75vw;
  }

  /* On small phones, stack the offers cards in a 2-column grid */
  .aanbiedingen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 4vw;
  }

  #boxT1,
  #boxT2 {
    width: 100%;
  }

  /* Search bar: stack vertically */
  .divide {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 4vw;
  }

  .Name {
    width: 100%;
  }

  .divide select,
  .divide button {
    width: auto;
  }

  /* Footer: tighter on small screens */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  footer button {
    width: 100%;
    text-align: center;
  }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .aanbiedingen {
    grid-template-columns: 1fr;
  }

  #boxT1,
  #boxT2 {
    max-width: 90vw;
    margin: 0 auto;
  }
}