/*
Theme Name: KidTime Personalized Books
Theme URI: https://kidtime.example/
Author: KidTime Personalized Books
Description: Custom WooCommerce theme for KidTime Personalized Books.
Version: 0.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kidtime-books
*/

:root {
  --kt-pink: #ee8798;
  --kt-blue: #8eb7d6;
  --kt-gold: #f8b65d;
  --kt-coral: #f16f57;
  --kt-peach: #f2d2bd;
  --kt-sage: #9db6a1;
  --kt-ink: #223142;
  --kt-cream: #fffaf4;
  --kt-white: #ffffff;
  --kt-shadow: 0 14px 34px rgba(34, 49, 66, .10);
  --kt-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kt-ink);
  background: var(--kt-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: #b84d55; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--kt-coral); }
img { max-width: 100%; height: auto; }
.kt-wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,250,244,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34,49,66,.08);
}
.admin-bar .site-header { top: 32px; }
.site-header .kt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-branding img { display: block; width: min(310px, 52vw); max-height: 76px; object-fit: contain; object-position: left center; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 22px; align-items: center; }
.site-nav a { color: var(--kt-ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--kt-coral); }
.kt-cart-link { background: var(--kt-ink); color: #fff !important; padding: 10px 16px; border-radius: 999px; }

.kt-hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(circle at 10% 20%, rgba(238,135,152,.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(142,183,214,.22), transparent 26%),
    radial-gradient(circle at 85% 82%, rgba(248,182,93,.18), transparent 25%);
}
.kt-hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.kt-hero-logo { width: min(620px, 92%); margin: 0 auto 18px; display: block; }
.kt-eyebrow { margin: 0 0 10px; color: #a94d56; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .82rem; }
.kt-hero h1, .kt-section-title, .woocommerce div.product .product_title, .kt-display-font { font-family: var(--kt-display-font, "Trebuchet MS", system-ui, sans-serif); }
.kt-hero h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.04; margin: 0 0 18px; }
.kt-hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 720px; margin: 0 auto 26px; }
.kt-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kt-badge { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid rgba(34,49,66,.08); box-shadow: 0 6px 18px rgba(34,49,66,.06); border-radius: 999px; padding: 9px 14px; font-weight: 800; }

.kt-books-section { padding: 58px 0 72px; }
.kt-section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.kt-section-title { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.kt-book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.kt-book-card { background: #fff; border-radius: var(--kt-radius); overflow: hidden; box-shadow: var(--kt-shadow); border: 1px solid rgba(34,49,66,.07); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.kt-book-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(34,49,66,.15); }
.kt-book-cover { background: linear-gradient(135deg, #fff, #f5f0ea); aspect-ratio: 4 / 4.75; display: grid; place-items: center; padding: 24px; }
.kt-book-cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.16)); }
.kt-book-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kt-book-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.kt-book-card p { margin: 0; color: #526170; }
.kt-price { color: var(--kt-ink); font-weight: 900; font-size: 1.35rem; }
.kt-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .single_add_to_cart_button.button {
  appearance: none;
  border: 0;
  border-radius: 999px !important;
  background: var(--kt-coral) !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px !important;
  min-height: 48px;
  cursor: pointer;
}
.kt-book-card .kt-button { margin-top: auto; }
.kt-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button.button:hover { background: #d85b47 !important; color: #fff !important; }

.kt-confidence { padding: 0 0 72px; }
.kt-confidence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.kt-confidence-card { background: #fff; border-radius: 20px; padding: 24px; text-align: center; border: 1px solid rgba(34,49,66,.08); }
.kt-confidence-card strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

.site-main { min-height: 55vh; }
.kt-content-shell { width: min(1120px, calc(100% - 36px)); margin: 48px auto 72px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin-bottom: 22px; color: #66717c; }
.woocommerce div.product { margin-top: 28px; }
.woocommerce div.product div.images img { border-radius: 22px; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--kt-coral); font-weight: 900; font-size: 1.8rem; }
.woocommerce-product-details__short-description { font-size: 1.07rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--kt-coral); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--kt-coral); }
.woocommerce table.shop_table { border-radius: 18px; overflow: hidden; background: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid #cfd6dc; border-radius: 12px; padding: 12px 13px; background: #fff;
}
.woocommerce-checkout #payment { background: #f2eee8; border-radius: 18px; }

.site-footer { background: var(--kt-ink); color: #eef3f7; padding: 44px 0 28px; }
.site-footer a { color: #fff; }
.kt-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.kt-footer-logo { width: 260px; max-width: 100%; background: #fff; border-radius: 16px; padding: 10px; }
.kt-footer-note { color: #c9d2db; max-width: 520px; }
.kt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; color: #c9d2db; font-size: .92rem; }

@media (max-width: 900px) {
  .kt-book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kt-confidence-grid, .kt-footer-grid { grid-template-columns: 1fr; }
  .site-nav .menu-item:not(.kt-menu-shop) { display: none; }
}
@media (max-width: 620px) {
  .admin-bar .site-header { top: 46px; }
  .site-header .kt-wrap { min-height: 72px; }
  .site-branding img { width: min(250px, 62vw); }
  .kt-book-grid { grid-template-columns: 1fr; }
  .kt-hero { padding-top: 40px; }
  .kt-books-section { padding-top: 42px; }
}
