/*
 * Manufaktura Ram – układ generatora
 * Panel narzędzi u góry, obszar ściany poniżej na pełną szerokość.
 */

.bubble-landing-container .mr-bubble-layout-stacked {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 24px !important;
}

.bubble-landing-container .mr-bubble-controls-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr) !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  align-items: start !important;
  justify-content: stretch !important;
  padding: 28px !important;
  box-sizing: border-box !important;
}

.bubble-landing-container .mr-bubble-controls-panel > div {
  min-width: 0;
}

.bubble-landing-container .mr-bubble-controls-panel > div:last-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  padding-left: 28px !important;
  border-left: 1px solid #E2E8F0 !important;
}

.bubble-landing-container .mr-bubble-wall-viewport {
  order: 2;
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  aspect-ratio: 2 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 820px) {
  .bubble-landing-container .mr-bubble-controls-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    padding: 22px !important;
  }

  .bubble-landing-container .mr-bubble-controls-panel > div:last-child {
    padding-left: 0 !important;
    padding-top: 20px !important;
    border-left: 0 !important;
    border-top: 1px solid #E2E8F0 !important;
  }
}

@media (max-width: 520px) {
  .bubble-landing-container .mr-bubble-layout-stacked {
    gap: 16px !important;
  }

  .bubble-landing-container .mr-bubble-controls-panel {
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .bubble-landing-container .mr-bubble-wall-viewport {
    border-radius: 16px !important;
  }
}

/* Galeria wszystkich kolorów – obrazy i linki pobierane z WooCommerce. */
.bubble-landing-container .bubble-color-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.bubble-landing-container .bubble-color-section > h2 {
  margin: 0 0 12px;
  color: #0F172A;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  text-align: center;
}

.bubble-landing-container .bubble-color-section__intro {
  max-width: 820px;
  margin: 0 auto 32px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.bubble-landing-container .bubble-color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.bubble-landing-container .bubble-color-card {
  min-width: 0;
  overflow: hidden;
  background: #FAF9F6;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bubble-landing-container .bubble-color-card:hover,
.bubble-landing-container .bubble-color-card:focus-within {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.bubble-landing-container .bubble-color-card__image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #F1F5F9;
}

.bubble-landing-container .bubble-color-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.bubble-landing-container .bubble-color-card__image--main {
  opacity: 1;
}

.bubble-landing-container .bubble-color-card__image--hover {
  opacity: 0;
}

.bubble-landing-container .bubble-color-card:hover .bubble-color-card__image--main,
.bubble-landing-container .bubble-color-card:focus-within .bubble-color-card__image--main {
  opacity: 0;
}

.bubble-landing-container .bubble-color-card:hover .bubble-color-card__image--hover,
.bubble-landing-container .bubble-color-card:focus-within .bubble-color-card__image--hover {
  opacity: 1;
  transform: scale(1.03);
}

.bubble-landing-container .bubble-color-card__content {
  padding: 16px 16px 18px;
}

.bubble-landing-container .bubble-color-card__title {
  margin: 0 0 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
}

.bubble-landing-container .bubble-color-card__title a {
  color: #0F172A;
  text-decoration: none;
}

.bubble-landing-container .bubble-color-card__title a:hover,
.bubble-landing-container .bubble-color-card__title a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bubble-landing-container .bubble-color-card__description {
  margin: 0;
  color: #64748B;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .bubble-landing-container .bubble-color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bubble-landing-container .bubble-color-section {
    padding: 24px 16px;
  }

  .bubble-landing-container .bubble-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bubble-landing-container .bubble-color-card__content {
    padding: 13px 13px 15px;
  }

  .bubble-landing-container .bubble-color-card__title {
    font-size: 16px;
  }
}

