/* Tact Brands Catalog v3.0 — Matched to tactech.co.il design */

/* === RESET === */
.tbc-catalog, .tbc-catalog *, .tbc-bottom-cta, .tbc-bottom-cta * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === LAYOUT === */
.tbc-catalog {
    display: flex;
    min-height: 800px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    background: #fff;
}

/* === SIDEBAR === */
.tbc-sidebar {
    width: 280px;
    background: #f3f8fd;
    border-left: 1px solid #e4ecf4;
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8d6e5 transparent;
}
.tbc-sidebar::-webkit-scrollbar { width: 3px; }
.tbc-sidebar::-webkit-scrollbar-thumb { background: #c8d6e5; border-radius: 3px; }

.tbc-sidebar-label {
    font-size: 12px;
    font-weight: 600;
    color: #001e61;
    padding: 0 20px 14px;
    border-bottom: 1px solid #e4ecf4;
    margin-bottom: 8px;
}

/* --- Brand Accordion --- */
.tbc-brand-group { margin-bottom: 2px; }

.tbc-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: right;
    font-family: inherit;
    position: relative;
}
.tbc-brand-header:hover { background: #e8f0fa; }
.tbc-brand-header.active {
    background: #001e61;
    border-radius: 0;
}
.tbc-brand-header.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00b4d8;
}

.tbc-bh-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #001e61;
    flex-shrink: 0;
    border: 1px solid #e4ecf4;
    overflow: hidden;
}
.tbc-bh-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tbc-brand-header.active .tbc-bh-logo {
    background: rgba(0,180,216,0.15);
    border-color: rgba(0,180,216,0.3);
}

.tbc-bh-info { flex: 1; min-width: 0; }
.tbc-bh-name { font-weight: 700; font-size: 13px; color: #001e61; display: block; line-height: 1.3; }
.tbc-brand-header.active .tbc-bh-name { color: #fff; }
.tbc-bh-sub { font-size: 11px; color: #7a8ba0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbc-brand-header.active .tbc-bh-sub { color: rgba(255,255,255,0.4); }

.tbc-bh-badge { font-size: 9px; color: #00b4d8; font-weight: 700; background: rgba(0,180,216,0.08); padding: 2px 8px; border-radius: 40px; white-space: nowrap; }
.tbc-brand-header.active .tbc-bh-badge { background: rgba(0,180,216,0.2); }

.tbc-bh-arrow { font-size: 11px; color: #b0b8c4; transition: transform 0.2s ease; flex-shrink: 0; }
.tbc-brand-header.active .tbc-bh-arrow { color: rgba(255,255,255,0.35); }
.tbc-brand-header.open .tbc-bh-arrow { transform: rotate(90deg); }

/* Coming soon */
.tbc-brand-header.coming { opacity: 0.3; cursor: default; }
.tbc-brand-header.coming .tbc-bh-logo { border-style: dashed; background: #f0f4f8; color: #c0c8d0; }
.tbc-coming-name { color: #b0b8c4 !important; }

/* --- Category List --- */
.tbc-brand-categories { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.tbc-brand-categories.open { max-height: 800px; }

.tbc-cat-list { list-style: none; padding: 4px 0 8px; margin: 0; background: #eaf1f9; border-bottom: 1px solid #e4ecf4; }
.tbc-cat-list li { margin: 0; padding: 0; }

.tbc-cat-link {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    margin-right: 16px;
    margin-left: 8px;
    border-radius: 40px;
    text-decoration: none !important;
    color: #323940;
    font-size: 12.5px;
    transition: all 0.15s ease;
    gap: 6px;
}
.tbc-cat-link:hover { background: #dde6f2; color: #001e61; }
.tbc-cat-link.active { background: #001e61; color: #fff; font-weight: 600; }

.tbc-cat-icon { font-size: 13px; flex-shrink: 0; }
.tbc-cat-name { flex: 1; }
.tbc-cat-count { font-size: 10px; color: #7a8ba0; background: #dde6f0; padding: 1px 7px; border-radius: 40px; flex-shrink: 0; }
.tbc-cat-link.active .tbc-cat-count { background: rgba(0,180,216,0.3); color: #fff; }

.tbc-all-products .tbc-cat-link { font-weight: 600; color: #001e61; border-top: 1px solid #dde6f0; margin-top: 4px; padding-top: 10px; }
.tbc-cat-count-all { background: #001e61 !important; color: #fff !important; }

/* Divider */
.tbc-sidebar-divider { height: 1px; background: #e4ecf4; margin: 16px 20px; }

/* --- Sidebar Lead Widget --- */
.tbc-sidebar-lead {
    background: #001e61;
    border-radius: 20px;
    padding: 18px 16px;
    margin: 0 14px;
}
.tbc-sidebar-lead h4 { color: #fff; font-size: 13px; margin: 0 0 4px; font-weight: 700; }
.tbc-sidebar-lead p { color: rgba(255,255,255,0.45); font-size: 11px; margin: 0 0 12px; line-height: 1.5; }

.tbc-lead-form input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    margin-bottom: 6px;
    outline: none;
    transition: border-color 0.15s ease;
}
.tbc-lead-form input:focus { border-color: #00b4d8; }
.tbc-lead-form input::placeholder { color: rgba(255,255,255,0.25); }

.tbc-lead-btns { display: flex; gap: 5px; }
.tbc-btn-lead {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tbc-btn-lead-primary { background: #00b4d8; color: #fff; }
.tbc-btn-lead-primary:hover { background: #00a3c4; }
.tbc-btn-lead-wa { background: #25d366; color: #fff !important; }
.tbc-btn-lead-wa:hover { background: #1fb855; }

/* === CONTENT AREA === */
.tbc-content {
    flex: 1;
    padding: 24px 28px;
    min-width: 0;
    background: #fff;
}

/* --- Brand Banner --- */
.tbc-brand-banner {
    background: linear-gradient(135deg, #001544 0%, #001e61 100%);
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.tbc-bb-logo {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.tbc-bb-logo span { font-size: 20px; font-weight: 900; color: #fff; }
.tbc-bb-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.tbc-bb-text { flex: 1; }
.tbc-bb-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,180,216,0.12);
    color: #00b4d8;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 40px;
    margin-bottom: 6px;
}
.tbc-bb-text h2 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.tbc-bb-text p { color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.5; margin: 0; }

.tbc-bb-stats { display: flex; gap: 10px; flex-shrink: 0; }
.tbc-bb-stat {
    text-align: center;
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    border-radius: 16px;
    min-width: 56px;
}
.tbc-bb-stat-v { color: #00b4d8; font-size: 16px; font-weight: 800; }
.tbc-bb-stat-l { color: rgba(255,255,255,0.35); font-size: 9px; margin-top: 1px; }

.tbc-bb-cta { display: flex; gap: 6px; flex-shrink: 0; flex-direction: column; }
.tbc-btn-bb {
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none !important;
    text-align: center;
}
.tbc-btn-bb-primary { background: #00b4d8; color: #fff !important; }
.tbc-btn-bb-primary:hover { background: #00a3c4; }
.tbc-btn-bb-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255,255,255,0.12);
}
.tbc-btn-bb-secondary:hover { border-color: rgba(255,255,255,0.3); color: #fff !important; }

/* --- Toolbar --- */
.tbc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e4ecf4;
}
.tbc-toolbar-left { display: flex; align-items: baseline; gap: 8px; }
.tbc-toolbar-title { font-size: 15px; font-weight: 700; color: #001e61; margin: 0; }
.tbc-result-count { font-size: 12px; color: #8a9bb0; font-weight: 400; }
.tbc-toolbar-right { display: flex; align-items: center; gap: 8px; }
.tbc-sort-select {
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #e4ecf4;
    font-family: inherit;
    font-size: 12px;
    color: #323940;
    background: #f8fafd;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}
.tbc-sort-select:hover { border-color: #c0cfe0; }
.tbc-sort-select:focus { border-color: #001e61; }

/* --- Product Grid --- */
.tbc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 200px;
}
.tbc-products-grid.loading { opacity: 0.4; pointer-events: none; }

/* --- Product Card --- */
.tbc-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid #eaeef5;
    box-shadow: 0 1px 3px rgba(0,30,97,0.04);
}
.tbc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,30,97,0.10);
    border-color: #001e61;
}

.tbc-product-img {
    display: block;
    height: 190px;
    background: #f8fafd;
    position: relative;
    overflow: hidden;
}
.tbc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}
.tbc-product-card:hover .tbc-product-img img { transform: scale(1.03); }

.tbc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 40px;
    z-index: 2;
}
.tbc-badge-new { background: #00b4d8; }
.tbc-badge-popular { background: #7c3aed; }
.tbc-badge-sale { background: #ef4444; }

.tbc-product-body { padding: 16px 18px 18px; }
.tbc-product-brand {
    font-size: 10px;
    color: #8a9bb0;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tbc-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 700;
    color: #001e61;
    margin-bottom: 8px;
    line-height: 1.4;
    text-decoration: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
}
.tbc-product-name:hover { color: #00b4d8; }

.tbc-product-cats {
    font-size: 11px;
    color: #001e61;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.tbc-product-cats span {
    background: #edf2fa;
    padding: 3px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    color: #001e61;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #dde5f0;
}

/* --- Action Buttons --- */
.tbc-product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.tbc-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 40px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.tbc-btn-primary {
    background: #001e61;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,30,97,0.15);
}
.tbc-btn-primary:hover {
    background: #002d8a;
    box-shadow: 0 4px 14px rgba(0,30,97,0.25);
    transform: translateY(-1px);
}
.tbc-btn-wa {
    background: #25d366;
    color: #fff !important;
    width: 38px;
    height: 38px;
    flex: none;
    font-size: 15px;
    border-radius: 50%;
    padding: 0;
}
.tbc-btn-wa:hover { background: #1fb855; transform: translateY(-1px); }
.tbc-btn-call {
    background: #f0f4fa;
    color: #001e61 !important;
    width: 38px;
    height: 38px;
    flex: none;
    font-size: 15px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid #e4ecf4;
}
.tbc-btn-call:hover { background: #e2eaf6; transform: translateY(-1px); }

/* No Products */
.tbc-no-products { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #7a8ba0; font-size: 15px; }

/* --- Load More --- */
.tbc-load-more { text-align: center; padding: 28px; }
.tbc-btn-load-more {
    background: #fff;
    border: 2px solid #001e61;
    padding: 10px 36px;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    color: #001e61;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tbc-btn-load-more:hover { background: #001e61; color: #fff; }
.tbc-btn-load-more.loading { opacity: 0.5; cursor: wait; }

/* --- SEO Content --- */
.tbc-seo-content {
    background: #f3f8fd;
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
}
.tbc-seo-content h2 { font-size: 15px; font-weight: 700; color: #001e61; margin: 0 0 8px; }
.tbc-seo-content p { font-size: 13px; color: #323940; line-height: 1.7; margin: 0 0 8px; }

/* === BOTTOM CTA === */
.tbc-bottom-cta {
    background: linear-gradient(135deg, #001544 0%, #001e61 100%);
    padding: 44px 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    border-radius: 0 0 32px 32px;
}
.tbc-bottom-cta h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.tbc-bottom-cta > p { color: rgba(255,255,255,0.45); font-size: 14px; margin: 0 0 24px; }

.tbc-bottom-cta-form { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.tbc-bottom-cta-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.tbc-bottom-cta-form input:focus { border-color: #00b4d8; }
.tbc-bottom-cta-form input::placeholder { color: rgba(255,255,255,0.25); }
.tbc-bottom-cta-form button {
    background: #00b4d8;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.tbc-bottom-cta-form button:hover { background: #00a3c4; }

.tbc-bottom-cta-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.tbc-bottom-cta-links a {
    color: #00b4d8 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}
.tbc-bottom-cta-links a:hover { color: #00d4f8 !important; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .tbc-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .tbc-brand-banner { flex-direction: column; text-align: center; }
    .tbc-bb-stats { justify-content: center; }
    .tbc-bb-cta { flex-direction: row; }
}
@media (max-width: 768px) {
    .tbc-catalog { flex-direction: column; }
    .tbc-sidebar { width: 100%; position: relative; top: 0; height: auto; max-height: none; border-left: none; border-bottom: 1px solid #e4ecf4; padding-bottom: 16px; }
    .tbc-content { padding: 18px 14px; }
    .tbc-toolbar { flex-direction: column; gap: 10px; align-items: stretch; }
    .tbc-toolbar-left, .tbc-toolbar-right { justify-content: space-between; }
    .tbc-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tbc-product-img { height: 140px; }
    .tbc-product-body { padding: 10px 12px 12px; }
    .tbc-product-name { font-size: 12px; }
    .tbc-btn { font-size: 10px; padding: 6px; }
    .tbc-btn-wa, .tbc-btn-call { width: 30px; }
    .tbc-bottom-cta { padding: 32px 16px; border-radius: 0; }
    .tbc-bottom-cta-form { flex-direction: column; }
    .tbc-bottom-cta-links { flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 480px) {
    .tbc-products-grid { grid-template-columns: 1fr; }
}

/* === THEME OVERRIDES === */
.tbc-catalog h2, .tbc-catalog h3, .tbc-brand-banner h2, .tbc-bb-text h2, .tbc-bottom-cta h2 {
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    margin: inherit !important;
    font-family: inherit !important;
    letter-spacing: normal !important;
}
.tbc-brand-banner .tbc-bb-text h2 { font-size: 18px !important; font-weight: 700 !important; color: #fff !important; line-height: 1.3 !important; margin: 0 0 4px !important; }
.tbc-toolbar .tbc-toolbar-title { font-size: 15px !important; font-weight: 700 !important; color: #001e61 !important; line-height: 1.3 !important; margin: 0 !important; }
.tbc-seo-content h2 { font-size: 15px !important; font-weight: 700 !important; color: #001e61 !important; margin: 0 0 8px !important; }
.tbc-bottom-cta h2 { font-size: 22px !important; font-weight: 800 !important; color: #fff !important; margin: 0 0 6px !important; }
.tbc-sidebar-lead h4 { font-size: 13px !important; color: #fff !important; margin: 0 0 4px !important; }

.tbc-catalog p, .tbc-brand-banner p, .tbc-bottom-cta p {
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    margin: inherit !important;
}
.tbc-bb-text p { font-size: 12px !important; color: rgba(255,255,255,0.5) !important; line-height: 1.5 !important; margin: 0 !important; }
.tbc-bottom-cta > p { font-size: 13px !important; color: rgba(255,255,255,0.45) !important; margin: 0 0 20px !important; }

/* === PAGE OVERRIDES === */
.page-id-29231 .elementor-widget-shortcode { display: block !important; }
.page-id-29231 .owc-showcase { display: none !important; }
.page-id-29231 .site-main { padding-top: 0 !important; }
.page-id-29231 .page-header { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
.page-id-29231 .e-con-inner { padding: 0 !important; }
.page-id-29231 .e-con { padding: 0 !important; margin: 0 !important; }
