/*
Theme Name: Dotast
Theme URI: https://www.dotast-cn.com/
Author: Dotast
Description: High-fidelity block theme for the Dotast B2B wellness product catalog.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: dotast
*/

:root {
  --dotast-navy: #101a45;
  --dotast-navy-light: #17235a;
  --dotast-cyan: #22c4dc;
  --dotast-text: #0f172a;
  --dotast-muted: #64748b;
  --dotast-surface: #ffffff;
  --dotast-soft: #f5f8fc;
  --dotast-border: #dbe5f4;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.dotast-exact-home .trp-language-switcher.trp-floating-switcher { display: none !important; }
a { text-underline-offset: .2em; }
.wp-site-blocks { padding: 0; }
.site-header > .header-inner { width: min(1440px, 100%); margin-inline: auto; }
.site-header .wp-block-site-logo { flex: 0 0 auto; margin: 0; }
.site-header .wp-block-site-logo img { width: 126px; height: auto; filter: invert(1); transition: filter 180ms ease; }
.site-header.is-scrolled .wp-block-site-logo img { filter: none; }
.site-header .wp-block-navigation { margin-left: auto; }
.site-header .wp-block-navigation a { color: inherit; text-decoration: none; }
.site-header .wp-block-shortcode { margin: 0; white-space: nowrap; }
.site-header .trp-language-switcher > div { border: 0; background: transparent; color: inherit; }
.site-header .trp-language-switcher a { color: inherit; }
body:not(.home-page) .site-header { color: var(--dotast-text); border-bottom-color: rgba(15,23,42,.08); background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(15,23,42,.08); }
body:not(.home-page) .site-header .wp-block-site-logo img { filter: none; }
.admin-bar .site-header { top: 32px; }
.products-main,
.product-detail-main,
.error-404,
body.search main { padding-top: 130px; padding-bottom: clamp(4rem, 8vw, 8rem); }
.product-archive-intro { margin-bottom: 2rem; }
.trust-strip { position: relative; z-index: 4; margin-top: -1px; padding-block: 1.5rem; }
.trust-strip .wp-block-column { text-align: center; }
.trust-strip h3 { margin: 0; color: var(--dotast-navy); }
.trust-strip p { margin: .25rem 0 0; color: var(--dotast-muted); }
.catalog-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--dotast-soft); }
.dotast-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.dotast-category-grid a { display: grid; gap: 5px; padding: 18px; border: 1px solid rgba(16,26,69,.1); border-radius: 14px; background: #fff; color: var(--dotast-navy); text-decoration: none; }
.dotast-category-grid span { font-weight: 800; }
.dotast-category-grid small { color: var(--dotast-muted); }
.manufacturing-band { padding-block: clamp(4rem, 8vw, 7rem); }
.certificates { padding-block: clamp(4rem, 8vw, 7rem); }
.dotast-video-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--dotast-navy); color: #fff; }
.dotast-video-section .wp-block-video { margin: 0; }
.dotast-video-section video { width: 100%; border-radius: 20px; background: #070b1d; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.about-inquiry { padding-block: clamp(4rem, 8vw, 7rem); }
.product-detail-grid { align-items: flex-start; }
.product-summary { position: sticky; top: 112px; }
.product-content { padding-block: clamp(3rem, 6vw, 6rem); }
.site-footer .wp-block-columns { width: min(1200px, 90vw); margin-inline: auto; }
.site-footer .footer-bottom { width: min(1200px, 90vw); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.dotast-main { min-height: 60vh; }
.dotast-section { padding-block: clamp(3rem, 7vw, 7rem); }
.dotast-section.is-soft { background: var(--dotast-soft); }
.dotast-section-heading { max-width: 760px; margin-bottom: 2rem; }
.dotast-section-heading p:first-child { color: var(--dotast-cyan); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dotast-site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(18px); }
.dotast-site-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.dotast-language-switcher { white-space: nowrap; }
.dotast-footer-contact { display: grid; gap: .45rem; }
.dotast-empty-state { border: 1px dashed var(--dotast-border); border-radius: 8px; padding: 2rem; text-align: center; background: #fff; }
.dotast-b2b-badge { display: inline-flex; align-items: center; gap: .5rem; color: #087f8c; font-weight: 700; }
.dotast-b2b-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dotast-cyan); }
.dotast-product-layout { align-items: flex-start; }
.dotast-product-summary { position: sticky; top: 110px; }
.dotast-oem-card { background: var(--dotast-navy); color: #fff; border-radius: 8px; padding: clamp(1.5rem, 4vw, 3rem); }
.dotast-oem-card a { color: var(--dotast-navy); background: var(--dotast-cyan); border-radius: 8px; padding: .8rem 1.1rem; text-decoration: none; font-weight: 800; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .site-header { padding-inline: 20px; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open { color: var(--dotast-ink); background: #fff; }
  .products-main,
  .product-detail-main,
  .error-404,
  body.search main { padding-top: 110px; }
  .product-summary { position: static; }
  .dotast-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dotast-product-summary { position: static; }
  .dotast-section { padding-block: 3rem; }
}
