/* İTSO Premium public — aligned with page-shell / page-panel */

.premium-shell {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.premium-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.premium-back {
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--header-muted, #64748b);
  text-decoration: none;
  width: fit-content;
}

.premium-back:hover {
  color: var(--header-brand, #da2127);
  text-decoration: none;
}

.premium-lead {
  margin: 0 0 1.15rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--header-muted, #64748b);
}

.premium-empty {
  margin: 0;
  padding: 1.15rem;
  border: 1px dashed var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--header-muted, #64748b);
  text-align: center;
}

/* Category hub — full-width tiles, title is on the image */
.premium-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.premium-cat-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.premium-cat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 33, 39, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
}

.premium-cat-tile img {
  display: block;
  width: auto;
  max-width: 58%;
  max-height: 72%;
  height: auto;
  object-fit: contain;
}

.premium-cat-tile__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--header-ink, #0f172a);
}

/* Brand grid — 4 columns, full-width tiles */
.premium-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.premium-brand-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.premium-brand-card:hover,
.premium-brand-card:focus {
  border-color: rgba(218, 33, 39, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  outline: none;
}

.premium-brand-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 376 / 151;
  object-fit: cover;
}

.premium-brand-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.65rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--header-ink, #0f172a);
  background: #f8fafc;
}

/* Modal extras */
.premium-brand-modal .modal-dialog {
  max-width: 560px;
}

.premium-brand-modal__banner {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--header-radius-sm, 0.375rem);
  border: 1px solid var(--header-topbar-border, #e2e8f0);
}

.premium-brand-modal__body {
  margin-bottom: 0.25rem;
}

.premium-brand-modal__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--header-brand, #da2127);
  text-decoration: none;
}

.premium-brand-modal__link:hover {
  text-decoration: underline;
  color: var(--header-brand, #da2127);
}

@media (max-width: 991.98px) {
  .premium-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .premium-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .premium-brand-grid {
    grid-template-columns: 1fr;
  }
}
