/*
Theme Name: Dzfw
Theme URI: https://dzfw.example.com
Author: Dzfw
Author URI: https://dzfw.example.com
Description: Een modern, schoon WordPress thema voor de Dzfw webshop. Met categoriekaarten, specialist-banner, Actueel en Populair secties, productoverzichten en contactpagina. Perfect voor natuurlijke producten, kruiden, thee en wellness.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dzfw
Tags: e-commerce, custom-menu, featured-images, translation-ready, blog, one-column, custom-logo, custom-colors
*/

/* Self-hosted Inter (latin). One woff2 covers 400/600/700; display=swap. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --dzfw-green: #4a7c59;
  --dzfw-green-dark: #3a6347;
  --dzfw-green-light: #e8f0ea;
  --dzfw-green-accent: #5b9a6b;
  --dzfw-text: #222222;
  --dzfw-text-light: #555555;
  --dzfw-bg: #ffffff;
  --dzfw-bg-alt: #f8f9f8;
  --dzfw-border: #e5e5e5;
  --dzfw-radius: 8px;
  --dzfw-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --dzfw-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--dzfw-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dzfw-text);
  background: var(--dzfw-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

ul,
ol {
  list-style: none;
}

button,
.button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--dzfw-text);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--dzfw-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-btn {
  background: none;
  border: none;
  padding: 8px;
  color: var(--dzfw-text);
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dzfw-text);
  position: relative;
}

.main-nav a:hover {
  color: var(--dzfw-green);
}

.site-branding {
  text-align: center;
  flex: 1;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dzfw-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.site-title .logo-crown {
  font-size: 0.7rem;
  color: var(--dzfw-green);
  margin-bottom: 2px;
}

.site-title .logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dzfw-text-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--dzfw-text);
}

.header-icon:hover {
  color: var(--dzfw-green);
}

.header-icon svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

/* ==========================================================================
   Category Cards (Hero grid)
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 30px 0 40px;
}

.category-card {
  position: relative;
  border-radius: var(--dzfw-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: #f0f0f0;
  box-shadow: var(--dzfw-shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  text-align: center;
}

.category-card .btn {
  display: inline-block;
  background: #fff;
  color: var(--dzfw-text);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.category-card .btn:hover {
  background: var(--dzfw-green);
  color: #fff;
}

.category-card .btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.7;
}

/* ==========================================================================
   Specialist Banner
   ========================================================================== */
.specialist-banner {
  background: var(--dzfw-green-light);
  border-radius: var(--dzfw-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  margin: 20px 0 50px;
  min-height: 280px;
}

.specialist-content {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0ea 0%, #d4e5d8 100%);
}

.specialist-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dzfw-green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialist-label::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--dzfw-green);
  border-radius: 50%;
  display: inline-block;
}

.specialist-content h1,
.specialist-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.specialist-content p {
  color: var(--dzfw-text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--dzfw-green);
  color: var(--dzfw-green);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--dzfw-green);
  color: #fff;
}

.specialist-image {
  position: relative;
}

.specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Actueel & Populair sections
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-grid.popular {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  background: var(--dzfw-bg-alt);
  border-radius: var(--dzfw-radius);
  padding: 20px;
  margin-bottom: 14px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.product-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dzfw-text);
  line-height: 1.4;
}

.product-title a:hover {
  color: var(--dzfw-green);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #f5f7f5;
  padding: 50px 0 30px;
  margin-top: 60px;
  border-top: 1px solid var(--dzfw-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--dzfw-text-light);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--dzfw-text-light);
}

.footer-col a:hover {
  color: var(--dzfw-green);
}

.footer-bottom {
  border-top: 1px solid var(--dzfw-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

/* ==========================================================================
   Buttons & utilities
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--dzfw-green);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--dzfw-green-dark);
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid.popular {
    grid-template-columns: repeat(3, 1fr);
  }

  .specialist-banner {
    grid-template-columns: 1fr;
  }

  .specialist-image {
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--dzfw-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-right .header-icon span {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-grid,
  .product-grid.popular {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .specialist-content {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

  .product-grid,
  .product-grid.popular {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About page (Over ons)
   ========================================================================== */
.about-page {
  padding: 40px 0 60px;
  max-width: 800px;
}

.about-header {
  margin-bottom: 30px;
  text-align: center;
}

.about-content {
  line-height: 1.75;
  color: var(--dzfw-text);
}

.about-content p {
  margin-bottom: 1.25em;
}

.about-image {
  margin: 40px 0;
  text-align: center;
}

.about-image img {
  border-radius: var(--dzfw-radius);
  box-shadow: var(--dzfw-shadow);
  margin: 0 auto;
}

.about-image figcaption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 10px;
}

.about-note,
.edit-note,
.sidebar-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 40px;
  padding: 16px;
  background: var(--dzfw-bg-alt);
  border-radius: 6px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-page {
  padding: 40px 0 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 20px;
}

.contact-details h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--dzfw-green);
}

.contact-details p {
  color: var(--dzfw-text-light);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--dzfw-bg-alt);
  padding: 32px;
  border-radius: var(--dzfw-radius);
}

.contact-form-wrapper h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.9rem;
  color: var(--dzfw-text-light);
  margin-bottom: 24px;
}

.dzfw-contact-form .form-row {
  margin-bottom: 18px;
}

.dzfw-contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.dzfw-contact-form input[type="text"],
.dzfw-contact-form input[type="email"],
.dzfw-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--dzfw-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}

.dzfw-contact-form input:focus,
.dzfw-contact-form textarea:focus {
  outline: none;
  border-color: var(--dzfw-green);
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
}

.form-feedback {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ==========================================================================
   Producten overzicht (category listing)
   ========================================================================== */
.producten-page {
  padding: 30px 0 60px;
}

.producten-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.producten-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--dzfw-text-light);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--dzfw-border);
  border-radius: 4px;
  font-family: inherit;
  background: #fff;
}

.producten-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.producten-sidebar h2.sidebar-heading,
.producten-sidebar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dzfw-green);
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  font-size: 0.9rem;
  color: var(--dzfw-text-light);
  display: block;
  padding: 4px 0;
}

.category-list a:hover,
.category-list .active a {
  color: var(--dzfw-green);
  font-weight: 400;
}

.producten-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-cat {
  display: block;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--dzfw-text);
  border: 1px solid transparent;
}

.page-numbers.current {
  background: var(--dzfw-green);
  color: #fff;
}

.page-numbers:hover:not(.current) {
  border-color: var(--dzfw-border);
}

/* ==========================================================================
   Product detail
   ========================================================================== */
.product-detail-page {
  padding: 20px 0 60px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--dzfw-green);
}

.breadcrumb span,
.breadcrumb .breadcrumb-sep {
  margin: 0 6px;
}
.breadcrumb .breadcrumb-current {
  color: #666;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-main-image {
  background: var(--dzfw-bg-alt);
  border-radius: var(--dzfw-radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-main-image img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
}

.product-summary .product-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

.product-price {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-price strong {
  color: var(--dzfw-green);
  font-size: 1.3rem;
}

.product-short-desc {
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-meta-box {
  background: var(--dzfw-bg-alt);
  padding: 20px;
  border-radius: var(--dzfw-radius);
  margin-bottom: 24px;
}

.product-meta-box h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.product-meta-box ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dzfw-text-light);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stock-status {
  font-size: 0.9rem;
  color: #2e7d32;
}

.related-products {
  border-top: 1px solid var(--dzfw-border);
  padding-top: 40px;
}

/* ==========================================================================
   Responsive additions for new pages
   ========================================================================== */
@media (max-width: 1024px) {
  .producten-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-detail-layout {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .contact-grid,
  .producten-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .producten-sidebar {
    order: -1;
  }

  .producten-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-main-image {
    min-height: 280px;
  }
}

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


/* ==========================================================================
   Accessibility, content lists, search
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--dzfw-text);
  display: block;
  font-weight: 600;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 10px 16px;
  text-decoration: none;
  top: 12px;
  width: auto;
  z-index: 100000;
  box-shadow: var(--dzfw-shadow);
  border-radius: 4px;
}

:focus-visible {
  outline: 2px solid var(--dzfw-green);
  outline-offset: 2px;
}

.dzfw-contact-form input:focus,
.dzfw-contact-form textarea:focus {
  outline: 2px solid var(--dzfw-green);
  outline-offset: 1px;
  border-color: var(--dzfw-green);
}

.dzfw-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  margin: 0 0 1.25em 1.5em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content a {
  color: var(--dzfw-green);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--dzfw-green-dark);
}

.entry-content p {
  margin-bottom: 1.25em;
}

.entry-header {
  margin-bottom: 30px;
}

.entry-header-center {
  text-align: center;
}

.entry-header-center .product-date {
  margin-bottom: 10px;
}

.page-header {
  margin-bottom: 40px;
}

.dzfw-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.post-thumbnail {
  margin-bottom: 30px;
  border-radius: var(--dzfw-radius);
  overflow: hidden;
}

.section-compact {
  padding-top: 20px;
}

.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 .section-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.error-404 p {
  margin-bottom: 30px;
  color: #666;
}

.header-search {
  padding: 12px 0 4px;
}

.header-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--dzfw-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.header-search-form .btn-primary {
  padding: 10px 18px;
}

.page-links {
  margin-top: 24px;
}

.site-header {
  position: relative;
}

@media (min-width: 769px) {
  .site-header {
    position: sticky;
  }
}
