/* ===== Витрина GetCourse Shop ===== */
.gc-shop,
.gc-shop * { box-sizing: border-box; }

.gc-shop {
  max-width: 1200px;
  margin: 0 auto;
  color: #161616;
  line-height: 1.25;
  font-family: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Hero-баннеры (карусель) ---------- */
.gc-shop .gc-banners {
  position: relative;
  width: 100%;
  height: 270px;
  margin: 0 0 28px;
  overflow: hidden;
}
.gc-shop .gc-banner-track {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  will-change: transform;
}
.gc-shop .gc-banner-slide {
  flex: 0 0 auto;
  display: block;
  width: 58%;
  height: 100%;
  border-radius: 16px;
  background-color: #f5f7fa;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .gc-shop .gc-banners { height: 200px; }
  .gc-shop .gc-banner-slide { width: 70%; }
}

/* ---------- Фильтры ---------- */
.gc-shop .gc-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.gc-shop .gc-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gc-shop .gc-tab {
  padding: 11px 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  color: #161616;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.gc-shop .gc-tab:hover { border-color: #003cf6; color: #003cf6; }
.gc-shop .gc-tab-active { background: #003cf6; border-color: #003cf6; color: #fff; }
.gc-shop .gc-tab-active:hover { background: #161616; border-color: #161616; color: #fff; }

.gc-shop .gc-filter-panel {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Базовые поля — бесшовные: белый, как фон, с тонкой рамкой */
.gc-shop .gc-search,
.gc-shop .gc-sort .gc-sort-toggle,
.gc-shop .gc-dropdown .gc-dropdown-toggle {
  height: 46px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gc-shop .gc-search:focus-within,
.gc-shop .gc-sort .gc-sort-toggle:hover,
.gc-shop .gc-dropdown .gc-dropdown-toggle:hover,
.gc-shop .gc-sort.gc-open .gc-sort-toggle,
.gc-shop .gc-dropdown.gc-open .gc-dropdown-toggle {
  border-color: #003cf6;
  box-shadow: 0 0 0 3px rgba(0, 60, 246, 0.08);
}

/* Поиск */
.gc-shop .gc-search {
  overflow: hidden;
  flex: 1 1 260px;
  min-width: 260px;
}
.gc-shop .gc-search-input {
  padding: 0 16px;
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-family: "Geologica", sans-serif;
  font-weight: 200;
  font-size: 15px;
  line-height: 1.2;
  color: #161616;
  outline: none;
}
.gc-shop .gc-search-btn {
  padding: 0 16px 0 4px;
  height: 100%;
  color: #003cf6;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  font-family: "Geologica", sans-serif;
}

/* Сортировка (кастомный дропдаун) */
.gc-shop .gc-sort { position: relative; display: inline-block; }
.gc-shop .gc-sort-toggle {
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #161616;
  white-space: nowrap;
}
.gc-shop .gc-sort-value { color: #161616; }
.gc-shop .gc-arrow {
  font-size: 11px;
  color: #6b7484;
  transition: transform 0.25s ease;
}
.gc-shop .gc-sort.gc-open .gc-arrow,
.gc-shop .gc-dropdown.gc-open .gc-arrow { transform: rotate(180deg); }

/* Диапазон цены */
.gc-shop .gc-price {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 0 6px 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gc-shop .gc-price:focus-within {
  border-color: #003cf6;
  box-shadow: 0 0 0 3px rgba(0, 60, 246, 0.08);
}
.gc-shop .gc-price-input {
  width: 84px;
  border: none;
  background: transparent;
  font-family: "Geologica", sans-serif;
  font-weight: 200;
  font-size: 15px;
  color: #161616;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}
.gc-shop .gc-price-input::-webkit-outer-spin-button,
.gc-shop .gc-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gc-shop .gc-price-sep { color: #9aa1ac; font-size: 15px; }

/* Дропдаун хештегов (кастомный) */
.gc-shop .gc-dropdown { position: relative; display: inline-block; }
.gc-shop .gc-dropdown-toggle {
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #161616;
  white-space: nowrap;
}

/* Меню дропдаунов (общее) */
.gc-shop .gc-sort-menu,
.gc-shop .gc-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 22, 22, 0.10);
  z-index: 1000;
  overflow: hidden;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.gc-shop .gc-sort.gc-open .gc-sort-menu,
.gc-shop .gc-dropdown.gc-open .gc-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gc-shop .gc-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #161616;
  transition: background 0.15s, color 0.15s;
}
.gc-shop .gc-sort-option:hover { background: #f3f4f5; }
.gc-shop .gc-sort-option-active { color: #003cf6; font-weight: 500; }

.gc-shop .gc-tag-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.gc-shop .gc-tag-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #161616;
  transition: background 0.15s, color 0.15s;
}
.gc-shop .gc-tag-option:hover { background: #f3f4f5; }
.gc-shop .gc-tag-option-active { color: #003cf6; font-weight: 500; background: #f5f7ff; }

/* ---------- Сетка товаров ---------- */
.gc-shop .gc-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  margin: 28px 0;
}
.gc-shop .gc-more-sentinel { min-height: 1px; }
.gc-shop .gc-more-sentinel .gc-empty { grid-column: auto; text-align: center; }
.gc-shop .gc-empty { color: #6b7484; padding: 24px; text-align: center; grid-column: 1 / -1; }

/* Пока применяется фильтр, старые карточки остаются на месте и слегка затемняются,
   чтобы сетка не схлопывалась и страница не «прыгала» */
.gc-shop .gc-products.gc-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.gc-shop .gc-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #161616;
  cursor: pointer;
}

/* Вертикальная обложка */
.gc-shop .gc-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.gc-shop .gc-card-image .gc-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gc-shop .gc-card:hover .gc-card-image .gc-card-cover-img { transform: scale(1.04); }
.gc-shop .gc-card-emoji { font-size: 64px; opacity: 0.2; }

/* Слайдер скриншотов в карточке */
.gc-shop .gc-card-slider .gc-slides {
  position: absolute;
  inset: 0;
}
.gc-shop .gc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gc-shop .gc-slide.gc-slide-active { opacity: 1; }
.gc-shop .gc-card-slider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 2;
}
.gc-shop .gc-slider-bullets {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.gc-shop .gc-bullet {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.gc-shop .gc-bullet-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

/* Хештеги: кнопка-кружок + выпадающий список */
.gc-shop .gc-hashtags {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.gc-shop .gc-hashtag-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: "Geologica", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.gc-shop .gc-hashtag-menu {
  position: absolute;
  top: 32px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
  z-index: 6;
}
.gc-shop .gc-hashtags:hover .gc-hashtag-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.gc-shop .gc-hashtag-item {
  font-family: "Geologica", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gc-shop .gc-hashtags:hover .gc-hashtag-item {
  opacity: 1;
  transform: translateY(0);
}
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(1) { transition-delay: 0.03s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(2) { transition-delay: 0.07s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(3) { transition-delay: 0.11s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(4) { transition-delay: 0.15s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(5) { transition-delay: 0.19s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(6) { transition-delay: 0.23s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(7) { transition-delay: 0.27s; }
.gc-shop .gc-hashtags:hover .gc-hashtag-item:nth-child(8) { transition-delay: 0.31s; }

.gc-shop .gc-card-content {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
}
.gc-shop .gc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.gc-shop .gc-card-title {
  margin: 0 0 6px;
  font-family: "Geologica", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: #161616;
}
.gc-shop .gc-card-category {
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.2;
  color: #6b7484;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gc-shop .gc-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.gc-shop .gc-price-old {
  font-family: "Geologica", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: line-through;
  color: rgba(0,0,0,0.30);
}
.gc-shop .gc-price-current {
  font-family: "Geologica", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: #003cf6;
}

/* ---------- Контент Editor.js (для страницы товара) ---------- */
.gc-shop .gc-content p { margin: 6px 0; }
.gc-shop .gc-content h2, .gc-shop .gc-content h3, .gc-shop .gc-content h4 { margin: 12px 0 6px; }
.gc-shop .gc-content ul, .gc-shop .gc-content ol { margin: 6px 0 6px 20px; }
.gc-shop .gc-content blockquote {
  margin: 8px 0;
  padding: 8px 14px;
  border-left: 3px solid #003cf6;
  background: #f8fafc;
  color: #475569;
}
.gc-shop .gc-content blockquote cite { display: block; margin-top: 6px; font-size: 12px; color: #94a3b8; }
.gc-shop .gc-content pre {
  margin: 8px 0;
  padding: 10px 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
}
.gc-shop .gc-content pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gc-shop .gc-content hr { border: none; border-top: 1px solid #e3e8ee; margin: 12px 0; }
.gc-shop .gc-content .gc-checklist { list-style: none; margin-left: 0; }
.gc-shop .gc-content .gc-checklist li { margin: 3px 0; }

.gc-shop .gc-figure { margin: 10px 0; }
.gc-shop .gc-figure img { max-width: 100%; border-radius: 8px; }
.gc-shop .gc-figure figcaption { font-size: 12px; color: #94a3b8; margin-top: 4px; text-align: center; }

.gc-shop .gc-columns { display: flex; gap: 12px; margin: 10px 0; }
.gc-shop .gc-columns .gc-col { flex: 1; min-width: 0; }

.gc-shop .gc-accordion-item {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  margin: 8px 0;
  overflow: hidden;
}
.gc-shop .gc-accordion-title {
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
}
.gc-shop .gc-accordion-title::before { content: '▸ '; color: #003cf6; }
.gc-shop .gc-accordion-item[open] .gc-accordion-title::before { content: '▾ '; }
.gc-shop .gc-accordion-body { padding: 10px 14px; }

.gc-shop .gc-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  background: #000;
  margin: 8px 0;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 992px) {
  .gc-shop .gc-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gc-shop .gc-products { grid-template-columns: 1fr; }
  .gc-shop .gc-filter-panel { flex-direction: column; align-items: stretch; }
  .gc-shop .gc-search { min-width: 0; flex-basis: auto; }
  .gc-shop .gc-price { justify-content: center; }
  .gc-shop .gc-price-input { flex: 1; width: auto; }
  .gc-shop .gc-sort-menu,
  .gc-shop .gc-dropdown-menu { left: 0; right: auto; min-width: 0; width: 100%; }
}

/* ---------- Бейдж «на проверке» на карточке товара ---------- */
.gc-shop .gc-card-review {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef9c3;
  color: #854d0e;
  font-family: "Geologica", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
