/*
Theme Name: ActionCotton
Theme URI: https://actioncotton.com
Description: Custom WooCommerce theme voor ActionCotton — duurzame kleding met karakter
Version: 1.0
Author: ActionCotton
Text Domain: actioncotton
*/

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

:root {
  --green:   #2d5a27;
  --green-l: #4a7c42;
  --beige:   #f5f0e8;
  --sand:    #e8dcc8;
  --white:   #ffffff;
  --dark:    #1a1a1a;
  --mid:     #6b7280;
  --accent:  #c8832a;   /* warm oranje — energie, actie */
  --font:    'DM Sans', system-ui, sans-serif;
  --radius:  6px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--dark); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--green);
  color: var(--white);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; color: var(--white); }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.header-actions { display: flex; gap: 1rem; align-items: center; }
.cart-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--white);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-icon { position: relative; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: var(--beige);
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero__text { }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; color: var(--green); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--mid); max-width: 460px; margin-bottom: 2rem; }
.hero__visual { background: var(--sand); border-radius: 12px; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; color: var(--mid); font-size: .875rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-l); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #b5721f; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-beige { background: var(--beige); }
.section-sand  { background: var(--sand); }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; color: var(--green); }
.section-sub   { color: var(--mid); margin-bottom: 2rem; }

/* ── Product grid ────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; background: var(--white); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.product-card__img { aspect-ratio: 1; overflow: hidden; background: var(--beige); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { padding: 1rem; }
.product-card__badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--green); color: var(--white); padding: .15rem .5rem; border-radius: 3px; margin-bottom: .5rem; }
.product-card__name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.product-card__price { font-size: 1.1rem; font-weight: 800; color: var(--green); margin-bottom: .75rem; }
.product-card__btn { width: 100%; padding: .6rem; background: var(--green); color: var(--white); border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: .875rem; transition: background .2s; }
.product-card__btn:hover { background: var(--accent); }

/* ── Variant picker ──────────────────────────────────────────────── */
.variant-section { margin: 1.5rem 0; }
.variant-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; color: var(--mid); }
.color-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: border-color .15s; }
.color-swatch.active, .color-swatch:hover { border-color: var(--green); }
.size-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-btn { padding: .35rem .75rem; border: 2px solid var(--sand); border-radius: var(--radius); font-size: .875rem; font-weight: 600; cursor: pointer; background: var(--white); transition: all .15s; }
.size-btn.active, .size-btn:hover { border-color: var(--green); background: var(--green); color: var(--white); }

/* ── USPs ────────────────────────────────────────────────────────── */
.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.usp { text-align: center; }
.usp__icon { font-size: 2rem; margin-bottom: .5rem; }
.usp__title { font-weight: 700; margin-bottom: .25rem; color: var(--green); }
.usp__text { font-size: .875rem; color: var(--mid); }

/* ── Impact banner ───────────────────────────────────────────────── */
.impact-banner { background: var(--green); color: var(--white); padding: 3rem 0; }
.impact-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.impact-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.impact-stat__num { font-size: 2.5rem; font-weight: 900; color: var(--accent); }
.impact-stat__label { font-size: .875rem; opacity: .8; }

/* ── Product detail ──────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0; }
.product-detail__title { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; }
.product-detail__price { font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 1.5rem; }
.cert-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.cert-badge { font-size: .75rem; font-weight: 600; border: 1px solid var(--green); color: var(--green); padding: .2rem .6rem; border-radius: 20px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #aaa; padding: 2.5rem 0; margin-top: 4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.footer-logo { color: var(--white); font-weight: 800; font-size: 1.1rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: #aaa; font-size: .875rem; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: .8rem; }

/* ── WooCommerce ─────────────────────────────────────────────────── */
.woocommerce-notices-wrapper { margin: 1rem 0; }
.woocommerce-message { background: #d4edda; border: 1px solid #c3e6cb; padding: 1rem; border-radius: var(--radius); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero__visual { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

/* ── Taalwisselaar ───────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: .25rem; margin-right: .75rem; }
.lang-btn { 
  padding: .25rem .55rem; 
  font-size: .75rem; 
  font-weight: 700; 
  border: 1.5px solid rgba(255,255,255,.35); 
  color: rgba(255,255,255,.7); 
  border-radius: 3px; 
  text-decoration: none; 
  transition: all .2s; 
  letter-spacing: .05em;
}
.lang-btn:hover, .lang-btn.lang-active { 
  border-color: var(--white); 
  color: var(--white); 
  background: rgba(255,255,255,.1); 
}
