/*
 * Artwork grids without Salient (2026-12-01): shop, categories, tags and artist pages.
 * Only what Salient used to give these pages, measured on the live site: dark page, base text, artwork cards,
 * wishlist heart, pagination (the wishlist popup is in fineart-wishlist.css). Plus the "Dedication to quality" section that replaces Salient's global section.
 * Loaded by FineArt_Lean on body.fa-lean-grid only.
 */

body.fa-lean-grid {
	--fa-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 7.9 3.7 4.6 7 4.6c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.3 4.2 6.7-1.8 4.5-9.2 9-9.2 9z' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
	--fa-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 7.9 3.7 4.6 7 4.6c2 0 3.6 1.1 5 3 1.4-1.9 3-3 5-3 3.3 0 5.5 3.3 4.2 6.7-1.8 4.5-9.2 9-9.2 9z' fill='%23000'/%3E%3C/svg%3E");
	background: #000;
	color: #fff;
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 1px;
	line-height: 28px;
}
body.fa-lean-grid a { text-decoration: none; }

/* Collection head */
body.fa-lean-grid #collection .section-wrapper > h3 { margin: 0 0 8px; line-height: 22.4px; }
@media (min-width: 691px) {
	body.fa-lean-grid #collection .section-wrapper > h3 { line-height: 34px; }
}
body.fa-lean-grid #collection sup { font-size: 7px; vertical-align: super; line-height: 20px; }
body.fa-lean-grid #collection .above-grid { display: flex; justify-content: center; align-items: center; margin-top: 20px; text-align: center; }
@media (min-width: 691px) {
	body.fa-lean-grid #collection .above-grid { margin-top: 40px; }
}
body.fa-lean-grid #collection .frame-preview li { display: block; }
body.fa-lean-grid #collection .frame-preview-title { font-weight: 100; letter-spacing: normal; color: #000; }
@media (min-width: 691px) {
	body.fa-lean-grid #collection .woocommerce-notices-wrapper { max-width: 1120px; margin: 0 40px; }
}

/* Artwork cards */
body.fa-lean-grid #collection ul.products { width: auto !important; justify-content: center; text-align: center; list-style: none; }
body.fa-lean-grid .artist-section ul.products { margin: 0 -10px; }
body.fa-lean-grid #collection ul.products li.product { text-align: center; }
body.fa-lean-grid #collection ul.products .product-wrap { overflow: visible; }
body.fa-lean-grid #collection ul.products h2.woocommerce-loop-product__title { margin-top: 5px; font-size: 14px; line-height: 24px; letter-spacing: normal; color: #000; }
body.fa-lean-grid #collection ul.products h2.woocommerce-loop-product__title::before { content: open-quote; }
body.fa-lean-grid #collection ul.products h2.woocommerce-loop-product__title::after { content: close-quote; }
body.fa-lean-grid #collection ul.products .loop-artist { letter-spacing: 1px; text-transform: uppercase; color: #000; }
body.fa-lean-grid #collection ul.products .loop-artist a { color: #4a4a4a; text-transform: uppercase; }

/* Wishlist heart (TI Wishlist, its own styles and icon font are not loaded) */
body.fa-lean-grid #collection .tinv-wraper { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; margin: 0; text-align: center; }
body.fa-lean-grid #collection .tinv-wishlist-clear,
body.fa-lean-grid #collection .tinvwl-tooltip,
body.fa-lean-grid #collection .tinvwl_add_to_wishlist-text,
body.fa-lean-grid #collection .tinvwl_remove_from_wishlist-text { display: none; }
body.fa-lean-grid #collection a.tinvwl_add_to_wishlist_button { display: block; position: relative; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 50%; background: #fff; color: #000; font-size: 0; line-height: 0; cursor: pointer; }
body.fa-lean-grid #collection a.tinvwl_add_to_wishlist_button::before { content: ""; position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; background: #a1a1a1; -webkit-mask: var(--fa-heart) center / contain no-repeat; mask: var(--fa-heart) center / contain no-repeat; transition: background-color .2s ease; }
body.fa-lean-grid #collection a.tinvwl_add_to_wishlist_button:hover::before { background: #000; }
body.fa-lean-grid #collection a.tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before { -webkit-mask-image: var(--fa-heart-on); mask-image: var(--fa-heart-on); }
body.fa-lean-grid #collection a.tinvwl_add_to_wishlist_button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Pagination */
body.fa-lean-grid #collection ul.page-numbers { list-style: none; justify-content: center; }
body.fa-lean-grid #collection span.page-numbers.current { margin: 0 8px; box-shadow: 0 6px 15px rgba(0,0,0,.16); }
body.fa-lean-grid #collection a.page-numbers { position: relative; border-radius: 4px !important; text-transform: capitalize; }

/* Dedication to quality (replaces the Salient global section above the footer) */
body.fa-lean-grid .fa-quality { padding: 70px 24px 90px; color: #fff; font-family: Manrope, system-ui, -apple-system, sans-serif; text-align: center; }
body.fa-lean-grid .fa-quality__title { margin: 0 0 36px; color: #fff; font-size: 30px; font-weight: 300; letter-spacing: -.3px; line-height: 1.2; }
body.fa-lean-grid .fa-quality__title strong { font-weight: 700; }
body.fa-lean-grid .fa-quality__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1110px; margin: 0 auto; padding: 0; list-style: none; }
body.fa-lean-grid .fa-quality__card { position: relative; overflow: hidden; aspect-ratio: 14 / 15; border-radius: 6px; background: #1a1a1a; text-align: left; }
body.fa-lean-grid .fa-quality__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
body.fa-lean-grid .fa-quality__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); }
body.fa-lean-grid .fa-quality__card:hover img { transform: scale(1.04); }
body.fa-lean-grid .fa-quality__txt { position: absolute; right: 22px; bottom: 20px; left: 22px; z-index: 1; }
body.fa-lean-grid .fa-quality__txt h3 { margin: 0 0 6px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; line-height: 1.3; text-transform: uppercase; }
body.fa-lean-grid .fa-quality__txt p { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
@media (max-width: 690px) {
	body.fa-lean-grid .fa-quality { padding: 50px 0 60px; }
	body.fa-lean-grid .fa-quality__title { margin-bottom: 24px; padding: 0 24px; font-size: 24px; }
	body.fa-lean-grid .fa-quality__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; padding: 0 24px; scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; }
	body.fa-lean-grid .fa-quality__list::-webkit-scrollbar { display: none; }
	body.fa-lean-grid .fa-quality__card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	body.fa-lean-grid .fa-quality__card img { transition: none; }
}

/* Artist pages without the WPBakery row (2026-12-02): the Collection page now holds only the Ultimate Member shortcode.
   Salient's page title area no longer hides itself, and the white card of the collection came from the row. */
body.um-page-user #page-header-wrap { display: none !important; }
body.um-page-user #collection.artist-prints { margin-left: clamp(0px, 3vw, 40px); margin-right: clamp(0px, 3vw, 40px); padding-top: 56px; padding-bottom: 64px; background: #fff; }
body.um-page-user #collection.artist-prints .section-wrapper > h3,
body.um-page-user #collection.artist-prints .section-wrapper > .subtitle { text-align: center; }
/* A little more room under "Validated artist since…" before the card rises over the cover. */
html body.fa-hero #collection.artist-prints { margin-top: -70px !important; }
@media (max-width: 690px) {
	html body.fa-hero #collection.artist-prints { margin-top: -40px !important; }
	body.um-page-user #collection.artist-prints { padding-top: 36px; padding-bottom: 44px; }
}
