/*
Theme Name: ShirtVibes
Theme URI: https://shirtvibes.eu
Description: Custom WooCommerce theme voor ShirtVibes — kleding met karakter
Version: 1.0
Author: ShirtVibes
Text Domain: shirtvibes
*/

/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --grey:    #f4f4f4;
  --mid:     #888;
  --accent:  #e63946;   /* rood — energie, humor */
  --font:    'Inter', system-ui, sans-serif;
  --radius:  4px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); 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(--black);
  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.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a { color: #ccc; 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 { position: relative; }
.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;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; color: #aaa; max-width: 560px; margin: 0 auto 2rem; }

/* ── 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(--accent); color: var(--white); }
.btn-primary:hover { background: #c1121f; }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }

/* ── Section ───────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 2rem; }
.section-grey { background: var(--grey); }

/* ── Product Grid ──────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.product-card {
  border: 1px solid #e8e8e8; border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.product-card__img { aspect-ratio: 1; overflow: hidden; background: var(--grey); }
.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__name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.product-card__slogan { font-size: .8rem; color: var(--mid); margin-bottom: .75rem; }
.product-card__price { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: .75rem; }
.product-card__btn {
  width: 100%; padding: .6rem; background: var(--black); 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 (kleur + maat) ────────────────────────────── */
.variant-section { margin: 1.5rem 0; }
.variant-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }

.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(--black); }

.size-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-btn {
  padding: .35rem .75rem; border: 2px solid #ddd; 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(--black); background: var(--black); color: var(--white); }
.size-btn.out { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ── Product detail ────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0; }
.product-detail__gallery img { border-radius: var(--radius); }
.product-detail__title { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; }
.product-detail__price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 1.5rem; }
.product-detail__desc { color: #555; margin-bottom: 1.5rem; line-height: 1.8; }
.product-detail__atc { width: 100%; padding: 1rem; font-size: 1rem; font-weight: 800; margin-top: 1rem; }

/* ── Banner / CTA ──────────────────────────────────────────────── */
.banner {
  background: var(--accent); color: var(--white);
  padding: 3rem 0; text-align: center;
}
.banner h2 { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; }
.banner p { opacity: .9; margin-bottom: 1.5rem; }

/* ── 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; }
.usp__text { font-size: .875rem; color: var(--mid); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--black); 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 overrides ─────────────────────────────────────── */
.woocommerce-notices-wrapper { margin: 1rem 0; }
.woocommerce-message { background: #d4edda; border: 1px solid #c3e6cb; padding: 1rem; border-radius: var(--radius); }
.woocommerce-error { background: #f8d7da; border: 1px solid #f5c6cb; padding: 1rem; border-radius: var(--radius); }

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