/* ─── Page Wrapper ── ShopDetailPage.module.scss ─────────────────────────── */

.shop-detail-root {
  display: flex;
  flex-direction: column;
}

/* ─── Hero Section ── ShopHeroSection.module.scss ───────────────────────── */

.shop-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media only screen and (max-width: 991px) {
  .shop-hero {
    gap: 24px;
    padding: 0 16px;
  }
}

.shop-hero__logo {
  width: 200px;
  height: 117px;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .shop-hero__logo {
    width: 154px;
    height: 90px;
  }
}

.shop-hero__headline {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #22252a;
  text-align: center;
  max-width: 896px;
  margin: 0;
}

@media only screen and (max-width: 991px) {
  .shop-hero__headline {
    font-size: 24px;
  }
}

.shop-hero__headline-accent {
  color: #e40148;
}

.shop-hero__box-wspieram {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border: 8px solid #f8f9fb;
  border-radius: 20px;
  padding: 16px 30px;
  width: 588px;
  min-height: 109px;
}

@media only screen and (max-width: 991px) {
  .shop-hero__box-wspieram {
    flex-direction: column-reverse;
    align-items: center;
    width: 100%;
    gap: 16px;
    padding: 24px;
  }
}

.shop-hero__org-logo {
  width: 104px;
  height: 61px;
  object-fit: contain;
  flex-shrink: 0;
}

@media only screen and (max-width: 991px) {
  .shop-hero__org-logo {
    width: 85px;
    height: 50px;
  }
}

.shop-hero__org-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media only screen and (max-width: 991px) {
  .shop-hero__org-info {
    align-items: center;
    text-align: center;
  }
}

.shop-hero__org-label {
  font-size: 14px;
  line-height: 1.2;
  color: #22252a;
}

.shop-hero__org-name {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #22252a;
}

.shop-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e40148;
  color: #ffffff;
  border-radius: 20px;
  padding: 11px 20px;
  height: 40px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  margin: 8px 0 32px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.shop-hero__cta:hover {
  background: #cc0140;
}


/* ─── Info Section ── ShopInfoSection.module.scss ───────────────────────── */

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

.shop-info__top-row {
  display: flex;
  gap: 24px;
}

@media only screen and (max-width: 991px) {
  .shop-info__top-row {
    flex-direction: column;
    order: 2;
  }

  .shop-info__card--app-warning {
    order: 1;
  }
}

.shop-info__card {
  background: #f8f9fb;
  border-radius: 20px;
  padding: 40px 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Karty w top-row rozciągają się równomiernie */
.shop-info__top-row .shop-info__card {
  flex: 1;
}

@media only screen and (max-width: 991px) {
  .shop-info__card {
    padding: 24px 24px 32px;
  }
}

.shop-info__card-heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #22252a;
  margin: 0;
}

@media only screen and (max-width: 991px) {
  .shop-info__card-heading {
    font-size: 24px;
  }
}

.shop-info__card-content {
  font-size: 16px;
  line-height: 1.5;
  color: #22252a;
}

.shop-info__card-content p {
  margin: 0 0 8px 0;
}

.shop-info__card-content a {
  text-decoration: underline;
}

.shop-info__card-content strong {
  font-weight: 600;
}

.shop-info__list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.shop-info__list li {
  font-size: 16px;
  line-height: 1.5;
}

/* ─── Deals Section ── ShopDealsSection.module.scss ────────────────────── */

.shop-deals {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  align-items: start;
}

@media only screen and (max-width: 991px) {
  .shop-deals {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.shop-deals__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #22252a;
  margin: 0;
}

.shop-deals__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Deal Tile (wariant card) ── DealTile.module.scss ──────────────────── */

.deal-tile {
  border: 8px solid #f8f9fb;
  border-radius: 20px;
  box-sizing: border-box;
}

.deal-tile--card {
  padding: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

@media only screen and (max-width: 991px) {
  .deal-tile--card {
    width: min(588px, calc(100vw - 48px));
  }
}

.deal-tile__header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
}

.deal-tile__logo {
  width: 137px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.deal-tile__date-range {
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #9096a3;
  margin: 0;
  position: absolute;
  right: 0;
  top: -5px;
  text-align: right;
  max-width: 239px;
}

.deal-tile__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deal-tile__title {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #22252a;
  margin: 0;
}

.deal-tile__description-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row nowrap;
  gap: 8px;
}

.deal-tile__promoted {
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 500;
  font-size: 13px;
  line-height: normal;
  color: #e40148;
  white-space: nowrap;
}

.deal-tile__description {
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #22252a;
  margin: 0;
}

/* ─── Deal Modal ── DealModal.module.scss ───────────────────────────────── */

.deal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.deal-modal-overlay[hidden] {
  display: none;
}

.deal-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 32px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 25px 0 rgba(58, 82, 129, 0.21);
}

.deal-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #22252a;
  line-height: 0;
  border-radius: 4px;
}

.deal-modal__close:hover {
  opacity: 0.7;
}

.deal-modal__logo {
  height: 80px;
  max-width: 137px;
  object-fit: contain;
  margin-bottom: 24px;
}

.deal-modal__title {
  margin: 0 0 16px;
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 33.6px;
  color: #22252a;
  text-align: center;
}

.deal-modal__description {
  margin: 0 0 40px;
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 14px;
  line-height: 1.2;
  color: #22252a;
  text-align: center;
}

.deal-modal__description[hidden] {
  display: none;
}

.deal-modal__code-box {
  margin-bottom: 24px;
  border: 1px solid #dfe1e6;
  border-radius: 20px;
  padding: 8px 16px 8px 40px;
  width: 326px;
  max-width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 8px;
}

.deal-modal__code-box[hidden] {
  display: none;
}

@media only screen and (max-width: 991px) {
  .deal-modal__code-box {
    width: 100%;
    padding: 8px 16px;
  }
}

.deal-modal__code-text {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  letter-spacing: 2px;
  color: #22252a;
  text-align: center;
  flex: 1;
}

.deal-modal__copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22252a;
}

.deal-modal__copy-btn:hover {
  opacity: 0.7;
}

.deal-modal__cta {
  margin-top: 0;
}

/* ─── About Section ── ShopAboutSection.module.scss ────────────────────── */

.shop-detail-root .shop-about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #22252a;
  box-sizing: border-box;
}

@media only screen and (max-width: 991px) {
  .shop-detail-root .shop-about {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.shop-about__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
}

/* Markdown component — ShopAboutSection.module.scss + Markdown.module.scss */

.shop-about__content {
  font-family: 'DMSans', Helvetica Neue, Arial;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: #22252a;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.shop-about__content p {
  margin: 0;
}

.shop-about__content strong {
  font-weight: 600;
}

.shop-about__content ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.shop-about__content a {
  color: #e40148;
  text-decoration: underline;
}

/* ─── Recent Support Section ── ShopRecentSupportSection.module.scss ───── */

.shop-recent {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #22252a;
}

@media only screen and (max-width: 991px) {
  .shop-recent {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.shop-recent__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.shop-recent__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-recent__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-recent__text {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.shop-recent__beneficiary {
  color: inherit;
  text-decoration: none;
}

.shop-recent__beneficiary:hover {
  text-decoration: underline;
}

.shop-recent__amount {
  color: #e40148;
}

.shop-recent__divider {
  height: 1px;
  background: #dfe1e6;
  width: 100%;
}

@keyframes donations-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.donations-bar {
  overflow: hidden;
  max-width: 100%;
  padding: 0 0 64px;
}

.donations-bar__track {
  width: fit-content;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 12px;
  animation: donations-ticker 600s linear infinite;
}

.donations-bar:hover .donations-bar__track {
  animation-play-state: paused;
}

@media only screen and (max-width: 359px) {
  .donations-bar { display: none; }
}
