.rt-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #d7dde4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: 0 8px 20px rgba(13, 23, 38, 0.08);
}

.rt-showcase-media {
  width: 100%;
  height: 210px;
  background: #e8edf3;
}

.rt-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-showcase-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rt-showcase-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rt-showcase-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.rt-showcase-text {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.45;
}

.rt-showcase-cta {
  margin-top: auto;
  width: fit-content;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  font-size: 0.86rem;
}

.rt-showcase-cta:hover {
  background: #fbbf24;
  color: #111827;
}

.rt-showcase-stage-1 .rt-showcase-title {
  font-size: 1.35rem;
}

.rt-showcase-stage-1 .rt-showcase-media {
  height: 260px;
}

.rt-showcase-stage-2 .rt-showcase-media {
  height: 220px;
}

.rt-showcase-stage-3 .rt-showcase-media {
  height: 190px;
}

.rt-showcase-layout-split_2_1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  min-height: 360px;
  height: 360px;
}

.rt-showcase-layout-split_2_1 .rt-showcase-media {
  height: 100% !important;
  min-height: 360px;
  background: #f3f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-showcase-layout-split_2_1 .rt-showcase-body {
  height: 100%;
  justify-content: center;
  padding: 1.2rem 1.1rem;
  overflow: hidden;
}

.rt-showcase-layout-split_2_1 .rt-showcase-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rt-showcase-layout-split_2_1 .rt-showcase-media img {
  object-fit: contain;
  object-position: center;
}

.rt-showcase-rotator [data-showcase-rotator-item] {
  transition: opacity 0.28s ease;
}

.rt-showcase-rotator {
  position: relative;
  min-height: 360px;
}

.rt-showcase-rotator-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid #f2c94c;
  border-radius: 999px;
  background: rgba(15, 20, 27, 0.86);
  color: #f2c94c;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rt-showcase-rotator-nav:hover {
  background: #f2c94c;
  color: #111827;
}

.rt-showcase-rotator-prev {
  left: 10px;
}

.rt-showcase-rotator-next {
  right: 10px;
}

@media (max-width: 992px) {
  .rt-showcase-stage-1 .rt-showcase-media,
  .rt-showcase-stage-2 .rt-showcase-media,
  .rt-showcase-stage-3 .rt-showcase-media {
    height: 200px;
  }

  .rt-showcase-layout-split_2_1 {
    grid-template-columns: 1fr;
    min-height: 420px;
    height: 420px;
  }

  .rt-showcase-layout-split_2_1 .rt-showcase-media {
    min-height: 240px;
  }

  .rt-showcase-layout-split_2_1 .rt-showcase-text {
    -webkit-line-clamp: 4;
  }

  .rt-showcase-rotator {
    min-height: 420px;
  }

  .rt-showcase-rotator-nav {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }
}

.rt-home-categories {
  margin-bottom: 0.5rem;
}

.rt-home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  gap: 0.5rem;
  justify-content: start;
}

.rt-home-brands .rt-home-categories-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, calc((100% - 4rem) / 5));
  grid-template-rows: 1fr;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.rt-home-brands .rt-home-category-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
}

.rt-home-category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d7dde4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 23, 38, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rt-home-category-card:hover {
  transform: translateY(-2px);
  border-color: #c9a521;
  box-shadow: 0 10px 20px rgba(13, 23, 38, 0.12);
}

.rt-home-category-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.rt-home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-home-brand-card .rt-home-category-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  padding: 0.4rem;
}

@media (max-width: 1199.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: minmax(190px, calc((100% - 2rem) / 3));
  }
}

@media (max-width: 767.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: minmax(170px, calc((100% - 0.75rem) / 2));
    gap: 0.75rem;
  }
}

@media (max-width: 479.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: 78%;
  }
}

.rt-home-brand-card .rt-home-category-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rt-home-catalogs .rt-home-catalog-media {
  aspect-ratio: 3 / 4;
  background: #eef2f6;
  padding: 0.35rem;
}

.rt-home-catalogs .rt-home-catalog-media .rt-home-catalog-preview {
  object-fit: cover;
  border: 1px solid #d7dde4;
  background: #fff;
  box-shadow: 0 6px 14px rgba(13, 23, 38, 0.12);
}

.rt-home-catalogs .rt-home-catalog-track {
  scroll-behavior: smooth;
}

.rt-home-catalog-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rt-home-catalog-nav-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d7dde4;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(13, 23, 38, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.rt-home-catalog-nav-btn:hover:not(:disabled) {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.rt-home-catalog-nav-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.rt-home-brand-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rt-home-category-media.logo-missing .rt-home-brand-fallback {
  display: flex;
}

.rt-home-category-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.4rem 0.4rem;
}

.rt-home-category-title {
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.rt-home-category-meta {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
}
