/*
 Theme Name: iZentris
 Theme URI: https://www.izentris.com
 Description: B2B wholesale theme for iZentris custom resin gifts (magnets, ornaments, bobbleheads, keychains, snow globes). Built to be edited from the WordPress admin — products are a custom post type, blog posts are native WordPress posts.
 Version: 1.0.0
 Author: iZentris
 Requires at least: 6.0
 Tested up to: 6.7
 Requires PHP: 7.4
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-post-type, e-commerce, two-columns, custom-menu, featured-images, translation-ready
 Text Domain: izentris
*/

:root {
  --red: #b81d24;
  --red-dark: #8f1419;
  --green: #1f6b3b;
  --green-dark: #14512c;
  --gold: #c9a227;
  --gold-soft: #e7cf86;
  --navy: #18324a;
  --navy-dark: #102236;
  --cream: #fbf6ec;
  --cream-2: #f3e9d6;
  --ink: #23201c;
  --muted: #7a6a57;
  --white: #ffffff;
  --line: #e6ddcb;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.10);
  --shadow-lg: 0 18px 48px rgba(43, 33, 24, 0.18);
  --radius: 16px;
  --maxw: 1200px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  background: var(--red); color: #fff; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: #2b2118; }
.btn-gold:hover { background: #b8911f; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy-dark); color: #cfe0ef; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #cfe0ef; }
.topbar a:hover { color: #fff; }
.topbar .tb-left span { margin-right: 18px; }
.topbar .tb-left b { color: var(--gold-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand .logo-text { font-family: var(--serif); font-weight: 800; font-size: 1.55rem; line-height: 1; letter-spacing: -.01em;
  background: linear-gradient(100deg, #d62828 0%, #f77f00 45%, #fcbf49 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.footer-about .brand .logo-text { font-size: 1.7rem; }
.brand .name { font-family: var(--serif); line-height: 1; }
.brand .name .cn { font-size: 1.32rem; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.brand .name .en { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links li.current-menu-item > a::after, .nav-links li.current-menu-ancestor > a::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.quote-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 600; font-size: .88rem;
  padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.quote-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.quote-count {
  position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff;
  font-size: .64rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; display: grid; place-items: center; font-family: var(--sans);
}
.quote-btn-wrap { position: relative; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--ink); position: relative; padding: 6px; border-radius: 50%; }
.icon-btn:hover { background: var(--cream-2); }
.hamburger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(16,34,54,.9) 0%, rgba(143,20,25,.55) 60%, rgba(20,49,28,.4) 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-inner { position: relative; max-width: 660px; padding: 64px 0; }
.hero .eyebrow { display: inline-block; letter-spacing: .26em; text-transform: uppercase; font-size: .72rem; color: var(--gold-soft); border: 1px solid rgba(231,207,134,.5); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); color: #fff; margin-bottom: .3em; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.92); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .stat { color: #fff; }
.hero-stats .stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--gold-soft); }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.8); }

/* ---------- Capabilities strip (replaces free-shipping) ---------- */
.capabilities { background: var(--navy); color: #eaf1f8; }
.capabilities .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 30px 20px; }
.cap { display: flex; align-items: center; gap: 14px; }
.cap .ico { font-size: 1.7rem; }
.cap h4 { margin: 0; font-family: var(--sans); font-size: .98rem; color: #fff; }
.cap span { font-size: .8rem; color: #9fb6cc; }

/* ---------- Section heading ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.section-head .kicker { color: var(--red); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); }

/* ---------- Category showcase ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,34,54,.88), rgba(16,34,54,0) 62%); }
.cat-card .label { position: relative; padding: 18px; z-index: 1; width: 100%; }
.cat-card .label h3 { color: #fff; margin: 0; font-size: 1.12rem; }
.cat-card .label span { font-size: .78rem; color: var(--gold-soft); }
.cat-card .label .arrow { float: right; font-size: 1.1rem; }

/* ---------- Product filter / grid ---------- */
.section.bar-section { padding-bottom: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--red); }
.filter-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--cream-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #2b2118; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.badge.red { background: var(--red); color: #fff; }
.badge.green { background: var(--green); color: #fff; }
.badge.navy { background: var(--navy); color: #fff; }
.quick-view {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,.94); color: var(--ink); border: none; cursor: pointer;
  padding: 11px; border-radius: 10px; font-weight: 600; font-size: .86rem;
  opacity: 0; transform: translateY(8px); transition: all .2s ease;
}
.product-card:hover .quick-view { opacity: 1; transform: translateY(0); }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-title { font-family: var(--serif); font-size: 1.06rem; margin: 0; line-height: 1.25; }
.product-price { font-weight: 700; color: var(--green); font-size: .98rem; }
.product-price small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.product-desc { font-size: .8rem; color: var(--muted); margin: 0; }
.add-quote {
  margin-top: auto; border: 1.5px solid var(--green); background: transparent; color: var(--green);
  padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all .18s ease; font-size: .88rem;
}
.add-quote:hover { background: var(--green); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: all .15s ease; padding: 0 12px;
}
.pagination button:hover:not(:disabled) { border-color: var(--red); }
.pagination button:hover:not(:disabled) { border-color: var(--red); }
.pagination button.active { background: var(--red); color: #fff; border-color: var(--red); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--ink); }

/* ---------- Split / OEM ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.split li .tick { color: var(--green); font-weight: 700; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 20px 0 0; }
.checklist li { margin: 0; }

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); font-size: 1.4rem; margin-bottom: 14px; }
.why-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Order Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process-step { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; border: 1px solid var(--line); }
.process-no { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin: 0 auto 12px; }
.process-step h4 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: .85rem; color: var(--muted); margin: 0; }
.payment-note { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; border: 1px solid var(--line); }
.payment-note span { font-size: 1.4rem; line-height: 1; }
.payment-note p { margin: 0; font-size: .92rem; color: var(--muted); }
.payment-note b { color: var(--ink); }

/* ---------- Trust / Factory Tour band ---------- */
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.tstat { text-align: center; background: var(--cream-2); border-radius: 12px; padding: 14px; }
.tstat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--red); }
.tstat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Inquiry / Quote CTA band ---------- */
.inquiry-band { background: linear-gradient(120deg, var(--green-dark), var(--navy)); color: #fff; }
.inquiry-band .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.inquiry-band h2 { color: #fff; }
.inquiry-band p { color: rgba(255,255,255,.85); }
.inquiry-band .kicker { color: var(--gold-soft); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .92rem; background: #fffdf8; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 20px 10px; }
.form-success.show { display: block; }
.form-success .check { font-size: 2.4rem; color: var(--green); }
.form-success h3 { margin: 8px 0; }

/* ---------- Newsletter (buyer list) ---------- */
.news { background: var(--red); color: #fff; text-align: center; }
.news h2 { color: #fff; }
.news p { color: rgba(255,255,255,.9); }
.news-form { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: none; font-size: .95rem; }
.news-form .btn { background: var(--navy); }
.news-note { font-size: .8rem; color: rgba(255,255,255,.85); margin-top: 12px; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cbd9e6; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #a9c0d6; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { font-size: .9rem; color: #a9c0d6; }
.footer-about .brand { margin-bottom: 14px; }
.socials-label { font-size: .8rem; letter-spacing: .04em; color: #8aa3bd; margin: 16px 0 8px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 1rem;
  text-decoration: none; transition: .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #8aa3bd; }

/* ---------- Modal (Quick View) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(16, 22, 30, .62); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 800px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; border: none; background: rgba(255,255,255,.92); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.modal-img { background: var(--cream-2); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 32px 30px; overflow-y: auto; }
.modal-info .product-cat { margin-bottom: 6px; }
.modal-info h3 { font-size: 1.5rem; }
.modal-info .product-price { font-size: 1.25rem; margin: 6px 0 14px; }
.modal-info p { color: var(--muted); font-size: .92rem; }
.modal-meta { display: flex; gap: 18px; margin: 18px 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.modal-meta b { color: var(--ink); display: block; font-size: .95rem; }
.qty { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; width: fit-content; margin: 14px 0; overflow: hidden; }
.qty button { border: none; background: #fff; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 48px; height: 38px; text-align: center; border: none; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); font-size: .95rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Quote drawer ---------- */
.quote-overlay { position: fixed; inset: 0; background: rgba(16,22,30,.45); display: none; z-index: 90; }
.quote-overlay.open { display: block; }
.quote-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 94vw; background: var(--cream);
  z-index: 95; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.quote-drawer.open { transform: translateX(0); }
.quote-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.quote-head h3 { margin: 0; color: #fff; font-family: var(--sans); font-size: 1.05rem; }
.quote-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.quote-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.quote-empty .big { font-size: 2.4rem; }
.quote-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.quote-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.quote-item .qi-title { font-family: var(--serif); font-size: .96rem; margin: 0; line-height: 1.2; }
.quote-item .qi-meta { font-size: .78rem; color: var(--muted); }
.qi-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qi-qty button { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; }
.qi-remove { margin-left: auto; background: none; border: none; color: var(--red); cursor: pointer; font-size: .78rem; }
.quote-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.quote-foot .mini-note { font-size: .76rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Contact page layout ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.info-list { list-style: none; padding: 0; margin: 22px 0 0; }
.info-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.info-list .ico { font-size: 1.4rem; }
.info-list b { display: block; font-family: var(--sans); font-size: .95rem; }
.info-list span { font-size: .85rem; color: var(--muted); }

/* ===========================================================
   Factory info section (shop-floor capability card)
   =========================================================== */
.factory { background: var(--cream-2); }
.factory-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.factory-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.factory-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.factory-photo figcaption { padding: 10px 14px; font-size: .8rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
.fstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.fstat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.fstat b { display: block; font-family: var(--sans); font-size: 1.18rem; color: var(--red); }
.fstat span { font-size: .76rem; color: var(--muted); }
.fstext { font-size: 1.15rem; margin: 4px 0 14px; }
.fsteps { display: grid; gap: 14px; }
.fstep { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fstep-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: .85rem; }
.fstep h4 { margin: 0 0 2px; font-family: var(--sans); font-size: .95rem; }
.fstep p { margin: 0; font-size: .88rem; color: var(--muted); }
.fcerts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.fcert-lbl { font-size: .82rem; color: var(--muted); font-weight: 600; }
.fcert { font-family: var(--sans); font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; }

/* ===========================================================
   Blog (index + posts)
   =========================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { font-size: 1.12rem; margin: 0 0 8px; line-height: 1.25; }
.blog-card p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin: 16px 18px 6px; font-size: .78rem; }
.blog-cat { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blog-date { color: var(--muted); }
.blog-card h3, .blog-card p { padding: 0 18px; }
.blog-read { margin: 0 18px 18px; color: var(--green); font-family: var(--sans); font-weight: 600; font-size: .88rem; }
.narrow { max-width: 820px; }
.blog-post .blog-meta { margin: 24px auto 8px; max-width: 820px; padding: 0 20px; }
.blog-post h1 { max-width: 820px; padding: 0 20px; margin: 6px auto 10px; }
.blog-lead { max-width: 820px; padding: 0 20px; font-size: 1.05rem; color: var(--muted); margin-bottom: 22px; }
.blog-hero { margin: 0 auto 28px; max-width: 820px; padding: 0 20px; }
.blog-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-hero figcaption { font-size: .8rem; color: var(--muted); padding: 8px 2px 0; }
.blog-body { max-width: 820px; padding: 0 20px; font-size: 1.02rem; }
.blog-body p { margin-bottom: 1.15em; }
.blog-cta { max-width: 820px; margin: 32px auto 10px; padding: 26px 24px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.blog-cta h3 { margin-top: 0; }
.blog-cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.blog-cta .btn-row .btn { color: #fff; }
.blog-cta .btn-gold { color: #2b2118; }

/* ---------- Factory meta tag ---------- */
.factory-tags { font-size: .82rem; color: var(--muted); margin: -4px 0 16px; font-family: var(--sans); }
.factory-tags b { color: var(--navy); }

/* ---------- 50-second inquiry popup ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(20,16,12,.55); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 1200; padding: 16px; }
.popup-overlay.show { display: flex; animation: popfade .2s ease; }
@keyframes popfade { from { opacity: 0; } to { opacity: 1; } }
.popup-card { position: relative; width: 100%; max-width: 420px; background: var(--cream);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px 26px 22px; animation: popin .25s ease; }
@keyframes popin { from { transform: translateY(16px) scale(.98); } to { transform: none; } }
.popup-close { position: absolute; top: 12px; right: 14px; border: none; background: transparent;
  font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.popup-kicker { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); }
.popup-card h3 { margin: 6px 0 6px; font-size: 1.45rem; }
.popup-sub { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.popup-form { display: grid; gap: 10px; }
.popup-form .pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.popup-form input, .popup-form select, .popup-form textarea { width: 100%; font-family: var(--sans);
  font-size: .92rem; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.popup-form textarea { resize: vertical; min-height: 64px; }
.popup-form input:focus, .popup-form select:focus, .popup-form textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.popup-later { display: block; width: 100%; margin-top: 12px; background: none; border: none;
  color: var(--muted); font-family: var(--sans); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.popup-later:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .capabilities .container { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .fstats { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .inquiry-band .container, .split, .contact-wrap, .modal { grid-template-columns: 1fr; }
  .modal-img { aspect-ratio: 1/1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-menu { display: none; flex-direction: column; padding: 10px 20px 18px; gap: 4px; border-bottom: 1px solid var(--line); background: var(--cream); }
  .mobile-menu.open { display: flex; }
  /* wp_nav_menu wraps items in a <ul>, so reset list defaults and keep the stack. */
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; }
  .mobile-menu li { width: 100%; }
  .mobile-menu a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .capabilities .container { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .popup-form .pf-row { grid-template-columns: 1fr; }
  .brand .logo-text { font-size: 1.3rem; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
}
