/*
Theme Name: GoalsKept Marketplace
Theme URI: https://goalskept.com
Description: GoalsKept Open Ecosystem Marketplace — child theme of Storefront
Author: GoalsKept / Idols Advisory Group
Author URI: https://goalskept.com
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: goalskept
*/

/* ─── DESIGN TOKENS ─── */
:root {
  --cream:        #F5F0E8;
  --cream-dark:   #EDE6D6;
  --ink:          #1A1814;
  --ink-soft:     #3D3A35;
  --ink-muted:    #7A7568;
  --teal:         #1D9E75;
  --teal-light:   #E1F5EE;
  --teal-dark:    #0F6E56;
  --gold:         #C4882A;
  --gold-light:   #FDF3E3;
  --coral:        #D85A30;
  --coral-light:  #FAECE7;
  --blue:         #2A6DB5;
  --blue-light:   #EAF2FC;
  --violet:       #6B4EAE;
  --violet-light: #F0EBFA;
  --border:       #DDD8CE;
  --border-soft:  #E8E4DA;
  --r:            10px;
  --r-lg:         16px;
}

/* ─── GLOBAL RESET ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── GOOGLE FONTS LOAD ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=Syne:wght@400;700;800&display=swap');

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--ink);
  line-height: 1.15;
}

/* ─── NAVIGATION ─── */
.site-header {
  background: var(--cream) !important;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding .site-title a {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink) !important;
  text-decoration: none;
}

/* Nav links */
.main-navigation ul li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--ink);
  background: var(--cream-dark);
}

/* ─── BUTTONS ─── */
.button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.button:hover, .woocommerce a.button:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.button.alt, .woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--teal);
  color: #fff;
}
.button.alt:hover { background: var(--teal-dark); }

/* ─── WOOCOMMERCE SHOP PAGE ─── */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(26,24,20,.08);
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(26,24,20,.1);
  border-color: var(--border);
}

.woocommerce ul.products li.product img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 0 16px;
  margin-bottom: 4px;
}

.woocommerce ul.products li.product .price {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--ink);
  padding: 0 16px;
}

.woocommerce ul.products li.product a.button {
  margin: 12px 16px 16px;
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 16px;
}

/* Product category badges */
.woocommerce .onsale {
  background: var(--teal);
  border-radius: 99px;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ─── PRODUCT SINGLE ─── */
.woocommerce div.product .product_title {
  font-size: 34px;
  margin-bottom: 12px;
}
.woocommerce div.product .price {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--teal-dark);
}

/* ─── CART & CHECKOUT ─── */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  padding: 24px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,158,117,.12);
  outline: none;
}

/* ─── DOMAIN FILTER BAR ─── */
.goalskept-domain-bar {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  height: 48px;
  scrollbar-width: none;
}
.goalskept-domain-bar::-webkit-scrollbar { display: none; }

.domain-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.domain-pill:hover,
.domain-pill.active {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}
.domain-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Domain colours */
.d-health .dot    { background: var(--teal); }
.d-wealth .dot    { background: var(--gold); }
.d-lifestyle .dot { background: var(--coral); }
.d-mindful .dot   { background: var(--violet); }
.d-community .dot { background: var(--blue); }

/* ─── HERO SECTION ─── */
.goalskept-hero {
  background: var(--ink);
  color: #fff;
  padding: 80px 32px 72px;
  position: relative;
  overflow: hidden;
}
.goalskept-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(29,158,117,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(196,136,42,.15) 0%, transparent 60%);
  pointer-events: none;
}
.goalskept-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.goalskept-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  color: #fff;
  margin-bottom: 20px;
}
.goalskept-hero h1 em { color: #B8EDDA; font-style: italic; }
.goalskept-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin-bottom: 32px;
}

/* ─── GOAL DASHBOARD WIDGETS ─── */
.goalskept-domain-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(26,24,20,.08);
}
.goalskept-domain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,24,20,.1);
}
.goalskept-progress-bar-wrap {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
}
.goalskept-progress-bar {
  height: 100%;
  border-radius: 2px;
  transition: width .6s ease;
}

/* ─── VENDOR / DOKAN OVERRIDES ─── */
.dokan-dashboard .dokan-dash-header,
.dokan-store-header {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  font-family: 'DM Sans', sans-serif;
}

.dokan-dashboard-menu li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 8px 14px;
}
.dokan-dashboard-menu li.active a,
.dokan-dashboard-menu li a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ─── FORMS (WPForms / Jetpack) ─── */
.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container textarea,
.wpforms-container select {
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  transition: border-color .15s !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(29,158,117,.12) !important;
  outline: none !important;
}
.wpforms-submit-container button {
  background: var(--teal) !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ─── STAT CARDS ─── */
.goalskept-stat-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(26,24,20,.08);
}
.goalskept-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 4px;
}
.goalskept-stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.goalskept-stat-delta {
  font-size: 11.5px;
  color: var(--teal-dark);
  margin-top: 2px;
}

/* ─── COMMUNITY / POSTS ─── */
.goalskept-community-post {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(26,24,20,.08);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .woocommerce .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .woocommerce .products {
    grid-template-columns: 1fr !important;
  }
  .goalskept-hero { padding: 48px 16px; }
}
