/*
Theme Name: CustomKings Theme
Description: Child theme for Flatsome with custom components
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================================================
   CSS VARIABLES & FOUNDATION
   ============================================================================ */
:root {
  /* Global colors (used by topbar, mega menu, footer) */
  --ck-primary: #fec610;
  --ck-primary-light: #fdd968;
  --ck-text-dark: #1f2430;
  --ck-text-muted: #5b6573;
  --ck-text-light: #d8d8d8;
  --ck-text-lighter: #b8bdc4;
  --ck-bg-dark: #1a1d24;
  --ck-bg-darker: #0f0f0f;
  --ck-bg-darkest: #0a0a0a;
  --ck-bg-light: #ffffff;
  --ck-border-subtle: rgba(254, 198, 16, 0.12);
  --ck-border-light: rgba(254, 198, 16, 0.2);
  --ck-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --ck-shadow-md: 0 16px 48px rgba(0, 0, 0, 0.5);
  --ck-shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* Page template colors */
  --ck-gold: #fec610;
  --ck-gold-light: rgba(254,198,16,0.10);
  --ck-black: #141414;
  --ck-light: #f4f5f7;
  --ck-white: #ffffff;
  --ck-text: #2c2c2c;
  --ck-mid: #666;
  --ck-border: #e8e8e8;
  --ck-radius: 20px;
  --ck-pg-shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.06);
  --ck-pg-shadow: 0 8px 30px -12px rgba(0,0,0,0.10);

  /* Typography */
  --ck-font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --ck-gap-xs: clamp(0.5rem, 1vw, 0.65rem);
  --ck-gap-sm: clamp(0.8rem, 2.4vw, 1.2rem);
  --ck-gap-md: clamp(1.2rem, 2.4vw, 1.8rem);
  --ck-gap-lg: clamp(2rem, 4vw, 3rem);
  --ck-gap-xl: clamp(2.2rem, 5vw, 3.6rem);

  /* Transitions */
  --ck-transition-fast: 0.2s ease;
  --ck-transition-base: 0.3s ease;
  --ck-transition-slow: 0.4s ease;

  /* Prefers motion reduction */
  --ck-enable-animations: 1;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ck-enable-animations: 0;
    --ck-transition-fast: 0s;
    --ck-transition-base: 0s;
    --ck-transition-slow: 0s;
  }
}

/* ============================================================================
   GLOBAL RESETS & BASE STYLES
   ============================================================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--ck-font-system);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   FLATSOME CUSTOMIZATIONS
   ============================================================================ */
.no_label .wcpa_image .wcpa_image_label,
.no_labels .wcpa_color .wcpa_color_label {
  display: none;
}

/* Footer CSS lives in the footer HTML block (Theme Files/footer).
   Not duplicated here to avoid double-loading ~330 lines on every page. */


/* ============================================================================
   PAGE TEMPLATE SHARED COMPONENTS
   Shared across: FAQ, Contact, Shipping, Order Tracking, Refunds, About Us, Jobs
   ============================================================================ */

/* --- Base page wrapper --- */
.ck-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ck-text);
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  -webkit-font-smoothing: antialiased;
}
.ck-page * { box-sizing: border-box; margin: 0; padding: 0; }
.ck-page a { color: inherit; text-decoration: none; transition: color 0.15s; }
.ck-page img { display: block; max-width: 100%; height: auto; }
.ck-page--wide { max-width: 1100px; }
.ck-page--links a {
  text-decoration: underline;
  text-decoration-color: var(--ck-gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.ck-page--links a:hover { color: var(--ck-gold); }

/* --- SVG icon system --- */
.ck-i {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ck-i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ck-i-lg { width: 24px; height: 24px; }
.ck-i-xl { width: 26px; height: 26px; }
.ck-i-fill svg { fill: currentColor; stroke: none; }

/* --- Hero section --- */
.ck-pg-hero {
  background: var(--ck-black);
  color: #fff;
  border-radius: var(--ck-radius);
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.ck-pg-hero::before {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(254,198,16,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ck-pg-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.ck-pg-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ck-gold);
  margin-bottom: 16px;
}
.ck-pg-hero__tag .ck-i { color: var(--ck-gold); }
.ck-pg-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.ck-pg-hero h1 span { color: var(--ck-gold); }
.ck-pg-hero p {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  opacity: 0.75;
  font-weight: 300;
  line-height: 1.6;
  max-width: 480px;
}

/* --- Section spacing --- */
.ck-pg-section {
  margin-bottom: 40px;
}

/* --- Section headers --- */
.ck-pg-sh {
  margin-bottom: 16px;
}
.ck-pg-sh__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ck-gold);
  margin-bottom: 4px;
}
.ck-pg-sh__label .ck-i { width: 14px; height: 14px; color: var(--ck-gold); }
.ck-pg-sh h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.ck-pg-sh p {
  color: var(--ck-mid);
  font-size: 0.9rem;
}

/* --- Generic card --- */
.ck-pg-card {
  padding: 22px;
  border: 1px solid var(--ck-border);
  border-radius: 14px;
  background: var(--ck-white);
  transition: border-color 0.15s;
}
.ck-pg-card:hover { border-color: var(--ck-gold); }
.ck-pg-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ck-pg-card__ico {
  width: 40px;
  height: 40px;
  background: var(--ck-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ck-text);
  flex-shrink: 0;
}
.ck-pg-card__title {
  font-size: 0.95rem;
  font-weight: 700;
}
.ck-pg-card p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
}
.ck-pg-card p:last-child { margin-bottom: 0; }
.ck-pg-card strong { color: var(--ck-text); }

/* --- Accordion / toggle (details/summary) --- */
.ck-pg-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck-pg-toggle {
  background: var(--ck-white);
  border: 1px solid var(--ck-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ck-pg-toggle:hover { border-color: #ccc; }
.ck-pg-toggle[open] { border-color: var(--ck-gold); }
.ck-pg-toggle summary {
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 20px);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ck-white);
  color: var(--ck-text);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.ck-pg-toggle summary::-webkit-details-marker { display: none; }
.ck-pg-toggle summary:hover { background: #fafafa; }
.ck-pg-toggle__label { flex: 1; min-width: 0; }
.ck-pg-toggle__icon {
  width: 26px;
  height: 26px;
  background: var(--ck-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.25s;
  color: var(--ck-text);
}
.ck-pg-toggle__icon .ck-i { width: 12px; height: 12px; }
.ck-pg-toggle[open] .ck-pg-toggle__icon {
  transform: rotate(45deg);
  background: var(--ck-gold);
  color: var(--ck-black);
}
.ck-pg-toggle__body {
  padding: 0 clamp(14px, 3vw, 20px) clamp(14px, 3vw, 20px);
  color: #444;
  font-size: 0.88rem;
  line-height: 1.6;
}
.ck-pg-toggle[open] .ck-pg-toggle__body {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}
.ck-pg-toggle__body p { margin-bottom: 10px; }
.ck-pg-toggle__body p:last-child { margin-bottom: 0; }
.ck-pg-toggle__body strong { color: var(--ck-text); }

/* --- CTA bar --- */
.ck-pg-cta {
  background: var(--ck-black);
  border-radius: var(--ck-radius);
  padding: clamp(2rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  color: #fff;
}
.ck-pg-cta h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}
.ck-pg-cta p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.ck-pg-cta__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.ck-pg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ck-pg-cta-btn .ck-i { width: 15px; height: 15px; }
.ck-pg-cta-btn--primary {
  background: var(--ck-gold);
  border: 2px solid var(--ck-gold);
  color: var(--ck-black);
}
.ck-pg-cta-btn--primary:hover {
  background: transparent;
  color: var(--ck-gold);
}
.ck-pg-cta-btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
}
.ck-pg-cta-btn--outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ck-black);
}
.ck-pg-cta-btn:focus-visible {
  outline: 2px solid var(--ck-gold);
  outline-offset: 2px;
}

/* --- Page footer --- */
.ck-pg-foot {
  text-align: center;
  padding: 14px 20px 6px;
  font-size: 0.76rem;
  color: #aaa;
}

/* --- Gold dot list --- */
.ck-pg-list {
  list-style: none;
  padding: 0;
}
.ck-pg-list li {
  font-size: 0.85rem;
  color: #444;
  padding-left: 18px;
  margin-bottom: 5px;
  position: relative;
  line-height: 1.5;
}
.ck-pg-list li:last-child { margin-bottom: 0; }
.ck-pg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--ck-gold);
  border-radius: 50%;
}

/* --- Scroll reveal --- */
.ck-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ck-reveal.ck-visible {
  opacity: 1;
  transform: translateY(0);
}
.ck-reveal-stagger .ck-reveal { transition-delay: 0s; }
.ck-reveal-stagger .ck-reveal:nth-child(2) { transition-delay: 0.08s; }
.ck-reveal-stagger .ck-reveal:nth-child(3) { transition-delay: 0.16s; }
.ck-reveal-stagger .ck-reveal:nth-child(4) { transition-delay: 0.24s; }
.ck-reveal-stagger .ck-reveal:nth-child(5) { transition-delay: 0.32s; }
.ck-reveal-stagger .ck-reveal:nth-child(6) { transition-delay: 0.40s; }

/* --- Page template responsive --- */
@media (max-width: 640px) {
  .ck-page { padding: 0 14px; }
  .ck-pg-hero {
    border-radius: 14px;
    margin-bottom: 24px;
  }
  .ck-pg-hero h1 { font-size: 1.6rem; }
  .ck-pg-section { margin-bottom: 28px; }
  .ck-pg-card { padding: 18px; border-radius: 12px; }
  .ck-pg-toggle { border-radius: 12px; }
  .ck-pg-toggle__icon { width: 22px; height: 22px; }
  .ck-pg-toggle__icon .ck-i { width: 10px; height: 10px; }
  .ck-pg-cta {
    flex-direction: column;
    text-align: center;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
  }
  .ck-pg-cta__btns {
    flex-direction: column;
    width: 100%;
  }
  .ck-pg-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .ck-reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-page * { transition-duration: 0.01ms !important; }
  .ck-reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   CATEGORY DESCRIPTION COMPONENTS
   Targets <details>/<summary> inside WooCommerce term descriptions.
   No classes needed in the description field - all inline HTML.
   ============================================================================ */

/* Intro text and general description styling */
.woocommerce .term-description {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.92rem;
  color: #555 !important;
  line-height: 1.75;
}

/* Links in intro paragraph */
.woocommerce .term-description > a,
.woocommerce .term-description > p a {
  color: #2c2c2c !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #fec610;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.woocommerce .term-description > a:hover,
.woocommerce .term-description > p a:hover {
  color: #fec610 !important;
}

/* FAQ heading */
.woocommerce .term-description h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2c2c2c !important;
  margin: 1.75rem 0 0.75rem;
  text-align: left;
}

/* FAQ accordions */
.woocommerce .term-description details {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  text-align: left;
}
.woocommerce .term-description details:last-of-type {
  border-bottom: none;
}
.woocommerce .term-description details summary {
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2c2c2c !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
/* Hide native marker on all browsers */
.woocommerce .term-description details summary::-webkit-details-marker,
.woocommerce .term-description details summary::marker {
  display: none;
}
.woocommerce .term-description details summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: #fec610;
  flex-shrink: 0;
  margin-left: 1rem;
}
.woocommerce .term-description details[open] summary::after {
  content: "\2212";
}
.woocommerce .term-description details summary:hover {
  color: #fec610 !important;
}
.woocommerce .term-description details p {
  padding: 0 0 1rem;
  font-size: 0.88rem;
  color: #666 !important;
  line-height: 1.7;
  margin: 0;
}
.woocommerce .term-description details a {
  color: #2c2c2c !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #fec610;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.woocommerce .term-description details a:hover {
  color: #fec610 !important;
}

/* Closing paragraph (related links) */
.woocommerce .term-description > p:last-of-type {
  font-size: 0.88rem;
  color: #666 !important;
  margin-top: 1.25rem;
  text-align: left;
}

/* Mobile: ensure description is visible and properly styled */
@media (max-width: 768px) {
  .woocommerce .term-description {
    display: block !important;
    visibility: visible !important;
    padding: 0 0.5rem;
    font-size: 0.88rem;
  }
  .woocommerce .term-description details summary {
    font-size: 0.85rem;
    padding: 0.75rem 0;
  }
}

