/*
Theme Name: Dloorplf Taiwan
Theme URI: https://www.dloorplf.com.tw/
Author: 台灣德普福科技股份有限公司
Description: 台灣德普福官方客製佈景主題，重現原廠網站的科技感視覺與產品架構。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: dloorplf-tw
*/

:root {
  --brand: #07a6af;
  --brand-dark: #007986;
  --blue: #0c64b3;
  --navy: #071d38;
  --ink: #1f2833;
  --muted: #687380;
  --line: #e6ebef;
  --soft: #f3f6f8;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 16px 48px rgba(9, 36, 65, 0.12);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-topbar {
  border-bottom: 1px solid #edf0f2;
  color: #717981;
  background: #fff;
  font-size: 13px;
}

.topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-contact a,
.topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-contact svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(9, 36, 65, 0.08);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

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

.brand-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 108px;
  height: 66px;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.primary-nav .menu,
.primary-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 34px 0 32px;
  font-size: 17px;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 12%, rgba(51, 225, 243, 0.34), transparent 28%),
    linear-gradient(125deg, #063f9a 0%, #087bc7 48%, #28b9d4 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -120px;
  top: -220px;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.035), 0 0 0 92px rgba(255, 255, 255, 0.025);
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -170px;
  bottom: -180px;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.035);
}

.hero-slide {
  min-height: 540px;
  display: none;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
  animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 56px;
  padding-block: 78px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: #bff7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.18;
  letter-spacing: 0.015em;
}

.hero-copy {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-specs {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
}

.hero-specs li {
  position: relative;
  padding-left: 18px;
}

.hero-specs li::before {
  position: absolute;
  left: 0;
  content: "•";
  color: #86f2ff;
}

.hero-product {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.hero-product::before {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 90px rgba(0, 31, 76, 0.35);
}

.hero-product img {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  max-height: 310px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 22px rgba(0, 28, 66, 0.22));
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(22px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  background: #252a30;
  font-weight: 600;
  transition: 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.button-light {
  color: var(--blue);
  background: #fff;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 18px;
  color: #0b4f91;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
}

.section-heading h2::after {
  width: 66px;
  height: 3px;
  margin: 18px auto 0;
  display: block;
  content: "";
  background: var(--blue);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.3s ease;
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.category-card-media {
  height: 210px;
  padding: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fbfcfd, #edf3f7);
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.category-card-body {
  padding: 24px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-card p {
  min-height: 56px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.text-link::after {
  margin-left: 8px;
  content: "→";
}

.about-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #061a30 url("assets/images/earth.jpg") center / cover no-repeat;
}

.about-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 19, 37, 0.97), rgba(4, 31, 57, 0.83));
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 62px;
}

.about-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.about-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
}

.about-copy h2::after {
  width: 64px;
  height: 3px;
  margin-top: 18px;
  display: block;
  content: "";
  background: var(--brand);
}

.about-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.stats {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  padding: 18px 14px;
  border-left: 2px solid var(--brand);
  background: rgba(255, 255, 255, 0.06);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 25px;
}

.stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-date {
  color: #8a959f;
  font-size: 13px;
}

.news-card h3 {
  margin: 10px 0 12px;
  font-size: 20px;
  line-height: 1.45;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--brand));
}

.cta-inner {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.5vw, 38px);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #24272b;
}

.footer-main {
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1fr;
  gap: 64px;
}

.footer-main h2,
.footer-main h3 {
  margin: 0 0 20px;
  color: #fff;
}

.footer-main h2 {
  font-size: 21px;
}

.footer-main h3 {
  font-size: 17px;
}

.footer-contact p {
  margin: 7px 0;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.page-hero {
  padding: 96px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 31, 62, 0.93), rgba(5, 86, 146, 0.82)),
    url("assets/images/earth.jpg") center / cover no-repeat;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.content-wrap {
  width: min(calc(100% - 40px), 960px);
  margin-inline: auto;
  padding: 76px 0 100px;
}

.entry-content h2 {
  margin-top: 48px;
  color: #0b4f91;
  font-size: 30px;
}

.entry-content h3 {
  margin-top: 34px;
  color: var(--navy);
}

.entry-content p,
.entry-content li {
  color: #4f5b67;
}

.entry-content blockquote {
  margin: 36px 0;
  padding: 24px 30px;
  border-left: 4px solid var(--brand);
  background: var(--soft);
}

.service-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0;
}

.service-card,
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 44, 72, 0.06);
}

.service-card h3,
.contact-card h3 {
  margin-top: 0;
}

.product-archive {
  padding: 80px 0 100px;
}

.product-toolbar {
  margin-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.product-filter:hover,
.product-filter.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card-media {
  height: 265px;
  padding: 28px;
  display: grid;
  place-items: center;
  background: #f8fafb;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card-body {
  padding: 23px;
}

.product-card-body h2,
.product-card-body h3 {
  margin: 6px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.product-cat-label {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.single-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.single-product-image {
  padding: 40px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.single-product-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.single-product-copy h1 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.single-product-copy .entry-content {
  margin-top: 28px;
}

.pagination {
  margin-top: 50px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  background: var(--blue);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .topbar-inner {
    justify-content: center;
  }

  .topbar-welcome {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-logo {
    width: 86px;
    height: 54px;
  }

  .brand-name {
    white-space: normal;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 35px rgba(9, 36, 65, 0.12);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu,
  .primary-nav ul {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
    padding: 14px 0 22px;
    display: block;
  }

  .primary-nav a {
    padding: 12px 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.75fr;
    gap: 24px;
  }

  .hero-product::before {
    width: 270px;
    height: 270px;
  }

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

  .footer-main {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .container,
  .content-wrap {
    width: min(calc(100% - 30px), var(--container));
  }

  .site-topbar {
    display: none;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 64px 0 82px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-product {
    min-height: 250px;
  }

  .hero-product::before {
    width: 230px;
    height: 230px;
  }

  .hero-product img {
    max-height: 230px;
  }

  .section {
    padding: 70px 0;
  }

  .category-grid,
  .news-grid,
  .product-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-card-media {
    height: 240px;
  }

  .about-grid,
  .single-product-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 44px 0;
    display: block;
  }

  .cta-inner .button {
    margin-top: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero {
    padding: 66px 0;
  }
}
/* Catalogue completion: heading hierarchy, long model names and specification tables. */
.hero .hero-title { margin: 0 0 24px; font-size: clamp(36px, 5vw, 62px); line-height: 1.18; letter-spacing: .015em; }
.single-product-title { margin: 8px 0 18px; color: var(--navy); font-size: clamp(28px, 3vw, 40px); line-height: 1.3; overflow-wrap: anywhere; }
.page-hero h1, .product-card-body h2 { overflow-wrap: anywhere; }
.single-product-details { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.single-product-details .entry-content { max-width: 960px; margin-inline: auto; overflow-wrap: anywhere; }
.single-product-details .dloorplf-imported > figure.wp-block-image:first-of-type { display: none; }
.single-product-details .entry-content img { max-width: 100%; height: auto; }
.single-product-details table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.single-product-details td, .single-product-details th { padding: 12px 16px; border: 1px solid #dce5eb; min-width: 100px; }
.single-product-details tr:nth-child(even) { background: var(--soft); }
.single-product-details .entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.catalog-count { margin: 0 0 24px; color: var(--muted); }
.product-breadcrumbs { margin-bottom: 18px; font-size: 14px; }
.product-breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.pagination .nav-links { flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero .hero-title { font-size: 38px; }
  .single-product-details { margin-top: 32px; }
  .single-product-image { padding: 24px; }
}

/* Manufacturer category hierarchy: desktop sidebar and mobile category selector. */
.catalog-hero { padding: 60px 0; }
.catalog-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.35; }
.catalog-hero .product-breadcrumbs { color: #dae8f0; line-height: 1.8; }
.catalog-intro p { margin: 12px 0 0; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.catalog-sidebar { position: sticky; top: 120px; max-height: calc(100vh - 142px); overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; scrollbar-width: thin; }
.catalog-sidebar-title { margin: 0; padding: 18px 20px; color: #fff; background: var(--navy); font-size: 20px; }
.catalog-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; font-weight: 700; }
.catalog-category-group { border-top: 1px solid var(--line); }
.catalog-category-group summary { position: relative; display: flex; align-items: center; gap: 10px; padding: 15px 36px 15px 18px; list-style: none; color: var(--navy); background: #f3f6f8; cursor: pointer; font-weight: 700; }
.catalog-category-group summary::-webkit-details-marker { display: none; }
.catalog-category-group summary::after { position: absolute; right: 17px; content: '+'; font-size: 20px; font-weight: 400; }
.catalog-category-group[open] summary::after { content: '−'; }
.catalog-category-group summary .catalog-term-count { margin-left: auto; }
.catalog-term-count { flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.catalog-category-list { margin: 0; padding: 7px 0; list-style: none; }
.catalog-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 10px 22px; border-left: 3px solid transparent; font-size: 14px; line-height: 1.6; }
.catalog-category-list .catalog-root-link { font-size: 13px; color: var(--muted); }
.catalog-category-list a:hover, .catalog-all:hover { background: #edf7f8; color: var(--brand-dark); }
.catalog-category-list a.is-active, .catalog-all.is-active { border-left-color: var(--brand); color: #006671; background: #e5f4f5; font-weight: 700; }
.catalog-sidebar a:focus-visible, .catalog-sidebar summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -3px; }
.catalog-mobile-filter { display: none; }
.catalog-results, .catalog-product-content { min-width: 0; }
.catalog-results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.catalog-results-heading h2 { margin: 0; color: var(--navy); font-size: 23px; line-height: 1.45; }
.catalog-results-heading .catalog-count { margin: 0; flex-shrink: 0; font-size: 14px; }
.catalog-results .product-grid { gap: 20px; }
.catalog-results .product-card-media { height: 205px; padding: 22px; }
.catalog-results .product-card-body { padding: 19px; }
.catalog-results .product-card-body h3 { font-size: 17px; overflow-wrap: anywhere; }
.catalog-results .product-card-body p { font-size: 13px; }
.catalog-results .product-cat-label { letter-spacing: 0; }
.catalog-product-content .single-product-grid { gap: 28px; }
.catalog-product-content .single-product-title { font-size: clamp(24px, 2.3vw, 32px); }
.catalog-product-content .single-product-image { padding: 24px; }
.catalog-product-content .single-product-details { margin-top: 36px; }
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 24px; }
  .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-product-content .single-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .catalog-hero { padding: 38px 0; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .catalog-sidebar { display: none; }
  .catalog-mobile-filter { display: block; padding: 16px; border: 1px solid var(--line); background: var(--soft); }
  .catalog-mobile-filter label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 700; }
  .catalog-mobile-filter select { display: block; width: 100%; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bac8d1; border-radius: 4px; background: white; color: var(--ink); font: inherit; font-size: 15px; }
  .product-archive, .catalog-product-section { padding: 32px 0 56px; }
  .catalog-results-heading { gap: 10px; }
  .catalog-results-heading h2 { font-size: 21px; }
  .catalog-results .product-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-results .product-card-media { height: 240px; }
  .catalog-results .product-card-body h3 { font-size: 20px; }
}

/* LINE footer contact: retain the complete QR image and its quiet zone. */
.footer-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr) 208px; gap: 32px; }
.footer-line-contact { min-width: 0; }
.footer-line-contact h3 { margin-bottom: 16px; }
.footer-line-qr { display: block; width: 208px; max-width: 100%; padding: 4px; border-radius: 6px; background: #fff; }
.footer-line-qr img { display: block; width: 200px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.footer-line-help { margin: 12px 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.footer-line-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 208px; max-width: 100%; padding: 10px 16px; border-radius: 4px; background: #087b38; color: #fff; font-size: 15px; font-weight: 700; }
.footer-line-button:hover { color: #fff; background: #06622c; }
.footer-line-qr:focus-visible, .footer-line-button:focus-visible { outline: 3px solid #7fe1a4; outline-offset: 4px; }
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}
@media (max-width: 760px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}



