/* PWA Warehouse Styles - MOTOJACS Armazém */
.wh-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}
.wh-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wh-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.wh-badge {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.wh-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.wh-stat {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wh-stat .num {
    font-size: 22px;
    font-weight: 700;
    display: block;
}
.wh-stat .lbl {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.wh-search {
    margin-bottom: 12px;
}
.wh-search input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}
.wh-search input:focus {
    border-color: #e94560;
    outline: none;
}
.wh-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.wh-tab {
    padding: 8px 16px;
    border-radius: 8px;
    background: #f0f0f0;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.wh-tab.active {
    background: #e94560;
    color: #fff;
}
.wh-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wh-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wh-product-card .thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wh-product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wh-product-card .info {
    flex: 1;
    min-width: 0;
}
.wh-product-card .info .name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wh-product-card .info .meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.wh-product-card .info .meta .brand {
    color: #4fc3f7;
    font-weight: 500;
}
.wh-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    font-family: 'SF Mono', 'Consolas', monospace;
    margin-top: 4px;
}
.wh-stock-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.wh-stock-badge.in { background: rgba(78,204,163,0.12); color: #2ecc71; }
.wh-stock-badge.low { background: rgba(245,166,35,0.12); color: #f5a623; }
.wh-stock-badge.out { background: rgba(233,69,96,0.12); color: #e94560; }
.wh-pick-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.wh-btn-primary {
    background: #e94560;
    color: #fff;
}
.wh-btn-success {
    background: #4ecca3;
    color: #0f0f1a;
}
.wh-btn-secondary {
    background: #f0f0f0;
    color: #666;
}
.wh-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}
.wh-error {
    text-align: center;
    padding: 20px;
    color: #e94560;
}
@media (prefers-color-scheme: dark) {
    body { background: #0f0f1a; color: #e0e0e0; }
    .wh-stat { background: rgba(255,255,255,0.06); }
    .wh-stat .num { color: #fff; }
    .wh-search input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); color: #fff; }
    .wh-tab { background: rgba(255,255,255,0.08); color: #999; }
    .wh-tab.active { background: #e94560; color: #fff; }
    .wh-product-card { background: rgba(255,255,255,0.06); }
    .wh-product-card .info .name { color: #fff; }
    .wh-location-tag { background: rgba(255,255,255,0.1); color: #aaa; }
    .wh-pick-item { background: rgba(255,255,255,0.06); }
    .wh-btn-secondary { background: rgba(255,255,255,0.1); color: #ccc; }
}
