/* Yachtneeds theme - catalog pages: category description "read more" and category intro.
   Loaded by Views/Shared/Head.cshtml on catalog, manufacturer, vendor and business directory pages only; theme.css loads first.
   The read-more toggle is driven by ~/js/custom/catalog-description-readmore.js. The FAQ block is in faq.css. */

.readmore-visual { position: relative; transition: max-height .2s ease; }
.category-page .category-description { text-align: start; }
.readmore-visual.readmore-collapsed { max-height: var(--readmore-collapsed-height, 96px); overflow: hidden; }
.readmore-visual.readmore-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 52px; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); }
.readmore-visual-toggle { display: inline-flex; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #e67e23; font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer; }
.readmore-visual-toggle:hover, .readmore-visual-toggle:focus { color: #e68500; text-decoration: underline; }

/* category intro, aligned with the page title */
.category-page .category-description-wrapper, .category-page .category-faq { text-align: start; }
.category-description-wrapper { max-width: 960px; margin-bottom: 8px; }
.category-banner-carousel { margin-bottom: 20px; border-radius: var(--radius); }
.sub-category-grid { margin-bottom: 28px; }
.sub-category-item .picture img { object-fit: contain; padding: 8px; }

/* supplier profile "Featured products & services": the shared ~/css/business-profile-public.css (loaded later, also used by the
   old theme) turns the item grid into a flex row, which leaves each card as wide as its content; keep the theme card grid */
.yn-biz-profile__section--featured-products .product-grid .item-grid { display: grid; }
.yn-biz-profile__section--featured-products .product-grid .item-box { display: block; }
.yn-biz-profile__section--featured-products .product-grid .details > .yn-biz-profile__primary-pill { align-self: flex-start; padding: 3px 8px; font-size: 11px; }
.product-item.yn-biz-profile__featured-service .yn-biz-profile__rfq { margin: 0; }
.product-item.yn-biz-profile__featured-service .yn-biz-profile__rfq-button { width: 100%; }

/* supplier search suggestions under the header search box (~/js/custom/business-directory-taxonomy-suggestions.js); the
   Suppliers search mode only runs on the business directory pages, other pages switch to /suppliers */
.supplier-search-suggestions { position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 1080; max-height: 420px; overflow-y: auto; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 8px 24px rgba(13, 43, 76, .14); text-align: start; }
.supplier-search-suggestions[hidden] { display: none; }
.supplier-search-suggestions__section + .supplier-search-suggestions__section { border-top: 1px solid var(--c-line); }
.supplier-search-suggestions__heading { padding: 9px 12px 5px; color: var(--c-muted); font-size: 11px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.supplier-search-suggestions__item { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--c-text); font: inherit; text-align: start; cursor: pointer; }
.supplier-search-suggestions__item:hover, .supplier-search-suggestions__item:focus { background: var(--c-surface); }
.supplier-search-suggestions__kind { flex: 0 0 auto; min-width: 62px; padding: 4px 6px; border-radius: 3px; background: #fff4e8; color: var(--c-accent-ink); font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; }
.supplier-search-suggestions__content { display: block; flex: 1 1 auto; min-width: 0; }
.supplier-search-suggestions__label, .supplier-search-suggestions__meta { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.supplier-search-suggestions__label { color: var(--c-ink); font-size: 14px; font-weight: 700; line-height: 1.35; }
.supplier-search-suggestions__meta { margin-top: 2px; color: var(--c-muted); font-size: 12px; line-height: 1.35; }

/* supplier filter trees: the theme copies of Views/BusinessDirectory/_CategoryFilterTree.cshtml and _LocationFilterTree.cshtml
   put the label straight in the link, without the span that ~/css/business-directory-landing.css lets wrap long names */
.yn-biz-landing__filter-link { overflow-wrap: anywhere; }
