/*
Theme Name: Karting Forge
Theme URI: https://kartingforge.com
Author: Karting Forge
Description: Custom WooCommerce theme for Karting Forge — 3D geprinte kart sport producten.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gridprint
WC tested up to: 9.0
*/

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

body {
  margin: 0;
  background: #0a0b0d;
  color: #f3f4f5;
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

h1, h2, h3, h4, h5, h6 { margin: 0; }

p { margin: 0; }

button { font-family: 'Archivo', sans-serif; }

/* ===== ANIMATIONS ======================================================= */
@keyframes gp-blink   { 0%,60%{opacity:1;} 61%,100%{opacity:.25;} }
@keyframes gp-slidein { from{transform:translateX(100%);} to{transform:translateX(0);} }
@keyframes gp-fade    { from{opacity:0;} to{opacity:1;} }

/* ===== UTILITIES ======================================================== */
.gp-mono  { font-family: 'JetBrains Mono', monospace; }
.gp-upper { text-transform: uppercase; }
.gp-orange { color: #ff5a1f; }
.gp-muted  { color: #9aa0a8; }

/* ===== BUTTONS ========================================================== */
.gp-btn-primary {
  display: inline-block;
  background: #ff5a1f;
  color: #0a0b0d;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
}
.gp-btn-primary:hover { background: #e84d15; color: #0a0b0d; }

.gp-btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.22);
  color: #f3f4f5;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
  background: none;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
}
.gp-btn-outline:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ===== LAYOUT =========================================================== */
.gp-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== CART DRAWER ====================================================== */
.gp-cart-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  font-family: 'Archivo', sans-serif;
}
.gp-cart-drawer.open { display: block; }

.gp-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,5,7,.62);
  animation: gp-fade .26s ease;
}
.gp-cart-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 430px;
  max-width: 92vw;
  background: #0d0f12;
  border-left: 1px solid rgba(255,255,255,.1);
  box-shadow: -30px 0 60px rgba(0,0,0,.45);
  color: #f3f4f5;
  display: flex;
  flex-direction: column;
  animation: gp-slidein .26s cubic-bezier(.2,.8,.2,1);
}
.gp-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.gp-cart-head-title {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.gp-cart-head-count {
  color: #ff5a1f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-left: 6px;
}
.gp-cart-close {
  background: none;
  border: none;
  color: #9aa0a8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.gp-cart-body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.gp-cart-foot {
  padding: 22px 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0a0b0d;
}

/* WooCommerce mini-cart inside drawer */
.gp-cart-panel .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.gp-cart-panel .woocommerce-mini-cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gp-cart-panel .woocommerce-mini-cart-item img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
  flex: none;
}
.gp-cart-panel .woocommerce-mini-cart-item > a:first-child { flex: none; }
.gp-cart-panel .woocommerce-mini-cart-item > a:not(:first-child) {
  font-weight: 700;
  font-size: 14.5px;
  color: #f3f4f5;
  text-decoration: none;
}
.gp-cart-panel .woocommerce-mini-cart-item .quantity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #9aa0a8;
  display: block;
  margin-top: 6px;
}
.gp-cart-panel .woocommerce-mini-cart-item .remove_from_cart_button {
  color: #6c727b !important;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  display: block;
  margin-top: 10px;
}
.gp-cart-panel .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 12px;
}
.gp-cart-panel .woocommerce-mini-cart__total strong { font-weight: 800; font-size: 16px; text-transform: uppercase; }
.gp-cart-panel .woocommerce-mini-cart__total .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #ff5a1f;
}
.gp-cart-panel .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; }
.gp-cart-panel .woocommerce-mini-cart__buttons .button {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}
.gp-cart-panel .woocommerce-mini-cart__buttons .checkout {
  background: #ff5a1f;
  color: #0a0b0d;
}
.gp-cart-panel .woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
  border: none;
  background: none;
  color: #878d95;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
}
.gp-cart-empty-msg {
  padding: 60px 10px;
  text-align: center;
}
