/* ================================================================
   HomeCategoryCarousel – Embla + Theme Miniature
   ================================================================ */

.hcc-section *:focus,
.hcc-section *:focus-visible,
.hcc-section *:active {
  outline: none !important;
  box-shadow: none !important;
}

.hcc-section {
  width: 100%;
  font-family: inherit;
  margin-bottom:48px !important;
}

/* ── Nagłówek ── */
.hcc-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 16px;
}

.hcc-tabs {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  border: none;
  background: none;
  padding: 0;
}

.hcc-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
  outline: none !important;
}

.hcc-tab:hover  { color: #555; }
.hcc-tab.active { color: #1a1a1a; font-weight: 700; }

/* ── Subtitle ── */
.hcc-subtitles       { min-height: 22px; margin-bottom: 20px; }
.hcc-subtitle        { display: none; font-size: 0.875rem; color: #888; margin: 0; }
.hcc-subtitle.active { display: block; }

/* ── Filter bar ── */
.hcc-filterbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 24px;
}

.hcc-filter-pill {
  border: 1.5px solid #d0d0d0;
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  outline: none !important;
}

.hcc-filter-pill:hover     { border-color: #1a1a1a; color: #1a1a1a; }
.hcc-filter-pill.active    { background: #1a1a1a; border-color: #1a1a1a; color: #fff; font-weight: 500; }
.hcc-filter-pill.is-static { cursor: default; pointer-events: none; }

/* ── Panels ── */
.hcc-tab-panel        { display: none; }
.hcc-tab-panel.active { display: block; }

/* ── Panel inner ── */
.hcc-panel-inner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ── Kafelek "Zobacz wszystkie" ── */
.hcc-tile-all {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 22px;
  border: solid 1px grey;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  margin-right: 16px;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none !important;
  position: relative;
  z-index: 2;
}

.hcc-tile-all:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}

.hcc-tile-all__pre   { font-size: 1rem; color: #888; line-height: 1.4; margin-bottom: 6px; display: block; }
.hcc-tile-all__title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: 24px; display: block; }
.hcc-tile-all__cta   { font-size: 1rem; color: #444; font-style: italic; }

/* ── Carousel wrap ── */
.hcc-carousel-wrap {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  justify-content: space-between
}

/* ══════════════════════════════════════════════
   EMBLA
   ══════════════════════════════════════════════ */

.hcc-embla {
  overflow: hidden;
}

.hcc-embla__container {
  display: flex;
}

/* ── Slide sizing ── */
.hcc-embla__slide {
  flex: 0 0 25%;
  min-width: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Make theme miniature fit inside carousel slide */
.hcc-embla__slide .product-miniature {
  width: 100%;
  margin: 0;
}

/* ── Progress bar ── */
.hcc-progress-wrap {
  padding: 20px 0 0;
}

.hcc-progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.hcc-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: left 0.35s ease, width 0.35s ease;
  width: 30%;
}

/* ── Loader ── */
.hcc-loader-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.hcc-loader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hcc-loader span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  animation: hccBounce 1.2s infinite ease-in-out;
}

.hcc-loader span:nth-child(2) { animation-delay: 0.2s; }
.hcc-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hccBounce {
  0%,80%,100% { transform: scale(0.7); opacity: 0.5; }
  40%         { transform: scale(1);   opacity: 1; }
}

.hcc-empty-item {
  color: #aaa;
  font-size: 0.875rem;
  padding: 60px 24px;
  text-align: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
  .hcc-tile-all { flex: 0 0 190px; width: 190px; padding: 22px 18px; }
  .hcc-tile-all__title { font-size: 1.3rem; }
}

@media (max-width: 1024px) {
  .hcc-tile-all { flex: 0 0 170px; width: 170px; padding: 20px 16px; }
  .hcc-tile-all__title { font-size: 1.2rem; }
  .hcc-tab { font-size: 1.4rem; }
  .hcc-panel-inner { padding-left: 16px; }
  .hcc-embla__slide { flex: 0 0 33.333%; }
}

@media (max-width: 900px) {
  .hcc-section { padding: 36px 0 28px; }
  .hcc-tile-all { flex: 0 0 150px; width: 150px; padding: 18px 14px; }
  .hcc-tile-all__pre { font-size: 0.82rem; }
  .hcc-tile-all__title { font-size: 1.1rem; margin-bottom: 16px; }
  .hcc-tile-all__cta { font-size: 0.88rem; }
  .hcc-tab { font-size: 1.25rem; }
  .hcc-tabs { gap: 18px; }
  .hcc-filter-pill { padding: 6px 16px; font-size: 0.82rem; }
}

@media (max-width: 768px) {
  .hcc-section { padding: 28px 0 20px; }

  .hcc-panel-inner {
    flex-direction: column !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .hcc-tile-all {
    width: calc(100% - 32px);
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    margin: 0 16px 16px;
    flex: none;
    border-radius: 10px;
  }

  .hcc-tile-all__pre { font-size: 0.78rem; margin-bottom: 2px; }
  .hcc-tile-all__title { font-size: 1.05rem; margin-bottom: 0; }
  .hcc-tile-all__cta { margin-left: auto; white-space: nowrap; font-size: 0.88rem; }

  .hcc-carousel-wrap {
    margin-left: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 !important;
    flex: none !important;
  }

  .hcc-progress-wrap { padding: 16px 16px 0; }
  .hcc-tab { font-size: 1.15rem; }
  .hcc-tabs { gap: 16px; }
  .hcc-filterbar { padding: 0 12px; gap: 6px; }
  .hcc-filter-pill { padding: 6px 14px; font-size: 0.8rem; }

  .hcc-embla__slide { flex: 0 0 50%; }

  .hcc-filterbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-direction: row;
  }
  .hcc-filterbar::-webkit-scrollbar {
    display: none;
  }
  .hcc-filterbar .hcc-filter-pill {
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .hcc-tabs { gap: 12px; }
  .hcc-tab { font-size: 1rem; }
  .hcc-tile-all { padding: 14px 16px; }
  .hcc-tile-all__title { font-size: 0.95rem; }
  .hcc-filterbar { gap: 5px; }
  .hcc-filter-pill { padding: 5px 12px; font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .hcc-section { padding: 20px 0 16px; }
  .hcc-tabs { gap: 10px; }
  .hcc-tab { font-size: 0.95rem; }
  .hcc-subtitles { margin-bottom: 14px; }
  .hcc-subtitle { font-size: 0.8rem; }

  .hcc-tile-all {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .hcc-tile-all__pre { display: none; }
  .hcc-tile-all__title { font-size: 0.9rem; }
  .hcc-tile-all__cta { font-size: 0.82rem; }
  .hcc-progress-wrap { padding: 10px 12px 0; }
  .hcc-filterbar { padding: 0 8px; margin-bottom: 16px; }
  .hcc-filter-pill { padding: 5px 10px; font-size: 0.74rem; }

  .hcc-embla__slide { flex: 0 0 80%; padding: 0; }
  .hcc-embla__container { padding: 0; }
}

@media (max-width: 360px) {
  .hcc-tab { font-size: 0.85rem; }
  .hcc-tabs { gap: 8px; }
  .hcc-tile-all { width: calc(100% - 16px); margin: 0 8px 10px; }
  .hcc-filter-pill { padding: 4px 9px; font-size: 0.72rem; }
  .hcc-embla__slide { flex: 0 0 80%; }
}
