/* =========================
   HOMEPAGE – KAMENY (SEO landingy)
   ========================= */

.home-stones{ padding:0px 0; }
.home-stones .section-header{ margin-bottom:12px; }
.home-stones .stones-intro{ opacity:.75; margin:6px 0 0 0; }

.stones-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
}
@media (max-width:1100px){
  .stones-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:720px){
  .stones-grid{ grid-template-columns: 1fr; }
}

.stone{
  background:#fff;
  border:1px solid rgba(15, 23, 42, .10); /* lehce tmavší než bg */
  border-radius:14px;
  padding:14px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, .04),
    0 10px 26px rgba(15, 23, 42, .08);
  display:grid;
  grid-template-columns: 80px 1fr;
  gap:12px;
  align-items:start;
}
.stone{ transition: all .12s ease; }
.stone:hover{
  border-color: rgba(15, 23, 42, .16);
  box-shadow:
    0 2px 0 rgba(15, 23, 42, .05),
    0 14px 34px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
  transition: all .12s ease;

}
.stone-media{
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  background: transparent;
  margin: auto 0 auto 0;
}

.stone-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stone-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stones-more{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.stones-more-link{
  font-weight: 600;
  text-decoration: none;
  color: var(--itd-accent-strong);
}

.stones-more-link:hover{
  text-decoration: underline;
}   

/* mobil: když chceš klidně obrázek nad text */
@media (max-width:720px){
  .stone{
    grid-template-columns: 1fr;
  }
  .stone-media{
    width: 100%;
    height: 120px;
    border-radius: 14px;
  }
}

.stone-head{
  display:flex;
  align-items:center;
  gap:0;
}



.stone h3{
  margin:0;
  font-size:15px;
  font-weight:700;
}

.stone p{
  margin:0;
  font-size:13px;
  opacity:.75;
}



/* =========================
   HOMEPAGE – DOPORUČENÉ PRODUKTY
   =========================
   ✅ Produkty na homepage se renderují přes KATALOG markup:
      .catalog-list.catalog-list--grid + .catalog-row + .row-img + .row-btn...
   ✅ Tím pádem NEPOTŘEBUJEŠ:
      .home-catalog-grid, .home-product-card, .product-*, .product-cta atd.
   ❌ Tyhle staré home styly SMAŽ.
*/

/* homepage – katalog grid v 5 sloupcích (jen homepage) */
.page--home .home-catalog-grid--5.catalog-list--grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1400px){
  .page--home .home-catalog-grid--5.catalog-list--grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .page--home .home-catalog-grid--5.catalog-list--grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .page--home .home-catalog-grid--5.catalog-list--grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .page--home .home-catalog-grid--5.catalog-list--grid{ grid-template-columns: 1fr; }
}

/* =========================
   HOMEPAGE – sjednocení CTA s katalogem
   ========================= */
/* HOMEPAGE – row-btn jako v katalogu (na tvrdo) */
.page--home a.row-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  border-radius: 8px;
  font-weight: 600;

  border: 1px solid var(--itd-accent-strong);
  background: var(--itd-accent-strong);
  color: #fff;
}

.page--home a.row-btn:hover{
  background: var(--itd-accent-strong-hover);
  border-color: var(--itd-accent-strong-hover);
}
/* stejné tlačítko jako katalog (page--catalog), ale pro homepage */
.page--home .row-btn{
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  min-width: 120px;

  font-size: 12px;
  line-height: 1;
  white-space: nowrap;

  border: 1px solid var(--itd-accent-strong);
  background: var(--itd-accent-strong);
  color: #fff;
  box-sizing: border-box;
}
.page--home .row-btn:hover{
  background: var(--itd-accent-strong-hover);
  border-color: var(--itd-accent-strong-hover);
}

/* homepage grid (katalogový grid) – stejné jako v katalogu */
.page--home .catalog-list--grid .row-add{
  width: 100%;
  gap: 8px;
}
.page--home .catalog-list--grid .row-qty{
  width: 52px;
  height: 34px;
}
.page--home .catalog-list--grid .row-btn{
  flex: 1;
  height: 34px;
  padding: 0 10px;
  min-width: 0; /* aby se to chovalo stejně v gridu */
}

/* HOMEPAGE – KAMENY: CTA jako katalog */
.page--home .stone-cta{
  margin-top: auto;
  align-self: flex-end;
}

/* použij katalogový button */
.page--home .stone-cta.row-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

/* =========================
   HOMEPAGE – ZNAČKY (BUBLINY)
   ========================= */

.brands-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0 0;
}

/* samotná bublina */
.brand-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;              /* ⬅️ větší */
  font-size: 14px;                 /* ⬅️ větší text */
  font-weight: 600;

  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  color: #111;
  text-decoration: none;

  line-height: 1;
  white-space: nowrap;

  transition: all .12s ease;
}

.brand-pill:hover{
  border-color: var(--itd-accent-strong);
  background: rgba(0,160,160,.06);
  color: var(--itd-accent-strong);
  transform: translateY(-1px);
}
/* TOP 10 značek – zvýraznění */
.brand-pill.is-top{
  background: rgba(0,160,160,.10);
  border-color: rgba(0,160,160,.45);
  color: var(--itd-accent-strong);
  font-weight: 600;
}

.brand-pill.is-top:hover{
  background: rgba(0,160,160,.16);
  border-color: var(--itd-accent-strong);
}

/* mobil */
@media (max-width: 720px){
  .brand-pill{
    padding: 9px 14px;
    font-size: 13px;
  }
}

.page--home .home-catalog .content-wide{ padding-bottom: 12px; }
.page--home .home-brands  .content-wide{ padding-top: 12px; }

/* kdyby to dělaly marginy v headeru */
.page--home .home-catalog .section-header{ margin-bottom: 10px; }
.page--home .home-brands h2{ margin-top: 0; }
.page--home .home-brands .brands-row{ margin-top: 10px; }



/* =========================================================
   HOME: stones-head + akce (Moje poptávka / Košík)
   - layout: vlevo header, vpravo actions
   - actions: sticky v rámci sekce + po scrollu přepne na fixed
   ========================================================= */

.home-stones .stones-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  position:relative;
}

.home-stones .stones-head .section-header{
  flex:1;
  min-width:0;
}

/* --- actions base --- */
.home-stones .stones-head .catalog-top-actions{
  margin-left:auto;
  display:flex;
  gap:10px;
  flex-shrink:0;
  align-self:flex-start;

  /* sticky drží jen v rámci sekce (fallback / první fáze) */
  position: sticky;
  top: 14px;                 /* uprav podle headeru */
  z-index: 950;

  /* aby to nevypadalo useknutě */

  padding:10px 8px;
  border-radius: 14px;
}

/* --- když JS přepne na fixed, drží už přes celou stránku --- */
body.home-actions-fixed .home-stones .stones-head .catalog-top-actions{
  position: fixed;
  top: 14px;                 /* stejné jako sticky */
  right: 24px;               /* drž vpravo v okně */
  z-index: 1200;
}

/* Volitelně: ať to nelítá moc k okraji na širokých monitorech */
@media (min-width: 1400px){
  body.home-actions-fixed .home-stones .stones-head .catalog-top-actions{
    right: 32px;
  }
}

/* --- mobil --- */
@media (max-width: 768px){
  .home-stones .stones-head{
    flex-direction:column;
    align-items:stretch;
  }

  .home-stones .stones-head .catalog-top-actions{
    justify-content:flex-end;
    margin-left:0;
    top: 10px;
    padding:10px 8px;
  }

  body.home-actions-fixed .home-stones .stones-head .catalog-top-actions{
    right: 12px;
    left: 12px;              /* na mobilu radši přes šířku */
    width: auto;
    justify-content:flex-end;
  }
}

/* tlacitka */
/* --- CTA overrides (dej úplně na konec) --- */

/* RFQ (DO POPTÁVKY) */
.row-add--rfq .row-btn{
  background: var(--itd-accent-strong);
  border-color: var(--itd-accent-strong);
  color:#fff;
}
.row-add--rfq .row-btn:hover{
  background: var(--itd-accent-strong-hover);
  border-color: var(--itd-accent-strong-hover);
  color:#fff;
}

/* B2C (KOUPIT) – světlejší jiná barva */
.row-add--b2c .row-btn{
  background:#D6F7F8;
  border-color: rgba(0,0,0,.18);
  color: var(--itd-accent-strong);
}
.row-add--b2c .row-btn:hover{
  background: var(--itd-accent-strong);
  border-color: var(--itd-accent-strong);
  color:#fff;
}