/* ============================================================
   ATbio Brand Product List (atbio-products.html, NANOFIL)
   Layout: GLOBAL TOKENS → COMMON HEADER → COMMON LINK FX
           → PAGE-LOCAL → COMMON CULTURE → COMMON FOOTER → RESPONSIVE
   Note: Image paths are NOT referenced here — see inline
   style="background-image:url(...)" in HTML for .culture / .foot-bg.
   ============================================================ */

/* ===========================================================================
   1. GLOBAL — Fonts & Base Styles
   =========================================================================== */

html,
body {
  font-family: 'Jost', 'Playfair Display', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #1a1a1a;
  background: #fff;
}

.page {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

h1,
h2,
.brand-wordmark,
.culture .panel h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

.hero h1,
.sec-title h2,
.heritage-left h2,
.culture .panel h3,
.brand-intro h2 {
  font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Jost', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}

a {
  text-decoration: none;
  transition: color .25s ease, background-color .3s ease, transform .3s ease;
}

/* ===========================================================================
   2. COMMON — Top Navigation (Header)
   =========================================================================== */

.topbar {
  position: relative;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px clamp(20px, 5vw, 96px);
}

.nav .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav .logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.desk-nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desk-nav a {
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color .2s;
}

.desk-nav a:hover,
.desk-nav a.active {
  color: #9EE3DE;
}

.nav-right {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  position: relative;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d6dbe1;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  position: relative;
}

.lang-pill:hover {
  border-color: #9EE3DE;
  color: #9EE3DE;
}

.lang-pill .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .15);
  padding: 6px;
  display: none;
  min-width: 120px;
  z-index: 80;
}

.lang-pill:hover .lang-menu,
.lang-pill:focus-within .lang-menu {
  display: block;
}

.lang-pill .lang-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
}

.lang-pill .lang-menu a:hover {
  background: #f1f6fb;
  color: #9EE3DE;
}

.search-wrap {
  display: inline-flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f6fb;
  font-size: 12px;
  outline: none;
  margin-right: 0;
  transition: 
    width .55s cubic-bezier(.65, .05, .36, 1), 
    opacity .35s ease, 
    padding .45s ease, 
    margin .45s ease, 
    border-color .35s ease, 
    box-shadow .45s ease;
}

.search-wrap:hover .search-input {
  width: 240px;
  opacity: 1;
  padding: 8px 16px;
  margin-right: 8px;
  border-color: #cfe1f3;
  box-shadow: 0 6px 22px -10px rgba(126, 192, 238, .6);
}

.search-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d6dbe1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .35s ease, color .2s, border-color .2s, background .3s;
}

.search-pill:hover {
  color: #9EE3DE;
  border-color: #9EE3DE;
}

.search-wrap:hover .search-pill {
  transform: rotate(90deg);
  background: #9EE3DE;
  color: #fff;
  border-color: #9EE3DE;
}

.mnav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dbe1;
  border-radius: 8px;
  cursor: pointer;
}

#mnav-chk {
  display: none;
}

.mnav {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 32px;
  gap: 20px;
  color: #fff;
}

.mnav a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  align-self: flex-start;
}

.mnav .mnav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.mnav input {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  width: 100%;
  font-size: 14px;
}

.mnav .msearch-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.mnav .msearch-input {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
}

.mnav .msearch-pill {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.mnav .lang-select {
  background: #000;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 10px 40px 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  width: 100%;
  margin-top: 8px;
}

#mnav-chk:checked~.mnav {
  display: flex !important;
}

/* ===========================================================================
   3. COMMON — Link / Button / Card / Image Interactions (fx-*)
   =========================================================================== */

.fx-link,
.desk-nav a {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.15;
  vertical-align: bottom;
  color: #000000;
}

.fx-link:hover {
  color: #9EE3DE;
}

.fx-btn {
  transition: 
    background-color .3s ease, 
    color .3s ease, 
    box-shadow .3s ease, 
    transform .3s ease, 
    letter-spacing .25s ease;
}

.fx-btn::after {
  display: none !important;
}

.pp-cta.fx-btn:hover {
  background: #9EE3DE;
  letter-spacing: .06em;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(158, 227, 222, .7);
}

.fx-card {
  display: block;
  text-decoration: none;
  height: 100%;
}

.fx-card .pp-image {
  overflow: hidden;
}

.fx-card:hover .pp-image img {
  transform: scale(1.08);
  filter: brightness(1.04);
}

.fx-card h3 {
  transition: color .3s ease, transform .3s ease, letter-spacing .3s ease;
  transform-origin: left center;
  display: inline-block;
}

.fx-card:hover h3 {
  color: #9EE3DE;
  transform: scale(1.04);
  letter-spacing: .01em;
}

.fx-card p {
  transition: color .3s ease;
}

/* ===========================================================================
   4. PAGE-LOCAL — Brand Banner (NANOFIL Hero)
   =========================================================================== */

.brand-hero {
   position: relative;
   height: 600px;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
}

.brand-hero-img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

a.brand-link {
   display: block;
   width: 100%;
   height: 100%;
}

.brand-hero-desktop {
   display: none;
}

@media (max-width:1024px) {
   .brand-hero {
      height: auto;
      aspect-ratio: 3/4;
   }
}

@media (min-width: 1025px) {
   .brand-hero-mobile {
      display: none;
   }
   .brand-hero-desktop {
      display: block;
   }
}

/* ===========================================================================
   5. PAGE-LOCAL — Brand Introduction
   =========================================================================== */

.brand-intro {
  position: relative;
  text-align: center;
  padding: 80px clamp(20px, 5vw, 96px) 50px;
}

.brand-intro h2 {
  position: relative;
  z-index: 1;
  font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Jost', sans-serif;
  font-size: clamp(30px, 3vw, 80px);
  font-weight: 700;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.brand-intro p {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin: 0 auto;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

/* ===========================================================================
   6. PAGE-LOCAL — Filters
   =========================================================================== */

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 96px) 14px;
  flex-wrap: wrap;
  gap: 16px;
}

.filters-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.filters-left .all {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-right: 8px;
}

.fpill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6dbe1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .25s, color .25s, box-shadow .25s, transform .25s;
}

.fpill:hover {
  border-color: #9EE3DE;
  color: #9EE3DE;
}

.fpill i {
  font-size: 10px;
  transition: transform .25s;
}

.fpill[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.fpill-container {
  position: relative;
  display: inline-block;
}

.fpill-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .15);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 100;
}

.fpill-container:focus-within .fpill-dropdown,
.fpill-container:hover .fpill-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fpill-dropdown li {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.fpill-dropdown a {
  display: block;
  width: 100%;
  padding: 10px 18px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: background-color .2s;
  text-decoration: none;
  border-radius: 8px;
}

.fpill-dropdown a:hover {
  background-color: #f5f7f8;
  color: #9EE3DE;
}

.count-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* ===========================================================================
   7. PAGE-LOCAL — Product Grid
   =========================================================================== */

.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 96px) 60px;
}

.pp-card {
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  background: #eef1f4;
}

.pp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -28px rgba(13, 37, 64, .25);
}

.pp-image {
  aspect-ratio: 1.35/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: 
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), 
    filter 0.4s ease;
}

.pp-body {
  padding: 18px 20px;
}

.pp-body h3 {
  font-size: 19px;
  color: #000000;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.3;
}

.pp-body p {
  font-size: 14px;
  color: #6b7785;
  line-height: 1.55;
  margin: 0px;
}

.pp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ===========================================================================
   8. COMMON — Culture Banner
   (Background image is set inline on the .culture element in HTML)
   =========================================================================== */

.culture {
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  height: clamp(280px, 22vw, 420px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.culture .panel {
  background: rgba(230, 232, 235, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 0 clamp(40px, 6vw, 90px);
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.culture .panel h3 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -.05em;
  color: #fff;
  margin: 0;
}

.culture .panel p {
  font-size: 30px;
  line-height: 1.7;
  margin-top: 0;
  color: #fff;
  max-width: 60ch;
}

/* ===========================================================================
   9. COMMON — Footer
   (.foot-bg background image is set inline on the element in HTML)
   =========================================================================== */

footer {
  background: #fff;
  padding: 50px clamp(20px, 5vw, 96px) 0;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 30px;
}

.foot-top h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.foot-top p {
  font-size: 18px;
  line-height: 1.65;
}

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
}

.socials a {
  width: 32px;
  height: 32px;
  border: 1px solid #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #000000;
  color: #fff;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.socials a:hover {
  background: #fff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
}

.socials .wechat {
  position: relative;
}

.socials .wechat .qrcode {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  padding: 8px;
}

.socials .wechat .qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.socials .wechat:hover .qrcode {
  display: block;
}

.foot-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: auto;
  margin: 0 calc(-1 * clamp(20px, 5vw, 96px)) 0;
  padding: 0 clamp(20px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 60px 0 40px;
}

.foot-cols h5 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.foot-cols a,
.foot-cols p {
  font-size: 18px;
  line-height: 1.5;
  display: block;
}

.foot-cols a {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  color: #000000;
}

.foot-cols a:hover {
  color: #9EE3DE;
  transform: translateX(3px);
}

.foot-bottom {
  position: relative;
  padding: 60px 0;
  text-align: center;
}

.foot-bottom .big-logo {
  display: inline-block;
  width: 20%;
  max-width: 280px;
  min-width: 120px;
  line-height: 0;
}

.foot-bottom .big-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.foot-bottom small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ===========================================================================
   10. RESPONSIVE — Media Queries (Mobile-First: max-width descending)
   =========================================================================== */

/* ==============  Large Desktop (1280px - 1440px)  ============== */
@media (max-width: 1280px) {
  .pp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==============  Tablet Landscape (1024px - 1280px)  ============== */
@media (max-width: 1024px) {
  .desk-nav,
  .nav-right .pc-only {
    display: none;
  }

  .mnav-toggle {
    display: inline-flex;
  }
}

/* ==============  Tablet Portrait (900px - 1024px)  ============== */
@media (max-width: 900px) {
  .pp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==============  Large Mobile (760px - 900px)  ============== */
@media (max-width: 760px) {
  .culture .panel h3 {
    font-size: clamp(28px, 6vw, 36px);
  }

  .culture .panel p {
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.5;
  }
}

/* ==============  Small Mobile (0 - 560px)  ============== */
@media (max-width: 560px) {
  .pp-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
  }

  .filters-left {
    display: contents;
  }

  .filters-left .all {
    order: 1;
    justify-self: start;
    margin: 0;
  }

  .count-bubble {
    order: 2;
    justify-self: end;
    width: auto;
    min-width: 0;
    height: 36px;
    padding: 0 22px;
    border-radius: 999px;
  }

  .filters-left .fpill-container:nth-child(2) {
    order: 3;
  }

  .filters-left .fpill-container:nth-child(3) {
    order: 4;
  }

  .filters-left .fpill {
    width: 100%;
    min-width: 0;
    gap: 12px;
    padding: 10px 14px;
    font-size: 12px;
  }
}