/*
Theme Name: TZ Shark Premium B2B
Theme URI: https://tzshark.com/
Author: Taizhou Shark Glasses Co., Ltd.
Description: A lightweight premium B2B eyewear catalog and inquiry theme for Taizhou Shark Glasses Co., Ltd.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tzshark
*/

:root {
  --tz-bg: #f6f6f2;
  --tz-surface: #ffffff;
  --tz-ink: #101216;
  --tz-muted: #68707c;
  --tz-line: #e4e6e8;
  --tz-accent: #0b2347;
  --tz-accent-2: #163b70;
  --tz-soft: #eaf0f7;
  --tz-radius: 22px;
  --tz-shadow: 0 18px 60px rgba(10, 20, 34, .08);
  --tz-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tz-bg);
  color: var(--tz-ink);
  font-family: Inter, Manrope, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--tz-max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--compact { padding: 68px 0; }
.section--dark { background: var(--tz-accent); color: #fff; }
.section--white { background: var(--tz-surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--tz-accent-2); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: #c8d5e7; }
.section-title { margin: 0; max-width: 820px; font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.section-intro { max-width: 730px; margin: 22px 0 0; color: var(--tz-muted); font-size: 18px; }
.section--dark .section-intro { color: rgba(255,255,255,.72); }
.heading-row { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 42px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--tz-accent); color: #fff; font-weight: 750; transition: .25s ease; letter-spacing: -.01em;
}
.button:hover { transform: translateY(-2px); background: var(--tz-accent-2); box-shadow: 0 10px 24px rgba(11,35,71,.17); }
.button--light { background: #fff; color: var(--tz-accent); }
.button--light:hover { background: #eff4fa; }
.button--ghost { background: transparent; color: var(--tz-ink); border-color: #cfd4d9; }
.button--ghost:hover { background: #fff; }
.button--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--tz-accent); }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(246,246,242,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,18,22,.08);
}
.header-inner { height: 82px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 205px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--tz-accent); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 25px; }
.brand-copy { line-height: 1.08; }
.brand-copy strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 4px; color: var(--tz-muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav ul { list-style: none; display: flex; align-items: center; justify-content: center; gap: 26px; margin: 0; padding: 0; }
.primary-nav a { font-size: 13px; font-weight: 720; color: #303740; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--tz-accent-2); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tz-line); background: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 18px; height: 2px; background: var(--tz-ink); margin: 4px auto; transition: .2s ease; }

.hero { min-height: calc(100vh - 82px); padding: 52px 0 42px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
.hero h1 { margin: 0; font-size: clamp(54px, 7vw, 94px); line-height: .93; letter-spacing: -.065em; max-width: 740px; }
.hero .lead { margin: 26px 0 0; max-width: 620px; font-size: 20px; color: #343c46; }
.hero .support { margin: 16px 0 0; max-width: 620px; color: var(--tz-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--tz-line); color: var(--tz-muted); font-size: 13px; }
.hero-trust span::before { content: "✓"; margin-right: 7px; color: var(--tz-accent-2); font-weight: 900; }
.hero-media { position: relative; min-height: 650px; border-radius: 32px; overflow: hidden; background: #dce2e7; box-shadow: var(--tz-shadow); }
.hero-media img { width: 100%; height: 100%; min-height: 650px; object-fit: cover; }
.hero-badge { position: absolute; left: 24px; bottom: 24px; max-width: 260px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); box-shadow: 0 10px 35px rgba(0,0,0,.08); }
.hero-badge strong { display: block; font-size: 14px; }
.hero-badge span { display: block; margin-top: 5px; color: var(--tz-muted); font-size: 12px; }
.scroll-indicator { margin-top: 34px; color: var(--tz-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.offer-card { min-height: 320px; padding: 28px; border-radius: var(--tz-radius); background: #fff; border: 1px solid var(--tz-line); position: relative; overflow: hidden; transition: .28s ease; }
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--tz-shadow); border-color: transparent; }
.offer-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--tz-soft); color: var(--tz-accent); }
.offer-icon svg { width: 30px; height: 30px; }
.offer-card h3 { margin: 66px 0 8px; font-size: 25px; letter-spacing: -.035em; }
.offer-card p { margin: 0 0 20px; color: var(--tz-muted); }
.offer-card .card-arrow { position: absolute; right: 24px; top: 24px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--tz-line); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media-frame { position: relative; border-radius: 28px; overflow: hidden; background: #e7ebee; min-height: 520px; }
.media-frame img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
.about-point { padding-top: 16px; border-top: 1px solid var(--tz-line); }
.about-point strong { display: block; font-size: 15px; }
.about-point span { display: block; color: var(--tz-muted); font-size: 13px; margin-top: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--tz-line); transition: .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--tz-shadow); }
.product-card__image { display: block; aspect-ratio: 4/3; overflow: hidden; background: #f0f2f3; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__placeholder { height: 100%; display: grid; place-items: center; color: #9ba3ac; }
.product-card__placeholder svg { width: 120px; opacity: .45; }
.product-card__body { padding: 22px; }
.product-card__meta { display: flex; gap: 10px; justify-content: space-between; color: var(--tz-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { margin: 10px 0 16px; font-size: 22px; letter-spacing: -.03em; }
.product-card__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.empty-state { padding: 38px; border: 1px dashed #c8cdd2; border-radius: 22px; color: var(--tz-muted); background: rgba(255,255,255,.5); }

.oem-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.process-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; overflow: hidden; }
.process-step { padding: 26px; background: var(--tz-accent); min-height: 145px; }
.process-step .num { color: #8ea8c9; font-size: 12px; letter-spacing: .12em; }
.process-step strong { display: block; margin-top: 38px; font-size: 18px; }

.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 42px; }
.benefit-card { padding: 26px; border: 1px solid var(--tz-line); border-radius: 18px; background: #fff; }
.benefit-card svg { width: 28px; height: 28px; color: var(--tz-accent); }
.benefit-card h3 { margin: 30px 0 8px; font-size: 18px; }
.benefit-card p { margin: 0; color: var(--tz-muted); font-size: 14px; }

.cta-band { padding: 54px; border-radius: 28px; background: #fff; box-shadow: var(--tz-shadow); display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(30px,4vw,50px); line-height: 1.05; letter-spacing: -.045em; max-width: 720px; }
.cta-band p { margin: 12px 0 0; color: var(--tz-muted); }

.page-hero { padding: 90px 0 70px; }
.page-hero h1 { margin: 0; font-size: clamp(48px,7vw,84px); line-height: .98; letter-spacing: -.06em; max-width: 900px; }
.page-hero p { max-width: 720px; color: var(--tz-muted); font-size: 19px; margin: 22px 0 0; }
.content-card { background: #fff; border: 1px solid var(--tz-line); border-radius: 24px; padding: 36px; }
.content-card + .content-card { margin-top: 18px; }
.content-card h2, .content-card h3 { letter-spacing: -.03em; }

.filters { display: grid; grid-template-columns: 2fr repeat(5,1fr) auto; gap: 10px; margin-bottom: 32px; padding: 16px; background: #fff; border: 1px solid var(--tz-line); border-radius: 18px; }
.filters input, .filters select { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--tz-line); padding: 0 12px; background: #fafafa; color: var(--tz-ink); }
.pagination { margin-top: 38px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--tz-line); background: #fff; }
.pagination .current { background: var(--tz-accent); color: #fff; border-color: var(--tz-accent); }

.product-detail { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: start; }
.product-gallery { display: grid; gap: 14px; }
.product-gallery__main { border-radius: 24px; overflow: hidden; background: #fff; aspect-ratio: 4/3; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.product-gallery__thumb { border: 1px solid var(--tz-line); border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background:#fff; padding:0; }
.product-gallery__thumb img { width:100%; height:100%; object-fit:cover; }
.product-info { position: sticky; top: 110px; }
.product-info h1 { margin: 8px 0 14px; font-size: clamp(38px,4.5vw,62px); line-height: 1.02; letter-spacing: -.05em; }
.product-code { color: var(--tz-muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.product-description { color: #4b535d; font-size: 17px; }
.spec-table { margin: 28px 0; border-top: 1px solid var(--tz-line); }
.spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--tz-line); }
.spec-row span:first-child { color: var(--tz-muted); font-size: 13px; }
.product-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.inquiry-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 48px; align-items: start; }
.contact-panel { padding: 30px; border-radius: 22px; background: var(--tz-accent); color: #fff; }
.contact-panel h2 { margin-top: 0; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-item small { display:block; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; font-size:10px; }
.contact-item strong { display:block; margin-top:3px; font-size:15px; word-break:break-word; }
.inquiry-form { background: #fff; border: 1px solid var(--tz-line); border-radius: 24px; padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.form-field--full { grid-column: 1/-1; }
.form-field label { display:block; font-size:12px; font-weight:750; margin-bottom:7px; color:#454d57; }
.form-field input, .form-field select, .form-field textarea { width:100%; border:1px solid var(--tz-line); border-radius:12px; background:#fafafa; padding:12px 13px; color:var(--tz-ink); outline:none; }
.form-field input, .form-field select { min-height:48px; }
.form-field textarea { min-height:140px; resize:vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color:#7894b5; box-shadow:0 0 0 3px #eef3f8; }
.form-notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 12px; background: #e9f7ef; color: #215c3b; }
.form-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post-card { background:#fff; border:1px solid var(--tz-line); border-radius:20px; overflow:hidden; }
.post-card__image { aspect-ratio:16/10; background:#eef0f1; overflow:hidden; }
.post-card__image img { width:100%; height:100%; object-fit:cover; }
.post-card__body { padding:22px; }
.post-card__date { color:var(--tz-muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.post-card h2, .post-card h3 { margin:9px 0 12px; font-size:23px; line-height:1.2; letter-spacing:-.03em; }
.post-card p { margin:0; color:var(--tz-muted); }

.site-footer { background:#0c1118; color:#fff; padding:72px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:42px; }
.footer-brand p { max-width:420px; color:#9fa8b4; }
.site-footer h3 { font-size:13px; text-transform:uppercase; letter-spacing:.12em; margin:0 0 18px; color:#c8cfd7; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:9px; }
.footer-links a { color:#9fa8b4; font-size:14px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { margin-top:56px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:20px; color:#7f8995; font-size:12px; }
.footer-bottom a { color:#aeb6c0; }

.animate-in { opacity:0; transform:translateY(18px); transition:opacity .65s ease, transform .65s ease; }
.animate-in.is-visible { opacity:1; transform:none; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns:auto 1fr auto; }
  .primary-nav { display:none; position:absolute; left:20px; right:20px; top:76px; padding:16px; background:#fff; border:1px solid var(--tz-line); border-radius:18px; box-shadow:var(--tz-shadow); }
  .primary-nav.is-open { display:block; }
  .primary-nav ul { flex-direction:column; align-items:stretch; gap:0; }
  .primary-nav li a { display:block; padding:11px 8px; }
  .menu-toggle { display:block; justify-self:end; }
  .header-cta { display:none; }
  .hero-grid, .about-grid, .product-detail, .inquiry-layout, .oem-wrap { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-media { min-height:520px; }
  .hero-media img { min-height:520px; }
  .product-info { position:static; }
  .filters { grid-template-columns:repeat(3,1fr); }
  .filters > *:first-child { grid-column:1/-1; }
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column:1/-1; }
}

@media (max-width: 780px) {
  .container { width:min(calc(100% - 28px), var(--tz-max)); }
  body.admin-bar .site-header { top:46px; }
  .section { padding:72px 0; }
  .hero { padding-top:34px; }
  .hero h1 { font-size:clamp(48px,15vw,72px); }
  .hero-grid { gap:34px; }
  .hero-media, .hero-media img { min-height:440px; }
  .heading-row { align-items:start; flex-direction:column; }
  .offer-grid, .product-grid, .benefit-grid, .blog-grid { grid-template-columns:1fr; }
  .offer-card { min-height:260px; }
  .about-points, .process-grid { grid-template-columns:1fr; }
  .cta-band { padding:32px; align-items:flex-start; flex-direction:column; }
  .filters { grid-template-columns:1fr; }
  .filters > *:first-child { grid-column:auto; }
  .form-grid { grid-template-columns:1fr; }
  .form-field--full { grid-column:auto; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-brand, .footer-grid > :last-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
}

@media (max-width: 520px) {
  .site-branding { min-width:auto; }
  .brand-copy span { display:none; }
  .hero-media, .hero-media img { min-height:360px; }
  .hero-trust { gap:10px; flex-direction:column; }
  .product-gallery__thumbs { grid-template-columns:repeat(3,1fr); }
  .spec-row { grid-template-columns:110px 1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-brand, .footer-grid > :last-child { grid-column:auto; }
}
