/* Corporate × Shop landing page polish (v4). CORE-OWNED (shopnik-books-core). */

/* Division cards: every card has the same-size top — a product photo, or the brand colour with the category icon */
.corp-card-media img { width: 100%; height: 100%; object-fit: cover; }
/* While a photo is still loading, the top is a soft wash of the store colour (never plain white) */
.corp-card-media:not(.corp-card-fallback) { background: linear-gradient(135deg,
  color-mix(in srgb, var(--store-primary, var(--bs-primary)) 18%, var(--bs-body-bg)) 0%,
  color-mix(in srgb, var(--store-primary, var(--bs-primary)) 8%, var(--bs-body-bg)) 100%); }
.corp-card-fallback { background: linear-gradient(135deg, var(--store-primary, var(--bs-primary)) 0%, color-mix(in srgb, var(--store-primary, var(--bs-primary)) 55%, #0f172a) 100%); }
.corp-card-fallback > div { display: grid; place-items: center; color: #fff; }
.corp-card-fallback i { font-size: clamp(2.2rem, 4vw, 3rem); opacity: .9; }

.corp-swipe-hint { display: none !important; align-items: center; gap: .35rem; font-size: .8rem; color: var(--bs-secondary-color); }

/* Phones: divisions as one swipeable row with a peek of the next card (not a very long stack) */
@media (max-width: 767.98px) {
  .corp-divisions { --bs-gutter-x: 0; display: flex; flex-wrap: nowrap; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0; padding: 0 0 .5rem; scroll-padding-inline: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .corp-divisions::-webkit-scrollbar { display: none; }
  .corp-divisions > .col { flex: 0 0 82% !important; max-width: 82% !important; width: 82% !important; padding: 0 !important; scroll-snap-align: start; }
  .corp-divisions > .col:only-child { flex-basis: 100% !important; max-width: 100% !important; width: 100% !important; }
  .corp-swipe-hint { display: inline-flex !important; }
}

/* "Why partner with us": the story stays in view while the pillars scroll past (no empty half-column) */
@media (min-width: 992px) {
  .corp-about-row { align-items: flex-start !important; }
  .corp-about-copy { position: sticky; top: 6.5rem; }
}

/* Brands: logo or monogram, consistent tiles */
.corp-brand-logo { display: block; max-height: 48px; max-width: 100%; margin: 0 auto .5rem; object-fit: contain; }
.corp-brand-mono { width: 52px; height: 52px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; letter-spacing: .02em;
  color: var(--store-primary, var(--bs-primary)); background: color-mix(in srgb, var(--store-primary, var(--bs-primary)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--store-primary, var(--bs-primary)) 30%, transparent); }
.corp-brand-name { font-size: .85rem; }
