/*
Theme Name: Toolkary
Theme URI: https://toolkary.com
Description: Modern child theme for Toolkary — a digital business-tools & calendars store. Built on Storefront.
Author: Toolkary
Template: storefront
Version: 1.1.0
Text Domain: toolkary
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --tk-primary: #4f46e5;
  --tk-primary-dark: #4338ca;
  --tk-primary-soft: #eef2ff;
  --tk-accent: #f59e0b;
  --tk-ink: #0f172a;
  --tk-slate: #475569;
  --tk-muted: #64748b;
  --tk-line: #e5e7eb;
  --tk-bg: #ffffff;
  --tk-bg-alt: #f8fafc;
  --tk-radius: 14px;
  --tk-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --tk-shadow-lg: 0 12px 40px rgba(79,70,229,.18);
  --tk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Base typography
   ============================================================ */
body {
  font-family: var(--tk-font);
  color: var(--tk-slate);
  background: var(--tk-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .site-title { font-family: var(--tk-font); color: var(--tk-ink); letter-spacing: -.02em; }
h1 { font-weight: 800; }
h2 { font-weight: 750; }
a { color: var(--tk-primary); }
a:hover { color: var(--tk-primary-dark); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--tk-line);
  padding-top: 1.1em;
  padding-bottom: 1.1em;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.site-header .site-branding { margin-bottom: 0; }
.site-title a { color: var(--tk-ink) !important; font-weight: 800; font-size: 1.35em; }
.site-header .site-header-cart .cart-contents,
.storefront-handheld-footer-bar { color: var(--tk-ink); }
.main-navigation ul li a { color: var(--tk-slate); font-weight: 600; }
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--tk-primary); }
.site-header-cart .cart-contents:hover { color: var(--tk-primary); }

/* ============================================================
   Buttons
   ============================================================ */
button, .button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce .button {
  background: var(--tk-primary);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 650;
  padding: .72em 1.35em;
  border: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-shadow: none;
}
button:hover, .button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce .button:hover {
  background: var(--tk-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--tk-shadow-lg);
  color: #fff !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button {
  background: var(--tk-accent) !important;
  color: #1f2937 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: #d97706 !important; color: #fff !important;
}

/* ============================================================
   Hero
   ============================================================ */
.tk-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  color: #fff;
  border-radius: 20px;
  padding: 4rem 2.5rem;
  margin: 0 0 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tk-shadow-lg);
}
.tk-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 240px at 90% -10%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(500px 300px at 5% 120%, rgba(245,158,11,.28), transparent 60%);
  pointer-events: none;
}
.tk-hero__inner { position: relative; max-width: 720px; }
.tk-hero__eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.15); color: #fff;
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.tk-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; }
.tk-hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; margin: 0 0 2rem; max-width: 560px; }
.tk-hero .tk-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--tk-primary-dark) !important;
  padding: .9rem 1.7rem; border-radius: 12px; font-weight: 750; font-size: 1.02rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.tk-hero .tk-cta:hover { transform: translateY(-2px); background: #fff; }
.tk-hero .tk-cta--ghost {
  background: transparent; color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.55); margin-left: .75rem;
}

/* Trust badges under hero */
.tk-badges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem; margin: -1.5rem 0 3.5rem;
}
.tk-badge {
  background: var(--tk-bg-alt); border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius); padding: 1.1rem 1.25rem;
}
.tk-badge strong { display: block; color: var(--tk-ink); font-size: 1rem; margin-bottom: .15rem; }
.tk-badge span { font-size: .9rem; color: var(--tk-muted); }
.tk-badge .tk-ic { font-size: 1.4rem; margin-bottom: .5rem; display: block; }

/* ============================================================
   Section headings on homepage
   ============================================================ */
.storefront-product-section .section-title,
.storefront-product-section > h2 {
  font-size: 1.7rem; font-weight: 780; color: var(--tk-ink);
  text-align: left; margin-bottom: 1.4rem;
}

/* ============================================================
   Product cards
   ============================================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--tk-bg);
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius);
  padding: 1rem 1rem 1.35rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--tk-shadow);
  border-color: #d6d9e6;
}
.woocommerce ul.products li.product img { border-radius: 10px; margin-bottom: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02rem; font-weight: 650; color: var(--tk-ink); padding-top: 0;
}
.woocommerce ul.products li.product .price { color: var(--tk-primary-dark); font-weight: 700; }
.woocommerce ul.products li.product .price del { color: var(--tk-muted); font-weight: 400; }
.woocommerce span.onsale {
  background: var(--tk-accent); color: #1f2937; border-radius: 999px;
  font-weight: 700; min-height: auto; min-width: auto; padding: .3em .7em; line-height: 1;
}

/* ============================================================
   Single product
   ============================================================ */
.woocommerce div.product .product_title { font-size: 2rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--tk-primary-dark); font-weight: 750;
}
.woocommerce .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--tk-primary); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--tk-ink);
  color: #cbd5e1;
  padding-top: 3rem;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.site-footer .site-info { border-top: 1px solid rgba(255,255,255,.08); color: #94a3b8; padding-top: 1rem; }
.tk-footer-legal { display: flex; flex-wrap: wrap; gap: .35rem .35rem; justify-content: center; align-items: center; margin-bottom: 1rem; font-size: .92rem; }
.tk-footer-legal a { color: #cbd5e1; font-weight: 600; }
.tk-footer-legal a:hover { color: #fff; }
.tk-footer-legal .tk-sep { color: #475569; margin: 0 .35rem; }
.site-footer .site-info a { color: #cbd5e1; }
.site-footer .site-info a:hover { color: #fff; }
.storefront-handheld-footer-bar { background: var(--tk-ink); }

/* ============================================================
   Misc
   ============================================================ */
.woocommerce-message, .woocommerce-info, .woocommerce-noreviews, p.no-comments {
  border-top-color: var(--tk-primary);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--tk-primary); }
.page-template-template-homepage-php .entry-title { display: none; }

/* ============================================================
   Brand logo in header
   ============================================================ */
.site-header .site-branding { display: flex; align-items: center; margin-bottom: 0; }
.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo-link img,
.site-header img.custom-logo { max-height: 46px; width: auto; height: auto; }
.site-header .site-branding .site-description { display: none; }

@media (max-width: 768px) {
  .tk-hero { padding: 2.75rem 1.5rem; border-radius: 16px; }
  .tk-hero .tk-cta--ghost { margin-left: 0; margin-top: .6rem; }
  .site-header .custom-logo-link img { max-height: 38px; }
}
