/* CEYMAT round 3 (2026-10-14): product-led, compact homepage.
   Separate file; remove <link id="ceymat-round3"> from website.custom_code_head to roll back. */

/* Compact hero with real product photos */
.cm-sept .hero.cm-hero { padding: 0; }
.cm-sept .cm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 40px; }
.cm-sept .cm-hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin-bottom: 12px; }
.cm-sept .cm-hero .lead { font-size: 17px; max-width: 560px; margin-bottom: 20px; }
.cm-hero__products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-sept a.cm-hero__product { display: block; aspect-ratio: 1 / 1; padding: 10px; background: #fff; border: 1px solid rgba(23, 32, 39, .08); border-radius: 12px; box-shadow: 0 2px 8px rgba(23, 32, 39, .06); }
.cm-sept a.cm-hero__product:hover, .cm-sept a.cm-hero__product:focus-visible { border-color: #bb0f12; }
.cm-sept .cm-hero__product img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Store strip directly under the hero */
.cm-storestrip { background: #172027; color: #fff; padding: 12px 0; }
.cm-storestrip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.cm-storestrip__item { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.35; }
.cm-storestrip__item svg { width: 18px; height: 18px; flex: none; }
.cm-storestrip__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-sept .cm-storestrip .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cm-sept .cm-storestrip .btn-outline:hover { background: rgba(255, 255, 255, .1); }

/* Section heading row (title left, link right) */
.cm-sectionhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.cm-sectionhead h2 { margin: 0; }
.cm-sept a.cm-link { font-weight: 600; color: #bb0f12; text-decoration: none; }
.cm-sept a.cm-link:hover { text-decoration: underline; }

/* Compact category tiles: 5 x 2 on desktop, 2 columns on mobile */
.cm-sept .cm-cats.cm-cats--compact { padding: 48px 0 40px; }
.cm-sept .cm-cats--compact .cm-cats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cm-sept .cm-cats--compact .cm-cats__item { grid-area: auto; }
.cm-sept .cm-cats--compact .cm-cats__media { height: auto; aspect-ratio: 16 / 10; }
.cm-sept .cm-cats--compact .cm-cats__media img { width: 100%; height: 100%; object-fit: cover; }
.cm-sept .cm-cats--compact .cm-cats__body { padding: 10px 12px 12px; }
.cm-sept .cm-cats--compact .cm-cats__name { font-size: 16px; line-height: 1.25; }
.cm-sept .cm-cats--compact .cm-cats__blurb { font-size: 13px; line-height: 1.35; }

/* Featured products (native dynamic snippet): stable grid, never a sliding carousel */
.cm-featured { padding: 40px 0 48px; background: #f6f7f8; }
.cm-featured .s_dynamic_snippet_title h2 { margin-bottom: 4px; }
.cm-featured .carousel-inner { display: grid; gap: 16px; overflow: visible; }
.cm-featured .carousel-item { display: block !important; float: none !important; margin: 0 !important; transform: none !important; transition: none !important; }
.cm-featured .carousel-control-prev, .cm-featured .carousel-control-next, .cm-featured .carousel-indicators { display: none !important; }

/* Services + brands */
.cm-sept .cm-services { padding: 48px 0; }
.cm-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cm-service { padding: 20px; background: #fff; border: 1px solid rgba(23, 32, 39, .1); border-radius: 12px; }
.cm-service svg { width: 26px; height: 26px; color: #bb0f12; }
.cm-sept .cm-service h3 { font-size: 18px; margin: 10px 0 6px; }
.cm-sept .cm-service p { margin: 0; font-size: 15px; line-height: 1.5; }
.cm-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.cm-brands__label { font-weight: 700; }
.cm-brands .pill-row { margin: 0; }


/* Calmer spacing for the visit block and FAQ on the homepage */
.cm-sept .cm-visit, .cm-sept .cm-faq { padding: 56px 0; }

@media (max-width: 991.98px) {
  .cm-sept .cm-cats--compact .cm-cats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .cm-sept .cm-cats--compact .cm-cats__blurb { display: none; }
}
@media (max-width: 767.98px) {
  .cm-sept .cm-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0 20px; }
  .cm-sept .cm-hero .lead { font-size: 16px; margin-bottom: 16px; }
  .cm-hero__products { gap: 8px; }
  .cm-sept a.cm-hero__product { padding: 6px; border-radius: 10px; }
  .cm-storestrip__actions { margin-left: 0; width: 100%; }
  .cm-storestrip__actions .btn { flex: 1 1 0; justify-content: center; }
  .cm-sept .cm-cats.cm-cats--compact { padding: 32px 0 28px; }
  .cm-sept .cm-cats--compact .cm-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-services__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-featured { padding: 32px 0 36px; }
  .cm-sept .cm-visit, .cm-sept .cm-faq, .cm-sept .cm-services { padding: 36px 0; }
}
