/* ============================================================
   THO.com.vn Frontend CSS v1.0
   Font: Inter | Author: dev.com.vn
   ============================================================ */

:root {
  --blue: #1266d8;
  --blue-2: #247df5;
  --blue-3: #083a8a;
  --navy: #06275a;
  --navy-2: #0b3678;
  --orange: #ff970f;
  --orange-2: #ffad25;
  --ink: #12275a;
  --text: #516078;
  --muted: #7f8da2;
  --line: #dfe8f6;
  --soft: #f7fbff;
  --soft-blue: #edf5ff;
  --white: #fff;
  --green: #19b86a;
  --red: #ee5a63;
  --shadow: 0 15px 35px rgba(8,57,139,.14);
  --shadow-soft: 0 8px 22px rgba(8,57,139,.08);
  --radius: 10px;
  --container: 1130px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, Arial, sans-serif; color: var(--text); font-size: 14px; line-height: 1.62; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
.tho-container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.tho-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 8px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer; border: none; transition: background .2s, transform .15s;
  white-space: nowrap;
}
.tho-btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }

.tho-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 8px;
  background: var(--soft-blue); color: var(--blue); font-weight: 700; font-size: 12px;
  border: 1px solid var(--line); cursor: pointer; transition: .2s;
}
.tho-btn-outline:hover { background: var(--blue); color: #fff; }

.tho-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 8px;
  background: #07af5c; color: #fff; font-weight: 700; font-size: 13px;
  border: none; cursor: pointer; transition: .2s;
}
.tho-btn-secondary:hover { background: #059a50; }

.tho-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.tho-section { padding: 32px 0; }
.tho-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.tho-section-head h2 {
  font-size: 21px; color: var(--ink); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.1px;
}
.tho-view-all { font-size: 12px; color: var(--blue); font-weight: 800; white-space: nowrap; }
.tho-view-all:hover { color: var(--blue-3); }

/* ============================================================
   WORKER GRID + CARDS
   ============================================================ */
.tho-worker-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.tho-worker-grid.tho-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tho-worker-grid.tho-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tho-worker-grid.tho-cols-4 { grid-template-columns: repeat(4, 1fr); }

.tho-worker-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.tho-worker-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.tho-worker-img {
  height: 160px; position: relative; background: var(--soft-blue);
  overflow: hidden;
}
.tho-worker-img img { width: 100%; height: 100%; object-fit: cover; }

.tho-avatar-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 900; color: var(--blue);
  background: linear-gradient(135deg, var(--soft-blue), #d0e8ff);
}

.tho-badge-online {
  position: absolute; top: 10px; right: 10px;
  background: #19b86a; color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 12px;
}
.tho-badge-busy {
  position: absolute; top: 10px; right: 10px;
  background: #f7a51e; color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 12px;
}

.tho-worker-body { padding: 14px; }
.tho-worker-name { font-size: 14px; color: var(--ink); font-weight: 900; margin-bottom: 2px; }
.tho-worker-name a { color: inherit; }
.tho-worker-name a:hover { color: var(--blue); }
.tho-verified { color: var(--blue); font-size: 13px; }
.tho-worker-role { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.tho-worker-meta { font-size: 11px; color: var(--muted); display: grid; gap: 4px; margin-bottom: 10px; }
.tho-worker-meta b { color: #f7a51e; }
.tho-worker-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tho-worker-price { font-size: 11px; color: var(--orange); font-weight: 800; }

/* ============================================================
   SERVICE GRID + CARDS
   ============================================================ */
.tho-service-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.tho-service-grid.tho-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tho-service-grid.tho-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tho-service-grid.tho-cols-4 { grid-template-columns: repeat(4, 1fr); }
.tho-service-grid.tho-cols-9 { grid-template-columns: repeat(9, 1fr); }

.tho-service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 20px 14px; text-align: center;
  transition: .2s; cursor: pointer;
}
.tho-service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue); }
.tho-service-icon { font-size: 30px; height: 38px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.tho-service-name { font-size: 13px; color: var(--ink); font-weight: 900; margin-bottom: 4px; }
.tho-service-name a { color: inherit; }
.tho-service-name a:hover { color: var(--blue); }
.tho-service-cat { font-size: 10.5px; color: var(--muted); display: block; margin-bottom: 6px; }
.tho-service-desc { font-size: 11.5px; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.tho-service-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.tho-service-price { font-size: 12px; color: var(--orange); font-weight: 800; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.tho-search-wrap { margin: 0; }
.tho-search-full {
  background: linear-gradient(135deg, #0c4cac, #0841a0);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; color: #fff;
}
.tho-search-compact { background: #f0f6ff; border-radius: var(--radius); padding: 16px; }
.tho-search-row { display: grid; grid-template-columns: 1.2fr 1.35fr 1.2fr 160px; gap: 14px; }
.tho-search-field label { display: block; font-size: 12px; font-weight: 800; color: #e7f1ff; margin-bottom: 7px; }
.tho-search-compact .tho-search-field label { color: var(--ink); }
.tho-search-field select,
.tho-search-field input[type="text"] {
  width: 100%; height: 44px; border: 0; border-radius: 7px; outline: none;
  color: var(--ink); padding: 0 14px; background: #fff; font-size: 13px;
  font-family: inherit;
}
.tho-search-btn-wrap label { opacity: 0; pointer-events: none; }
.tho-btn-search {
  width: 100%; height: 44px; border: 0; border-radius: 7px;
  background: var(--orange); color: #fff; font-weight: 900; font-size: 14px;
  cursor: pointer; transition: .2s;
}
.tho-btn-search:hover { background: var(--orange-2); }
.tho-popular-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.tho-popular-tags b { font-size: 12px; color: #fff; }
.tho-tag {
  height: 27px; border-radius: 14px;
  background: rgba(255,255,255,.13); color: #dfeaff;
  display: inline-flex; align-items: center; padding: 0 12px;
  font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s;
}
.tho-tag:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   STATS BAND
   ============================================================ */
.tho-stat-band {
  background: #f6f9ff; border: 1px solid #e5edf8; border-radius: var(--radius);
  padding: 22px 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.tho-stat {
  display: grid; grid-template-columns: 50px 1fr; gap: 12px;
  align-items: center; border-right: 1px solid var(--line);
}
.tho-stat:last-child { border-right: 0; }
.tho-stat-icon {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  color: var(--blue); border: 1px solid var(--line);
  display: grid; place-items: center; font-style: normal; font-size: 24px;
}
.tho-stat strong { display: block; color: var(--blue); font-size: 24px; font-weight: 900; }
.tho-stat span { font-size: 12px; color: var(--muted); }

/* ============================================================
   REVIEWS GRID
   ============================================================ */
.tho-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.tho-review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 20px; transition: .2s;
}
.tho-review-card:hover { box-shadow: var(--shadow); }
.tho-review-person {
  display: grid; grid-template-columns: 50px 1fr auto;
  gap: 12px; align-items: center; margin-bottom: 12px;
}
.tho-avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--soft-blue);
  display: flex; align-items: center; justify-content: center;
}
.tho-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tho-avatar-init { font-size: 14px; font-weight: 900; color: var(--blue); }
.tho-review-person strong { display: block; color: var(--ink); font-size: 13px; font-weight: 800; }
.tho-review-person span { font-size: 11px; color: var(--muted); }
.tho-stars { color: #f7a51e; letter-spacing: 2px; font-size: 14px; }
.tho-review-card p { font-size: 12.5px; color: var(--text); line-height: 1.6; }

/* ============================================================
   PROJECT GRID
   ============================================================ */
.tho-project-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tho-project-grid.tho-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tho-project-grid.tho-cols-4 { grid-template-columns: repeat(4, 1fr); }

.tho-project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden; transition: .2s;
}
.tho-project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tho-project-img { height: 200px; overflow: hidden; }
.tho-project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tho-project-card:hover .tho-project-img img { transform: scale(1.05); }
.tho-project-body { padding: 14px; }
.tho-project-body h3 { font-size: 14px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.tho-project-body h3 a { color: inherit; }
.tho-project-body h3 a:hover { color: var(--blue); }
.tho-project-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }

/* ============================================================
   CONTACT BLOCK
   ============================================================ */
.tho-contact-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: start; }
.tho-contact-info h3 { font-size: 18px; color: var(--ink); font-weight: 900; margin-bottom: 14px; }
.tho-contact-info p { margin-bottom: 8px; font-size: 13px; }
.tho-contact-info a { color: var(--blue); font-weight: 700; }
.tho-social-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tho-social-btn {
  display: inline-flex; align-items: center; padding: 0 16px; height: 36px;
  border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff;
}
.tho-social-zalo { background: #0084ff; }
.tho-social-fb   { background: #1877f2; }

/* ============================================================
   CONTACT FORM (default fallback)
   ============================================================ */
.tho-default-form { display: grid; gap: 12px; }
.tho-default-form input,
.tho-default-form textarea,
.tho-default-form select {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 14px; font-family: inherit; font-size: 13px; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.tho-default-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.tho-default-form input:focus,
.tho-default-form textarea:focus,
.tho-default-form select:focus { border-color: var(--blue); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.tho-breadcrumb { margin-bottom: 16px; }
.tho-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; font-size: 12px; }
.tho-breadcrumb li { color: var(--muted); }
.tho-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.tho-breadcrumb a { color: var(--blue); font-weight: 600; }
.tho-breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   ARCHIVE / CATEGORY LAYOUT (with sidebar)
   ============================================================ */
.tho-archive-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; }
.tho-archive-sidebar { position: sticky; top: 90px; }
.tho-archive-main {}

.tho-sidebar-widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-soft);
}
.tho-sidebar-widget h4 {
  font-size: 13px; color: var(--ink); font-weight: 900; text-transform: uppercase;
  letter-spacing: .3px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.tho-sidebar-search input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 12px 0 36px; font-family: inherit; font-size: 13px; outline: none;
}
.tho-sidebar-search { position: relative; }
.tho-sidebar-search::before { content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.tho-filter-list { list-style: none; display: grid; gap: 4px; }
.tho-filter-list li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: var(--text); border-bottom: 1px solid var(--line); transition: .15s; }
.tho-filter-list li a:hover,
.tho-filter-list li.active a { color: var(--blue); font-weight: 700; }
.tho-filter-list li a span { font-size: 11px; color: var(--muted); }

/* Filter toggle button (mobile) */
.tho-filter-toggle { display: none; }
.tho-filter-btn {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================================================
   POST ARCHIVE / BLOG LISTING
   ============================================================ */
.tho-post-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.tho-post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden; transition: .2s;
}
.tho-post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tho-post-thumb { height: 180px; overflow: hidden; }
.tho-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tho-post-card:hover .tho-post-thumb img { transform: scale(1.04); }
.tho-post-body { padding: 14px; }
.tho-post-cat { display: inline-block; background: var(--soft-blue); color: var(--blue); font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }
.tho-post-body h3 { font-size: 14px; color: var(--ink); font-weight: 800; line-height: 1.4; margin-bottom: 6px; }
.tho-post-body h3 a { color: inherit; }
.tho-post-body h3 a:hover { color: var(--blue); }
.tho-post-body p { font-size: 12px; color: var(--text); line-height: 1.55; margin-bottom: 10px; }
.tho-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.tho-post-meta a { color: var(--blue); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.tho-faq-list { display: grid; gap: 10px; }
.tho-faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.tho-faq-question {
  padding: 16px 18px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--ink); font-size: 13.5px;
  user-select: none;
}
.tho-faq-question:hover { color: var(--blue); }
.tho-faq-question span { font-size: 20px; font-weight: 300; color: var(--blue); transition: transform .2s; }
.tho-faq-item.open .tho-faq-question span { transform: rotate(45deg); }
.tho-faq-answer {
  display: none; padding: 0 18px 16px;
  font-size: 13px; color: var(--text); line-height: 1.7;
  border-top: 1px solid var(--line);
}
.tho-faq-answer p { margin-bottom: 8px; }
.tho-faq-item.open .tho-faq-answer { display: block; }

/* ============================================================
   PRICING GRID
   ============================================================ */
.tho-pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tho-price-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; position: relative; transition: .2s;
}
.tho-price-card:hover { box-shadow: var(--shadow); }
.tho-price-featured { border-color: var(--blue); box-shadow: var(--shadow); }
.tho-price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 12px;
}
.tho-price-card h3 { font-size: 15px; color: var(--ink); font-weight: 900; margin-bottom: 8px; }
.tho-price-amount { font-size: 26px; font-weight: 900; color: var(--blue); margin: 12px 0; }
.tho-price-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

/* ============================================================
   PROMO CARDS
   ============================================================ */
.tho-promo-list { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.tho-promo-card {
  background: linear-gradient(100deg, #0860dc, #0875f3);
  border-radius: var(--radius); padding: 20px; color: #fff;
}
.tho-promo-code {
  display: inline-block; background: rgba(255,255,255,.2); border: 1px dashed rgba(255,255,255,.5);
  border-radius: 6px; padding: 4px 12px; font-size: 16px; font-weight: 900;
  letter-spacing: 2px; margin-bottom: 10px;
}
.tho-promo-card h3 { font-size: 15px; margin-bottom: 6px; }
.tho-promo-discount { font-size: 22px; font-weight: 900; color: #ffd33d; margin-bottom: 6px; }
.tho-promo-expire { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.tho-mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(18,39,90,.1);
  padding: env(safe-area-inset-bottom) 0 0;
}
.tho-mobile-bottom-nav ul { display: flex; list-style: none; }
.tho-mobile-bottom-nav li { flex: 1; }
.tho-mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; color: var(--muted); font-size: 10px; font-weight: 700;
  gap: 4px; min-height: 54px; text-align: center;
}
.tho-mobile-bottom-nav a:hover,
.tho-mobile-bottom-nav a.active { color: var(--blue); }
.tho-mobile-bottom-nav .tho-nav-icon { font-size: 20px; }

/* ============================================================
   SINGLE POST / PAGE LAYOUT
   ============================================================ */
.tho-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.tho-single-content { min-width: 0; }
.tho-single-sidebar { position: sticky; top: 90px; }

/* Sticky sidebar contact card */
.tho-sticky-contact {
  background: linear-gradient(135deg, #0c4cac, #0841a0);
  border-radius: var(--radius); padding: 20px; color: #fff; margin-bottom: 18px;
}
.tho-sticky-contact h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.tho-sticky-contact .tho-phone-big { font-size: 22px; font-weight: 900; color: #ffd33d; }
.tho-sticky-contact .tho-btn-primary { width: 100%; margin-top: 10px; }
.tho-sticky-contact .tho-btn-secondary { width: 100%; margin-top: 8px; }

/* Related content (12 posts, 2 cols) */
.tho-related-section { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--line); }
.tho-related-section h3 { font-size: 18px; color: var(--ink); font-weight: 900; margin-bottom: 18px; }
.tho-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tho-related-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 10px;
  align-items: center; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; transition: .2s;
}
.tho-related-item:hover { box-shadow: var(--shadow-soft); }
.tho-related-item img { width: 80px; height: 64px; border-radius: 6px; object-fit: cover; }
.tho-related-item-title { font-size: 12.5px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.tho-related-item-title:hover { color: var(--blue); }
.tho-related-item-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   WOOCOMMERCE LAYOUT
   ============================================================ */
.tho-woo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.tho-woo-sidebar { }
.tho-woo-main { }
.tho-woo-search-bar { margin-bottom: 16px; }

.tho-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.tho-woo-sidebar .tho-filter-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.tho-woo-sidebar .tho-filter-section h4 { font-size: 12px; font-weight: 900; color: var(--ink); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; }
.tho-sort-select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; font-family: inherit; font-size: 12px; }
.tho-range-input { width: 100%; accent-color: var(--blue); }
.tho-price-display { font-size: 12px; color: var(--text); margin: 8px 0; }

/* Product card WooCommerce */
ul.products li.product,
.tho-product-grid .product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden; transition: .2s; padding: 0 !important;
  margin: 0 !important; list-style: none;
}
ul.products li.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
ul.products li.product .woocommerce-loop-product__link img { height: 200px; width: 100%; object-fit: cover; }
ul.products li.product .woocommerce-loop-product__title { padding: 10px 14px 4px; font-size: 13px; font-weight: 800; color: var(--ink); }
ul.products li.product .price { display: block; padding: 0 14px 10px; color: var(--orange); font-weight: 900; font-size: 14px; }
ul.products li.product .button { display: block; margin: 0 14px 14px; height: 38px; line-height: 38px; text-align: center; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }
ul.products li.product .button:hover { background: var(--blue-3); }
ul.products { display: grid !important; grid-template-columns: repeat(4,1fr) !important; gap: 18px !important; padding: 0 !important; }
ul.products::before, ul.products::after { display: none !important; }

/* Product contact CTA */
.tho-product-contact-cta { background: var(--soft-blue); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.tho-product-contact-cta h4 { font-size: 14px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.tho-product-contact-cta p { font-size: 12px; color: var(--text); margin-bottom: 12px; }
.tho-product-contact-cta .tho-btn-primary,
.tho-product-contact-cta .tho-btn-secondary { display: block; width: 100%; margin-bottom: 8px; }

/* ============================================================
   NO RESULTS
   ============================================================ */
.tho-no-results { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.tho-load-more-wrap { text-align: center; margin-top: 28px; }
.tho-load-more { height: 44px; padding: 0 32px; border: 2px solid var(--blue); color: var(--blue); background: #fff; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; transition: .2s; }
.tho-load-more:hover { background: var(--blue); color: #fff; }
.tho-load-more.loading { opacity: .6; pointer-events: none; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .tho-archive-layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .tho-worker-grid,
  .tho-worker-grid.tho-cols-4 { grid-template-columns: repeat(3, 1fr); }
  .tho-service-grid.tho-cols-9 { grid-template-columns: repeat(5, 1fr); }
  .tho-product-grid,
  ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .tho-woo-layout { grid-template-columns: 220px 1fr; }
  .tho-stat-band { grid-template-columns: repeat(3, 1fr); }
  .tho-review-grid { grid-template-columns: repeat(2, 1fr); }
  .tho-promo-list { grid-template-columns: repeat(2, 1fr); }
  .tho-single-layout { grid-template-columns: 1fr 260px; }
  .tho-search-row { grid-template-columns: 1fr 1fr; }
  .tho-search-row > div:last-child { grid-column: 1 / -1; }
  .tho-contact-block { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .tho-archive-layout { grid-template-columns: 1fr; }
  .tho-archive-sidebar { position: static; display: none; }
  .tho-archive-sidebar.active { display: block; }
  .tho-filter-toggle { display: block; margin-bottom: 14px; }

  .tho-worker-grid,
  .tho-worker-grid.tho-cols-3,
  .tho-worker-grid.tho-cols-4 { grid-template-columns: repeat(2, 1fr); }

  .tho-service-grid,
  .tho-service-grid.tho-cols-3,
  .tho-service-grid.tho-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tho-service-grid.tho-cols-9 { grid-template-columns: repeat(3, 1fr); }

  .tho-product-grid,
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }

  .tho-project-grid,
  .tho-project-grid.tho-cols-3,
  .tho-project-grid.tho-cols-4 { grid-template-columns: repeat(2, 1fr); }

  .tho-stat-band { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tho-stat { border-right: 0; }

  .tho-review-grid { grid-template-columns: 1fr; }
  .tho-pricing-grid { grid-template-columns: 1fr; }
  .tho-promo-list { grid-template-columns: 1fr; }

  .tho-single-layout { grid-template-columns: 1fr; }
  .tho-single-sidebar { position: static; }

  .tho-related-grid { grid-template-columns: 1fr; }
  .tho-post-grid { grid-template-columns: 1fr; }

  .tho-woo-layout { grid-template-columns: 1fr; }
  .tho-woo-sidebar { display: none; }
  .tho-woo-filter-toggle { display: block; margin-bottom: 14px; }
  .tho-woo-sidebar.active { display: block; }

  .tho-search-row { grid-template-columns: 1fr; }

  .tho-mobile-bottom-nav { display: block; }
  body { padding-bottom: 60px; }

  /* Footer 2 columns on mobile */
  .tho-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .tho-section-head h2 { font-size: 17px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .tho-worker-grid.tho-cols-3,
  .tho-worker-grid.tho-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tho-service-grid.tho-cols-9 { grid-template-columns: repeat(2, 1fr); }
  .tho-stat-band { grid-template-columns: repeat(2, 1fr); }
  .tho-review-grid { grid-template-columns: 1fr; }
  .tho-section-head { flex-direction: column; align-items: flex-start; }
}
/* ============================================================
   THO Tabs & Single page extras – appended to frontend.css
   ============================================================ */

/* Tab nav */
.tho-worker-tabs { margin-top: 24px; }
.tho-tab-nav {
  display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 2px solid var(--line); margin-bottom: 20px;
}
.tho-tab-btn {
  height: 40px; padding: 0 18px; border: 0; background: none;
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; font-family: inherit;
}
.tho-tab-btn:hover { color: var(--blue); }
.tho-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Info block */
.tho-info-block { background: var(--soft-blue); border-radius: 10px; padding: 16px; }
.tho-info-block h4 { font-size: 13px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }

/* Post content typography */
.tho-post-content h2 { font-size: 20px; color: var(--ink); font-weight: 900; margin: 24px 0 12px; }
.tho-post-content h3 { font-size: 17px; color: var(--ink); font-weight: 900; margin: 18px 0 10px; }
.tho-post-content p  { margin-bottom: 14px; }
.tho-post-content ul,
.tho-post-content ol { margin: 10px 0 14px 22px; }
.tho-post-content li { margin-bottom: 6px; }
.tho-post-content img { border-radius: 8px; margin: 14px 0; }
.tho-post-content blockquote {
  border-left: 4px solid var(--blue); background: var(--soft-blue);
  padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 18px 0;
  font-style: italic; color: var(--text);
}
.tho-post-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.tho-post-content th { background: var(--blue); color: #fff; padding: 10px 14px; font-size: 13px; }
.tho-post-content td { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tho-post-content tr:nth-child(even) td { background: var(--soft-blue); }

/* Form success */
.tho-form-success {
  background: #e6faf1; border: 1px solid #19b86a; border-radius: 8px;
  padding: 16px 20px; color: #076839; font-size: 14px; font-weight: 700; text-align: center;
}

/* Live suggest dropdown */
.tho-live-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(18,39,90,.14); overflow: hidden;
}
.tho-suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .15s; text-decoration: none;
}
.tho-suggest-item:hover { background: var(--soft-blue); }
.tho-suggest-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.tho-suggest-icon { width: 40px; height: 40px; border-radius: 6px; background: var(--soft-blue); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tho-suggest-item strong { display: block; font-size: 13px; color: var(--ink); }
.tho-suggest-item small { font-size: 11px; color: var(--muted); }

/* Worker filter form (archive page AJAX) */
.tho-worker-filter-form { }

/* Pagination */
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; font-size: 13px;
  font-weight: 700; color: var(--blue); margin: 2px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; transition: .15s;
}
.page-numbers:hover { background: var(--blue); color: #fff; }
.page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 14px; }

/* Responsive tabs */
@media (max-width: 600px) {
  .tho-tab-btn { padding: 0 12px; font-size: 12px; }
  .tho-tab-nav { overflow-x: auto; flex-wrap: nowrap; }
  .tho-info-block { margin-bottom: 14px; }
  .tho-gallery, #tab-gallery .tho-gallery, #svc-gallery .tho-gallery { grid-template-columns: repeat(2,1fr) !important; }
}
