/*
Theme Name: PrintOnderdelen
Theme URI: https://printonderdelen.nl
Author: PrintOnderdelen.nl
Description: Professionele WordPress webshop voor 3D-geprinte camper-accessoires.
Version: 2.0
Text Domain: printonderdelen
*/

:root {
  --dark:        #1a2535;
  --accent:      #c96820;
  --accent-dark: #a8561a;
  --bg:          #f6f5f1;
  --surface:     #ffffff;
  --surface-alt: #f0eeea;
  --text:        #1a2535;
  --muted:       #6b7280;
  --border:      #e3e1da;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 2px 16px rgba(26,37,53,0.08);
  --shadow-lg:   0 8px 40px rgba(26,37,53,0.13);
  --container:   1160px;
  --t:           0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; letter-spacing: -0.02em; }

/* ── Layout ── */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section      { padding: 5rem 0; }
.section-alt  { background: var(--surface-alt); }
.section-dark { background: var(--dark); color: #fff; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(201,104,32,0.35); }
.btn-dark    { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #0d1826; }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--dark); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246,245,241,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}
.site-branding a { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-img { height: 64px; width: auto; }
.logo-text { font-size: 1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--dark); }
.logo-text span { color: var(--accent); }

.main-nav { display: none; }
.main-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--text); background: var(--surface-alt); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.cart-link:hover { color: var(--text); background: var(--surface-alt); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav – dropdown onder hamburger */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  position: absolute;
  top: calc(100% + 4px);
  right: 1rem;
  min-width: 210px;
  overflow: hidden;
  z-index: 210;
}
.mobile-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.mobile-nav a:hover { background: var(--surface-alt); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ── HERO ── */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,104,32,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 85%, rgba(201,104,32,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.hero-badges li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
}
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-card img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-card-caption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ── STORY / OVER MIJ ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.story-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.story-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.75;
}
.story-text p:last-of-type { margin-bottom: 1.75rem; }
.story-image {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.story-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.story-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.story-stat span { font-size: 0.8rem; color: var(--muted); }

/* ── MERKEN ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-header-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; }
.section-header-text p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }

.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.brand-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
  text-decoration: none;
  color: inherit;
}
.brand-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.brand-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-alt); }
.brand-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.brand-card:hover .brand-card-img img { transform: scale(1.03); }
.brand-card-body {
  padding: 1.75rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.brand-card-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.65rem; }
.brand-card-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.brand-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--t);
}
.brand-card:hover .brand-link { gap: 0.6rem; }

/* ── PRODUCTEN ── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-img { aspect-ratio: 1; overflow: hidden; background: var(--surface-alt); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; }
.product-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.product-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-weight: 700; font-size: 1.05rem; }
.product-price ins { text-decoration: none; }
.product-cta { font-size: 0.8rem; font-weight: 700; color: var(--accent); }

/* ── MATERIALEN (dark section) ── */
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.material-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.material-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.material-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.material-card p { font-size: 0.88rem; color: rgba(255,255,255,0.62); line-height: 1.65; }

/* ── OP MAAT ── */
.custom-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.custom-box h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: 1.1rem; }
.custom-box > div > p { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.97rem; }
.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.custom-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.custom-list li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.custom-steps { display: flex; flex-direction: column; gap: 0.85rem; }
.custom-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.custom-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.custom-step-body h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.custom-step-body p { font-size: 0.82rem; color: var(--muted); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.72); padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-text { font-size: 1rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.footer-logo-text span { color: var(--accent); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.48); margin-top: 0.75rem; max-width: 36ch; line-height: 1.65; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  padding: 0.3rem 0;
  transition: color var(--t);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.32);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── WooCommerce wrapper ── */
.woo-wrap { padding: 2rem 0 5rem; }

/* Logo altijd gefixeerde hoogte — ook op winkelpagina */
.logo-img { height: 64px !important; max-height: 64px !important; width: auto !important; }

/* Verberg uitgelichte afbeelding / grote afbeeldingen op de winkelpagina */
.woocommerce-page .wp-post-image,
.woo-wrap .entry-thumbnail,
.woo-wrap .post-thumbnail img,
.woo-wrap > .container > p > img,
.woocommerce-page .woocommerce-products-header img { display: none !important; }

/* Winkel paginatitel */
.woocommerce-products-header { padding: 1rem 0 0.5rem; }
.woocommerce-products-header__title.page-title {
  font-size: 1.6rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── WooCommerce overrides ── */

/* Verberg categorie-tegels in de productlijst — tonen alleen echte producten */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category { display: none !important; }

/* Clearfix pseudo-elementen uitschakelen — in CSS Grid worden ::before/::after
   anders grid-items en nemen ze een lege cel in de rij in */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { display: none !important; }

/* Reset WooCommerce float-layout volledig — anders conflicteert het met CSS Grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;        /* reset WooCommerce's 30% width */
  float: none !important;        /* reset WooCommerce's float */
  clear: none !important;
  margin: 0 !important;
  background: var(--surface) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--border) !important;
  transition: box-shadow var(--t), transform var(--t) !important;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px) !important;
}
.woocommerce ul.products li.product a img {
  border-radius: 0 !important;
  width: 100% !important;
  height: auto !important;
  transition: transform 0.4s ease !important;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0 1.25rem !important;
  margin: 0.75rem 0 0.35rem !important;
}
.woocommerce ul.products li.product .price {
  font-weight: 700 !important;
  padding: 0 1.25rem 0.75rem !important;
  color: var(--text) !important;
}
.woocommerce ul.products li.product a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--dark) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: background var(--t) !important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--accent) !important; }
.woocommerce .single_add_to_cart_button { background: var(--accent) !important; }
.woocommerce .single_add_to_cart_button:hover { background: var(--accent-dark) !important; }
.woocommerce span.onsale { background: var(--accent) !important; border-radius: 999px !important; }
.woocommerce .woocommerce-breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 1.25rem 0 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea { border-radius: var(--radius) !important; border-color: var(--border) !important; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(201,104,32,0.15) !important;
  outline: none !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order { background: var(--accent) !important; }

/* ── WordPress block overrides ── */
.wp-block-button__link { border-radius: 999px !important; }
.has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background,
.has-background { background: var(--surface) !important; }
.has-primary-color, .has-vivid-green-cyan-color { color: var(--text) !important; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .custom-box { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem; }
  .product-grid, .materials-grid, .brands-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .story-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .product-grid, .brands-grid, .materials-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
  .custom-box { padding: 2rem 1.5rem; grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .trust-strip-inner { gap: 1.25rem; justify-content: flex-start; }
  .logo-img { height: 44px; }
  .site-branding a { flex-direction: column; gap: 0.1rem; align-items: flex-start; }
  .logo-text { font-size: 0.8rem; }
}
