
/* ===== TQ CATEGORY ===== */

.tq-cat-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:28px;
    margin:40px 0;
}

.tq-cat-card{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:14px;
    padding:18px;
    transition:all .18s ease;
    position:relative;
}

.tq-cat-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
}

.tq-cat-image{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:18px;
    aspect-ratio:1/1;
}

.tq-cat-image img{
    max-width:100%;
    max-height:220px;
    object-fit:contain;
}

/* ===== produkt nadpis H3 ===== */
/* =====    margin:0 0 10px; ===== */

.tq-cat-title{
    font-size:15px !important;
    line-height:1.45 !important;
    margin:0 0 4px;
    min-height:88px;
    font-weight:500 !important;
}

.tq-cat-title a{
    color:#111;
    text-decoration:none;
    font-weight:500 !important;
}

.tq-cat-title a:hover{
    color:#005f00;
}

/* ===== cena ===== */

.tq-cat-price{
    font-size:13px !important;
    font-weight:500 !important;
    line-height:1.4 !important;
    margin-bottom:14px;
}

.tq-cat-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

/* ===== input a tlačítko ===== */

.tq-cat-qty{
    width:64px;
    height:36px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    text-align:center;
    font-size:14px;
}

.tq-cat-qty:focus{
    border-color:#006b00;
    outline:none;
    box-shadow:0 0 0 2px rgba(0,107,0,.12);
}

.tq-cat-btn{
    flex:1;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px !important;
    background:#005f00 !important;
    color:#fff !important;
    border:none !important;
    font-weight:500;
    font-size:14px;

    transition:
        background .2s ease,
        transform .15s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}

.tq-cat-btn:hover{
    background:#006b00 !important;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(0,95,0,.15);
}

.tq-cat-btn:active{
    transform:scale(.97);
}


/* ===== TABLET ===== */

@media(max-width:1200px){

    .tq-cat-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

/* ===== MOBILE ===== */

@media(max-width:767px){

    .tq-cat-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

    .tq-cat-title{
        font-size:16px;
        min-height:auto;
    }

}

/* ===== VARIANTY ===== */

.tq-cat-variations{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
}

.tq-cat-variation-btn{
    border:1px solid #dcdcdc;
    background:#fff;
    border-radius:8px;
    padding:7px 12px;
    font-size:13px;
    font-weight:500;
    color:#111 !important;
    cursor:pointer;
    transition:all .15s ease;
}

.tq-cat-variation-btn:hover{
    border-color:#005f00;
    color:#fff !important;
    transform:translateY(-1px);
}

.tq-cat-variation-btn.active{
    background:#005f00;
    color:#fff !important;
    border-color:#005f00;
}

/* ===== TQ CATEGORY - FORCE TYPOGRAPHY ===== */

.tq-cat-grid .tq-cat-card .tq-cat-title,
.tq-cat-grid .tq-cat-card .tq-cat-title a{
    font-size:15px !important;
    line-height:1.45 !important;
    font-weight:500 !important;
}

.tq-cat-grid .tq-cat-card .tq-cat-price,
.tq-cat-grid .tq-cat-card .tq-cat-price *,
.tq-cat-grid .tq-cat-card .tq-cat-price-value{
    font-size:14px !important;
    line-height:1.4 !important;
    font-weight:500 !important;
}

/* ===== TQ CATEGORY - VARIANTY JEMNĚJŠÍ ===== */

.tq-cat-variations{
    gap:6px !important;
    margin-bottom:12px !important;
}

.tq-cat-variation-btn{
    min-width:48px;
    height:36px;
    padding:0 10px !important;
    border-radius:9px !important;
    font-size:13px !important;
    font-weight:500 !important;
    line-height:1 !important;
}

.tq-cat-variation-btn.active{
    background:#006b00 !important;
    color:#fff !important;
    border-color:#006b00 !important;
}

/* ===== TQ CATEGORY - PŘIDÁNO ===== */

.tq-cat-card.tq-cat-added{
    border-color:#006b00 !important;
    box-shadow:0 0 0 2px rgba(0,107,0,0.12) !important;
}

.tq-cat-card.tq-cat-added .tq-cat-btn{
    background:#008000 !important;
}

/* ===== AJAX ADD TO CART ===== */

.tq-cat-btn.loading{
    opacity:.7;
    pointer-events:none;
}

.tq-cat-card.tq-cat-added{
    border-color:#008000 !important;
    box-shadow:0 0 0 2px rgba(0,128,0,.12);
}

.tq-cat-card.tq-cat-added .tq-cat-btn{
    background:#008000 !important;
}

/* ===== TQ CATEGORY - SUCCESS BUTTON ===== */

.tq-cat-btn.tq-cat-success{
    background:#008000 !important;
    color:#fff !important;
}

.tq-cat-card.tq-cat-added{
    border-color:#008000 !important;
    box-shadow:0 0 0 2px rgba(0,128,0,.16) !important;
}

/* ===== SEARCH ===== */

.tq-cat-search-wrap{
    margin-bottom:24px;
    flex:0 1 360px;
}

.tq-cat-search{
    width:100%;
    height:48px;
    border:1px solid #dcdcdc;
    border-radius:12px;
    padding:0 18px;
    font-size:15px;
    font-weight:400;
    transition:all .2s ease;
}

.tq-cat-search:focus{
    outline:none;
    border-color:#006b00;
    box-shadow:0 0 0 3px rgba(0,107,0,.10);
}

/* ===== CATEGORY TABS ===== */

.tq-cat-section{
    display:none;
}

.tq-cat-section.active{
    display:block;
}

/* ===== CATEGORY TABS ===== */

.tq-cat-main-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:28px;
}

.tq-cat-main-tab{
    min-height:42px;
    padding:0 18px;
    border:none;
    border-radius:10px;
    background:#f3f3f3;
    color:#111;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:all .2s ease;
}

.tq-cat-main-tab:hover{
    background:#e9e9e9;
}

.tq-cat-main-tab.active{
    background:#005f00;
    color:#fff;
}

.tq-cat-section{
    display:none;
}

.tq-cat-section.active{
    display:block;
}

/* ===== SUB TABS ===== */

.tq-cat-subtabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:24px;
}

.tq-cat-subtab{
    min-height:36px;
    padding:0 14px;
    border:none;
    border-radius:8px;
    background:#f3f3f3;
    color:#111;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    transition:all .2s ease;
}

.tq-cat-subtab:hover{
    background:#e9e9e9;
}

.tq-cat-subtab.active{
    background:#005f00;
    color:#fff;
}

.tq-cat-subcontent{
    display:none;
}

.tq-cat-subcontent.active{
    display:block;
}

/* ===== badge košík ===== */

.tq-cat-card{
    position:relative;
}

.tq-cat-cart-badge{
    position:absolute;
    top:12px;
    right:12px;

    width:32px;
    height:32px;

    border-radius:50%;

    background:#005f00;
    border:2px solid #fff;

    color:#fff;

    font-size:14px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 4px 14px rgba(0,0,0,.16);

    z-index:5;

    animation:tqCatBadgePop .22s ease;
}


/* ===== animace ===== */

@keyframes tqCatBadgePop{

    0%{
        transform:scale(.7);
        opacity:.4;
    }

    70%{
        transform:scale(1.15);
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}

/* ===== CATEGORY CART PANEL ===== */

.tq-cat-cart-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    padding:14px 18px;
    border-radius:14px;
    background:#f6f8f6;
    border:1px solid #e2e2e2;
}

.tq-cat-cart-panel-count{
    font-size:15px;
    font-weight:500;
}

.tq-cat-cart-count{
    color:#005f00;
    font-weight:700;
}

.tq-cat-cart-panel-links{
    display:flex;
    gap:10px;
}

.tq-cat-cart-panel-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 14px;
    border-radius:9px;
    background:#005f00;
    color:#fff !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:500;
}

@media(max-width:767px){
    .tq-cat-cart-panel{
        align-items:flex-start;
        flex-direction:column;
    }
}
/* ===== END CATEGORY CART PANEL ===== */

/* ===== SKU ===== */

.tq-cat-sku{
    margin-top:2px;
    margin-bottom:10px;
    font-size:12px;
    opacity:.75;
    color:#666;
    line-height:1.3;
}

/* ===== END SKU ===== */

/* ===== TQ CATEGORY - WRAPPER / TOPBAR ===== */
.tq-cat-wrap{
    width:100%;
}

.tq-cat-topbar{
    margin-bottom:0;
}

.tq-cat-subtabs{
    margin-bottom:24px;
}

.tq-cat-subcontent{
    display:block;
}

.tq-cat-empty{
    grid-column:1/-1;
    color:#666;
}

/* ===== END TQ CATEGORY ===== */


/* ===== TQ CATEGORY - TOPBAR STEJNĚ JAKO TQ QUICK ORDER ===== */
.tq-cat-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:28px;
}

.tq-cat-topbar .tq-cat-main-tabs{
    margin-bottom:0;
    flex:0 0 auto;
}

.tq-cat-topbar .tq-cat-search-wrap{
    margin-bottom:0;
    flex:0 1 360px;
}

.tq-cat-topbar .tq-cat-search{
    width:100%;
}

@media(max-width:767px){
    .tq-cat-topbar{
        align-items:stretch;
        flex-direction:column;
    }

    .tq-cat-topbar .tq-cat-search-wrap{
        flex:0 0 auto;
        width:100%;
    }
}
/* ===== END TQ CATEGORY - TOPBAR ===== */

/* ===== TQ CATEGORY - FIX TOPBAR / SEARCH BESIDE CATEGORY ===== */
.tq-cat-wrap > .tq-cat-topbar{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:18px !important;
    margin-bottom:28px !important;
}

.tq-cat-wrap > .tq-cat-topbar .tq-cat-main-tabs{
    display:flex !important;
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
}

.tq-cat-wrap > .tq-cat-topbar .tq-cat-search-wrap{
    flex:0 0 360px !important;
    width:360px !important;
    max-width:360px !important;
    margin:0 !important;
}

.tq-cat-wrap > .tq-cat-topbar .tq-cat-search{
    width:100% !important;
    max-width:360px !important;
}

@media(max-width:767px){
    .tq-cat-wrap > .tq-cat-topbar{
        align-items:stretch !important;
        flex-direction:column !important;
    }

    .tq-cat-wrap > .tq-cat-topbar .tq-cat-search-wrap,
    .tq-cat-wrap > .tq-cat-topbar .tq-cat-search{
        width:100% !important;
        max-width:100% !important;
        flex:0 0 auto !important;
    }
}
/* ===== END TQ CATEGORY - FIX TOPBAR ===== */
