/* ============================================================
   TAC SHOWCASE — Complete Styles
   ============================================================ */
.tac-controls *, .tac-grid-wrap * { box-sizing: border-box; }

/* ── CONTROLS ── */
.tac-controls {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}
.tac-controls-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
}

/* Search box */
.tac-search-box {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d8e0;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
}
#tac-search {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    min-width: 0;
}
#tac-search::placeholder { color: #a0aec0; }
.tac-search-btn {
    background: #132065;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background .2s;
}

/* Lucky button */
.tac-lucky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #132065;
    color: #fff !important;
    padding: 0 22px;
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}

/* ── GRID ── */
.tac-grid-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}
.tac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 1100px) { .tac-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px)  { .tac-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .tac-grid { grid-template-columns: 1fr; } }

/* ── CARD ── */
.tac-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.11);
}

/* Product image */
.tac-card-img-link { display: block; text-decoration: none; }
.tac-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tac-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.tac-card:hover .tac-card-img img { transform: scale(1.04); }
.tac-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.75rem;
}
.tac-img-placeholder svg { width: 60px; height: auto; }

/* Partners row — Company + TAC logos with names */
.tac-card-partners {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 0px;
    border-bottom: 1px solid #f0f4f8;
    min-height: 58px;
    flex-wrap: wrap;
}
.tac-partner-item {
    display: flex;
    gap: 7px;
    flex: 1;
    min-width: 0;
}
.tac-partner-logo {
    width: auto;
    height: 40px !important;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.tac-partner-name {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tac-partner-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Card body */
.tac-card-body {
    padding: 0px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tac-card-title {
    font-size: 0.97rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.tac-card-title a {
    color: #0066cc;
    text-decoration: none;
    transition: color .2s;
}
.tac-card-title a:hover { color: #132065; text-decoration: none; }
.tac-card-excerpt {
    padding: 0px 8px;
    font-size: 13px !important;
    color: #718096;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tac-card-availability {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.75rem;
    color: #2d7d46;
    font-weight: 600;
    margin: 0;
}
.tac-card-availability svg { flex-shrink: 0; margin-top: 2px; }

/* Buttons */
.tac-card-btns {
    display: flex;
    gap: 8px;
    padding: 10px 16px 16px;
    flex-shrink: 0;
}
.tac-btn-outline {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border: 1.5px solid #d1d8e0;
    border-radius: 6px;
    font-size: 14px !important;
    font-weight: 600;
    color: #2d3748 !important;
    text-decoration: none;
    background: #fff !important;
    transition: border-color .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tac-btn-solid {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    background: #132065;
    border: 1.5px solid #132065;
    border-radius: 6px;
    font-size: 14px !important;
    font-weight: 600;
    color: #ffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .2s, border-color .2s;
}

.tac-btn-solid,
.tac-btn-solid:visited {
    color: #ffffff !important;
}

.tac-btn-solid:hover {
    background: #0f1b55;
    border-color: #0f1b55;
    color: #ffffff !important;
    text-decoration: none;
}


/* ── NO RESULTS ── */
.tac-no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.tac-no-results h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 12px 0 8px;
}
.tac-no-results p { color: #718096; font-size: 0.9rem; }
.tac-no-results button {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
}

/* ── EMPTY STATE ── */
.tac-empty-state {
    text-align: center;
    padding: 80px 20px;
}
.tac-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.tac-empty-state h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #132065;
    margin: 0 0 12px;
}
.tac-empty-state p {
    font-size: 0.92rem;
    color: #718096;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   SINGLE / DETAIL PAGE
   ============================================================ */
.tac-showcase-single { background: #f7f9fc; min-height: 60vh; }

/* Hero split */
.tac-single-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    min-height: 380px;
}
@media (max-width: 768px) { .tac-single-hero { grid-template-columns: 1fr; } }

.tac-single-image { overflow: hidden; }
.tac-single-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}
.tac-single-image-placeholder {
    width: 100%;
    min-height: 300px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #a0aec0;
    font-size: 0.85rem;
}

.tac-single-meta {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
@media (max-width: 768px) { .tac-single-meta { padding: 28px 20px; } }

.tac-single-title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #132065;
    margin: 0;
    line-height: 1.25;
}

/* Partners on single page */
.tac-single-partners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tac-single-partner-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tac-single-partner-row img {
    max-width: 90px;
    max-height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.tac-single-partner-info { display: flex; flex-direction: column; gap: 2px; }
.tac-single-partner-label {
    font-size: 0.7rem;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tac-single-partner-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2d3748;
}
.tac-single-partner-sep {
    height: 1px;
    background: #e2e8f0;
    margin: 2px 0;
}

/* Buy section on single page */
.tac-single-buy { display: flex; flex-direction: column; gap: 10px; }
.tac-buy-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.tac-buy-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.tac-btn-buy-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #132065;
    color: #fff;
    padding: 12px 26px;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.tac-btn-buy-primary:hover { background: #dd0000; color: #fff; text-decoration: none; }
.tac-btn-buy-amazon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff9900;
    color: #111;
    padding: 12px 26px;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.tac-btn-buy-amazon:hover { background: #e68900; color: #111; text-decoration: none; }
.tac-availability-note {
    font-size: 0.82rem;
    color: #2d7d46;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Body sections */
.tac-single-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.tac-single-section {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.tac-single-section h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #132065;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #dd0000;
    display: inline-block;
}
.tac-single-section p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
}
.tac-where-to-buy {
    border-left: 4px solid #132065;
}
.tac-where-to-buy h2 { border-bottom-color: #132065; }

.tac-single-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}
.tac-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color .2s;
}
.tac-back-link:hover { color: #dd0000; text-decoration: none; }
.tac-lucky-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #132065;
    color: #fff;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.tac-lucky-link:hover { background: #dd0000; color: #fff; text-decoration: none; }