/**
 * Section: Our Products
 */

/* 1. Shell */
.section-our-products {
  position: relative;
  padding: 96px 0 112px;
  color: #fff;
  overflow: hidden;
}

/* 2. Header */
.op-header {
  padding-bottom: 56px;
}

.op-header-row {
  gap: 48px;
  row-gap: 24px;
}

.op-title-box {
  display: inline-block;
}

.op-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-display);
  color: #fff;
}

.op-card-cta {
  color: white;
  border-color: white;
  &:hover {
    background: white;
    color: #1f241f;
    border-color: #1f241f;
  }
}

.op-desc-cell {
  padding-left: 24px;
}

.op-description {
  margin: 0;
  max-width: 500px;
}

/* 3. Carousel */
.op-carousel {
  position: relative;
  --op-grid-inset: 18px;
  --op-end-space: 18px;
}

.op-viewport {
  overflow: hidden;
}

.op-container {
  display: flex;
  gap: 20px;
  padding: 0 var(--op-end-space) 0 0;
  touch-action: pan-y;
}

/* 4. Slides */
.op-slide {
  flex: 0 0 auto;
  min-width: 0;
  width: 320px;
}

.op-slide-image .op-image,
.op-slide-card .op-image {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-lime);
}

.op-slide-image .op-image img,
.op-slide-card .op-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.op-slide-card {
  width: 612px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 20px;
}

.op-slide-card .op-image {
  min-width: 0;
}
.op-slide-card .op-card {
  min-width: 0;
}

.op-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 440px;
  padding: 28px;
  background: #41433f;
  color: white;
  border-radius: 16px;
}

.op-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.op-card-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: inherit;
}

.op-card-subtitle {
  margin: 0;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 250;
}

.op-card-subtitle-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 12px;
  background: var(--op-dot-color, currentColor);
  box-shadow: 0 0 10px var(--op-dot-color, currentColor);
  animation: opDotPulse 2s ease-in-out infinite;
}

@keyframes opDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.op-card-description {
  margin: 0;
}

.op-card-footer {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.op-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
}

.op-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-card-counter {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 5. Nav arrows */
.op-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 248, 243, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  z-index: 2;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.op-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.04);
}

.op-nav:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

.op-nav svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.op-nav-prev {
  left: var(--op-grid-inset);
}
.op-nav-next {
  right: var(--op-grid-inset);
}

/* 6. Responsive — large screens */
@media (min-width: 1200px) {
  .op-slide-card {
    width: 731px;
  }

  .op-slide-image .op-image,
  .op-slide-card .op-image,
  .op-card {
    height: 520px;
  }

  .op-card {
    padding: 35px;
  }
  .op-card-heading {
    font-size: 26px;
  }
}

@media (min-width: 1440px) {
  .op-slide-card {
    width: 833px;
  }

  .op-slide-image .op-image,
  .op-slide-card .op-image,
  .op-card {
    height: 580px;
  }

  .op-container {
    gap: 24px;
  }
  .op-card {
    padding: 40px;
  }
  .op-card-heading {
    font-size: 28px;
  }
}

@media (min-width: 1700px) {
  .op-slide-card {
    width: 935px;
  }

  .op-slide-image .op-image,
  .op-slide-card .op-image,
  .op-card {
    height: 640px;
  }

  .op-container {
    gap: 28px;
  }
}

/* 7. Responsive — smaller screens */
@media screen and (max-width: 1199px) {
  .section-our-products {
    padding: 80px 0 96px;
  }
  .op-header {
    padding-bottom: 48px;
  }
  .op-header-row {
    gap: 32px;
  }
}

@media screen and (max-width: 1023px) {
  .section-our-products {
    padding: 72px 0 80px;
  }
  .op-header {
    padding-bottom: 40px;
  }
  .op-header-row {
    gap: 24px;
    row-gap: 20px;
  }
  .op-desc-cell {
    padding-left: 0;
  }

  .op-slide-card {
    width: 544px;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 16px;
  }
  .op-slide-image .op-image,
  .op-slide-card .op-image,
  .op-card {
    height: 400px;
  }
  .op-card {
    padding: 24px;
  }
  .op-card-subtitle {
    margin-bottom: 32px;
  }

  .op-nav {
    width: 44px;
    height: 48px;
  }
}

@media screen and (max-width: 767px) {
  .section-our-products {
    padding: 64px 0 72px;
  }
  .op-header {
    padding-bottom: 32px;
  }
  .op-header-row {
    gap: 16px;
    row-gap: 16px;
  }
  .op-title {
    font-size: 30px;
  }
  .op-description {
    max-width: none;
  }

  .op-container {
    gap: 16px;
  }
  .op-slide-card {
    width: calc(100% - 48px);
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .op-slide-image .op-image,
  .op-slide-card .op-image {
    height: 260px;
    border-radius: 14px;
  }
  .op-card {
    flex: 1;
    height: auto;
    min-height: 260px;
    padding: 22px;
    border-radius: 14px;
  }
  .op-card-body {
    gap: 12px;
  }
  .op-card-subtitle {
    margin-bottom: 10px;
  }
  .op-card-heading {
    font-size: 20px;
  }
  .op-card-footer {
    margin-top: 15px;
    gap: 20px;
  }

  .op-nav {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .section-our-products {
    padding: 48px 0 56px;
  }
  .op-title {
    font-size: 26px;
  }

  .op-container {
    gap: 12px;
  }
  .op-slide-card {
    width: calc(100% - 32px);
    gap: 12px;
  }
  .op-slide-image .op-image,
  .op-slide-card .op-image {
    height: 220px;
  }
  .op-card {
    min-height: 240px;
    padding: 18px;
  }
  .op-card-heading {
    font-size: 19px;
  }
  .op-card-subtitle {
    margin-bottom: 10px;
    font-size: 14px;
  }
  .op-card-counter {
    font-size: 12px;
  }
}
