/*
Theme Name: TajineAtelier
Theme URI: https://tajineatelier.com
Author: TajineAtelier
Description: Handmade theme voor TajineAtelier.com — webshop voor Marokkaanse tajines met WooCommerce
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tajineatelier
*/

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

:root {
  --terracotta: #B85A2A;
  --terracotta-dark: #8B3E18;
  --terracotta-light: #F5E6D0;
  --cream: #FDF5ED;
  --brown-dark: #3B1F0A;
  --brown-mid: #7a5540;
  --brown-light: #D4A882;
  --text: #2c2c2a;
  --text-muted: #666;
  --border: rgba(0,0,0,0.1);
  --white: #fff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  color: var(--brown-dark);
}

h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { color: var(--brown-mid); line-height: 1.8; }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section-alt { padding: 64px 0; background: var(--cream); }

.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 15px; }

/* ===========================
   BUTTONS
=========================== */
.btn,
button.btn,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--terracotta-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn:active { transform: scale(0.98); }

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

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white) !important;
}

/* ===========================
   NAVIGATION
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
}

.site-logo span { color: var(--terracotta); }

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

.main-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* WooCommerce cart icon in header */
.header-cart a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.header-cart .cart-count {
  background: var(--terracotta);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: var(--cream);
  padding: 80px 24px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tagline {
  display: inline-block;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-title { margin-bottom: 16px; }
.hero-title span { color: var(--terracotta); }

.hero-desc {
  font-size: 16px;
  color: var(--brown-mid);
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative;
}

.hero-image-placeholder {
  background: #E8C9A0;
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brown-mid);
  font-size: 14px;
}

.hero-image-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: 0.5;
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  height: 380px;
  width: 100%;
  object-fit: cover;
}

/* ===========================
   TRUST STRIP
=========================== */
.trust-strip {
  background: var(--brown-dark);
  padding: 20px 24px;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown-light);
  font-size: 14px;
}

.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===========================
   PRODUCTS (WOOCOMMERCE)
=========================== */
.products-section { padding: 64px 0; }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 500;
  padding: 16px 16px 4px !important;
  color: var(--brown-dark);
}

.woocommerce ul.products li.product .price {
  padding: 0 16px 8px;
  color: var(--terracotta) !important;
  font-size: 18px !important;
  font-weight: 600;
}

.woocommerce ul.products li.product .price del {
  color: var(--text-muted) !important;
  font-size: 14px;
}

.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.button {
  margin: 0 16px 16px !important;
  display: block !important;
  text-align: center;
  width: calc(100% - 32px) !important;
  background: var(--terracotta) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  border: none !important;
  padding: 10px !important;
  font-size: 14px !important;
}

/* Product page */
.woocommerce div.product .product_title {
  color: var(--brown-dark);
  font-size: 28px;
}

.woocommerce div.product p.price {
  color: var(--terracotta) !important;
  font-size: 26px;
}

.woocommerce div.product .woocommerce-product-gallery__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===========================
   WORKSHOPS
=========================== */
.workshop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 680px;
}

.workshop-icon {
  background: var(--terracotta-light);
  border-radius: var(--radius);
  padding: 16px;
  flex-shrink: 0;
}

.workshop-icon svg { width: 36px; height: 36px; color: var(--terracotta); }

.workshop-badge {
  display: inline-block;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.workshop-card h3 { margin-bottom: 8px; color: var(--brown-dark); }
.workshop-card p { font-size: 14px; margin-bottom: 16px; }

/* ===========================
   ABOUT STRIP
=========================== */
.about-strip {
  background: var(--cream);
  padding: 64px 24px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image-placeholder {
  background: #D4A882;
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-dark);
  font-size: 14px;
  opacity: 0.7;
}

.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; }

/* ===========================
   NEWSLETTER / NOTIFY
=========================== */
.notify-section {
  background: var(--brown-dark);
  padding: 48px 24px;
  text-align: center;
}

.notify-inner { max-width: 520px; margin: 0 auto; }
.notify-inner h2 { color: var(--cream); margin-bottom: 10px; }
.notify-inner p { color: var(--brown-light); margin-bottom: 28px; font-size: 15px; }

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.notify-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
}

.notify-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.notify-form input[type="email"]:focus { outline: none; border-color: var(--terracotta); }

/* ===========================
   WOOCOMMERCE — CHECKOUT & CART
=========================== */
.woocommerce-page .container { padding: 48px 24px; max-width: 1100px; margin: 0 auto; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--terracotta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184,90,42,0.12);
}

.woocommerce #payment #place_order {
  background: var(--terracotta) !important;
  font-size: 16px !important;
  padding: 14px 28px !important;
  width: 100%;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid var(--border);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--terracotta) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--terracotta) !important;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--brown-dark);
  color: var(--brown-light);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand .site-logo {
  color: var(--cream);
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-brand p {
  color: var(--brown-light);
  font-size: 14px;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

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

.footer-col ul li a {
  color: var(--brown-light);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(212,168,130,0.6);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(212,168,130,0.6); }
.footer-bottom a:hover { color: var(--brown-light); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image-wrap,
  .about-image-placeholder { display: none; }

  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav.is-open ul { flex-direction: column; padding: 16px 0; gap: 12px; }

  .menu-toggle { display: flex; }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .trust-inner { gap: 20px; flex-direction: column; align-items: flex-start; }
  .notify-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}
