/*
Theme Name: Divi Child od WPlama.cz
Theme URI: http://www.wplama.cz/divi-child-sablona/
Description: Divi child šablona od WPlama. Obsahuje vylepšení překladu, přepřipravené styly a další rozšíření výchozích funkcí.
Author: <a href="http://www.wplama.cz/">WPlama.cz</a>
Author URI: http://www.wplama.cz/divi-child-sablona/
Template: Divi
Version: 1.21.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 
*/


/*------------------------------------*\
    MAIN
\*------------------------------------*/



/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/



/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

#obchodni-podminky ol { counter-reset: item }
#obchodni-podminky li{ display: block }
#obchodni-podminky li:before { content: counters(item, ".") " "; counter-increment: item }


/*------------------------------------*\
	WOOCOMMERCE
\*------------------------------------*/

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 52px;
}

.select2-container .select2-selection--single {
    height: 52px;   
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px;
}

#order_review_heading {
    margin-top: 35px;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:981px) {

 
}

@media only screen and (max-width:980px) {

 
}

@media only screen and (max-width:767px) {

}

@media only screen and (min-width:981px) {

 
}


/*------------------------------------*\
    MISC
\*------------------------------------*/

/* =============================================
   Reference – stránka archivu s filtrem (bez Isotope)
   Nahrazuje celý blok od „Reference — stránka archivu"
   po @media (max-width: 600px) včetně.
   .pixel-reveal pod ním NECHAT beze změny.
   ============================================= */

.ref-archive-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filtr */
.ref-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ftag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    border: none;
    font-family: inherit;
}

.ftag-active {
    background: #2a1e1c;
    color: #fcfaf7;
}

.ftag-default {
    background: transparent;
    border: 1px solid #cdc9bf;
    color: #3d3533;
}

.ftag-default:hover {
    border-color: #2a1e1c;
    color: #2a1e1c;
}

.ftag:focus-visible {
    outline: 2px solid #2a1e1c;
    outline-offset: 2px;
}

/* Grid – karty v jednom řádku mají stejnou výšku */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, calc((100% - 48px) / 3));
    gap: 24px;
    align-items: stretch;
}

/* Karta – komponenta klikací karta */
.ref-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    background-color: #f4f2ef;
    border: 1px solid #d4d1cc;
    border-radius: 8px;
    padding: 20px;
    transition: transform .25s ease, border-color .25s ease;
}

.ref-card:hover,
.ref-card:focus-within {
    transform: translateY(-3px);
    border-color: #8c827e;
}

/* display:flex by jinak přebil atribut hidden z filtru */
.ref-card[hidden] {
    display: none;
}

/* Horní část – avatar + meta */
.ref-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ref-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8e3d9;
}

.ref-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #8c827e;
}

.ref-meta {
    flex: 1;
}

.ref-name {
    font-size: 16px;
    font-weight: 600;
    color: #2a1e1c;
    line-height: 1.3;
}

.ref-position {
    font-size: 13px;
    color: #5c5450;
    margin-top: 2px;
}

/* Odkaz na web klientky – nad překryvem karty, aby zůstal klikatelný */
.ref-firm {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: #801b17;
    text-decoration: underline;
    margin-top: 2px;
    display: inline-block;
    transition: color .25s ease;
}

.ref-firm-plain {
    font-size: 13px;
    color: #5c5450;
    margin-top: 2px;
    display: inline-block;
}

/* Citace – bez šalvějové čáry (karty a čára se vylučují) */
.ref-quote {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    color: #2a1e1c;
    line-height: 1.55;
}

/* Náhled – zkracuje PHP, žádné ořezávání v CSS */
.ref-text {
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #5c5450;
    line-height: 1.7;
}

/* Spodní část – vždycky dole, v jedné linii napříč řádkem */
.ref-bottom {
    display: grid;
    grid-template-columns: calc(50% - 16px) 8px calc(50% - 16px);
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #d4d1cc;
}

.ref-tag {
    justify-self: start;
    font-size: 11px;
    font-weight: 500;
    background: #e8e3d9;
    color: #3d3533;
    padding: 3px 10px;
    border-radius: 3px;
}

/* Čtvereček: šalvějový, u webů červený */
.ref-pixel {
    grid-column: 2;
    justify-self: center;
    width: 7px;
    height: 7px;
    background: #9fb3a2;
    border-radius: 1px;
    display: inline-block;
    flex-shrink: 0;
}

.ref-pixel--web {
    background: #e73a34;
}

.ref-link {
    grid-column: 3;
    justify-self: end;
    text-align: right;
    font-size: 13px;
    color: #801b17;
    text-decoration: underline;
    transition: color .25s ease;
}

/* Hover na červenou – u odkazu i při najetí na celou kartu */
.ref-card:hover .ref-link,
.ref-link:focus-visible,
.ref-firm:hover {
    color: #e73a34;
}

/* Odkaz „Číst celou referenci" pokrývá celou kartu */
.ref-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 8px;
}

/* Responzivní */
@media (max-width: 980px) {
    .ref-grid {
        grid-template-columns: repeat(2, calc((100% - 20px) / 2));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .ref-grid {
        grid-template-columns: 100%;
    }
    .ref-filter {
        gap: 6px;
    }
}

@media (max-width: 767px) {
  /* 1 + 3. Výška řádku u pozice a štítku */
	
  .ref-position { line-height: 1.4; padding-top:15px !important;}
  .ref-tag { line-height: 1.4; margin-bottom:10px;}

  /* 2. Odkaz drží pohromadě se šipkou */
  .ref-link { white-space: nowrap; }
}

@media (max-width: 767px) {
  .ref-bottom {
    grid-template-columns: 100%;
    justify-items: center;
    gap: 8px;
    text-align: center;
	  padding-top: 20px;
	  
  }
  .ref-tag,
  .ref-pixel,
  .ref-link {
    grid-column: 1;
    justify-self: center;
  }
  .ref-link {
    text-align: center;
  }
}


/* Detail reference – fotka vždy jako čtverec */
.ref-foto .et_pb_image_wrap {
    display: block;
    width: 160px;
    height: 160px;
    overflow: hidden;
}







.ref-foto .et_pb_image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/*-----------------*/
.pixel-reveal {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 200ms;
}
.pixel-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Varianta pro čtvereček pod nadpisem (centrovaný) */
.pixel-reveal.from-bottom {
    transform: translateY(8px);
}
.pixel-reveal.from-bottom.visible {
    transform: translateY(0);
}