/*
Theme Name: Toys Haven
Theme URI: https://example.com/toys-haven
Author: Toys Haven
Description: A bright, premium WooCommerce-ready retail theme created for Toys Haven. Built for family-focused toy stores with promotional merchandising, category discovery, trust messaging, responsive design and strong conversion paths.
Version: 1.2.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: toys-haven
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, full-width-template
*/

:root {
  --th-ink: #102449;
  --th-ink-2: #173a72;
  --th-blue: #0989e8;
  --th-blue-deep: #0767b2;
  --th-red: #ef342f;
  --th-yellow: #f7bd18;
  --th-green: #54c91e;
  --th-orange: #e69a24;
  --th-cream: #fffaf1;
  --th-sand: #f6efe3;
  --th-white: #ffffff;
  --th-muted: #667085;
  --th-line: #e9e2d7;
  --th-shadow: 0 18px 45px rgba(16,36,73,.12);
  --th-shadow-sm: 0 8px 24px rgba(16,36,73,.09);
  --th-radius: 24px;
  --th-radius-sm: 16px;
  --th-max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--th-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--th-ink);
  display: block;
  font-weight: 700;
  height: auto;
  left: 12px;
  padding: 14px 18px;
  top: 12px;
  width: auto;
  z-index: 100000;
  border-radius: 10px;
  box-shadow: var(--th-shadow-sm);
}

.th-container {
  width: min(calc(100% - 40px), var(--th-max));
  margin-inline: auto;
}

.th-section { padding: 86px 0; }
.th-section--soft { background: var(--th-cream); }
.th-section--sand { background: var(--th-sand); }
.th-section--ink { background: var(--th-ink); color: #fff; }

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--th-blue-deep);
  background: #eaf6ff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.th-heading {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 950;
}

.th-heading--section {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.04;
}

.th-subheading {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--th-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.th-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.th-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--th-blue-deep);
  font-weight: 850;
}
.th-link-arrow:hover { gap: 12px; }

.th-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.th-btn:hover { transform: translateY(-2px); }
.th-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--th-red), #ff5b4f);
  box-shadow: 0 10px 24px rgba(239,52,47,.28);
}
.th-btn--secondary {
  color: var(--th-ink);
  background: #fff;
  border-color: rgba(16,36,73,.12);
  box-shadow: var(--th-shadow-sm);
}
.th-btn--blue {
  color: #fff;
  background: linear-gradient(135deg, var(--th-blue), var(--th-blue-deep));
  box-shadow: 0 10px 24px rgba(9,137,232,.25);
}

/* Announcement bar */
.th-announcement {
  position: relative;
  z-index: 50;
  background: var(--th-ink);
  color: #fff;
}
.th-announcement__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
}
.th-announcement__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--th-yellow);
  box-shadow: 0 0 0 4px rgba(247,189,24,.14);
}

/* Header */
.th-site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(16,36,73,.08);
  backdrop-filter: blur(16px);
}
.admin-bar .th-site-header { top: 32px; }

.th-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.th-brand {
  display: inline-flex;
  align-items: center;
}
.th-brand img {
  width: min(190px, 34vw);
  max-height: 68px;
  object-fit: contain;
}
.th-brand__text {
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -.03em;
}

.th-main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.th-main-nav a {
  display: block;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 820;
}
.th-main-nav a:hover,
.th-main-nav .current-menu-item > a {
  color: var(--th-blue-deep);
  background: #eef8ff;
}

.th-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.th-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: #f7f8fa;
  color: var(--th-ink);
}
.th-icon-btn:hover { background: #eef6ff; color: var(--th-blue-deep); }
.th-cart-count {
  position: absolute;
  right: -3px;
  top: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--th-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}
.th-mobile-toggle { display: none; }

/* Hero */
.th-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(247,189,24,.32) 0 8%, transparent 34%),
    radial-gradient(circle at 7% 88%, rgba(84,201,30,.15) 0 8%, transparent 30%),
    linear-gradient(135deg, #fffaf1 0%, #ffffff 48%, #eef9ff 100%);
}
.th-hero::before,
.th-hero::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  opacity: .24;
  transform: rotate(18deg);
}
.th-hero::before {
  left: -68px; top: 80px;
  background: var(--th-red);
}
.th-hero::after {
  right: -58px; bottom: 40px;
  background: var(--th-blue);
}

.th-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 50px;
  align-items: center;
  padding: 62px 0;
}
.th-hero__copy { max-width: 650px; }
.th-hero__copy .th-heading strong {
  color: var(--th-red);
  font-weight: inherit;
}
.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.th-mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: #53617a;
  font-size: .9rem;
  font-weight: 750;
}
.th-mini-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.th-mini-proof .th-check {
  width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f8e2;
  color: #2f8f19;
  font-size: .75rem;
  font-weight: 950;
}
.th-hero__visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.th-hero__blob {
  position: absolute;
  inset: 7% 4% 7% 4%;
  border-radius: 41% 59% 55% 45% / 52% 34% 66% 48%;
  background: linear-gradient(145deg, #fff 0%, #fff4cc 44%, #e8f7ff 100%);
  box-shadow: var(--th-shadow);
  border: 1px solid rgba(16,36,73,.06);
}
.th-hero__logo {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  filter: drop-shadow(0 18px 24px rgba(16,36,73,.17));
  transform: rotate(-1.2deg);
}
.th-floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--th-shadow-sm);
  font-size: .8rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}
.th-floating-card--one { left: -4%; top: 14%; }
.th-floating-card--two { right: -2%; bottom: 16%; }
.th-floating-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.05rem;
}
.th-floating-card--one .th-floating-card__icon { background: #fff4d7; }
.th-floating-card--two .th-floating-card__icon { background: #e9f8ff; }

/* Trust strip */
.th-trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  border-top: 1px solid rgba(16,36,73,.06);
  border-bottom: 1px solid rgba(16,36,73,.06);
  background: #fff;
}
.th-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.th-trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 18px 24px;
  border-right: 1px solid rgba(16,36,73,.08);
}
.th-trust-item:last-child { border-right: 0; }
.th-trust-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--th-cream);
  font-size: 1.25rem;
}
.th-trust-item strong { display: block; font-size: .95rem; }
.th-trust-item span { color: var(--th-muted); font-size: .78rem; }

/* Category grid */
.th-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.th-category-card {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--th-radius);
  border: 1px solid rgba(16,36,73,.07);
  background: #fff;
  box-shadow: var(--th-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.th-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--th-shadow);
}
.th-category-card__orb {
  position: absolute;
  width: 118px;
  height: 118px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 40px;
  font-size: 3rem;
  transition: transform .2s ease;
}
.th-category-card:hover .th-category-card__orb { transform: translateX(-50%) scale(1.05) rotate(-3deg); }
.th-category-card:nth-child(1) .th-category-card__orb { background: #ffe6e3; }
.th-category-card:nth-child(2) .th-category-card__orb { background: #fff1bf; }
.th-category-card:nth-child(3) .th-category-card__orb { background: #e0f4ff; }
.th-category-card:nth-child(4) .th-category-card__orb { background: #e8f8df; }
.th-category-card:nth-child(5) .th-category-card__orb { background: #efe8ff; }
.th-category-card:nth-child(6) .th-category-card__orb { background: #fff0dc; }
.th-category-card__name {
  position: relative;
  z-index: 2;
  text-align: center;
  font-weight: 900;
  line-height: 1.2;
}
.th-category-card__meta {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  color: var(--th-muted);
  text-align: center;
  font-size: .78rem;
}

/* Product styling */
.th-product-shell { position: relative; }
.th-products .products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px !important;
  margin: 0 !important;
}
.th-products .products::before,
.th-products .products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.th-products li.product,
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 0 20px !important;
  border: 1px solid rgba(16,36,73,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.th-products li.product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--th-shadow);
}
.th-products li.product img,
.woocommerce ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 16px !important;
  background: #f8f8f8;
}
.th-products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 18px !important;
  color: var(--th-ink);
  font-size: 1rem !important;
  font-weight: 850;
  line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  padding: 0 18px;
  color: var(--th-red) !important;
  font-size: 1.05rem !important;
  font-weight: 950 !important;
}
.woocommerce ul.products li.product .button {
  margin: 12px 18px 0 !important;
  padding: 12px 15px !important;
  border-radius: 12px !important;
  background: var(--th-blue) !important;
  color: #fff !important;
  font-weight: 850 !important;
}
.woocommerce span.onsale {
  min-width: auto !important;
  min-height: auto !important;
  margin: 12px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  background: var(--th-red) !important;
  line-height: 1 !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
}

/* Promotional tiles */
.th-promo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}
.th-promo-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 46px;
  border-radius: 30px;
  box-shadow: var(--th-shadow);
}
.th-promo-card--big {
  color: #fff;
  background:
    radial-gradient(circle at 84% 22%, rgba(255,255,255,.23) 0 7%, transparent 26%),
    linear-gradient(135deg, var(--th-blue-deep), var(--th-blue));
}
.th-promo-card--small {
  color: var(--th-ink);
  background:
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.9) 0 8%, transparent 31%),
    linear-gradient(135deg, #ffd84d, var(--th-yellow));
}
.th-promo-card__kicker {
  display: block;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
}
.th-promo-card h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.th-promo-card p {
  max-width: 540px;
  margin: 18px 0 26px;
  font-weight: 650;
  opacity: .86;
}
.th-promo-shape {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 230px;
  height: 230px;
  border-radius: 58px;
  background: rgba(255,255,255,.15);
  transform: rotate(22deg);
}
.th-promo-card--small .th-promo-shape { background: rgba(255,255,255,.38); }

/* Story / values */
.th-story {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.th-story__visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 15%, rgba(239,52,47,.15), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(9,137,232,.16), transparent 36%),
    #fff;
  box-shadow: var(--th-shadow);
}
.th-story__visual img {
  width: 90%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 25px rgba(16,36,73,.13));
}
.th-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.th-value {
  padding: 18px;
  border: 1px solid rgba(16,36,73,.08);
  border-radius: 18px;
  background: #fff;
}
.th-value__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--th-cream);
}
.th-value strong { display: block; }
.th-value p {
  margin: 5px 0 0;
  color: var(--th-muted);
  font-size: .86rem;
}

/* Testimonials */
.th-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.th-review {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16,36,73,.08);
  box-shadow: var(--th-shadow-sm);
}
.th-review__stars {
  color: #f0a700;
  letter-spacing: .08em;
}
.th-review blockquote {
  margin: 15px 0 20px;
  font-size: 1rem;
  font-weight: 680;
}
.th-review__person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.th-review__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf6ff;
  font-weight: 900;
}
.th-review__person strong { display: block; font-size: .9rem; }
.th-review__person span { color: var(--th-muted); font-size: .76rem; }

/* Newsletter */
.th-newsletter {
  position: relative;
  overflow: hidden;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border-radius: 30px;
  background: var(--th-ink);
  color: #fff;
}
.th-newsletter::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: rgba(247,189,24,.18);
}
.th-newsletter h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.th-newsletter p {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
}
.th-newsletter__form {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: min(440px, 100%);
  padding: 5px;
  border-radius: 16px;
  background: #fff;
}
.th-newsletter__form input[type="email"] {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}
.th-newsletter__form button {
  border: 0;
  border-radius: 12px;
}

/* Footer */
.th-site-footer {
  padding: 64px 0 0;
  background: #0a1932;
  color: #fff;
}
.th-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 42px;
}
.th-footer-brand img {
  width: 210px;
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.15));
}
.th-footer-brand p {
  max-width: 380px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.68);
}
.th-footer-title {
  margin: 0 0 16px;
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.th-footer-menu,
.th-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.th-footer-menu li + li { margin-top: 9px; }
.th-footer-menu a { color: rgba(255,255,255,.72); }
.th-footer-menu a:hover { color: #fff; }
.th-footer-bottom {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}
.th-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.th-payment-badge {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-size: .7rem;
  font-weight: 800;
}

/* Generic content */
.th-content-wrap { padding: 62px 0 90px; }
.th-page-header { padding: 58px 0 0; }
.th-entry {
  max-width: 880px;
  margin: 0 auto;
}
.th-entry h1 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.th-entry a { color: var(--th-blue-deep); text-decoration: underline; }
.th-entry img { border-radius: 20px; }

.th-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.th-post-card {
  overflow: hidden;
  border: 1px solid rgba(16,36,73,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
}
.th-post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.th-post-card__body { padding: 20px; }
.th-post-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.th-post-card p { color: var(--th-muted); }

/* WooCommerce shell */
.woocommerce .woocommerce-breadcrumb {
  color: var(--th-muted);
  font-size: .84rem;
}
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce div.product .product_title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--th-red);
  font-weight: 950;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 12px;
  background: var(--th-blue);
  color: #fff;
  font-weight: 850;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--th-blue);
  border-radius: 14px;
  background: #f3faff;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--th-blue); }

/* Responsive */
@media (max-width: 1080px) {
  .th-header__inner { gap: 16px; }
  .th-main-nav { display: none; }
  .th-mobile-toggle { display: inline-grid; }
  .th-main-nav.is-open {
    position: fixed;
    inset: 120px 18px auto;
    display: block;
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(16,36,73,.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--th-shadow);
  }
  .th-main-nav.is-open ul {
    display: block;
  }
  .th-main-nav.is-open a { padding: 14px; }
  .th-categories { grid-template-columns: repeat(3, 1fr); }
  .th-products .products,
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .th-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .admin-bar .th-site-header { top: 46px; }
  .th-section { padding: 68px 0; }
  .th-hero__grid,
  .th-story,
  .th-promo-grid { grid-template-columns: 1fr; }
  .th-hero__grid { gap: 16px; padding-top: 48px; }
  .th-hero__copy { text-align: center; margin-inline: auto; }
  .th-hero__copy .th-subheading { margin-inline: auto; }
  .th-hero__actions, .th-mini-proof { justify-content: center; }
  .th-hero__visual { min-height: 430px; }
  .th-floating-card--one { left: 2%; }
  .th-floating-card--two { right: 2%; }
  .th-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .th-trust-item:nth-child(2) { border-right: 0; }
  .th-trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(16,36,73,.08); }
  .th-testimonials { grid-template-columns: 1fr; }
  .th-newsletter { grid-template-columns: 1fr; }
  .th-newsletter__form { min-width: 0; }
  .th-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .th-container { width: min(calc(100% - 26px), var(--th-max)); }
  .th-header__inner { min-height: 70px; grid-template-columns: 1fr auto; }
  .th-brand img { width: 150px; max-height: 58px; }
  .th-header-actions .th-account-link { display: none; }
  .th-main-nav.is-open { inset-top: 110px; }
  .th-hero { min-height: 0; }
  .th-hero__grid { padding-bottom: 38px; }
  .th-hero__visual { min-height: 330px; }
  .th-floating-card { font-size: .7rem; padding: 8px 10px; }
  .th-floating-card__icon { width: 30px; height: 30px; }
  .th-trust-grid { grid-template-columns: 1fr; }
  .th-trust-item { border-right: 0; border-bottom: 1px solid rgba(16,36,73,.08); }
  .th-trust-item:last-child { border-bottom: 0; }
  .th-section__head { align-items: start; flex-direction: column; }
  .th-categories { grid-template-columns: repeat(2, 1fr); }
  .th-category-card { min-height: 172px; }
  .th-category-card__orb { width: 98px; height: 98px; font-size: 2.5rem; }
  .th-products .products,
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px !important; }
  .th-products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .price { padding-left: 12px !important; padding-right: 12px !important; }
  .woocommerce ul.products li.product .button { margin-left: 12px !important; margin-right: 12px !important; }
  .th-promo-card { min-height: 320px; padding: 30px; }
  .th-story__visual { min-height: 340px; }
  .th-values { grid-template-columns: 1fr; }
  .th-newsletter { padding: 30px 24px; }
  .th-newsletter__form { display: grid; gap: 7px; background: transparent; padding: 0; }
  .th-newsletter__form input { background: #fff !important; border-radius: 12px; }
  .th-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .th-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px 0; }
  .th-post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .th-products .products,
  .woocommerce ul.products { grid-template-columns: 1fr; }
}


/* ============================================================
   Toys Haven v1.1 — advanced commerce layer
   ============================================================ */

:root {
  --th-purple: #7757d9;
  --th-pink: #ff6ca8;
}

/* Header v1.1 */
.th-header-actions { position: relative; }
.th-header-shop {
  position: relative;
}
.th-shop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  background: #eef8ff;
  color: var(--th-blue-deep);
  font-weight: 900;
}
.th-shop-trigger:hover,
.th-shop-trigger[aria-expanded="true"] {
  background: var(--th-blue);
  color: #fff;
}
.th-mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  width: min(980px, calc(100vw - 40px));
  padding: 22px;
  display: none;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(16,36,73,.09);
  border-radius: 24px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 28px 70px rgba(16,36,73,.2);
}
.th-mega-menu.is-open { display: grid; }
.th-mega-menu__feature {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 26px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255,255,255,.22), transparent 31%),
    linear-gradient(145deg, var(--th-blue-deep), var(--th-blue));
}
.th-mega-menu__feature::after {
  content: "★";
  position: absolute;
  right: 22px;
  bottom: -25px;
  color: rgba(255,255,255,.16);
  font-size: 9rem;
  line-height: 1;
}
.th-mega-menu__feature small {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}
.th-mega-menu__feature strong {
  display: block;
  max-width: 320px;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.th-mega-menu__feature p {
  max-width: 330px;
  color: rgba(255,255,255,.78);
}
.th-mega-menu__title {
  margin: 2px 0 12px;
  color: var(--th-muted);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.th-mega-links {
  display: grid;
  gap: 6px;
}
.th-mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 11px;
  font-size: .88rem;
  font-weight: 820;
}
.th-mega-links a:hover {
  background: var(--th-cream);
  color: var(--th-blue-deep);
}
.th-mega-links a span:last-child {
  color: #a0a8b8;
  font-size: .72rem;
}

/* Search overlay */
.th-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  padding: clamp(20px, 6vw, 70px) 18px;
  background: rgba(7,19,39,.82);
  backdrop-filter: blur(12px);
}
.th-search-overlay.is-open { display: block; }
.th-search-panel {
  width: min(820px, 100%);
  max-height: calc(100vh - 70px);
  overflow: auto;
  margin: 0 auto;
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}
.th-search-panel__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-search-field {
  min-width: 0;
  flex: 1;
  height: 58px;
  padding: 0 18px;
  border: 2px solid #dce5ef;
  border-radius: 16px;
  outline: 0;
  color: var(--th-ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.th-search-field:focus { border-color: var(--th-blue); }
.th-search-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #f4f6f8;
  font-size: 1.3rem;
}
.th-search-helper {
  margin: 12px 4px 0;
  color: var(--th-muted);
  font-size: .78rem;
}
.th-search-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.th-search-result {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
}
.th-search-result:hover { background: #f7fbff; }
.th-search-result img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 13px;
  background: #f2f4f7;
}
.th-search-result__title {
  display: block;
  font-weight: 900;
  line-height: 1.25;
}
.th-search-result__meta {
  display: block;
  margin-top: 3px;
  color: var(--th-muted);
  font-size: .76rem;
}
.th-search-result__price {
  color: var(--th-red);
  font-weight: 950;
}
.th-search-empty {
  padding: 30px 12px;
  text-align: center;
  color: var(--th-muted);
}

/* Wishlist */
.th-wishlist-btn {
  position: absolute;
  z-index: 5;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(16,36,73,.13);
  color: var(--th-ink);
  font-size: 1rem;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.th-wishlist-btn:hover { transform: scale(1.06); color: var(--th-red); }
.th-wishlist-btn.is-saved { color: #fff; background: var(--th-red); }
.woocommerce ul.products li.product { position: relative; }

.th-wishlist-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.th-wishlist-drawer.is-open { pointer-events: auto; }
.th-wishlist-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(7,19,39,.55);
  transition: opacity .22s ease;
}
.th-wishlist-drawer.is-open .th-wishlist-backdrop { opacity: 1; }
.th-wishlist-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(440px, 94vw);
  height: 100%;
  padding: 24px;
  overflow: auto;
  transform: translateX(105%);
  background: #fff;
  box-shadow: -20px 0 70px rgba(16,36,73,.2);
  transition: transform .25s ease;
}
.th-wishlist-drawer.is-open .th-wishlist-panel { transform: translateX(0); }
.th-wishlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--th-line);
}
.th-wishlist-head h3 {
  margin: 0;
  font-size: 1.35rem;
}
.th-wishlist-items { display: grid; gap: 10px; margin-top: 14px; }
.th-wishlist-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--th-line);
  border-radius: 15px;
}
.th-wishlist-item img {
  width: 68px;
  height: 68px;
  border-radius: 11px;
  object-fit: cover;
  background: #f3f4f6;
}
.th-wishlist-item strong { display: block; font-size: .9rem; line-height: 1.2; }
.th-wishlist-item small { color: var(--th-red); font-weight: 900; }
.th-wishlist-remove {
  border: 0;
  background: none;
  color: #98a2b3;
  font-size: 1.1rem;
}
.th-wishlist-empty {
  padding: 46px 12px;
  color: var(--th-muted);
  text-align: center;
}

/* Shipping progress */
.th-shipping-progress {
  background: #eef9ff;
  border-bottom: 1px solid #d7efff;
}
.th-shipping-progress__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  font-weight: 820;
}
.th-shipping-progress__track {
  height: 7px;
  min-width: 100px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #d6ebf8;
}
.th-shipping-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--th-blue), var(--th-green));
  transition: width .3s ease;
}

/* Promotional carousel */
.th-promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--th-shadow);
}
.th-promo-slides {
  display: flex;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.th-promo-slide {
  min-width: 100%;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 30px;
  padding: 52px;
}
.th-promo-slide:nth-child(1) {
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, var(--th-red), #ff675e);
}
.th-promo-slide:nth-child(2) {
  color: var(--th-ink);
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(135deg, #ffd23c, #ffec94);
}
.th-promo-slide:nth-child(3) {
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.17), transparent 28%),
    linear-gradient(135deg, var(--th-blue-deep), var(--th-purple));
}
.th-promo-slide h3 {
  margin: 0;
  max-width: 610px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .92;
  letter-spacing: -.055em;
}
.th-promo-slide p {
  max-width: 590px;
  margin: 18px 0 26px;
  font-size: 1.06rem;
  font-weight: 650;
  opacity: .84;
}
.th-promo-slide__art {
  display: grid;
  place-items: center;
  font-size: clamp(7rem, 15vw, 13rem);
  filter: drop-shadow(0 18px 20px rgba(16,36,73,.14));
}
.th-promo-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.th-promo-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.th-promo-dot.is-active {
  width: 28px;
  background: #fff;
}

/* Countdown */
.th-countdown-wrap {
  margin-top: 20px;
}
.th-countdown-label {
  display: block;
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.th-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.th-countdown__unit {
  min-width: 65px;
  padding: 10px 8px;
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  color: var(--th-ink);
  text-align: center;
  box-shadow: 0 6px 18px rgba(16,36,73,.1);
}
.th-countdown__unit strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
}
.th-countdown__unit small {
  display: block;
  margin-top: 4px;
  color: var(--th-muted);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

/* Shop by age */
.th-age-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.th-age-card {
  min-height: 165px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(16,36,73,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.th-age-card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow); }
.th-age-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--th-cream);
  font-size: 1.8rem;
}
.th-age-card strong {
  display: block;
  margin-top: 20px;
  font-size: 1.2rem;
  line-height: 1.1;
}
.th-age-card span {
  color: var(--th-muted);
  font-size: .78rem;
}

/* Brand + price discovery */
.th-discovery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}
.th-discovery-card {
  padding: 32px;
  border: 1px solid rgba(16,36,73,.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
}
.th-brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.th-brand-pill,
.th-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #e5e9ef;
  border-radius: 999px;
  background: #fafbfc;
  font-size: .85rem;
  font-weight: 850;
}
.th-brand-pill:hover,
.th-price-pill:hover {
  color: #fff;
  border-color: var(--th-blue);
  background: var(--th-blue);
}
.th-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.th-price-pill { border-radius: 14px; }

/* Gift finder */
.th-gift-finder {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.5), transparent 27%),
    linear-gradient(135deg, #fff0f4, #fff9de 52%, #ebf8ff);
  box-shadow: var(--th-shadow);
}
.th-gift-finder::after {
  content: "🎁";
  position: absolute;
  right: 5%;
  bottom: -24px;
  z-index: 0;
  font-size: clamp(8rem, 18vw, 14rem);
  opacity: .18;
  transform: rotate(-10deg);
}
.th-gift-finder__content { position: relative; z-index: 2; }
.th-gift-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) auto;
  gap: 10px;
  margin-top: 26px;
}
.th-field {
  display: grid;
  gap: 6px;
}
.th-field label {
  color: var(--th-muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.th-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 38px 0 14px;
  border: 1px solid #dfe6ee;
  border-radius: 13px;
  background: #fff;
  color: var(--th-ink);
  font-weight: 750;
}

/* Product badges */
.th-product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--th-blue);
  color: #fff;
  box-shadow: 0 5px 16px rgba(16,36,73,.13);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.woocommerce ul.products li.product .onsale + .th-product-badge {
  top: 52px;
}
.th-product-badge--new { background: var(--th-green); }
.th-product-badge--gift { background: var(--th-purple); }
.th-product-badge--exclusive { background: var(--th-red); }

/* Recently viewed */
.th-recently-viewed {
  margin-top: 58px;
  padding-top: 45px;
  border-top: 1px solid var(--th-line);
}

/* Product page v1.1 */
.single-product div.product {
  position: relative;
}
.th-product-promise {
  margin: 18px 0 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  border: 1px solid #e0ebf2;
  border-radius: 17px;
  background: #f7fcff;
}
.th-product-promise__item {
  text-align: center;
  color: var(--th-muted);
  font-size: .72rem;
  font-weight: 800;
}
.th-product-promise__item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--th-ink);
  font-size: .77rem;
}
.th-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}
.th-product-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--th-cream);
  color: #6b5c36;
  font-size: .72rem;
  font-weight: 850;
}
.th-single-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  background: #fff;
  color: var(--th-ink);
  font-weight: 850;
}
.th-single-wishlist.is-saved {
  color: var(--th-red);
  border-color: #ffc9c7;
  background: #fff7f7;
}
.th-product-confidence {
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.th-confidence-card {
  padding: 18px;
  border: 1px solid var(--th-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.th-confidence-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.th-confidence-card strong {
  display: block;
  font-size: .82rem;
}
.th-confidence-card small {
  color: var(--th-muted);
  font-size: .7rem;
}

/* Cart suggestions */
.th-cart-recommendations {
  margin: 42px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--th-line);
}
.th-cart-recommendations h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem,3vw,2.4rem);
  letter-spacing: -.035em;
}

/* Woo admin product fields are handled by WooCommerce itself */

/* Mobile v1.1 */
@media (max-width: 1080px) {
  .th-header-shop { display: none; }
  .th-age-grid { grid-template-columns: repeat(3,1fr); }
  .th-gift-form { grid-template-columns: repeat(2,1fr); }
  .th-gift-form .th-btn { align-self: end; }
}
@media (max-width: 820px) {
  .th-promo-slide { grid-template-columns: 1fr; min-height: 560px; padding: 38px; }
  .th-promo-slide__art { font-size: 8rem; }
  .th-discovery-grid { grid-template-columns: 1fr; }
  .th-product-confidence { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .th-search-result { grid-template-columns: 62px 1fr; }
  .th-search-result img { width: 62px; height: 62px; }
  .th-search-result__price { grid-column: 2; }
  .th-age-grid { grid-template-columns: repeat(2,1fr); }
  .th-age-card { min-height: 145px; }
  .th-gift-finder { padding: 30px 22px; }
  .th-gift-form { grid-template-columns: 1fr; }
  .th-promo-slide { min-height: 520px; padding: 30px 24px 58px; }
  .th-product-promise { grid-template-columns: 1fr; text-align: left; }
  .th-product-promise__item { text-align: left; }
  .th-product-confidence { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   Toys Haven v1.2 — high-conversion retail layer
   ============================================================ */

/* Cart drawer */
.th-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  pointer-events: none;
}
.th-cart-drawer.is-open { pointer-events: auto; }
.th-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(7,19,39,.58);
  transition: opacity .22s ease;
}
.th-cart-drawer.is-open .th-cart-drawer__backdrop { opacity: 1; }
.th-cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(470px, 96vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  background: #fff;
  box-shadow: -24px 0 80px rgba(16,36,73,.22);
  transition: transform .25s ease;
}
.th-cart-drawer.is-open .th-cart-drawer__panel { transform: translateX(0); }
.th-cart-drawer__head {
  min-height: 78px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--th-line);
}
.th-cart-drawer__head h3 { margin: 0; font-size: 1.35rem; }
.th-cart-drawer__body { flex: 1; overflow: auto; padding: 14px 20px; }
.th-cart-drawer__foot { padding: 18px 20px 24px; border-top: 1px solid var(--th-line); background: #fff; }
.th-mini-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
}
.th-mini-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 13px;
  background: #f3f4f6;
}
.th-mini-cart-item__title {
  display: block;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
}
.th-mini-cart-item__meta { margin-top: 4px; color: var(--th-muted); font-size: .76rem; }
.th-mini-cart-item__price { display: block; margin-top: 5px; color: var(--th-red); font-weight: 950; }
.th-mini-cart-remove { border: 0; background: none; color: #98a2b3; font-size: 1.2rem; }
.th-mini-cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
  font-weight: 900;
}
.th-mini-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.th-mini-cart-empty {
  padding: 56px 18px;
  text-align: center;
  color: var(--th-muted);
}
.th-mini-cart-empty span { display: block; margin-bottom: 10px; font-size: 2.7rem; }

/* Quick view */
.th-quickview-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  padding: 22px;
  background: rgba(7,19,39,.7);
  backdrop-filter: blur(8px);
}
.th-quickview-modal.is-open { display: grid; place-items: center; }
.th-quickview-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0,0,0,.3);
}
.th-quickview-close {
  position: sticky;
  z-index: 5;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: #f4f6f8;
  font-size: 1.25rem;
}
.th-quickview-content {
  clear: both;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.th-quickview-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 22px;
  background: #f4f5f6;
}
.th-quickview-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem,3.6vw,3rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.th-quickview-price { margin: 12px 0; color: var(--th-red); font-size: 1.3rem; font-weight: 950; }
.th-quickview-copy p { color: var(--th-muted); }
.th-quickview-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.th-quickview-trigger {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: 12px;
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  border-radius: 11px;
  background: rgba(16,36,73,.9);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover .th-quickview-trigger {
  opacity: 1;
  transform: translateY(0);
}

/* Product comparison */
.th-compare-btn {
  position: absolute;
  z-index: 5;
  right: 12px;
  top: 58px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(16,36,73,.13);
  color: var(--th-ink);
  font-size: .95rem;
}
.th-compare-btn.is-active { background: var(--th-blue); color: #fff; }
.th-compare-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10010;
  width: min(760px, calc(100vw - 28px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(16,36,73,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 60px rgba(16,36,73,.22);
}
.th-compare-bar.is-visible { display: flex; }
.th-compare-bar__items { display: flex; min-width: 0; gap: 8px; overflow: auto; }
.th-compare-chip {
  min-width: 0;
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: #f4f7fa;
}
.th-compare-chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.th-compare-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; font-weight: 850; }
.th-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  padding: 22px;
  overflow: auto;
  background: rgba(7,19,39,.72);
  backdrop-filter: blur(8px);
}
.th-compare-modal.is-open { display: block; }
.th-compare-table-wrap {
  width: min(1120px, 100%);
  margin: 20px auto;
  padding: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.th-compare-table {
  width: 100%;
  border-collapse: collapse;
}
.th-compare-table th,
.th-compare-table td {
  padding: 14px;
  border-bottom: 1px solid #e9edf1;
  text-align: left;
  vertical-align: top;
}
.th-compare-table th:first-child { width: 160px; color: var(--th-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.th-compare-table img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; }

/* AJAX shop controls */
.th-shop-tools {
  margin-bottom: 24px;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--th-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
}
.th-shop-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.th-filter-select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #dfe4ea;
  border-radius: 11px;
  background: #fafbfc;
  color: var(--th-ink);
  font-weight: 800;
  font-size: .8rem;
}
.th-filter-clear {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: #f3f5f7;
  color: var(--th-muted);
  font-size: .78rem;
  font-weight: 850;
}
.th-shop-status { color: var(--th-muted); font-size: .78rem; font-weight: 800; }
.th-shop-results.is-loading { opacity: .48; pointer-events: none; }

/* Predictive search group headings */
.th-search-group-title {
  margin: 14px 4px 4px;
  color: var(--th-muted);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.th-search-suggestion {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: .83rem;
  font-weight: 820;
}
.th-search-suggestion:hover { background: #f7fbff; color: var(--th-blue-deep); }

/* Sticky add to cart */
.th-sticky-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  transform: translateY(110%);
  border-top: 1px solid rgba(16,36,73,.1);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -14px 45px rgba(16,36,73,.12);
  backdrop-filter: blur(16px);
  transition: transform .22s ease;
}
.th-sticky-cart.is-visible { transform: translateY(0); }
.th-sticky-cart__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.th-sticky-cart__img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; background: #f3f4f6; }
.th-sticky-cart__meta strong { display: block; font-size: .85rem; }
.th-sticky-cart__meta span { color: var(--th-red); font-size: .8rem; font-weight: 900; }

/* Bundles / frequently bought together */
.th-bundle-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #e7e2d7;
  border-radius: 20px;
  background: var(--th-cream);
}
.th-bundle-box h3 { margin: 0 0 8px; font-size: 1.3rem; }
.th-bundle-box > p { margin: 0 0 15px; color: var(--th-muted); font-size: .86rem; }
.th-bundle-items { display: grid; gap: 9px; margin-bottom: 15px; }
.th-bundle-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 13px;
  background: #fff;
}
.th-bundle-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.th-bundle-item strong { display: block; font-size: .82rem; line-height: 1.2; }
.th-bundle-item span { color: var(--th-red); font-size: .76rem; font-weight: 900; }
.th-bundle-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.th-bundle-saving { color: #2f8f19; font-weight: 900; }

/* Quantity discount */
.th-qty-pricing {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #dcebd7;
  border-radius: 16px;
  background: #f7fff4;
}
.th-qty-pricing strong { display: block; margin-bottom: 8px; }
.th-qty-tiers { display: flex; flex-wrap: wrap; gap: 7px; }
.th-qty-tier {
  padding: 7px 9px;
  border-radius: 10px;
  background: #fff;
  color: #3f6d33;
  font-size: .72rem;
  font-weight: 850;
}

/* Gift wrapping */
.th-gift-wrap-box {
  margin: 16px 0;
  padding: 15px;
  border: 1px solid #f3dfb1;
  border-radius: 15px;
  background: #fffaf0;
}
.th-gift-wrap-box label { display: flex; align-items: center; gap: 9px; font-weight: 850; }
.th-gift-wrap-box p { margin: 6px 0 0 27px; color: var(--th-muted); font-size: .76rem; }

/* Back in stock */
.th-stock-alert {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #f7fbff;
}
.th-stock-alert h4 { margin: 0 0 6px; }
.th-stock-alert p { margin: 0 0 12px; color: var(--th-muted); font-size: .84rem; }
.th-stock-alert__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.th-stock-alert__form input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d8e1ea;
  border-radius: 11px;
}
.th-stock-alert__message { margin-top: 8px; font-size: .78rem; font-weight: 800; }

/* Smarter mobile nav */
.th-mobile-shop-panel {
  display: none;
}
@media (max-width: 1080px) {
  .th-main-nav.is-open {
    inset: 154px 18px auto;
  }
  .th-mobile-shop-panel {
    display: block;
    padding: 10px 0 2px;
    border-top: 1px solid #edf0f3;
    margin-top: 8px;
  }
  .th-mobile-shop-panel__title {
    padding: 10px 14px 5px;
    color: var(--th-muted);
    font-size: .7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .th-mobile-shop-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 7px;
    padding: 0 10px 10px;
  }
  .th-mobile-shop-grid a {
    display: block;
    padding: 11px;
    border-radius: 11px;
    background: #f7fbff;
    font-size: .8rem;
    font-weight: 850;
  }
}
@media (max-width: 820px) {
  .th-quickview-content { grid-template-columns: 1fr; }
  .th-shop-tools { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .th-mini-cart-actions { grid-template-columns: 1fr; }
  .th-sticky-cart__inner { grid-template-columns: auto 1fr; padding: 10px 0; }
  .th-sticky-cart__inner .th-btn { grid-column: 1 / -1; width: 100%; }
  .th-stock-alert__form { grid-template-columns: 1fr; }
  .th-compare-bar { align-items: stretch; flex-direction: column; bottom: 10px; }
  .th-compare-table-wrap { padding: 12px; overflow-x: auto; }
  .th-compare-table { min-width: 720px; }
}


/* v1.2.1 — BMS product Additional Information */
.th-additional-info {
  max-width: 860px;
  overflow: hidden;
  border: 1px solid var(--th-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--th-shadow-sm);
}
.th-additional-info__table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
}
.th-additional-info__table th,
.th-additional-info__table td {
  padding: 13px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0ece5 !important;
  text-align: left;
  vertical-align: top;
}
.th-additional-info__table tr:last-child th,
.th-additional-info__table tr:last-child td { border-bottom: 0 !important; }
.th-additional-info__table th {
  width: 210px;
  background: #fcfaf6;
  color: var(--th-ink);
  font-size: .78rem;
  font-weight: 900;
}
.th-additional-info__table td {
  color: var(--th-muted);
  font-size: .84rem;
  font-style: normal !important;
}
.th-additional-info__table td p { margin: 0; }
.th-additional-info__table a { color: var(--th-blue-deep); font-weight: 850; }
.th-additional-info__empty { color: #a9afb8; }
@media (max-width: 620px) {
  .th-additional-info__table th,
  .th-additional-info__table td { display: block; width: 100%; }
  .th-additional-info__table th { padding-bottom: 4px !important; border-bottom: 0 !important; }
  .th-additional-info__table td { padding-top: 4px !important; }
}
