/* =============================================================================
   TentKopen.nl — Stijlen
   Clean & Modern | 2025
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Custom properties
   --------------------------------------------------------------------------- */
:root {
  --color-primary:     #1d5c3a;   /* donker bosgroen */
  --color-primary-h:   #164a2e;   /* hover */
  --color-accent:      #ff6b2b;   /* oranje CTA */
  --color-accent-h:    #e55a1c;

  --color-bg:          #ffffff;
  --color-bg-alt:      #f6f8f5;
  --color-bg-card:     #ffffff;
  --color-border:      #e2e8e4;

  --color-text:        #1a1a1a;
  --color-text-muted:  #5a6b62;
  --color-link:        #1d5c3a;

  --color-price:       #1d5c3a;
  --color-was:         #9a9a9a;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 6px 24px rgba(0,0,0,.12);

  --container:  1200px;
  --gutter:     clamp(1rem, 5vw, 2rem);
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: 1.15rem; }

p + p { margin-top: .75rem; }

/* ---------------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  margin-bottom: .5rem;
  color: var(--color-primary);
}
.section-sub {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .65em 1.4em;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-h);
  border-color: var(--color-accent-h);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-lg { padding: .85em 2em; font-size: 1.05rem; }

.btn-buy {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1em;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(255,107,43,.3);
}
.btn-buy:hover { box-shadow: 0 6px 20px rgba(255,107,43,.45); }

/* ---------------------------------------------------------------------------
   5. Header
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .85rem;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; line-height: 1; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.logo-dot { color: #a8d8b9; }

/* Hamburger — altijd zichtbaar */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Nav — altijd dropdown */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1rem var(--gutter);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 99;
}
.main-nav.is-open { display: block; }
.main-nav ul { flex-direction: column; gap: .15rem; }
.main-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: .55em .75em;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d7a52 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #fff;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  max-width: 55ch;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------------------
   7. Category grid (homepage)
   --------------------------------------------------------------------------- */
.categories-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--color-bg-alt);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  text-decoration: none;
}

.category-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.category-card__body { flex: 1; min-width: 0; }
.category-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .3rem;
}
.category-card__desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.category-card__arrow {
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.category-card:hover .category-card__arrow { opacity: 1; transform: translateX(0); }

/* ---------------------------------------------------------------------------
   8. USPs
   --------------------------------------------------------------------------- */
.usps {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--color-bg);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.usp-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.usp-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.usp-item h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--color-primary); }
.usp-item p  { font-size: .875rem; color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   9. Breadcrumb
   --------------------------------------------------------------------------- */
.breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: .6rem 0;
  font-size: .82rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: .3rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 600; }

/* ---------------------------------------------------------------------------
   10. Page hero (categorie)
   --------------------------------------------------------------------------- */
.page-hero {
  background: var(--color-bg-alt);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--color-border);
}
.page-hero__title { color: var(--color-primary); margin-bottom: .75rem; }
.page-hero__intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 72ch;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   11. Product grid (categoriepagina)
   --------------------------------------------------------------------------- */
.products-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.product-count {
  color: var(--color-text-muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card__img-link { display: block; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--color-border);
}

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.product-card__brand {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
}
.product-card__title {
  font-size: .95rem;
  line-height: 1.35;
}
.product-card__title a {
  color: var(--color-text);
  text-decoration: none;
}
.product-card__title a:hover { color: var(--color-primary); }

.product-card__price { margin-top: auto; padding-top: .5rem; }

.price-was {
  display: block;
  font-size: .82rem;
  color: var(--color-was);
  text-decoration: line-through;
}
.price-now {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-price);
}
.price-now--lg { font-size: 1.6rem; }

.product-card .btn-secondary {
  margin-top: .75rem;
  font-size: .88rem;
  width: 100%;
  justify-content: center;
}

/* ---------------------------------------------------------------------------
   12. Other categories (categoriepagina)
   --------------------------------------------------------------------------- */
.other-categories {
  background: var(--color-bg-alt);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--color-border);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.pill {
  display: inline-block;
  padding: .35em .9em;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pill:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   13. Product detail
   --------------------------------------------------------------------------- */
.product-detail {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.product-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail__media {
  position: sticky;
  top: 80px;
}
.product-detail__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
}
.product-detail__img--placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  font-size: 5rem;
  color: var(--color-border);
}

.product-detail__brand {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: .35rem;
}
.product-detail__title {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.product-detail__price-box {
  margin-bottom: 1.5rem;
}
.product-detail__disclaimer {
  font-size: .8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: .5rem;
}
.product-detail__cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
}

.product-description {
  background: var(--color-bg-alt);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--color-border);
}
.product-description h2 { color: var(--color-primary); margin-bottom: 1rem; }
.product-description__text {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 75ch;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.back-to-cat {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

/* ---------------------------------------------------------------------------
   14. Empty state
   --------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.empty-state p { font-size: 1.15rem; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background: #14402a;
  color: rgba(255,255,255,.8);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo-icon { font-size: 1.8rem; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin-top: .5rem; font-size: .875rem; }

.footer-nav h3,
.footer-info h3 { color: #fff; font-size: .9rem; margin-bottom: .75rem; }

.footer-nav ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a { color: rgba(255,255,255,.7); font-size: .875rem; }
.footer-nav a:hover { color: #fff; }

.footer-info p { font-size: .875rem; }
.footer-info a { color: #a8d8b9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------------------
   16. Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .product-detail__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-detail__media { position: static; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid   { grid-template-columns: 1fr 1fr; }
  .usp-grid       { grid-template-columns: 1fr 1fr; }
}

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