/* shopAccount/public/assets/css/tag/contentTabProduct.css */

.tab-products-container {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

.tab-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-main-title {
    font-size: 22px;
    color: #1e293b;
    margin: 0;
}

.tab-total-badge {
    background-color: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.products-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-item-card {
    flex: 0 0 calc(25% - 12px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-platform-banner {
    background: #f1f5f9;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.platform-badge-name {
    font-size: 12px;
    font-weight: bold;
    color: #2563eb;
    text-transform: uppercase;
}

.card-content-body {
    padding: 12px;
    flex-grow: 1;
}

.product-inner-title {
    font-size: 15px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-inner-title a {
    color: #0f172a;
    text-decoration: none;
}

.product-inner-title a:hover {
    color: #2563eb;
}

.product-info-subrow {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.product-inner-price {
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
    margin: 6px 0;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.badge-automatic {
    background: #dcfce7;
    color: #15803d;
}

.badge-manual {
    background: #fef3c7;
    color: #b45309;
}

.card-action-footer {
    padding: 10px 12px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}

.btn-action-view {
    width: 100%;
    padding: 6px 0;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-action-view:hover {
    background: #004085;
}

.empty-results-text {
    width: 100%;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}

/* Pagination Styling */
.tab-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pag-btn, .pag-num {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.pag-num.is-active {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .product-item-card { flex: 0 0 calc(33.333% - 10px); }
}
@media (max-width: 768px) {
    .product-item-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 480px) {
    .product-item-card { flex: 0 0 100%; }
}