/*
Theme Name: HYWEARS Atelier B2B v5 Clean Factory Home
Theme URI: https://hywears.com/
Author: HYWEARS
Author URI: https://hywears.com/
Description: Clean factory-home B2B WordPress theme for HYWEARS with a focused homepage for OEM/ODM intimate apparel sourcing, product categories, factory capability, and inquiry generation.
Version: 5.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hywears
*/

:root {
  --ink: #191216;
  --soft-ink: #3f3337;
  --muted: #74686b;
  --line: #ead9d3;
  --ivory: #fff5f9;
  --porcelain: #fbf0f2;
  --blush: #e9b7c2;
  --rose: #a66077;
  --rose-dark: #82475b;
  --beige: #ead9cd;
  --white: #ffffff;
  --max: 1220px;
  --radius: 10px;
  --shadow: 0 20px 60px rgba(25, 18, 22, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid rgba(166, 96, 119, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.wrap {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(234, 217, 211, 0.86);
  background: rgba(255, 245, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.site-header .wrap { width: min(1380px, calc(100% - 44px)); }

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.brand-logo img { max-height: 52px; width: auto; }

.brand-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-line { color: var(--muted); font-size: 12px; }

.primary-nav { min-width: 0; }

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.1vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft-ink);
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 750;
}

.primary-menu li,
.primary-menu a,
.top-quote { flex: 0 0 auto; white-space: nowrap; }

.primary-menu a { padding: 8px 0; }
.primary-menu a:hover { color: var(--rose); }

.primary-menu .menu-item-has-children {
  position: relative;
  padding-right: 14px;
}

.primary-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 50;
  display: grid;
  gap: 0;
  width: min(360px, 90vw);
  margin: 0;
  padding: 18px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(25, 18, 22, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.primary-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.primary-menu .sub-menu a {
  display: block;
  white-space: normal;
  padding: 12px 16px;
  border-radius: 4px;
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.primary-menu .sub-menu a:hover {
  color: var(--rose-dark);
  background: var(--porcelain);
}

.top-quote,
.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-quote:hover,
.btn:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--rose-dark);
  box-shadow: 0 12px 30px rgba(130, 71, 91, 0.16);
}

.btn.alt {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.alt:hover { color: var(--white); background: var(--rose-dark); }

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(25, 18, 22, 0.16);
}

.btn.inline { margin-top: 16px; }

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("assets/images/hero-collage.jpg") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 245, 249, 0.98) 0%, rgba(255, 245, 249, 0.92) 38%, rgba(255, 245, 249, 0.4) 68%, rgba(255, 245, 249, 0.08) 100%),
    linear-gradient(0deg, rgba(25, 18, 22, 0.08), rgba(25, 18, 22, 0.02));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 116px 0 96px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.metric-panel {
  position: absolute;
  right: 52px;
  bottom: 42px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(640px, calc(100% - 104px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.metric-panel div { padding: 20px 22px; }
.metric-panel strong { display: block; font-size: 18px; }
.metric-panel span { color: var(--muted); font-size: 13px; }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.trust-grid div {
  padding: 24px 28px;
  border-left: 1px solid var(--line);
}

.trust-grid div:last-child { border-right: 1px solid var(--line); }
.trust-grid strong { display: block; font-size: 18px; }
.trust-grid span { color: var(--muted); font-size: 14px; }

.section { padding: 96px 0; }
.section.no-top-padding { padding-top: 0; }
.section.dark { color: var(--white); background: var(--ink); }
.section.porcelain { background: var(--porcelain); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-head.single {
  display: block;
  margin-bottom: 26px;
}

.section-head h2,
.buyer-layout h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-head p,
.buyer-layout p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.dark .section-head p { color: rgba(255, 255, 255, 0.68); }

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

.product-tile {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: 0 1px 0 rgba(25, 18, 22, 0.04);
}

.product-tile.large { grid-column: span 1; }

.product-tile img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-tile:hover img { transform: scale(1.04); }

.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.6) 100%);
}

.tile-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--white);
}

.tile-copy h3 { margin: 0 0 6px; font-size: 24px; }
.tile-copy p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 14px; }

.buyer-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.buyer-layout p { margin-top: 18px; }

.buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.buyer-grid span {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.service-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: stretch;
}

.service-image {
  min-height: 590px;
  border-radius: var(--radius);
  background: url("assets/images/category-runway.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.service-list { display: grid; gap: 14px; }

.service-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-item span { color: var(--rose); font-weight: 900; }
.service-item h3 { margin: 0 0 6px; font-size: 22px; }
.service-item p { margin: 0; color: var(--muted); }

.process-grid,
.quality-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-category-list { grid-template-columns: repeat(2, 1fr); }

.faq-list { display: grid; gap: 16px; }

.process-card,
.quality-card,
.faq-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}

.process-card strong { color: var(--rose); }

.process-card h3,
.quality-card h3,
.faq-card h3,
.content-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.content-card h3 { margin-top: 0; }

.process-card p,
.quality-card p,
.faq-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.dark .quality-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.dark .quality-card p { color: rgba(255, 255, 255, 0.66); }

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 54px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.cta-panel p { color: rgba(255, 255, 255, 0.7); }

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.inquiry-form .full,
.inquiry-form .form-note,
.inquiry-form .form-success,
.inquiry-form .form-error { grid-column: 1 / -1; }

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

.inquiry-form textarea { min-height: 112px; resize: vertical; }

.form-note { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.form-success { color: #b8efd0; }
.form-error { color: #ffc7c7; }
.hywears-hidden { position: absolute; left: -9999px; }

.page-hero {
  padding: 98px 0 70px;
  background: var(--porcelain);
}

.page-content {
  width: min(960px, calc(100% - 44px));
  margin: 0 auto;
  padding: 68px 0 100px;
}

.page-content h2 { margin-top: 38px; font-size: 34px; line-height: 1.1; letter-spacing: -0.025em; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { margin-top: 28px; }
.page-content p, .page-content li { color: var(--soft-ink); }
.page-content ul { padding-left: 22px; }
.contact-hint { padding: 18px 20px; border-left: 4px solid var(--rose); background: var(--porcelain); }

.site-footer { background: var(--ink); color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
  padding: 58px 0;
}

.site-footer p,
.site-footer a { color: rgba(255, 255, 255, 0.68); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .primary-menu { flex-wrap: wrap; justify-content: flex-start; }
  .top-quote { display: none; }

  .metric-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(var(--max), calc(100% - 44px));
    margin: -58px auto 0;
  }

  .product-grid,
  .process-grid,
  .quality-grid,
  .footer-grid,
  .content-grid { grid-template-columns: repeat(2, 1fr); }

  .service-layout,
  .buyer-layout,
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .wrap,
  .page-content { width: min(100% - 28px, var(--max)); }

  .site-header { position: relative; }
  .brand-name { font-size: 24px; }
  .brand-line { font-size: 11px; }

  .hero {
    min-height: 680px;
    background-position: 58% center;
  }

  .hero::before { background: linear-gradient(90deg, rgba(255, 245, 249, 0.98), rgba(255, 245, 249, 0.8)); }

  .hero h1,
  .page-title { font-size: 42px; letter-spacing: -0.04em; }

  .hero-actions .btn { width: 100%; }

  .section { padding: 68px 0; }
  .section-head,
  .header-inner { align-items: flex-start; flex-direction: column; }

  .product-grid,
  .process-grid,
  .quality-grid,
  .metric-panel,
  .footer-grid,
  .inquiry-form,
  .trust-grid,
  .buyer-grid,
  .content-grid,
  .product-category-list { grid-template-columns: 1fr; }

  .product-tile.large { grid-column: span 1; }
  .product-tile, .product-tile img { min-height: 340px; }
  .service-image { min-height: 420px; }
  .service-item { grid-template-columns: 44px 1fr; padding: 22px; }
  .cta-panel { padding: 30px; }
  .footer-bottom-inner { align-items: flex-start; flex-direction: column; }
}

.page-content .inquiry-form {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.page-content .inquiry-form label { color: rgba(255, 255, 255, 0.84); }
.page-content .inquiry-form input,
.page-content .inquiry-form textarea {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .page-content .inquiry-form { padding: 22px; }
}

.manufacturing-hero,
.blog-hero,
.contact-hero {
  background:
    linear-gradient(100deg, rgba(255, 245, 249, 0.98), rgba(251, 240, 242, 0.88)),
    url("assets/images/sample-room/showroom-panorama.jpg") center / cover no-repeat;
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: 18px;
}

.manufacturing-page,
.blog-page,
.contact-page {
  width: min(var(--max), calc(100% - 44px));
}

.manufacturing-intro,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.manufacturing-intro {
  align-items: end;
  margin-bottom: 42px;
}

.manufacturing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.manufacturing-card,
.blog-card,
.contact-info-grid article,
.contact-faq article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(25, 18, 22, 0.06);
}

.manufacturing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.manufacturing-card-copy {
  padding: 24px;
}

.manufacturing-card-copy span,
.blog-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manufacturing-card-copy h2,
.blog-card h2 {
  margin: 10px 0 12px;
  font-size: 25px;
  line-height: 1.08;
}

.manufacturing-card-copy a,
.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--rose-dark);
  font-weight: 850;
}

.buyer-fit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.manufacturing-cta {
  margin-top: 54px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.manufacturing-cta p { color: rgba(255, 255, 255, 0.72); }

.catalog-hero {
  min-height: 420px;
}

.catalog-page {
  padding-top: 64px;
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}

.catalog-intro h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.catalog-intro p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(25, 18, 22, 0.05);
}

.catalog-sidebar h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.catalog-sidebar ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 4px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.35;
}

.catalog-sidebar li.is-active a,
.catalog-sidebar a:hover {
  color: var(--rose-dark);
  background: var(--porcelain);
}

.catalog-sidebar small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.catalog-sidebar-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.catalog-sidebar-cta strong {
  display: block;
  margin-bottom: 8px;
}

.catalog-sidebar-cta p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-sidebar-cta a {
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--rose);
  color: var(--rose-dark);
  font-weight: 850;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-toolbar select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 34px 0 12px;
  color: var(--soft-ink);
  background: var(--white);
}

.catalog-category-section {
  scroll-margin-top: 128px;
  margin-bottom: 46px;
}

.catalog-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-category-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.catalog-category-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-grid.catalog-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(234, 217, 211, 0.95);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(25, 18, 22, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: rgba(166, 96, 119, 0.36);
  box-shadow: 0 24px 60px rgba(25, 18, 22, 0.09);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--porcelain);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-image span {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(25, 18, 22, 0.16);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-card-image span,
.product-card:focus-within .product-card-image span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-code {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.product-card p {
  display: -webkit-box;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--rose-dark);
  font-size: 14px;
  font-weight: 850;
}

.catalog-cta {
  margin-top: 20px;
}

@media (max-width: 1120px) {
  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }

  .product-grid.catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .primary-menu {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .primary-menu .sub-menu {
    left: 0;
    transform: translate(0, 8px);
  }

  .primary-menu .menu-item-has-children:hover > .sub-menu,
  .primary-menu .menu-item-has-children:focus-within > .sub-menu {
    transform: translate(0, 0);
  }

  .catalog-intro,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-sidebar ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-toolbar,
  .catalog-category-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-sidebar ul,
  .product-grid.catalog-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .product-card-copy {
    padding: 18px;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-card {
  padding: 34px;
}

.blog-card p { color: var(--muted); }

.contact-info-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-info-grid article,
.contact-faq article {
  padding: 24px;
}

.contact-info-grid h3,
.contact-faq h3 {
  margin-top: 0;
}

.contact-faq {
  margin-top: 36px;
}

.contact-form-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form-card h2 {
  margin-top: 0;
  color: var(--white);
}

.contact-form-card .inquiry-form {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.about-hero {
  padding: 76px 0;
  background: linear-gradient(100deg, var(--porcelain), var(--ivory) 48%, var(--beige));
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.about-hero p {
  max-width: 660px;
  color: var(--soft-ink);
  font-size: 18px;
}

.about-video-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.about-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(25, 18, 22, 0.62));
  pointer-events: none;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.about-video-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-page-content {
  width: min(var(--max), calc(100% - 44px));
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.about-facts {
  display: grid;
  gap: 12px;
}

.about-facts.capacity-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-facts article {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--porcelain);
}

.about-facts strong { font-size: 18px; }
.about-facts span { color: var(--muted); }

.about-factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.about-factory-gallery figure {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.about-factory-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.about-factory-gallery figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 15px;
  font-weight: 850;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.about-factory-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25, 18, 22, 0.5), rgba(25, 18, 22, 0.02) 58%);
}

.about-bottom-cta {
  margin-top: 58px;
  padding: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.about-bottom-cta h2 {
  margin-top: 0;
  color: var(--white);
}

.about-bottom-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

/* v4 factory-led homepage */
.factory-hero {
  min-height: 780px;
  display: block;
  padding: 82px 0 70px;
  overflow: hidden;
  background: var(--ink);
}

.factory-hero::before { display: none; }

.hero-video,
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.88) contrast(1.05);
}

.hero-video-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(25, 18, 22, 0.86) 0%, rgba(25, 18, 22, 0.68) 42%, rgba(25, 18, 22, 0.3) 100%),
    linear-gradient(0deg, rgba(25, 18, 22, 0.35), rgba(166, 96, 119, 0.18));
}

.factory-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(360px, 0.65fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  min-height: 620px;
}

.factory-hero .hero-content {
  max-width: none;
  padding: 0;
}

.factory-hero .hero-content p { max-width: 660px; }

.factory-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 4.9vw, 78px);
  color: var(--white);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.factory-hero .eyebrow {
  color: #f1becb;
}

.factory-hero .hero-content p {
  color: rgba(255, 255, 255, 0.82);
}

.factory-hero .btn {
  border-radius: 999px;
}

.factory-hero .btn.alt {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.factory-hero .btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.hero-proof-panel {
  align-self: end;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-proof-panel div {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-proof-panel strong {
  color: var(--white);
  font-size: 19px;
  line-height: 1.1;
}

.hero-proof-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  grid-template-rows: 290px 196px;
  gap: 14px;
  min-height: 520px;
}

.hero-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(25, 18, 22, 0.1);
}

.hero-photo::after,
.factory-gallery img::after { display: none; }

.hero-photo img,
.factory-gallery img,
.customization-images img,
.qc-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.main {
  grid-column: 1 / 3;
  grid-row: 1;
}

.hero-photo.sample { grid-column: 1; grid-row: 2; }
.hero-photo.product { grid-column: 2; grid-row: 2; }

.hero-proof {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 164px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-proof strong {
  font-size: 20px;
  line-height: 1.1;
}

.hero-proof span {
  color: var(--muted);
  font-size: 14px;
}

.factory-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.split-showcase h2,
.customization-layout h2,
.qc-layout h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.split-showcase p,
.qc-copy p {
  color: var(--soft-ink);
  font-size: 17px;
}

.capability-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.capability-list article {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}

.capability-list strong { font-size: 17px; }
.capability-list span { color: var(--muted); font-size: 14px; }

.factory-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.factory-gallery img,
.customization-images img,
.qc-images img {
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.factory-gallery .wide {
  grid-column: 1 / 3;
  min-height: 320px;
}

.refined-gallery .wide {
  min-height: 380px;
}

.refined-gallery img:not(.wide) {
  min-height: 230px;
}

.customization-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.customization-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.customization-images .showroom {
  grid-column: 1 / 3;
  min-height: 270px;
}

.customization-images img:not(.showroom) { min-height: 330px; }

.qc-section .eyebrow { color: var(--blush); }

.qc-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(480px, 0.95fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.qc-copy > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.qc-layout .quality-grid {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.qc-images {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
}

.qc-images .qc-main {
  grid-column: 1 / 3;
  min-height: 360px;
}

.qc-images .qc-small { min-height: 260px; }

@media (max-width: 980px) {
  .factory-hero-grid,
  .split-showcase,
  .customization-layout,
  .qc-layout {
    grid-template-columns: 1fr;
  }

  .factory-hero-grid { min-height: 700px; }
  .hero-media { min-height: 560px; }
}

@media (max-width: 700px) {
  .factory-hero { min-height: auto; padding: 70px 0 54px; }

  .factory-hero h1 { font-size: 42px; }
  .factory-hero-grid { min-height: 620px; }

  .hero-media {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .hero-photo.main,
  .hero-photo.sample,
  .hero-photo.product {
    grid-column: 1;
    grid-row: auto;
    min-height: 260px;
  }

  .hero-photo.main { min-height: 320px; }

  .hero-proof {
    position: static;
    grid-template-columns: 1fr;
    margin-top: -10px;
  }

  .factory-gallery,
  .customization-images,
  .qc-images {
    grid-template-columns: 1fr;
  }

  .factory-gallery .wide,
  .customization-images .showroom,
  .qc-images .qc-main {
    grid-column: 1;
  }

  .factory-gallery img,
  .customization-images img,
  .customization-images img:not(.showroom),
  .qc-images img,
  .qc-images .qc-main,
  .qc-images .qc-small {
    min-height: 280px;
  }
}

@media (max-width: 980px) {
  .about-hero-grid,
  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-factory-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-facts.capacity-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .about-hero { padding: 54px 0; }

  .about-video-card { min-height: 260px; }

  .about-factory-gallery {
    grid-template-columns: 1fr;
  }

  .about-facts.capacity-facts {
    grid-template-columns: 1fr;
  }

  .about-factory-gallery figure {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }

  .about-bottom-cta { padding: 28px; }
}

@media (max-width: 980px) {
  .manufacturing-intro,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .manufacturing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .manufacturing-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .manufacturing-card-copy,
  .blog-card,
  .contact-info-grid article,
  .contact-faq article {
    padding: 22px;
  }
}
