/* Promotions Block Styles */
.promotions-block {
  padding: 60px 0;
  background: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF));
}

.promotions-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Title */
.promotions-title {
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 32px 0;
  line-height: 1.2;
}

.promotions-title__black {
  color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
}

.promotions-title__blue {
  color: var(--tcm-accent);
}

/* Categories Filter */
.promotions-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
}

/* Header with Categories and Show More */
.promotions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 78px;
}

.category-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 196px;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 1px solid #D8D8D8;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.category-filter:hover {
  background: #F5F5F5;
}

.category-filter.active {
  background: #F5F5F5;
}

.category-filter__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: #F9FAFB;
}

.category-filter__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
  white-space: nowrap;
}

/* Promotions Grid */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.promotions-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Promotion Card */
.promotion-card {
  position: relative;
  background: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.promotion-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.promotion-card.hidden {
  display: none;
}

.promotion-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  background: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF))40;
  color: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF));
  font-size: 12px;
  font-weight: 400;
  border-radius: 8px;
  z-index: 2;
}

.promotion-card__image {
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promotion-card__image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.promotion-card__content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promotion-card__title {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

.promotion-card__title-black {
  color: #0B0B0B;
}

.promotion-card__title-blue {
  color: var(--tcm-accent);
}

.promotion-card__description {
  font-size: 16px;
  color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
  font-weight: 400;
  margin: 0 0 12px 0;
  line-height: 1.5;
  padding: 0 !important;
}

.promotion-card__arrow {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
  color: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF));
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
  width: 40px;
  padding: 0;
}

.promotion-card__arrow-text {
  opacity: 0;
  width: 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

.promotion-card__arrow-icon {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.promotion-card__arrow:hover {
  background: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
  width: auto;
  padding: 0 20px 0 12px;
  border-radius: 50px;
  max-width: 120px;
}

.promotion-card__arrow:hover .promotion-card__arrow-text {
  opacity: 1;
  width: auto;
  margin-right: 8px;
}

.promotion-card__arrow svg {
  width: 20px;
  height: 20px;
}

/* Show More Wrapper */
.promotions-show-more-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* Promotions Counter */
.promotions-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8B8B8B;
  font-size: 16px;
  font-weight: 400;
}

.promotions-counter-number {
  font-weight: 400;
  color: #8B8B8B;
}

/* Show More Link */
.promotions-show-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #8B8B8B;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.promotions-show-more:hover {
  background: #F5F5F5;
  border-color: var(--tcm-accent);
  color: var(--tcm-accent);
}

.promotions-show-more svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .promotions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .promotions-title {
    font-size: 40px;
  }
}

@media (max-width: 899px) {
  .promotions-title {
    font-size: 28px;
  }

  .promotions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .promotion-card__title {
    font-size: 24px;
  }

  .promotion-card__description {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .promotions-container {
    padding: 0 20px;
  }
  
  .promotions-categories {
    gap: 8px;
  }

  .category-filter {
    padding: 8px 12px;
  }

  .category-filter__icon {
    width: 40px;
    height: 40px;
  }

  .category-filter__name {
    font-size: 12px;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promotion-card__image {
    min-height: 160px;
  }

  .promotion-card__content {
    padding: 16px;
  }

  .promotion-card__title {
    font-size: 18px;
  }

  .promotion-card__description {
    font-size: 14px;
  }

  .promotion-card__arrow {
    width: 36px;
    height: 36px;
    bottom: 16px;
    right: 16px;
  }
}
