/* ========================================
   内部采购系统 - 自定义样式
   ======================================== */

/* 商品卡片 */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 购物车 */
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* 订单时间线 */
.order-timeline {
    position: relative;
    padding-left: 30px;
}
.order-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}
.timeline-item:last-child::before {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

/* 后台库存预警 */
.stock-warning {
    background-color: #fff3cd !important;
}

/* 管理后台表格垂直居中 */
.table-middle td, .table-middle th {
    vertical-align: middle;
}
