/* TSC Store Production - Product Catalog Stylesheet */

:root {
    --tsc-red: #b31b1c;
    --tsc-red-hover: #9c1516;
    --tsc-red-light: #fff1f2;
    --tsc-dark: #181c24;
    --tsc-dark-card: #181c24;
    --tsc-gray-bg: #f8fafc;
    --tsc-border: #e2e8f0;
    --tsc-text-main: #0f172a;
    --tsc-text-muted: #64748b;
    --tsc-radius-sm: 6px;
    --tsc-radius-md: 10px;
    --tsc-radius-lg: 14px;
}

.tsc-catalog-container {
    max-width: 1360px !important;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================= 1. HERO BANNER (Identik dengan Portofolio) ================= */
.tsc-catalog-hero {
    position: relative;
    background-color: #181c24;
    padding: 56px 20px 48px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.tsc-catalog-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 54, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tsc-catalog-hero-container {
    max-width: 820px !important;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tsc-catalog-hero-kicker {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tsc-catalog-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.4px;
    margin: 0 0 14px;
    line-height: 1.25;
}

.tsc-catalog-hero-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 620px;
}

/* Centered Search Bar (Identik dengan Portofolio) */
.tsc-catalog-hero-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 16px;
}

.tsc-catalog-hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.tsc-catalog-hero-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 13px 20px 13px 48px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.tsc-catalog-hero-search-input:focus {
    border-color: #b31b1c;
    box-shadow: 0 0 0 3px rgba(179, 27, 28, 0.25), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tsc-catalog-hero-search-input::placeholder {
    color: #94a3b8;
}

/* Quick Search Tags (Subtle, rapi, tidak menumpuk) */
.tsc-catalog-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
}

.tsc-quick-tag-label {
    color: #94a3b8;
    font-size: 12px;
}

.tsc-quick-tag-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsc-quick-tag-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Top Category Chips Row (Identik dengan Portofolio) */
.tsc-cat-top-chips-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tsc-cat-top-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
    scrollbar-width: none;
}
.tsc-cat-top-chips::-webkit-scrollbar {
    display: none;
}

.tsc-cat-top-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tsc-cat-top-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.tsc-cat-top-chip.active {
    background: #b31b1c !important;
    color: #ffffff !important;
    border-color: #b31b1c !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(179, 27, 28, 0.25);
}

.tsc-cat-item-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.tsc-cat-item-counter strong {
    color: #0f172a;
}

/* ================= 2. MAIN CATALOG SECTION ================= */
.tsc-catalog-section {
    background: #f8fafc;
    padding: 24px 0 60px;
    min-height: 600px;
}

.tsc-catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.tsc-filter-sidebar-col {
    width: 100%;
}

.tsc-filter-card {
    background: #ffffff;
    border: 1px solid var(--tsc-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 90px;
}

.tsc-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tsc-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tsc-text-main);
    margin: 0;
}

.tsc-filter-reset {
    font-size: 12px;
    color: var(--tsc-red);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

.tsc-filter-reset:hover {
    text-decoration: underline;
}

.tsc-filter-group {
    margin-bottom: 20px;
}

.tsc-filter-group:last-child {
    margin-bottom: 0;
}

.tsc-filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tsc-text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.tsc-filter-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tsc-filter-checkbox {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin: 0;
    line-height: 1.4;
}

.tsc-filter-checkbox input[type="checkbox"],
.tsc-filter-checkbox input[type="radio"] {
    accent-color: var(--tsc-red);
    width: 15px;
    height: 15px;
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.tsc-filter-checkbox .count {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
}

.tsc-filter-checkbox:hover {
    color: var(--tsc-red);
}

.tsc-products-main-col {
    flex: 1 1 0%;
    min-width: 0;
}

.tsc-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.tsc-product-card {
    background: #ffffff;
    border: 1px solid var(--tsc-border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tsc-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.tsc-product-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsc-product-thumb img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.tsc-product-card:hover .tsc-product-thumb img {
    transform: scale(1.04);
}

/* Placeholder saat belum ada gambar */
.tsc-product-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 14px;
    text-align: center;
    user-select: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tsc-product-card:hover .tsc-product-no-img {
    background: #f1f5f9;
}

.tsc-no-img-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tsc-product-card:hover .tsc-no-img-icon {
    transform: scale(1.06);
    border-color: #cbd5e1;
    color: var(--tsc-red);
}

.tsc-no-img-text {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
}

.tsc-no-img-sub {
    font-size: 9.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Modal no-image placeholder */
.tsc-pdm-no-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    border-radius: 12px;
}

.tsc-product-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 3;
}

.tsc-product-wishlist-btn:hover {
    color: var(--tsc-red);
    border-color: #fecdd3;
    background: #fff1f2;
}

.tsc-product-wishlist-btn.active {
    color: var(--tsc-red);
    background: #fff1f2;
    border-color: #fecdd3;
}

.tsc-product-body {
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tsc-product-badge-wrap {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tsc-product-custom-badge {
    display: inline-block;
    background: #fff1f2;
    color: var(--tsc-red);
    border: 1px solid #ffe4e6;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}

.tsc-product-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #1e293b;
    margin: 0 0 5px 0;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 35px;
    transition: color 0.15s ease;
}

.tsc-product-title:hover {
    color: var(--tsc-red);
}

.tsc-product-price-box {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.tsc-product-price-box .price-label {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 400;
}

.tsc-product-price-box .price-val {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tsc-red);
}

.tsc-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f8fafc;
}

.tsc-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d97706;
    font-weight: 500;
}

.tsc-product-rating i {
    font-size: 11px;
}

.tsc-product-rating .count {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 2px;
}

.tsc-product-tag {
    color: #475569;
    font-size: 10px;
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Actions */
.tsc-product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.tsc-btn-cart {
    width: 32px;
    height: 32px;
    background: var(--tsc-red);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.15s ease;
}

.tsc-btn-cart:hover {
    background: var(--tsc-red-hover);
    transform: scale(1.03);
}

.tsc-btn-detail {
    flex-grow: 1;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.tsc-btn-detail:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--tsc-red);
}

/* ================= 3. PAGINATION ================= */
.tsc-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.tsc-page-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--tsc-radius-sm);
    background: #ffffff;
    border: 1px solid var(--tsc-border);
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.tsc-page-btn:hover {
    background: #f1f5f9;
    color: var(--tsc-text-main);
    border-color: #cbd5e1;
}

.tsc-page-btn.active {
    background: var(--tsc-red) !important;
    border-color: var(--tsc-red) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(229, 54, 55, 0.3);
}

.tsc-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================= 4. BOTTOM CUSTOM DESIGN CTA ================= */
.tsc-bottom-cta-wrap {
    margin-top: 50px;
}

.tsc-bottom-cta-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tsc-bottom-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tsc-bottom-cta-thumb {
    width: 140px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.tsc-bottom-cta-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsc-bottom-cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tsc-text-main);
    margin-bottom: 6px;
}

.tsc-bottom-cta-text p {
    font-size: 14px;
    color: var(--tsc-text-muted);
    margin: 0;
}

.tsc-bottom-cta-action .tsc-btn-cta {
    background: var(--tsc-red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: var(--tsc-radius-md);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tsc-bottom-cta-action .tsc-btn-cta:hover {
    background: var(--tsc-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 54, 55, 0.28);
}

/* ================= 5. EMPTY STATE ================= */
.tsc-empty-state {
    background: #ffffff;
    border: 1px solid var(--tsc-border);
    border-radius: var(--tsc-radius-lg);
    padding: 60px 24px;
    text-align: center;
    display: none;
}

.tsc-empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.tsc-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tsc-text-main);
    margin-bottom: 8px;
}

.tsc-empty-desc {
    font-size: 14px;
    color: var(--tsc-text-muted);
    max-width: 420px;
    margin: 0 auto 20px auto;
}

/* Toast Message */
.tsc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.tsc-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1280px) {
    .tsc-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991px) {
    .tsc-catalog-hero-title {
        font-size: 28px;
    }

    .tsc-catalog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tsc-filter-sidebar-col {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .tsc-filter-card {
        position: static;
        margin-bottom: 0;
    }

    .tsc-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .tsc-bottom-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tsc-bottom-cta-action {
        width: 100%;
    }

    .tsc-bottom-cta-action .tsc-btn-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tsc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .tsc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tsc-catalog-hero {
        padding: 40px 0 35px 0;
    }

    .tsc-catalog-hero-title {
        font-size: 24px;
    }

    .tsc-catalog-hero-desc {
        font-size: 13px;
    }

    .tsc-bottom-cta-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .tsc-bottom-cta-thumb {
        width: 100%;
        height: 120px;
    }
}