/*
Theme Name: EarthPure Shop
Theme URI: https://shop.earthpure.net
Author: EarthPure
Author URI: https://earthpure.net
Description: EarthPure webshop theme met WooCommerce, winkelwagen, testimonials, contactformulier en PayPal checkout. Gebaseerd op shop.earthpure.net.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earthpure
Tags: e-commerce, shop, woocommerce, one-page, responsive
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #81C784;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #757575;
  --gray-dark: #333333;
  --black: #111111;
  --accent: #2E7D32;
  --font-main: 'Inter', 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; color: var(--gray); }

/* =============================================
   BUTTONS
   ============================================= */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary, .button, input[type="submit"] {
  background: var(--green);
  color: var(--white) !important;
}
.btn-primary:hover, .button:hover, input[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,80,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green) !important;
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white) !important;
}

/* =============================================
   TOP BAR
   ============================================= */
.site-topbar {
  background: var(--green);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-contact a, .topbar-social a {
  color: var(--white);
  margin-right: 16px;
  opacity: 0.9;
}
.topbar-contact a:hover, .topbar-social a:hover { opacity: 1; }
.topbar-social a { margin-right: 10px; font-size: 1rem; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.site-logo img { height: 50px; width: auto; }
.site-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}
.site-nav a {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.site-nav a:hover::after, .site-nav .current-menu-item a::after { width: 100%; }
.site-nav a:hover { color: var(--green); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-icon {
  position: relative;
  cursor: pointer;
  color: var(--gray-dark);
  font-size: 1.4rem;
}
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px; height: 3px;
  background: var(--gray-dark);
  border-radius: 3px;
  transition: all var(--transition);
}

/* =============================================
   HERO / BANNER
   ============================================= */
.site-hero {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(76,175,80,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 span { color: var(--green); }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* =============================================
   SECTION STYLES
   ============================================= */
section { padding: 70px 0; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 600px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: #E8F5E9;
  color: var(--green);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-section { background: var(--gray-light); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.product-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.product-card-body { padding: 20px; }
.product-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.product-card-body p { font-size: 0.9rem; margin-bottom: 16px; }
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 16px;
}
.product-card-footer {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}
.product-card-footer .btn { flex: 1; font-size: 0.88rem; padding: 10px 16px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 5rem;
  color: var(--green-light);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
}
.testimonial-author-info strong { display: block; font-size: 0.95rem; color: var(--black); }
.testimonial-author-info span { font-size: 0.82rem; color: var(--gray); }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section { background: #E8F5E9; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-form-wrap h2 { margin-bottom: 10px; }
.contact-form-wrap p { margin-bottom: 28px; }

.ep-form { display: flex; flex-direction: column; gap: 16px; }
.ep-form input,
.ep-form textarea {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  width: 100%;
  background: white;
}
.ep-form input:focus,
.ep-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.ep-form textarea { min-height: 130px; resize: vertical; }
.ep-form .btn { align-self: flex-start; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo-text { color: var(--green-light); margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; }
.footer-social a {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  margin-right: 12px;
  font-size: 1.2rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--green-light); }

.footer-col h4 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--green-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-contact-item .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  right: -420px;
  top: 0; bottom: 0;
  width: 400px;
  background: white;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-sidebar.active { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.cart-header h3 { font-size: 1.1rem; }
.cart-close {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--gray);
  line-height: 1;
  background: none; border: none; padding: 0;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--gray); }
.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-weight: 700; color: var(--green); }
.cart-item-remove { cursor: pointer; color: #ccc; background: none; border: none; font-size: 1.2rem; }
.cart-item-remove:hover { color: #e53935; }
.cart-footer { padding: 20px 24px; border-top: 1px solid #eee; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cart-footer .btn { width: 100%; text-align: center; display: block; padding: 14px; }

/* =============================================
   MODAL (LOGIN)
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 90%; max-width: 440px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--gray);
  background: none; border: none;
}
.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid #eee;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none; border-left: none; border-right: none; border-top: none;
  font-size: 1rem;
}
.modal-tab.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
}
.modal-form input:focus { outline: none; border-color: var(--green); }
.modal-form .btn { margin-top: 4px; width: 100%; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =============================================
   WOOCOMMERCE COMPATIBILITY
   ============================================= */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
}
.woocommerce ul.products li.product {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); }
.woocommerce ul.products li.product img { width: 100%; height: 220px; object-fit: cover; }
.woocommerce ul.products li.product h2, 
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 16px 20px 0;
  font-size: 1rem;
}
.woocommerce ul.products li.product .price { padding: 8px 20px; color: var(--green); font-weight: 800; font-size: 1.2rem; }
.woocommerce ul.products li.product .button { margin: 0 20px 20px; display: block; text-align: center; }

/* =============================================
   NOTICE / ALERTS
   ============================================= */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.woocommerce-message { background: #E8F5E9; border-left: 4px solid var(--green); }
.woocommerce-error { background: #FFEBEE; border-left: 4px solid #e53935; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    padding: 20px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-image { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
