/* =========================================================
   CryptoEshop – Kategorie: Piercing & doplňky (CLEAN)
   Účel:
   - Zachovat Shoptet zarovnání (NEpřepisuje osu/containery)
   - Přidat "hezký vizuál" boxu s popisem + CTA tlačítka
   - Sjednotit font nadpisu "Vyberte si vhodnou podkategorii" s H1
   ========================================================= */

/* =========================================================
   0) Bezpečný drobný spacing (neřeší osu)
   ========================================================= */
.type-category h1{
  margin-top: 20px !important; /* jemně větší odstup od menu */
}

/* =========================================================
   1) Layout: text vlevo (box), CTA vpravo
   ========================================================= */
.category-description-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin: 0 0 14px;
}

/* Box s textem */
.category-description-wrap .category-text{
  flex: 0 0 70%;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(250,166,3,0.22);
  border-radius: 14px;
  padding: 18px 18px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  box-sizing:border-box;
}

.category-description-wrap .category-text p{
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

/* CTA sloupec (desktop) */
.category-description-wrap .category-article{
  flex: 0 0 30%;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:flex-start;
}

/* CTA v textu (mobil) – default skryté */
.category-description-wrap .category-article-mobile{ display:none; }

/* CTA tlačítka */
.category-description-wrap .article-link{
  background:#000;
  border:2px solid #faa603;
  color:#fff;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 15px;
  min-height:66px;
  width:100%;
  transition:transform .2s ease, box-shadow .2s ease;
}
.category-description-wrap .article-link:hover{
  transform:scale(1.03);
  box-shadow:0 0 10px rgba(250,166,3,0.4);
}
.category-description-wrap .article-link img{ width:24px;height:24px;display:block; }
.category-description-wrap .article-link span{ font-weight:600;text-align:center; }

/* =========================================================
   2) Nadpis nad podkategoriemi – stejné písmo jako H1
   ========================================================= */
.category-subtitle{
  font-family: "Teko", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin: 16px 0 12px !important;
}

/* Oprava velké mezery mezi boxem a H2 (když ji dělá margin posledního <p>) */
.category-description-wrap{ margin-bottom: 0 !important; }
.category-description-wrap .category-text p:last-child{ margin-bottom: 0 !important; }

/* =========================================================
   3) Mobilní layout
   ========================================================= */
@media (max-width: 767px){
  .category-description-wrap{
    flex-direction:column;
    gap:0;
  }

  /* desktop CTA schovat */
  .category-description-wrap .category-article{ display:none; }

  /* mobil CTA uprostřed textu povolit */
  .category-description-wrap .category-article-mobile{
    display:flex;
    align-items:center;
    justify-content:center;
    margin:15px 0;
  }

  .category-description-wrap .category-text{
    padding:16px 14px 6px;
  }
  .category-description-wrap .category-text p{
    font-size: 15px;
  }
}
/* === PATCH: větší odsazení "Vyberte si..." od horního boxu === */
.type-category .category-subtitle{
  margin-top: 34px !important;   /* zvedni/sniž dle chuti (28–42px) */
  margin-bottom: 14px !important;
}
/* drží stejnou levou osu jako ostatní bloky v kategorii */
.type-category .category-subtitle{
  padding-left: var(--cc-cat-pad-d) !important;
  padding-right: var(--cc-cat-pad-d) !important;
  box-sizing: border-box;
}
/* =========================================================
   FINAL SPACING FIX – mezera mezi popisem a dlaždicemi
   Cíl: stejná vertikální mezera jako u filtrační lišty
   ========================================================= */

/* Nadpis „Vyberte si vhodnou podkategorii“ */
.type-category .category-subtitle{
  margin-top: 48px !important;   /* stejný rytmus jako filtry */
  margin-bottom: 20px !important;
}

/* pojistka – když je h2 generované Shoptetem */
.type-category .category-content > h2{
  margin-top: 48px !important;
  margin-bottom: 20px !important;
}
/* MOBILE – jemné odsazení H1 od breadcrumb navigace */
@media (max-width: 767px) {
  .type-category h1,
  .type-category .category-title h1,
  .type-category .category-header h1,
  .type-category .category-top h1 {
    margin-top: 15px !important;
  }
}
/* MOBILE – zmenšení mezery mezi H1 a textem kategorie */
@media (max-width: 767px) {
  .type-category .category-description-wrap {
    margin-top: 12px !important;
  }
}