/* CAFFE DELIZIA – sloucene CSS z HEAD zalohy 2026-11-05. */
/* Zachovano poradi puvodnich stylu; soubor recenzi pripojen na konci. */

/* ---- puvodni CSS blok 1 ---- */
/* CAFFE DELIZIA – logo a hlavni banner na PC */
@media (min-width:992px) {
  #header { position:relative; }
  #header .site-name {
    position:absolute!important;top:12px;left:28px;
    width:220px!important;margin:0!important;z-index:5;
  }
  #header .site-name img {
    width:220px!important;max-width:100%!important;
    max-height:110px!important;height:auto!important;object-fit:contain;
  }
  #header .header-top {min-height:110px;}
  .carousel .extended-banner-texts {
    background:rgba(34,33,32,.94)!important;color:#fff!important;
    width:440px!important;max-width:45%!important;
    height:auto!important;min-height:0!important;
    padding:32px!important;border-radius:12px!important;
    box-sizing:border-box;top:50%!important;
    bottom:auto!important;transform:translateY(-50%)!important;
  }
  .carousel .extended-banner-title,
  .carousel .extended-banner-text {color:#fff!important;}
}

/* CAFFE DELIZIA – vyber kavy na uvodni strance */
.cd-guide {
  max-width:1200px;margin:42px auto;padding:0 16px;
  box-sizing:border-box;text-align:center;
}
.cd-guide h2 {
  font-size:30px;font-weight:600;margin:0 0 8px;color:#222120;
}
.cd-guide-intro {color:#665c54;margin-bottom:26px;}
.cd-guide-grid {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
}
.cd-guide-grid .cd-tile {
  display:flex;flex-direction:column;align-items:flex-start;
  gap:12px;min-height:205px;padding:22px;border-radius:12px;
  box-sizing:border-box;text-align:left;text-decoration:none!important;
  transition:transform .2s ease;
}
.cd-guide-grid .cd-tile:hover {transform:translateY(-4px);}
.cd-tile .cd-tag {font-size:11px;letter-spacing:1px;font-weight:700;}
.cd-tile strong {font-size:19px;line-height:1.3;}
.cd-tile > span:not(.cd-tag):not(.cd-arrow) {
  font-size:13px;line-height:1.5;
}
.cd-tile .cd-arrow {margin-top:auto;font-size:13px;font-weight:700;}
.cd-guide-grid .cd-espresso {background:#33271f;color:#fff!important;}
.cd-guide-grid .cd-jemna {background:#eae4da;color:#33271f!important;}
.cd-guide-grid .cd-ovocna {background:#747d48;color:#fff!important;}
.cd-guide-grid .cd-silna {background:#b9774c;color:#fff!important;}
@media (max-width:991px) {
  .cd-guide-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:580px) {
  .cd-guide h2 {font-size:25px;}
  .cd-guide-grid {grid-template-columns:1fr;gap:12px;}
  .cd-guide-grid .cd-tile {min-height:145px;padding:20px;}
}

/* CAFFE DELIZIA – vycentrovani nadpisu na uvodni strance */
#content [data-testid="eshopHeader"] {
  display:block!important;width:100%!important;max-width:none!important;
  margin-left:auto!important;margin-right:auto!important;
  text-align:center!important;box-sizing:border-box;
}

/* CAFFE DELIZIA – text pres mobilni banner */
@media (max-width:767px) {
  body.in-index .carousel .extended-banner-texts {
    position:relative!important;z-index:5!important;
    margin:-220px 12px 16px!important;padding:18px 16px!important;
    width:calc(100% - 24px)!important;box-sizing:border-box;
    background:rgba(35,30,26,.88)!important;
    border-radius:10px!important;text-align:left!important;
  }
  body.in-index .carousel .extended-banner-title {
    color:#fff!important;font-size:24px!important;
    line-height:1.2!important;margin-bottom:10px!important;
  }
  body.in-index .carousel .extended-banner-text {
    color:#fff!important;font-size:14px!important;
    line-height:1.5!important;margin-bottom:16px!important;
  }
}

/* CAFFE DELIZIA – podkategorie: 3 karty nahore, 2 dole */
@media (min-width:768px) {
  body.type-category .subcategories.with-image {
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:16px!important;align-items:stretch!important;
  }
  body.type-category .subcategories.with-image > li {
    grid-column:span 2;width:100%!important;max-width:none!important;
    min-width:0!important;margin:0!important;padding:0!important;
    flex:none!important;
  }
  body.type-category .subcategories.with-image
  > li:nth-child(4):nth-last-child(2) {grid-column:2/span 2;}
  body.type-category .subcategories.with-image
  > li:nth-child(5):last-child {grid-column:4/span 2;}

  body.type-category .subcategories.with-image > li > a {
    display:flex!important;position:relative!important;
    align-items:center!important;justify-content:flex-start!important;
    gap:8px!important;width:100%!important;min-height:110px!important;
    padding:16px 34px 16px 14px!important;box-sizing:border-box!important;
    border:1px solid #dedbd4!important;border-radius:12px!important;
    background:#fff!important;white-space:normal!important;
  }
  body.type-category .subcategories.with-image .image {
    position:static!important;transform:none!important;
    flex:0 0 56px!important;width:56px!important;
    min-width:56px!important;height:56px!important;
    margin:0!important;flex-shrink:0!important;
  }
  body.type-category .subcategories.with-image img {
    width:56px!important;height:56px!important;
    max-width:none!important;object-fit:contain!important;
    transform:scale(1.5)!important;transform-origin:center!important;
  }
  body.type-category .subcategories.with-image .text {
    position:static!important;left:auto!important;top:auto!important;
    right:auto!important;transform:none!important;
    flex:1 1 auto!important;width:auto!important;min-width:0!important;
    max-width:none!important;margin:0!important;padding:0!important;
    font-size:17px!important;font-weight:600!important;
    line-height:1.3!important;text-align:center!important;
    white-space:normal!important;overflow:visible!important;
    text-overflow:clip!important;
  }
  body.type-category .subcategories.with-image > li > a:hover {
    background:#f3f0e9!important;border-color:#727b45!important;
  }
}

/* ---- puvodni CSS blok 2 ---- */
/* Caffe Delizia – informacni prouzek */
@media (min-width:992px) {
  .cd-top-strip {
    background:#eee9df;
    color:#654d36;
    padding:9px 16px;
    text-align:center;
    font-size:12px;
    font-weight:600;
    letter-spacing:.06em;
    line-height:1.5;
  }
  .cd-top-strip b {
    color:#727b45;
    padding:0 15px;
  }
}
@media (max-width:991px) {
  .cd-top-strip {display:none!important}
}

/* ---- puvodni CSS blok 3 ---- */
/* Caffe Delizia - kompaktni hlavicka */
@media(min-width:992px){
#header .header-top,
#header .header-top-wrapper{
min-height:0!important;
height:auto!important;
}
#header .header-top-wrapper{
padding-top:6px!important;
padding-bottom:0!important;
}
#header .site-name img{
max-width:170px!important;
max-height:85px!important;
width:auto!important;
height:auto!important;
}
#header .header-bottom-wrapper{
padding-bottom:4px!important;
}
}

/* ---- Hodnoceni produktu – puvodni externi soubor ---- */
/* Caffe Delizia — Samba: Posledni hodnoceni (desktop 4 / tablet 2) */
@media (min-width: 768px) {
  .latest-contribution-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
    align-items: stretch;
  }
  .latest-contribution-wrapper > .latest-contribution {
    display: contents !important;
  }
  .latest-contribution-wrapper > .latest-contribution > h2:not(.latest-contribution-placeholder) {
    grid-column: 1 / -1;
    text-align: center;
  }
  .latest-contribution-wrapper .latest-contribution-placeholder {
    display: none !important;
  }
  .latest-contribution-wrapper .latest-contribution-inner {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e6e0d6;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
  }
  .latest-contribution-wrapper .latest-contribution-content {
    min-width: 0;
    width: 100%;
  }
  .latest-contribution-wrapper .latest-contribution-info {
    text-align: center;
  }
  .latest-contribution-wrapper .latest-contribution-info i {
    display: none;
  }
  .latest-contribution-wrapper .latest-contribution-description {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 992px) {
  .latest-contribution-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Caffe Delizia - mensi desktopovy uvodni banner, 2026-11-11 */
@media (min-width: 992px) {
  body.in-index .carousel {
    width: calc(100% - 64px) !important;
    max-width: 1200px !important;
    margin: 22px auto 34px !important;
  }
}

/* CAFFE DELIZIA - STRANKA AKCE */
.cd-akce {
  max-width:920px;
  margin:0 auto 45px;
  color:#302a25;
}
.cd-akce-intro {
  font-size:17px;
  line-height:1.6;
  text-align:center;
  margin:0 0 28px;
}
.cd-akce-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:14px;
  margin-bottom:24px;
}
.cd-akce-card {
  background:#f7f5f1;
  border:1px solid #e4dfd6;
  border-radius:12px;
  padding:26px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
}
.cd-akce-card strong {
  color:#727b45;
  font-size:42px;
  line-height:1.1;
}
.cd-akce-card span {
  font-size:13px;
}
.cd-akce-card b {
  font-size:17px;
}
.cd-akce-note {
  background:#727b45;
  color:white;
  border-radius:10px;
  padding:22px 26px;
  text-align:center;
  line-height:1.7;
  margin-bottom:24px;
}
.cd-akce-info {
  border-bottom:1px solid #e4dfd6;
  padding:12px 4px 18px;
}
.cd-akce-info h3 {
  font-size:19px;
  margin:0 0 10px;
}
.cd-akce-info p {
  margin:0;
  line-height:1.7;
}
