:root {
    --tc-body: #f7f7f7;
    --tc-card: #ffffff;
    --tc-border: rgba(20, 20, 20, .10);
    --tc-muted: #6c757d;
    --tc-primary: #0d6efd;
    --tc-primary-dark: #0a58ca;
    --tc-success: #198754;
    --tc-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    --tc-radius: 22px;
}

html { scroll-behavior: smooth; }
body { background: var(--tc-body); color: #1f2937; }

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1620px; }
}

.tc-muted { color: var(--tc-muted); }
.tc-card {
    background: var(--tc-card);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
}

/* Header */
.tc-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); }
.tc-header-top { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-top:.75rem; padding-bottom:.75rem; }
.tc-logo-link { text-decoration:none; display:flex; align-items:center; min-width:0; color:#000; }
.tc-logo-img { height:112px; width:auto; flex:0 0 auto; }
.tc-logo-text { line-height:1.15; min-width:0; }
.tc-logo-claim { color:#000; font-weight:500; font-size:1rem; }
.tc-logo-line { display:block; white-space:nowrap; }
.tc-logo-main { color:#000; font-weight:900; letter-spacing:.02em; font-size:1.55rem; }
.tc-logo-sub { color:#000; font-weight:800; }
.tc-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:.75rem; flex-wrap:nowrap; }
.tc-btn-discounts { border:0; border-radius:999px; padding:.85rem 1.2rem; letter-spacing:.2px; transition:transform .12s ease, box-shadow .12s ease, filter .12s ease; text-decoration:none; white-space:nowrap; }
.tc-btn-discounts:hover { transform:translateY(-1px); box-shadow:0 .6rem 1.2rem rgba(0,0,0,.18) !important; filter:brightness(1.02); text-decoration:none; }
.tc-btn-discounts .tc-btn-text { font-size:22px; }
.tc-searchbar { border-top:1px solid rgba(0,0,0,.12); padding-top:1rem; padding-bottom:1rem; }
.tc-searchbar .form-control, .tc-searchbar .btn { min-height:48px; }
.tc-version-badge { font-size:.7rem; vertical-align:middle; }

/* Category cards */
.tc-catgrid { margin: 2rem 0; }
.tc-section-title { font-size:1.45rem; font-weight:850; letter-spacing:-.02em; }
.tc-catcard-link { text-decoration:none !important; color:#fff !important; display:block; }
.tc-catcard-inner { border-radius:16px; padding:1.35rem; min-height:116px; display:flex; align-items:flex-end; position:relative; overflow:hidden; transition:transform .18s ease-out, box-shadow .18s ease-out; }
.tc-catcard-inner::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at top right, rgba(255,255,255,.30), transparent 55%); opacity:.8; pointer-events:none; }
.tc-catcard-inner:hover { transform:translateY(-4px) scale(1.015); box-shadow:0 14px 28px rgba(0,0,0,.18); }
.tc-catcard-content { position:relative; z-index:1; width:100%; display:flex; align-items:center; }
.tc-catcard-icon { width:52px; height:52px; border-radius:999px; background:rgba(0,0,0,.16); display:flex; align-items:center; justify-content:center; font-weight:900; font-size:1.35rem; text-transform:uppercase; margin-right:1rem; flex:0 0 auto; }
.tc-catcard-title { font-size:1.08rem; font-weight:850; margin:0 0 .18rem; }
.tc-catcard-meta { color:rgba(255,255,255,.86); font-size:.88rem; }

/* Product cards */
.tc-product-card { height:100%; overflow:hidden; border-radius:18px; border:1px solid var(--tc-border); background:#fff; box-shadow:0 8px 22px rgba(0,0,0,.055); transition:transform .15s ease, box-shadow .15s ease; }
.tc-product-card:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.09); }
.tc-product-image-wrap { height:190px; display:flex; align-items:center; justify-content:center; padding:.9rem; background:#fff; }
.tc-product-image-wrap img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
.tc-product-title { min-height:3.1em; overflow:hidden; font-weight:750; line-height:1.28; }
.tc-product-price { font-size:1.25rem; font-weight:900; }
.tc-shop-name { font-size:.86rem; color:var(--tc-muted); }

/* Discounts */
.tc-discount-badge { border-radius:999px; padding:.42rem .64rem; font-weight:900; box-shadow:0 8px 20px rgba(220,53,69,.25); }
.tc-old-price { color:var(--tc-muted); font-size:.88rem; }
.tc-old-price s { color:var(--tc-muted); }
.tc-save-text { color:var(--tc-success); font-weight:800; font-size:.86rem; }

/* Actions */
.tc-akce-card { display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--tc-border); border-radius:22px; overflow:hidden; box-shadow:0 10px 28px rgba(0,0,0,.045); }
.tc-akce-card-body { display:flex; flex-direction:column; flex:1 1 auto; padding:1rem; }
.tc-akce-badge { display:inline-flex; width:fit-content; align-items:center; border-radius:999px; padding:.25rem .6rem; font-size:.78rem; font-weight:850; margin:0 0 .65rem; }
.tc-akce-badge-coupon { background:rgba(25,135,84,.12); color:#146c43; }
.tc-akce-badge-action { background:#e7f1ff; color:#084298; }
.tc-akce-title { font-size:1.08rem; font-weight:850; line-height:1.22; margin:0 0 .5rem; }
.tc-akce-desc { color:#495057; font-size:.94rem; line-height:1.45; margin-bottom:.85rem; }
.tc-coupon-code { border:1px dashed rgba(0,0,0,.28); border-radius:14px; background:#fff9db; padding:.55rem .7rem; font-weight:900; letter-spacing:.04em; }

/* Detail */
.tc-product-detail-card { border-radius:22px; border:1px solid var(--tc-border); padding:1.25rem; box-shadow:var(--tc-shadow); background:#fff; }
.tc-product-detail-image { width:100%; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; background:#f8f9fa; border-radius:16px; padding:1rem; }
.tc-product-detail-image img { max-width:100%; max-height:100%; object-fit:contain; }
.tc-offer-row { border:1px solid var(--tc-border); border-radius:16px; background:#fff; padding:.9rem; }

/* Footer */
.tc-footer { background:#fff; border-top:1px solid rgba(0,0,0,.08); }
.tc-footer a { color:#6c757d; }

.tc-scrolltop-wrapper { position:fixed; right:18px; bottom:18px; width:46px; height:46px; border-radius:999px; background:conic-gradient(var(--tc-primary) var(--tc-scrolltop-progress, 0deg), #e5e5e5 0deg); padding:3px; opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .18s ease, transform .18s ease; z-index:1030; cursor:pointer; }
.tc-scrolltop-wrapper.tc-scrolltop-visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.tc-scrolltop-inner { width:100%; height:100%; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; font-weight:900; color:#111; box-shadow:0 8px 18px rgba(0,0,0,.14); }

@media (max-width:1199.98px) {
    .tc-logo-img { height:92px; }
    .tc-btn-discounts { padding:.75rem 1rem; }
    .tc-btn-discounts .tc-btn-text { font-size:19px; }
}
@media (max-width:767.98px) {
    .tc-header-top { display:block; padding-top:.65rem; padding-bottom:.75rem; }
    .tc-logo { width:100%; margin-bottom:.75rem; }
    .tc-logo-link { justify-content:center; }
    .tc-logo-img { height:72px; margin-right:.55rem !important; }
    .tc-logo-claim { font-size:.86rem; }
    .tc-logo-line { white-space:normal; }
    .tc-logo-main { font-size:1.1rem; }
    .tc-header-actions { width:100%; display:grid; grid-template-columns:1fr; gap:.55rem; }
    .tc-btn-discounts { width:100%; justify-content:center; padding:.72rem .9rem; }
    .tc-btn-discounts .tc-btn-text { font-size:18px; }
    .tc-searchbar { padding-top:.75rem; padding-bottom:.85rem; }
    .tc-searchbar input { font-size:16px; }
    .tc-product-image-wrap { height:160px; }
    .tc-catcard-inner { min-height:108px; padding:1.1rem; }
    .tc-catcard-icon { width:44px; height:44px; font-size:1.1rem; }
}

/* v008 unified product listings */
.tc-product-card .card-body { padding: 1rem; }
.tc-product-card-actions .btn { border-radius: 12px; font-weight: 750; }
.tc-sort-tabs .btn { font-weight: 700; }
.tc-load-more { border-radius: 999px; font-weight: 850; padding-left: 1.8rem; padding-right: 1.8rem; }
.tc-product-card[data-product-id] { min-height: 100%; }
@media (max-width: 575.98px) {
    .tc-product-title { min-height: auto; }
    .tc-product-card-actions { grid-template-columns: 1fr; }
}

/* v009: jednotný 5sloupcový produktový grid */
.tc-product-col {
    flex: 0 0 auto;
    width: 100%;
}
@media (min-width: 576px) {
    .tc-product-col { width: 50%; }
}
@media (min-width: 768px) {
    .tc-product-col { width: 33.333333%; }
}
@media (min-width: 992px) {
    .tc-product-col { width: 25%; }
}
@media (min-width: 1200px) {
    .tc-product-col { width: 20%; }
}

.tc-discount-category-stepper {
    background: #fff;
}
.tc-discount-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.tc-discount-category-btn {
    border-radius: 999px;
    font-weight: 750;
    padding: .48rem .85rem;
}
.tc-discount-category-btn:hover {
    transform: translateY(-1px);
}


/* v011: homepage root categories */
.tc-catgrid .tc-toggle-categories {
    border-radius: 999px;
    font-weight: 850;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}
.tc-catgrid .tc-catcard-inner {
    min-height: 104px;
}
.tc-catgrid .tc-catcard-title {
    margin-bottom: 0;
}

/* v011 */
.tc-offer-count { color: var(--tc-muted); font-size: .82rem; font-weight: 650; }

/* v013: Akce a kupóny podle původního webu */
.tc-akce-page {
    --tc-border: rgba(20, 20, 20, .10);
    --tc-muted: #6c757d;
    --tc-card-bg: #fff;
    --tc-soft: #f7f8fa;
    --tc-primary-soft: rgba(13, 110, 253, .10);
    --tc-success-soft: rgba(25, 135, 84, .12);
    --tc-warning-soft: rgba(255, 193, 7, .18);
    margin: 0 0 2rem;
}
.tc-akce-hero {
    border: 1px solid var(--tc-border);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f6f8fb);
    padding: 1.4rem;
    margin-bottom: 1rem;
}
.tc-akce-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 .35rem;
    font-weight: 900;
    letter-spacing: -.03em;
}
.tc-akce-hero p {
    max-width: 850px;
    color: var(--tc-muted);
    margin: 0;
}
.tc-akce-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0 0;
}
.tc-akce-stat {
    display: block;
    text-decoration: none;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    background: #fff;
    padding: .8rem .9rem;
    color: #222;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.tc-akce-stat:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 110, 253, .35);
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    color: #111;
}
.tc-akce-stat.active {
    border-color: transparent;
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, .22);
}
.tc-akce-stat.active strong { color:#fff; text-shadow:0 1px 1px rgba(0,0,0,.12); }
.tc-akce-stat strong { display:block; font-size:1.35rem; line-height:1.1; }
.tc-akce-stat span { color:var(--tc-muted); font-size:.88rem; }
.tc-akce-stat.active span { color:rgba(255,255,255,.78); }
.tc-akce-toolbar {
    border: 1px solid var(--tc-border);
    border-radius: 20px;
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
}
.tc-akce-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(160px, .9fr) minmax(140px, .7fr) auto;
    gap: .65rem;
    align-items: end;
}
.tc-akce-filters label { display:block; font-size:.82rem; font-weight:800; margin-bottom:.25rem; color:#444; }
.tc-akce-summary { color:var(--tc-muted); font-size:.92rem; margin:.2rem 0 1rem; }
.tc-akce-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.tc-akce-grid-home { margin-bottom: .25rem; }
.tc-akce-card {
    display:flex;
    flex-direction:column;
    min-height:100%;
    background:var(--tc-card-bg);
    border:1px solid var(--tc-border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(0,0,0,.04);
}
.tc-akce-card-body { display:flex; flex-direction:column; flex:1 1 auto; padding:1rem; }
.tc-akce-card-top { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.85rem; }
.tc-akce-shop-row { display:flex; align-items:center; gap:.75rem; margin-bottom:.85rem; color:inherit; text-decoration:none; }
.tc-akce-logo {
    width:160px;
    height:66px;
    flex:0 0 160px;
    border-radius:14px;
    border:1px solid var(--tc-border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    color:#343a40;
    font-weight:900;
    font-size:1rem;
}
.tc-akce-logo img { width:100%; height:100%; object-fit:contain; padding:.15rem; background:#fff; }
.tc-akce-logo-fallback { font-weight:900; }
.tc-akce-logo img + .tc-akce-logo-fallback { display:none; }
.tc-akce-shop-name { min-width:0; font-weight:900; line-height:1.15; }
.tc-akce-badge { display:inline-flex; width:fit-content; align-items:center; border-radius:999px; padding:.25rem .6rem; font-size:.78rem; font-weight:900; margin:0; }
.tc-akce-badge-coupon { background:var(--tc-success-soft); color:#146c43; }
.tc-akce-badge-action { background:#e7f1ff; color:#084298; }
.tc-akce-title { font-size:1.08rem; font-weight:900; line-height:1.22; margin:0 0 .5rem; }
.tc-akce-desc { color:#495057; font-size:.94rem; line-height:1.45; margin-bottom:.85rem; }
.tc-akce-validity { color:var(--tc-muted); font-size:.88rem; font-weight:800; margin-left:auto; text-align:right; white-space:nowrap; }
.tc-akce-code { display:flex; align-items:stretch; gap:.45rem; margin:.7rem 0 .7rem; }
.tc-akce-code code {
    flex:1 1 auto;
    border:1px dashed rgba(25,135,84,.45);
    border-radius:12px;
    background:#f4fbf7;
    padding:.48rem .65rem;
    color:#0f5132;
    font-size:.95rem;
    font-weight:900;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
.tc-akce-actions { display:grid; grid-template-columns:1fr; gap:.5rem; margin-top:auto; padding-top:.85rem; }
.tc-akce-actions .btn { border-radius:13px; font-weight:900; }
.tc-akce-empty { border:1px dashed var(--tc-border); border-radius:22px; background:#fff; padding:2rem; text-align:center; color:var(--tc-muted); }
.tc-akce-pagination { margin-top:1.25rem; }
.tc-akce-pagination .page-link { border-radius:12px !important; min-width:42px; text-align:center; }
.tc-copy-done { animation:tcCopyPulse .8s ease; }
@keyframes tcCopyPulse { 0%{transform:scale(1)} 35%{transform:scale(1.04)} 100%{transform:scale(1)} }

.tc-akce-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
}
.tc-akce-modal-backdrop.is-open { display:flex; }
body.tc-akce-modal-open { overflow:hidden; }
.tc-akce-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.7);
}
.tc-akce-modal-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 1.1rem;
    border-bottom:1px solid rgba(0,0,0,.08);
    background:linear-gradient(135deg,#fff,#f6f8fb);
}
.tc-akce-modal-logo {
    width:130px;
    height:58px;
    flex:0 0 130px;
    border:1px solid var(--tc-border);
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    overflow:hidden;
    font-weight:900;
}
.tc-akce-modal-logo img { width:100%; height:100%; object-fit:contain; padding:.15rem; }
.tc-akce-modal-logo img[src=""] { display:none; }
.tc-akce-modal-logo img + span { display:none; }
.tc-akce-modal-logo img[src=""] + span { display:inline; }
.tc-akce-modal-type { color:#6c757d; font-weight:900; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
.tc-akce-modal-title { font-size:1.35rem; font-weight:900; line-height:1.15; margin:0; }
.tc-akce-modal-subtitle { color:#6c757d; font-size:.95rem; margin-top:.15rem; }
.tc-akce-modal-close { border:0; background:#fff; width:40px; height:40px; border-radius:999px; font-size:1.8rem; line-height:1; font-weight:700; box-shadow:0 8px 18px rgba(0,0,0,.08); }
.tc-akce-modal-body { padding:1.1rem; }
.tc-akce-modal-validity { color:#6c757d; font-weight:800; margin-bottom:.75rem; }
.tc-akce-modal-desc { color:#374151; line-height:1.55; white-space:pre-wrap; }
.tc-akce-modal-code-wrap { border:1px dashed rgba(25,135,84,.45); background:#f4fbf7; border-radius:16px; padding:.8rem; margin:1rem 0; }
.tc-akce-modal-code-row { display:flex; gap:.6rem; align-items:stretch; }
.tc-akce-modal-code-row code { flex:1 1 auto; font-size:1.1rem; font-weight:900; color:#0f5132; padding:.55rem .65rem; background:#fff; border-radius:12px; overflow:hidden; text-overflow:ellipsis; }
.tc-akce-modal-actions { display:grid; grid-template-columns:1fr auto; gap:.65rem; margin-top:1rem; }
.tc-akce-modal-actions .btn { border-radius:14px; font-weight:900; }

@media (max-width: 991.98px) {
    .tc-akce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-akce-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-akce-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .tc-akce-grid, .tc-akce-stats, .tc-akce-filters { grid-template-columns: 1fr; }
    .tc-akce-hero, .tc-akce-toolbar, .tc-akce-card { border-radius:16px; }
    .tc-akce-logo { width:120px; flex-basis:120px; }
    .tc-akce-modal-head { display:block; position:relative; padding-right:3.4rem; }
    .tc-akce-modal-close { position:absolute; right:1rem; top:1rem; }
    .tc-akce-modal-logo { width:110px; height:52px; margin-bottom:.75rem; }
    .tc-akce-modal-actions { grid-template-columns:1fr; }
}

/* v014: statické obsahové stránky */
.tc-content-page {
    max-width: 1620px;
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2.75rem);
}
.tc-content-page-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--tc-border);
}
.tc-content-page-kicker {
    margin-bottom: .45rem;
    color: var(--tc-primary);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tc-content-page h1 {
    margin: 0 0 .75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.035em;
}
.tc-content-page .lead {
    max-width: 820px;
    color: #4b5563;
}
.tc-content-section + .tc-content-section {
    margin-top: 1.75rem;
}
.tc-content-section h2 {
    margin: 0 0 .65rem;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -.02em;
}
.tc-content-section p:last-child,
.tc-content-section ul:last-child,
.tc-content-section ol:last-child {
    margin-bottom: 0;
}
.tc-content-section p,
.tc-content-section li {
    line-height: 1.7;
}


/* v016: detail produktu podle původního webu */
.tc-product-detail-page {
    width: min(1480px, calc(100% - 2rem));
    max-width: 1480px;
}

.tc-product-page-heading {
    margin: 0 0 1rem;
    color: #25282d;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.tc-product-breadcrumb {
    margin-bottom: 1rem;
    font-size: .86rem;
}

.tc-product-breadcrumb .breadcrumb {
    flex-wrap: wrap;
}

.tc-product-breadcrumb .breadcrumb-item,
.tc-product-breadcrumb .breadcrumb-item a {
    color: #667085;
    text-decoration: none;
}

.tc-product-breadcrumb .breadcrumb-item a:hover {
    color: var(--tc-primary);
    text-decoration: underline;
}

.tc-product-breadcrumb .breadcrumb-item.active {
    color: #344054;
    max-width: min(560px, 60vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-product-detail-card {
    border: 1px solid var(--tc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
    padding: clamp(.9rem, 2vw, 1.35rem);
}

.tc-product-detail-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: zoom-in;
}

.tc-product-detail-image-button:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .3);
    outline-offset: 3px;
}

.tc-product-detail-image {
    width: 100%;
    min-height: 330px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    border-radius: 14px;
    background: #f8f9fa;
}

.tc-product-detail-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.tc-product-detail-image-button:hover .tc-product-detail-image img {
    transform: scale(1.018);
}

.tc-product-image-zoom-hint {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    padding: .38rem .65rem;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    background: rgba(22, 29, 37, .76);
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
}

.tc-product-detail-image-button:hover .tc-product-image-zoom-hint,
.tc-product-detail-image-button:focus-visible .tc-product-image-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.tc-product-detail-title {
    margin: .1rem 0 .75rem;
    color: #24272c;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.tc-product-detail-description {
    margin: 0;
    color: #3f4650;
    font-size: .98rem;
    line-height: 1.62;
    white-space: pre-line;
}

.tc-product-description-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tc-product-description-toggle {
    margin-top: .9rem;
    padding: .48rem 1rem;
    color: #343a40;
    font-size: .86rem;
    font-weight: 750;
}

.tc-product-description-toggle:hover,
.tc-product-description-toggle:focus-visible {
    background: #f1f3f5;
}

.tc-product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.35rem;
}

.tc-product-detail-actions .btn {
    font-size: .88rem;
    font-weight: 700;
}

.tc-product-offers-card,
.tc-product-similar-card {
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    background: #fff;
    padding: .85rem;
}

.tc-product-offers-title,
.tc-product-similar-title {
    margin: 0 0 .75rem;
    color: #30343a;
    font-size: .98rem;
    font-weight: 850;
}

.tc-product-offers-empty {
    color: var(--tc-muted);
    font-size: .9rem;
}

.tc-product-offers-list {
    display: grid;
    gap: .65rem;
}

.tc-product-offer-item {
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
}

.tc-product-offer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .7rem;
    padding: .58rem .65rem;
}

.tc-product-offer-shop {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.tc-product-offer-shop strong {
    overflow: hidden;
    color: #333840;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-product-offer-logo {
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    color: #59636f;
    font-size: .72rem;
    font-weight: 900;
}

.tc-product-offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tc-product-offer-price {
    color: #20242a;
    font-size: .9rem;
    font-weight: 900;
    white-space: nowrap;
}

.tc-product-offer-go {
    min-width: 80px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.tc-product-shop-actions-trigger {
    display: block;
    width: calc(100% - 1rem);
    margin: 0 .5rem .5rem;
    padding: .42rem .6rem;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #0d6efd, #18b99a);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}

.tc-product-shop-actions-trigger:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.tc-product-similar-card {
    padding: 1rem;
}

.tc-product-image-modal-backdrop,
.tc-product-shop-actions-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .74);
    backdrop-filter: blur(2px);
}

.tc-product-image-modal-backdrop.is-open,
.tc-product-shop-actions-backdrop.is-open {
    display: flex;
}

body.tc-product-modal-open {
    overflow: hidden;
}

.tc-product-image-modal {
    position: relative;
    width: min(1000px, 96vw);
    height: min(820px, 92vh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.4rem 1.2rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.tc-product-image-modal img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tc-product-modal-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #20242a;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.tc-product-image-modal > .tc-product-modal-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
}

.tc-product-shop-actions-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.tc-product-shop-actions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--tc-border);
    background: linear-gradient(135deg, #fff, #f5f7fa);
}

.tc-product-shop-actions-heading-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.tc-product-shop-actions-heading-wrap h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.tc-product-shop-actions-logo {
    width: 82px;
    height: 44px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    border-radius: 9px;
    background: #fff;
    font-weight: 900;
}

.tc-product-shop-actions-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .15rem;
}

.tc-product-shop-actions-body {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 1rem;
}

.tc-product-shop-actions-list {
    display: grid;
    gap: .8rem;
}

.tc-product-shop-action-card {
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    background: #fff;
    padding: .9rem;
}

.tc-product-shop-action-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .6rem;
}

.tc-product-shop-action-badge {
    display: inline-flex;
    padding: .26rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.tc-product-shop-action-badge.is-coupon {
    background: #e9f8ef;
    color: #13733a;
}

.tc-product-shop-action-badge.is-action {
    background: #eaf2ff;
    color: #0b58ca;
}

.tc-product-shop-action-validity {
    color: #667085;
    font-size: .78rem;
    font-weight: 750;
}

.tc-product-shop-action-card h3 {
    margin: 0 0 .45rem;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
}

.tc-product-shop-action-card p {
    margin: 0 0 .7rem;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.5;
}

.tc-product-shop-action-code-row {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    margin-bottom: .65rem;
}

.tc-product-shop-action-code-row code {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding: .45rem .6rem;
    overflow: hidden;
    border: 1px dashed rgba(25, 135, 84, .45);
    border-radius: 8px;
    background: #f4fbf7;
    color: #0f5132;
    font-size: .95rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-product-shop-action-link {
    min-width: 130px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .tc-product-detail-image {
        min-height: 250px;
    }

    .tc-product-breadcrumb .breadcrumb-item.active {
        max-width: 76vw;
    }

    .tc-product-offer-main {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tc-product-offer-go {
        grid-column: 1 / -1;
        width: 100%;
    }

    .tc-product-image-zoom-hint {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .tc-product-detail-card,
    .tc-product-similar-card {
        border-radius: 14px;
    }

    .tc-product-offer-main {
        gap: .45rem;
    }

    .tc-product-offer-logo {
        width: 42px;
        flex-basis: 42px;
    }

    .tc-product-shop-actions-head {
        align-items: flex-start;
    }

    .tc-product-shop-actions-logo {
        width: 64px;
        height: 38px;
        flex-basis: 64px;
    }

    .tc-product-shop-actions-heading-wrap h2 {
        font-size: 1.05rem;
    }
}


@media (max-width: 575.98px) {
    .tc-product-detail-page {
        width: calc(100% - 1rem);
    }

    .tc-product-detail-actions {
        align-items: stretch;
    }

    .tc-product-detail-actions .btn {
        flex: 1 1 100%;
    }
}

/* v017: detail kategorie – breadcrumb, návrat o úroveň výš a filtry */
.tc-category-page .min-width-0 {
    min-width: 0;
}

.tc-category-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: -.03em;
}

.tc-category-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem 0;
}

.tc-category-breadcrumb .breadcrumb-item,
.tc-category-breadcrumb .breadcrumb-item a {
    font-size: .92rem;
}

.tc-category-breadcrumb .breadcrumb-item a {
    color: var(--tc-primary);
    text-decoration: none;
}

.tc-category-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.tc-category-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 700;
}

.tc-category-full-path {
    overflow-wrap: anywhere;
}

.tc-category-back {
    flex: 0 0 auto;
    font-weight: 750;
}

.tc-category-filters {
    background: linear-gradient(135deg, #fff, #f8f9fb);
}

.tc-category-filters .form-control,
.tc-category-filters .form-select,
.tc-category-filters .btn {
    min-height: 46px;
}

.tc-category-filter-actions {
    align-items: center;
}

.tc-category-filter-actions .btn {
    min-width: 150px;
    font-weight: 750;
}

@media (max-width: 767.98px) {
    .tc-category-header {
        padding: 1.15rem !important;
    }

    .tc-category-back {
        width: 100%;
        text-align: center;
    }

    .tc-category-filter-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* v018: produktové karty ve stylu původního webu */
.tc-product-card {
    display: flex;
    flex-direction: column;
}

.tc-product-card > .position-relative {
    flex: 0 0 auto;
}

.tc-product-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tc-product-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tc-product-price-block {
    margin-bottom: .75rem;
}

.tc-product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .65rem;
}

.tc-product-price {
    color: #212529;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
}

.tc-product-price.is-discounted {
    color: #dc3545;
}

.tc-old-price {
    color: #212529;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2;
}

.tc-old-price s {
    color: #212529;
}

.tc-save-text {
    margin-top: .22rem;
    color: #198754;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.25;
}

.tc-product-title {
    min-height: 3.85em;
    margin-top: 0;
    overflow: hidden;
    font-weight: 750;
    line-height: 1.28;
}

.tc-product-card-actions {
    margin-top: auto;
}

.tc-discount-badge {
    z-index: 2;
}

@media (max-width: 575.98px) {
    .tc-product-title {
        min-height: auto;
    }
}

/* v019: oprava slev na kartách a tlačítkové řazení kategorií */
.tc-product-price.is-discounted {
    color: #dc3545 !important;
}

.tc-price-prefix {
    font-size: .82em;
    font-weight: 800;
    white-space: nowrap;
}

.tc-old-price,
.tc-old-price s {
    color: #212529 !important;
}

.tc-save-text {
    color: #198754 !important;
}

.tc-discount-badge {
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545 !important;
    color: #fff !important;
    border: 0;
}

.tc-category-sort-row .tc-sort-tabs .btn {
    min-height: 40px;
    padding: .5rem .9rem;
}

@media (max-width: 575.98px) {
    .tc-category-sort-row .tc-sort-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .tc-category-sort-row .tc-sort-tabs .btn {
        width: 100%;
    }
}

/* v023: náhledy přímých podkategorií po šesti kartách */
.tc-subcategory-preview {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--tc-border);
}

.tc-subcategory-preview:last-child {
    border-bottom: 0;
}

.tc-subcategory-preview-all {
    flex: 0 0 auto;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.tc-preview-product-col {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .tc-preview-product-col { width: 50%; }
}

@media (min-width: 768px) {
    .tc-preview-product-col { width: 33.333333%; }
}

@media (min-width: 992px) {
    .tc-preview-product-col { width: 25%; }
}

@media (min-width: 1200px) {
    .tc-preview-product-col { width: 16.666667%; }
}

/* v024: pořadí obsahu karty obrázek, název, cena a tlačítko */
.tc-product-card-main {
    flex: 0 0 auto;
}

.tc-product-card-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tc-product-card-bottom .tc-product-price-block {
    margin-top: 1rem;
    margin-bottom: 0;
}

.tc-product-card-bottom .tc-product-card-actions {
    margin-top: 0;
}
