/* Order Steps Section Styles */
:root {
  --section-vertical: 80px;
  --bg-beige: #F4EDE5;
  --color-text-dark-secondary: #343434;
  --white: #ffffff;
  --color-primary: #2A5B55;
  --color-secondary: #97C7CB;
  --radius-lg: 24px;
  --font-sans: 'Montserrat', sans-serif;
  --step-btn-active: #97C7CB;
  --step-btn-inactive: #ffffff;
}

/* Основная секция */
.order-steps {
  padding-top: var(--section-vertical);
  padding-bottom: var(--section-vertical);
  background: linear-gradient(135deg, #F4EDE5 0%, #F8F1EA 100%);
  position: relative;
}

/* Заголовок секции */
.order-steps__header {
  margin-bottom: 50px;
}

.order-steps__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -0.08em;
  color: var(--color-text-dark-secondary);
  text-align: left;
  margin: 0 0 16px 0;
}

.order-steps__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(52, 52, 52, 0.7);
  margin: 0;
  max-width: 600px;
}

.container-step-image {
	max-width: 100%;
	border-radius: 24px;
	overflow: hidden;

}

.step-image {
    display: block;
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* Макет секции - отдельные панели как в макете */
.order-steps__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: stretch;
  min-height: 500px;
}

/* Контейнер навигации - левая панель */
.order-steps__nav-container {
  background: rgba(245, 245, 245, 0.9);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* Навигация по шагам - вертикальная */
.order-steps__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* product card info styling is declared later in the file */
.order-steps__tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px;
  background: #f8f8f8;
  border-radius: 32px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Кнопки шагов - как в макете */
.order-step-btn {
  width: 100%;
  height: 48px;
  padding: 12px 20px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background-color: var(--step-btn-inactive);
  color: #212123;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

.order-step-btn.is-active {
  background-color: #194896;
  color: #FFFFFF;
  box-shadow: 0px 4px 16px rgb(25 72 150 / 40%);
}

.order-step-btn:not(.is-active):hover {
  background-color: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.12);
}

.order-step-btn__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(42, 91, 85, 0.1);
  font-weight: 600;
  font-size: 14px;
  color: #2A5B55;
  margin-bottom: 4px;
}

.order-step-btn.is-active .order-step-btn__number {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.order-step-btn__text {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Панель контента - правая часть как в макете */
.order-steps__panel {
  background-color: transparent;
  border-radius: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: auto;
  min-height: auto;
}

/* Правая панель - отдельная как в макете */
.order-steps__showcase {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  overflow: visible;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
	max-height: 534px;
  backdrop-filter: blur(10px);
}

.order-steps__panel-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  /*margin-bottom: 32px;*/
}

.order-steps__panel-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  /*font-size: 40px;*/
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.08em;
  color: var(--color-text-dark-secondary);
  margin: 0;
}

.order-steps__panel-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text-dark-secondary);
  margin: 0 0 20px 0;
  max-width: 600px;
}

.order-steps__panel-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--step-btn-active);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s ease;
  box-shadow: 0px 4px 12px rgba(151, 199, 203, 0.28);
  margin-bottom: 24px;
}

.order-steps__panel-btn:hover {
  background: #194896;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0px 6px 20px rgb(25 72 150 / 50%);
}

.order-steps__showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 100%;
  flex: 1;
  min-height: 300px;
}

/* Inner white panel that looks like backplate in mockup */
.order-steps__showcase-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Make sure the inner white panel stretches to match left nav height */
.order-steps__showcase-inner,
.order-steps__nav-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Ensure backdrop children stretch to same bottom line */
.order-steps__backdrop > * {
  align-self: stretch;
}

/* Make cards display in a single row on desktop inside inner panel */
.order-steps__showcase-grid > * {
  width: 100%;
}

/* Ensure horizontal scrolling on small screens */
@media (max-width: 991px) {
  .order-steps__showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
	.order-step-btn {
	  box-shadow: 0px 0px 0px !important;
	}
}



/* Карточки товаров - стиль по макету */
.order-steps__product-card {
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  height: 300px;
}

.order-steps__product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Контейнер изображения */
.product-card__image-container {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #f8f8f8;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Бейдж скидки */
.product-card__discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
}

/* Информация о товаре */
.product-card__info {
  padding: 10px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: space-between;
  min-height: 120px;
}

.order-steps__product-card .product-card__info { 
  padding: 10px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

/* Контейнер для текстовой информации */
.product-card__text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

/* Контейнер для цены и кнопки */
.product-card__bottom-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* Код и название товара */
.product-card__code {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #343434;
  margin: 0;
  line-height: 1.3;
}

/* Описание товара */
.product-card__description {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #666666;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  max-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Цены */
.product-card__pricing {
  margin: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__old-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #999999;
  text-decoration: line-through;
  font-weight: 400;
}

.product-card__current-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #343434;
}

/* Кнопка добавления в корзину */
.product-card__add-btn {
  background: var(--step-btn-active);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  transition: all 0.18s ease;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-top: auto;
}

.product-card__add-btn:hover {
  background: #6fa9a4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(151,199,203,0.22);
}

/* Card inner white surface */
.order-steps__product-card .product-card__surface {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.order-steps__product-card .product-card__info { 
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* Адаптивные стили для макета */
@media (max-width: 991px) {
  .order-steps__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .order-steps__nav-container {
    order: 1;
  }

  .order-steps__showcase {
    order: 2;
  }

  .order-steps__showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .order-steps {
    padding: 60px 0;
  }
}

/* Навигация становится горизонтальной на маленьких экранах */
@media (max-width: 991px) {
  .order-steps__nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding: 0 20px;
    margin: 0 -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .order-steps__nav::-webkit-scrollbar {
    display: none;
  }

  .order-step-btn {
    flex: 0 0 120px;
    height: 48px;
    font-size: 14px;
    padding: 12px 16px;
  }

  .order-steps__panel-title {
    font-size: 32px;
  }

  .order-steps {
    padding: 60px 0;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .order-steps__showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-steps__panel-title {
    font-size: 28px;
  }

  .order-steps__panel-description {
    font-size: 16px;
  }

  .order-step-btn {
    flex: 0 0 100px;
    height: 44px;
    font-size: 13px;
    padding: 10px 12px;
  }

  .product-card__image-container {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .order-steps__panel-title {
    font-size: 24px;
  }

  .order-steps__panel-description {
    font-size: 15px;
  }

  .order-step-btn {
    flex: 0 0 80px;
    height: 40px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .product-card__image-container {
    height: 160px;
  }

  .order-steps__panel-btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}
