/* كتالوج المنتجات المشترك بين اللغات. */
main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 90px;
}

main > .ornament-divider { display: none; }

main > section.block {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: 0 18px 48px rgba(17, 67, 64, .09);
}

main > section.block:first-of-type {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vw, 58px);
}

main > section.block > .container {
  width: 100%;
  height: 100%;
}

main > section.block:first-of-type .section-title {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

main > section.block:first-of-type .section-sub {
  max-width: 650px;
  margin: 0 auto 42px;
  font-size: 1.08rem;
  line-height: 1.8;
}

main > section.block:first-of-type .about-grid {
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

main > section.block:not(:first-of-type) .about-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

main > section.block:not(:first-of-type) .product-media {
  position: relative;
  width: 100%;
  height: clamp(400px, 38vw, 500px);
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(233,196,106,.14), rgba(42,157,143,.12));
}

main > section.block:not(:first-of-type) .product-media img {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 18px 18px rgba(18,51,49,.16));
}

main > section.block:not(:first-of-type) .about-grid > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px 32px;
}

main > section.block h2 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  line-height: 1.35;
}

main > section.block p { line-height: 1.85; }
main > section.block:not(:first-of-type) h2 { font-size: 1.4rem; }

main > section.block:not(:first-of-type) .info-list {
  width: 100%;
  margin-bottom: 26px;
}

main > section.block:not(:first-of-type) .btn { margin-top: auto; }

main > section.block .btn {
  min-width: 170px;
  justify-content: center;
  text-align: center;
}

html[data-theme="dark"] main > section.block:not(:first-of-type) .product-media {
  background: linear-gradient(145deg, rgba(233,196,106,.08), rgba(42,157,143,.1));
}

@media (max-width: 820px) {
  main { grid-template-columns: 1fr; padding-top: 120px; }
  main > section.block:first-of-type { grid-column: auto; }
  main > section.block:first-of-type .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main { width: min(100% - 28px, 1160px); gap: 18px; padding-bottom: 60px; }
  main > section.block { border-radius: 22px; }
  main > section.block:first-of-type { padding: 24px 18px; }
  main > section.block:not(:first-of-type) .product-media { height: 340px; }
  main > section.block:not(:first-of-type) .about-grid > div:last-child { padding: 24px 22px 28px; }
}
