/* Product grid: keep cards visually aligned without changing content order. */
.product-grid,
.featured-products-grid {
	align-items: stretch;
}

/* Keep the dedicated featured lane focused; the full catalog remains available below. */
.featured-products-grid > .product-card:nth-child(n + 12) {
	display: none !important;
}

.product-grid > *,
.featured-products-grid > * {
	height: 100%;
}

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	contain: layout paint;
}

.product-card .product-image {
	aspect-ratio: 4 / 5;
	min-height: 0;
	overflow: hidden;
}

.product-card .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

.product-card .product-meta {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.product-card .product-title {
	min-height: 2.7em;
}

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

/* Browser-safe entrance fallback: the page still feels intentional if a
 * browser isolates the GSAP global from the theme bundle. */
@keyframes feiyue-card-in {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.muse-products-grid .product-card {
	animation: feiyue-card-in .55s cubic-bezier(.2,.7,.2,1) both;
}

.muse-products-grid .product-card:nth-child(2n) { animation-delay: .04s; }
.muse-products-grid .product-card:nth-child(3n) { animation-delay: .08s; }

.feiyue-motion-ready .product-card,
.feiyue-motion-ready .buyer-proof,
.feiyue-motion-ready .story,
.feiyue-motion-ready .capability,
.feiyue-motion-ready .faq,
.feiyue-motion-ready .contact {
	will-change: transform, opacity;
}

/* Keep the floating contact control clear of the footer and safe on narrow screens. */
#feiyueContactMenu {
	bottom: max(24px, env(safe-area-inset-bottom));
	right: max(20px, env(safe-area-inset-right));
}

/* Inquiry form: make the buyer's next action legible and trustworthy. */
#inquiryForm label {
	display: block;
	color: #17201e;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

#inquiryForm label > span {
	display: block;
	margin-bottom: .55rem;
	color: #17201e;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: .01em;
}

#inquiryForm input:not([type="file"]),
#inquiryForm textarea,
#inquiryForm select {
	width: 100%;
	border: 0;
	border-bottom: 1.5px solid rgba(23, 32, 30, .42);
	border-radius: 0;
	background: transparent;
	color: #17201e;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	padding: .65rem 0 .8rem;
	transition: border-color .2s ease, box-shadow .2s ease;
}

#inquiryForm textarea {
	min-height: 7rem;
	resize: vertical;
}

#inquiryForm input::placeholder,
#inquiryForm textarea::placeholder {
	color: #53605c;
	opacity: 1;
}

#inquiryForm input:not([type="file"]):focus,
#inquiryForm textarea:focus,
#inquiryForm select:focus {
	border-bottom-color: #b95f43;
	box-shadow: 0 2px 0 #b95f43;
	outline: none;
}

#inquiryForm input[type="file"] {
	margin-top: .15rem;
	color: #17201e;
	font-size: .95rem;
}

@media (max-width: 640px) {
	.product-card .product-image {
		aspect-ratio: 4 / 5;
	}

	.product-card .product-title {
		min-height: 0;
	}

	#feiyueContactMenu {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom));
	}

	#inquiryForm label > span {
		font-size: .98rem;
	}

	#inquiryForm input:not([type="file"]),
	#inquiryForm textarea,
	#inquiryForm select {
		font-size: .98rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.muse-products-grid .product-card {
		animation: none;
	}

	.product-card .product-image img {
		transition: none;
	}

	.product-card:hover .product-image img {
		transform: none;
	}
}

#products.product-section.section{padding-top:clamp(64px,6vw,96px);padding-bottom:clamp(72px,7vw,110px)} #products .section-heading h2{font-size:clamp(38px,4vw,58px);line-height:1.04;max-width:13ch} #products .section-heading > p{max-width:42ch;line-height:1.6}

.contact-float #feiyueContactMenu {
  bottom: calc(100% + 10px);
  right: 0;
}
.contact-float:not(.is-open) #feiyueContactMenu { visibility: hidden; }

/* Mobile buyers see the material and can start an inquiry in the first screen. */
@media (max-width: 640px) {
  .home .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 70px;
    min-height: 0;
    background: #faf7f1;
  }

  .home .hero-visual {
    grid-row: 1;
    min-height: 0;
    height: clamp(190px, 57vw, 300px);
  }

  .home .hero-image img { object-position: 62% 54%; }
  .home .hero-caption { display: none; }
  .home .hero-copy {
    grid-row: 2;
    min-height: 0;
    padding: 25px 6% 26px;
    background: #faf7f1;
  }
  .home .hero-copy::after { content: none; }
  .home .hero-copy .kicker { color: #82543e; }
  .home .hero h1 {
    margin: 14px 0;
    font-size: clamp(43px, 12vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .home .hero-copy > p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #47423c;
  }
  .home .hero-buttons { display: flex; flex-flow: row wrap; gap: 8px; }
  .home .hero-buttons .button { min-height: 44px; padding: 11px 13px; }
  .home .hero .button--light { background: #29332f; border-color: #29332f; color: #fff; }
  .home .hero-proof { margin-top: 20px; padding-top: 13px; }
  .home .hero-proof span { color: #514d45; }
  #products.product-section.section { padding-top: 40px; }
  #products .section-heading { gap: 12px; margin-bottom: 22px; }
  #products .section-heading h2 { margin-bottom: 0; }
  #products .section-heading > p { margin: 10px 0 0; line-height: 1.5; color: #504b45; }
  #products .filters { gap: 6px; margin-bottom: 18px; }
  #products .filter { min-height: 44px; padding: 8px 12px; color: #46443c; }
  #products .filter.is-active { color: white; }

  .home .contact-float:not(.is-near-footer) {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: max(14px, env(safe-area-inset-right));
  }
  .home .inquiry-bag-float {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px);
    right: max(14px, env(safe-area-inset-right));
  }

  .contact-float.feiyue-avoid-filters:not(.is-open):not(:has(:focus-visible)),
  .inquiry-bag-float.feiyue-avoid-filters:not(:focus-visible) {
    visibility: hidden;
    pointer-events: none;
  }
}
